Read: H&L chapters 1-6

Similar documents
Linear Programming. Linear programming provides methods for allocating limited resources among competing activities in an optimal way.

Introduction. Linear because it requires linear functions. Programming as synonymous of planning.

Section Notes 5. Review of Linear Programming. Applied Math / Engineering Sciences 121. Week of October 15, 2017

ISE203 Optimization 1 Linear Models. Dr. Arslan Örnek Chapter 4 Solving LP problems: The Simplex Method SIMPLEX

AM 121: Intro to Optimization Models and Methods Fall 2017

Advanced Operations Research Techniques IE316. Quiz 2 Review. Dr. Ted Ralphs

Advanced Operations Research Techniques IE316. Quiz 1 Review. Dr. Ted Ralphs

Linear programming II João Carlos Lourenço

5. DUAL LP, SOLUTION INTERPRETATION, AND POST-OPTIMALITY

Section Notes 4. Duality, Sensitivity, and the Dual Simplex Algorithm. Applied Math / Engineering Sciences 121. Week of October 8, 2018

INEN 420 Final Review

Linear Programming Problems

Linear Programming. Course review MS-E2140. v. 1.1

Civil Engineering Systems Analysis Lecture XIV. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

Linear programming and duality theory

Outline. CS38 Introduction to Algorithms. Linear programming 5/21/2014. Linear programming. Lecture 15 May 20, 2014

Chap5 The Theory of the Simplex Method

Introduction to Mathematical Programming IE496. Final Review. Dr. Ted Ralphs

Some Advanced Topics in Linear Programming

5 The Theory of the Simplex Method

Introduction to Operations Research

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Civil Engineering Systems Analysis Lecture XV. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

Linear Optimization. Andongwisye John. November 17, Linkoping University. Andongwisye John (Linkoping University) November 17, / 25

DM545 Linear and Integer Programming. Lecture 2. The Simplex Method. Marco Chiarandini

CSE 40/60236 Sam Bailey

Marginal and Sensitivity Analyses

Optimization of Design. Lecturer:Dung-An Wang Lecture 8

Artificial Intelligence

CSC 8301 Design & Analysis of Algorithms: Linear Programming

Mathematical and Algorithmic Foundations Linear Programming and Matchings

Part 4. Decomposition Algorithms Dantzig-Wolf Decomposition Algorithm

New Directions in Linear Programming

Chapter II. Linear Programming

Finite Math Linear Programming 1 May / 7

16.410/413 Principles of Autonomy and Decision Making

The Simplex Algorithm

MATHEMATICS II: COLLECTION OF EXERCISES AND PROBLEMS

Controlling Air Pollution. A quick review. Reclaiming Solid Wastes. Chapter 4 The Simplex Method. Solving the Bake Sale problem. How to move?

Math 414 Lecture 30. The greedy algorithm provides the initial transportation matrix.

5.4 Pure Minimal Cost Flow

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D.

Linear Programming. Revised Simplex Method, Duality of LP problems and Sensitivity analysis

George B. Dantzig Mukund N. Thapa. Linear Programming. 1: Introduction. With 87 Illustrations. Springer

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Chapter 2 An Introduction to Linear Programming

Recap, and outline of Lecture 18

Department of Mathematics Oleg Burdakov of 30 October Consider the following linear programming problem (LP):

COLUMN GENERATION IN LINEAR PROGRAMMING

MLR Institute of Technology

Copyright 2007 Pearson Addison-Wesley. All rights reserved. A. Levitin Introduction to the Design & Analysis of Algorithms, 2 nd ed., Ch.

VARIANTS OF THE SIMPLEX METHOD

Econ 172A - Slides from Lecture 8

Lecture 16 October 23, 2014

Linear and Integer Programming :Algorithms in the Real World. Related Optimization Problems. How important is optimization?

Lecture 9: Linear Programming

4.1 The original problem and the optimal tableau

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016

Linear Programming Motivation: The Diet Problem

Tuesday, April 10. The Network Simplex Method for Solving the Minimum Cost Flow Problem

Chapter 7. Linear Programming Models: Graphical and Computer Methods

Lecture 5: Duality Theory

Chapter 2--An Introduction to Linear Programming

Solving Linear Programs Using the Simplex Method (Manual)

Simplex Algorithm in 1 Slide

CMPSCI611: The Simplex Algorithm Lecture 24

Tribhuvan University Institute Of Science and Technology Tribhuvan University Institute of Science and Technology

The Ascendance of the Dual Simplex Method: A Geometric View

Solutions for Operations Research Final Exam

Math 5593 Linear Programming Lecture Notes

Linear Programming. Larry Blume. Cornell University & The Santa Fe Institute & IHS

Chapter 15 Introduction to Linear Programming

