Lecture 5 Simplex Method. September 2, 2009

Similar documents
Lecture 11: Post-Optimal Analysis. September 23, 2009

Dual Basic Solutions. Observation 5.7. Consider LP in standard form with A 2 R m n,rank(a) =m, and dual LP:

Week_4: simplex method II

Week 3: Simplex Method I

Math Models of OR: Some Definitions

Slack Variable. Max Z= 3x 1 + 4x 2 + 5X 3. Subject to: X 1 + X 2 + X x 1 + 4x 2 + X X 1 + X 2 + 4X 3 10 X 1 0, X 2 0, X 3 0

Slide 1 Math 1520, Lecture 10

Standard Form An LP is in standard form when: All variables are non-negativenegative All constraints are equalities Putting an LP formulation into sta

AM 121: Intro to Optimization Models and Methods Fall 2018

The Simplex Method. Lecture 5 Standard and Canonical Forms and Setting up the Tableau. Lecture 5 Slide 1. FOMGT 353 Introduction to Management Science

21. Solve the LP given in Exercise 19 using the big-m method discussed in Exercise 20.

Sensitivity Analysis

TIM 206 Lecture 3: The Simplex Method

Simplex Algorithm Using Canonical Tableaus

Algebraic Simplex Active Learning Module 4

Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

9.1 Linear Programs in canonical form

Math Models of OR: Sensitivity Analysis

IE 5531: Engineering Optimization I

The Simplex Method. Standard form (max) z c T x = 0 such that Ax = b.

IE 400: Principles of Engineering Management. Simplex Method Continued

ECE 307 Techniques for Engineering Decisions

Ann-Brith Strömberg. Lecture 4 Linear and Integer Optimization with Applications 1/10

Linear programs Optimization Geoff Gordon Ryan Tibshirani

February 17, Simplex Method Continued

Simplex Method for LP (II)

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method

Dr. Maddah ENMG 500 Engineering Management I 10/21/07

IP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, You wish to solve the IP below with a cutting plane technique.

Introduction to the Simplex Algorithm Active Learning Module 3

Linear Programming: Simplex Algorithm. A function of several variables, f(x) issaidtobelinear if it satisþes the two

Review Solutions, Exam 2, Operations Research

ORF 307: Lecture 2. Linear Programming: Chapter 2 Simplex Methods

(includes both Phases I & II)

MATH 445/545 Homework 2: Due March 3rd, 2016

Special cases of linear programming

Gauss-Jordan Elimination for Solving Linear Equations Example: 1. Solve the following equations: (3)

The Dual Simplex Algorithm

Summary of the simplex method

(includes both Phases I & II)

Lesson 27 Linear Programming; The Simplex Method

MAT016: Optimization

Systems Analysis in Construction

The use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis:

Math Models of OR: Handling Upper Bounds in Simplex

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Metode Kuantitatif Bisnis. Week 4 Linear Programming Simplex Method - Minimize

Chapter 4 The Simplex Algorithm Part I

Lecture 14 Transportation Algorithm. October 9, 2009

Dr. S. Bourazza Math-473 Jazan University Department of Mathematics

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

1 Review Session. 1.1 Lecture 2

4.3 Minimizing & Mixed Constraints

Linear Programming: Simplex Method CHAPTER The Simplex Tableau; Pivoting

Chap6 Duality Theory and Sensitivity Analysis

Ω R n is called the constraint set or feasible set. x 1

Simplex tableau CE 377K. April 2, 2015

The Simplex Method: An Example

Distributed Real-Time Control Systems. Lecture Distributed Control Linear Programming

AM 121: Intro to Optimization

CPS 616 ITERATIVE IMPROVEMENTS 10-1

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Lecture 11 Linear programming : The Revised Simplex Method

Part 1. The Review of Linear Programming

Example. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive

Water Resources Systems: Modeling Techniques and Analysis

Operations Research Lecture 6: Integer Programming

Part 1. The Review of Linear Programming

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

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

Chapter 5 Linear Programming (LP)

1. Algebraic and geometric treatments Consider an LP problem in the standard form. x 0. Solutions to the system of linear equations

A Review of Linear Programming

Optimization Methods in Management Science

Introduction to Mathematical Programming IE406. Lecture 13. Dr. Ted Ralphs

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Sensitivity Analysis and Duality in LP

IE 400 Principles of Engineering Management. The Simplex Algorithm-I: Set 3

Lecture 2: The Simplex method

CO 602/CM 740: Fundamentals of Optimization Problem Set 4

Overview of course. Introduction to Optimization, DIKU Monday 12 November David Pisinger

Non-Standard Constraints. Setting up Phase 1 Phase 2

Introduce the idea of a nondegenerate tableau and its analogy with nondenegerate vertices.

The augmented form of this LP is the following linear system of equations:

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

Linear Programming, Lecture 4

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

F 1 F 2 Daily Requirement Cost N N N

56:270 Final Exam - May

CO350 Linear Programming Chapter 6: The Simplex Method

56:171 Fall 2002 Operations Research Quizzes with Solutions

Farkas Lemma, Dual Simplex and Sensitivity Analysis

The Simplex Method. Formulate Constrained Maximization or Minimization Problem. Convert to Standard Form. Convert to Canonical Form

Lecture 4: Algebra, Geometry, and Complexity of the Simplex Method. Reading: Sections 2.6.4, 3.5,

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

56:171 Operations Research Fall 1998

Chapter 3, Operations Research (OR)

1. (7pts) Find the points of intersection, if any, of the following planes. 3x + 9y + 6z = 3 2x 6y 4z = 2 x + 3y + 2z = 1

THE STEPS OF THE SIMPLEX ALGORITHM

February 22, Introduction to the Simplex Algorithm

Transcription:

Simplex Method September 2, 2009

Outline: Lecture 5 Re-cap blind search Simplex method in steps Simplex tableau Operations Research Methods 1

Determining an optimal solution by exhaustive search Lecture 5 From the LP theory (if interested take course IE 411), the optimal value of an LP problem is always attained at a corner point Thus, we can find the optimal value and an optimal solution by Generating a list of all basic solutions Crossing out infeasible solutions Computing the objective value for each feasible solution Choosing the basic feasible solutions with the best value (min or max) Operations Research Methods 2

Example: Reddy Mikks case Basic Variables Basic Solution Feasibility Status Objective Value x 1, x 2 3, 1.5 Feasible 21 x 1, x 3 6, 12 Infeasible XXX x 1, x 4 4, 0 Feasible 20 x 2, x 3 3, 12 Feasible 15 x 2, x 4 6, 6 Infeasible XXX x 3, x 4 24, 6 Feasible 0 Thus, the optimal solution is x 1 = 3, x 2 = 1.5, x 3 = 0, and x 4 = 0 and the optimal value is z = 21. In this case, we have only one solution Operations Research Methods 3

Search Bottleneck: Large number of the basic solutions Blind search can be time consuming (inefficient) Given an LP in the standard form with m equations and n variables, there are n(n 1)(n 2) (n m + 1) m! many basic solutions Say m = 4 and n = 8, then there are 70 solutions It is hard to manually list them all and find the best We will use a more efficient method (simplex method) to perform a smarter search (selectively moving to a better point) Operations Research Methods 4

Simplex method: started at a feasible basic solution Lecture 5 Illustrated on the Reddy Mikks problem Original LP formulation Standard LP form maximize z = 5x 1 + 4x 2 subject to 6x 1 + 4x 2 24 x 1 + 2x 2 6 x 1, x 2 0 maximize z = 5x 1 + 4x 2 subject to 6x 1 + 4x 2 + x 3 = 24 x 1 + 2x 2 + x 4 = 6 x 1, x 2, x 3, x 4 0 NOTE The basic variables are also referred to as a basis. Every basis has exactly m variables. Operations Research Methods 5

Initial iteration: (1) Choose an initial basic feasible solution (2) Check if it is optimal (if yes, we are done) Lecture 5 Suppose we choose x 3 and x 4 as basis We solve the equations in terms of x 1 and x 2 to find the basic feasible solution corresponding to this basis Basis Equations RHS Values (x 3 ) 6x 1 + 4x 2 + x 3 = 24 (x 4 ) x 1 + 2x 2 + x 4 = 6 When x 1 = x 2 = 0, we have the basic feasible solution readily available Item 2: Is this optimal? x 1 = 0 x 2 = 0 x 3 = 24 x 4 = 6 Operations Research Methods 6

Check Optimality We now check the optimality of the current basic solution (0,0,24,6) Express the cost in terms of nonbasic variables z = 5x 1 + 4x 2 In the basic solution (0, 0, 24, 6) the nonbasic variables are zero. Would increasing any of these values increase the objective value (max)? Operations Research Methods 7

Yes, actually increasing either x 1 or x 2 would improve the cost. Q: Why are we allowed to increase x 1 or x 2? So we can choose any of these variables, say we select x 1. Checking optimality in another form: Basis Equations RHS Values (z) row z 5x 1 4x 2 = 0 (x 3 ) 6x 1 + 4x 2 + x 3 = 24 (x 4 ) x 1 + 2x 2 + x 4 = 6 There are negative coefficients in z-row (associated with x 1 and x 2 ) The variables with negative coefficients indicate directions of improvement for the objective value (when maximizing) Operations Research Methods 8

Current basic solution (0,0,24,6) is not optimal: x 1 or x 2 can be increased to improve the z-value Next step: move to a better basic feasible solution by taking either x 1 or x 2 in the basis Suppose we choose x 1 Operations Research Methods 9