CS 473: Algorithms. Ruta Mehta. Spring University of Illinois, Urbana-Champaign. Ruta (UIUC) CS473 1 Spring / 36

An iteration of the simplex method (a pivot )

Introduction to Linear Programming

CS675: Convex and Combinatorial Optimization Spring 2018 The Simplex Algorithm. Instructor: Shaddin Dughmi

Chapter 2 - An Introduction to Linear Programming

Lesson 17. Geometry and Algebra of Corner Points

Discuss mainly the standard inequality case: max. Maximize Profit given limited resources. each constraint associated to a resource

NOTATION AND TERMINOLOGY

The Simplex Algorithm

Math 5490 Network Flows

Other Algorithms for Linear Programming Chapter 7

COMS 4771 Support Vector Machines. Nakul Verma

LECTURE 13: SOLUTION METHODS FOR CONSTRAINED OPTIMIZATION. 1. Primal approach 2. Penalty and barrier methods 3. Dual approach 4. Primal-dual approach

Chapter 1 Linear Programming. Paragraph 4 The Simplex Algorithm

Support Vector Machines. James McInerney Adapted from slides by Nakul Verma

AMATH 383 Lecture Notes Linear Programming

OPERATIONS RESEARCH. Linear Programming Problem

Advanced Algorithms Linear Programming

3. The Simplex algorithmn The Simplex algorithmn 3.1 Forms of linear programs

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology Madras.

MATLAB Solution of Linear Programming Problems

Linear Programming Duality and Algorithms

Linear Programming. L.W. Dasanayake Department of Economics University of Kelaniya

CSE 460. Today we will look at" Classes of Optimization Problems" Linear Programming" The Simplex Algorithm"

LP Geometry: outline. A general LP. minimize x c T x s.t. a T i. x b i, i 2 M 1 a T i x = b i, i 2 M 3 x j 0, j 2 N 1. where

CS 372: Computational Geometry Lecture 10 Linear Programming in Fixed Dimension

Graphs that have the feasible bases of a given linear

The Affine Scaling Method

Transcription:

Viterbi School of Engineering Daniel J. Epstein Department of Industrial and Systems Engineering ISE 330: Introduction to Operations Research Fall 2006 (Oct 16): Midterm Review http://www-scf.usc.edu/~ise330 Read: H&L chapters 1-6 THE SIMPLEX METHOD Setting up a Linear Program: standard form of LP Assumptions of Linear Programming: proportionality, additivity, divisibility, certainty Definitions: corner point feasible solutions (CPF) and basic feasible solutions (BFS) Theorem: A CPF solution that has no adjacent CPF solutions that are better is optimal. Solving Linear Programming Problems: Method: Geometric approach: graphical solution The Simplex Method: algebra of the simplex method basic and non-basic variables pivot column, pivot row, minimum ratio test tie in entering/leaving variable, no leaving variable, multiple solutions Initialize: Introduce slack variables, which are the initial basic variables. Decision variables are initial nonbasic variables. Optimality Test: BFS is optimal iff every coefficient in row 0 is nonnegative. If so, we are done, otherwise continue. Iteration: Determine entering basic variable having the most negative coefficient in row 0. This is the pivot column. Determine leaving basic variable by applying the minimum ratio test. Solve for new BFS using elementary row operations. Variations in Model Forms: I. What do you do when there is a constraint at equality? II. Constraint with negative RHS? III. Greater-than-or-equal constraints? 1

IV. Minimization problems V. Variables Allowed to be Negative. variables with a bound on the negative values are allowed? What if variables with no bound on the negative values are allowed? Solving LPs with artificial variables The Big-M method. The Two-Phase Simplex Method. I: Find a BFS for the real problem by min the sum of the artificial var. II: Find an optimal solution for the real problem. How can you tell if the real problem has no feasible solutions? How can we model variables that are allowed to be negative? CASE 1: CASE 2: Variables with a lower bound. Variables with no lower bounds. Post-optimality Analysis Shadow prices, binding constraints FOUNDATIONS OF THE SIMPLEX METHOD Definitions: Constraint Boundary Equation, hyperplane, boundary Corner-Point Feasible Solution, edges, adjacent CPF Solutions Constraint boundary equation, indicating variable Properties of CPF Solutions: Property 1: (a) If there is exactly 1 optimal solution, it must be a CPFS. (b) If there are multiple opt solns (and a bounded feasible region), 2 must be adjacent CPFS. Property 2: There are a finite number of CPFS. Property 3: If a CPFS has no adjacent CPFS that are better, then such a CPFS is guaranteed to be an optimal solution. Augmented Form: Each BFS has m basic variables, and the rest are nonbasic. The number of nonbasic variables equals n + # surplus variables. The basic solution is the augmented CPS whose n defining equations are indicated by the nonbasic variables. E.C. 2