Next iteration: (1) Perform basis change (2) Determine its corresponding solution (3) Check its optimality (if yes, we are done) We have x 3 and x 4 as current basis and the nonoptimal solution (0, 0, 24, 6) We selected variable x 1 to enter the basis, but one of the current basic variables, x 3 or x 4, has to leave the basis x 1 entering the basis means that x 1 value is increasing from its current value 0 Is there anything prohibiting us to increase x 1 as much as we want? The answer is the constraint equations Operations Research Methods 10

Basis Equations RHS Values (z) row z 5x 1 4x 2 = 0 (x 3 ) 6x 1 + 4x 2 + x 3 = 24 (x 4 ) x 1 + 2x 2 + x 4 = 6 6x 1 + 4x 2 + x 3 = 24 = x 1 can be at most 24/6 = 4 x 1 + 2x 2 + x 4 = 6 = x 1 can be at most 6/1 =6 The variable corresponding to the smaller ratio leaves the basis. Thus, x 3 leaves the basis. The new basis is x 1 and x 4. We have completed item 1 task. Operations Research Methods 11

Item 2: determine the basic feasible solution corresponding to this basis. Lecture 5 In other words, we need to resolve the relations to express the new basic variables x 1 and x 4 in terms of nonbasic variables x 2 and x 3. Old basis Basis Equations RHS Values (z) row z 5x 1 4x 2 = 0 (x 1 ) x 3 left 6x 1 + 4x 2 + x 3 = 24 (x 4 ) x 1 + 2x 2 + x 4 = 6 Use Gauss-Jordan elimination Operations Research Methods 12

Gauss-Jordan: Divide the equation by 6 to have coeff. of x 1 equal to 1 Basis Equations RHS Values (z) row z 5x 1 4x 2 = 0 (x 1 ) x 1 + 2 3 x 2 + 1 6 x 3 = 4 (x 4 ) x 1 + 2x 2 + x 4 = 6 Gauss-Jordan: Eliminate x 1 from the second equation Basis Equations RHS Values (z) row z 5x 1 4x 2 = 0 (x 1 ) x 1 + 2 3 x 2 + 1 6 x 3 = 4 (x 4 ) The new basic feasible solution is (4,0,0,6) 4 3 x 2 1 6 x 3 + x 4 = 2 Lecture 5 Operations Research Methods 13

Item 3: Is this optimal? Gauss-Jordan: Eliminate x 1 from the z-row in the last table Basis Equations RHS Values (z) row z 2 3 x 2 + 5 6 x 3 = 20 (x 1 ) x 1 + 2 3 x 2 + 1 6 x 3 = 4 (x 4 ) 4 3 x 2 1 6 x 3 + x 4 = 2 The current basic solution is not optimal! Why? Thus, we have to perform another iteration. Which of the currently nonbasic variables, x 2 or x 4, when increased will result in increased z-value? Operations Research Methods 14

New iteration: (1) Perform basis change (2) Determine its corresponding solution (3) Check its optimality (if yes, we are done) We have x 1 and x 4 as current basis Lecture 5 We select variable x 2 to enter the basis, but one of the current basic variables, x 1 or x 4, has to leave the basis Which variable will leave the current basis? Perform ratio test Basis Equations RHS Values (z) row z 2 3 x 2 + 5 6 x 3 = 20 (x 1 ) x 1 + 2 3 x 2 + 1 6 x 3 = 4 (x 4 ) 4 3 x 2 1 6 x 3 + x 4 = 2 Operations Research Methods 15

x 1 + 2 3 x 2 + 1 6 x 3 = 4 = x 2 can be at most 4 2 3 = 6 4 3 x 2 1 6 x 3 + x 4 = 2 = x 2 can be at most 2 4 3 = 6 4 The variable corresponding to the smaller ratio leaves the basis. Thus, x 4 leaves the basis. The new basis is x 1 and x 2. Operations Research Methods 16

Item 2: Find the basic solution corresponding to the basis x 1 and x 2 Gauss-Jordan again Old table Basis Equations RHS Values (z) row z 2 3 x 2 + 5 6 x 3 = 20 (x 1 ) x 1 + 2 3 x 2 + 1 6 x 3 = 4 (x 2 ) x 4 left 4 3 x 2 1 6 x 3 + x 4 = 2 The number 4 3 is used to eliminate x 2 from x 2 -row and z-row This number is referred as pivot element Operations Research Methods 17

Gauss-Jordan elimination yields Basis Equations RHS Values (z) row z + 11 12 x 3 + 1 2 x 4 = 21 (x 1 ) x 1 + 1 4 x 3 1 2 x 4 = 3 (x 2 ) x 2 1 8 x 3 + 3 4 x 4 = 3 2 What is the current basic solution (corresponding to the data above). Item 3: Is this optimal? - Look at the coefficients of x 3 and x 4 in z-row. They are nonnegative - so the current basic solution is optimal What is the optimal objective value? Operations Research Methods 18

Simplex Path in Reddy Mikks Example (0, 0) (4, 0) (3, 1.5) Operations Research Methods 19