A BFS is a basic solution where all m basic variables are nonnegative. A BFS is said to be degenerate if any of the m variables equals zero. An adjacent CPF solution is reached by (1) deleting one constraint boundary from the n defining boundaries (2) moving along the edge defined by the remaining n 1 boundaries (3) stopping when the first new boundary is reached. REVISED SIMPLEX METHOD: Initial Basic Coeff Tableaux Var Z original slack RHS Z 1 c 0 0 x B 0 A I b Final Basic Coeff Tableaux Var Z original slack RHS Z 1 c B B -1 A c c B B -1 c B B -1 b x B 0 B -1 A B -1 B -1 b Book s Basic Coeff Notation Var Z original slack RHS Z 1 z* c y* Z* x B 0 A* S* b* The Revised Simplex Method: (1) Initialization: as before (2) Iteration: - Determine entering basic variable - Determine leaving basic variable (only make necessary calc) - Determine new BFS: Find B -1, x B = B -1 b (3) Optimality test: as before (only calc coeff for nonbasic variables in Z) A way to derive the B -1 new from the old B -1 old x k = entering basic variable a ik = column k coefficients in A' r = row of the leaving basic variable E.C. 3

B new = E B old E = 1 0 a 1k /a rk 0 0 0 1 a 2k /a rk 0 0 : : : : : 0 0 1/a rk 0 0 : : : : : 0 0 a (m 1)k /a rk 1 0 0 0 a mk /a rk 0 1 COMPLEMENTARITY Weak duality property: If x is a feasible solution for the primal problem and y is a feasible solution for the dual problem, then cx yb. Strong duality property: If x* is an optimal solution for the primal problem and y* is an optimal solution for the dual problem, then cx* = y*b. Complementary solutions property: At each iteration, the simplex method simultaneously identifies a CPF solution x for the primal πroblem and a complementary solution y for the dual problem (found in row 0, the coeff of the slack variables), where cx = yb. If x is not optimal for the primal, what about y? Complementary optimal solutions property: At the final iteration, the simplex method simultaneously identifies an optimal solution x* for the primal problem and a complementary optimal solution y* for the dual problem (found in row 0, the coeff of the slack variables), where cx* = y*b. In this solution, y* gives the shadow prices for the primal problem. Symmetry property: The dual of the dual is the primal. Duality Theorem: Possible scenarios (1) Feasible solutions exist and objective function is bounded, then same is true for other problem. (2) Feasible solutions exist and objective function is unbounded, then other problem is infeasible. (3) No feasible solutions exist then other problem is either infeasible or has unbounded objective fn. Complementary basic solutions property: Each basic solution in the primal problem has a complementary basic solution in the dual problem, where their respective objective function values (Z and W) are equal. Complementary optimal basic solutions property: Each optimal basic solution in the primal problem has a complementary optimal basic solution in the dual problem, where their respective objective function values (Z and W ) are equal. E.C. 4

Complementary slackness property: The variables in the primal basic solution and the complementary dual basic solution satisfy the complementary slackness as shown: Primal variable Basic Non-basic Dual variable Non-basic (m variables) Basic (n variables) Futhermore, the relationship is symmetric. DUALITY Shortcut for conversion between primal and dual: Primal Maximize Z Constraint i: form = form form Variable x j : x j 0 unconstrained x j 0 Dual Minimize W Variable y i : y i 0 unconstrained y i 0 Constraint j: form = form SENSITIVITY ANALYSIS Definition: Sensitivity Analysis deals with the effect on the optimal solution of making changes in the values of the model parameters aij, bi cj. CASE 1: Changes in b i One change in the RHS What is the allowable range to stay feasible? Simultaneous changes on the RHS Rule of thumb: Calculate the percentage of the allowable change for each change. If the sum of the percentage changes does not exceed 100%, the shadow prices will still be valid. CASE 2a: Changes in the Coefficients of a Nonbasic Variable One change in the Objective Function Coefficient How to calculate the allowable range to stay optimal for c j. Simultaneous changes in the Objective Function Coefficients Rule of thumb: The 100% rule as above. E.C. 5

CASE 2b: Introducing a New Variable CASE 3: Changes in the Coefficients of a Basic Variable Calculate the revised final tableaux. Convert this to standard form, and find the new optimal solution. Find allowable range to stay optimal? CASE 4: Introducing new constraints What is the graphical effect of this new constraint? Does the previous optimal solution violate this constraint? What is the optimal solution? Parametric Approach to Sensitivity Analysis Investigate the effect of varying individual b i parameters. Multiple b i parameters can be varied at the same time. E.C. 6