Understanding the Simplex algorithm. Standard Optimization Problems.

Similar documents
c) Place the Coefficients from all Equations into a Simplex Tableau, labeled above with variables indicating their respective columns

Part 1. The Review of Linear Programming

Review Solutions, Exam 2, Operations Research

Worked Examples for Chapter 5

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

Brief summary of linear programming and duality: Consider the linear program in standard form. (P ) min z = cx. x 0. (D) max yb. z = c B x B + c N x N

Lecture #21. c T x Ax b. maximize subject to

Math 210 Finite Mathematics Chapter 4.2 Linear Programming Problems Minimization - The Dual Problem

Part 1. The Review of Linear Programming

Optimization 4. GAME THEORY

Farkas Lemma, Dual Simplex and Sensitivity Analysis

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

Exam 3 Review Math 118 Sections 1 and 2

Chap6 Duality Theory and Sensitivity Analysis

Chapter 1 Linear Programming. Paragraph 5 Duality

Sensitivity Analysis and Duality in LP

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

Lecture 5. x 1,x 2,x 3 0 (1)

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

The Simplex Algorithm

Sensitivity Analysis

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

Systems Analysis in Construction

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

Linear Programming, Lecture 4

MVE165/MMG631 Linear and integer optimization with applications Lecture 5 Linear programming duality and sensitivity analysis

March 13, Duality 3

MATH 445/545 Test 1 Spring 2016

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

Linear Programming Duality P&S Chapter 3 Last Revised Nov 1, 2004

Linear Programming: Chapter 5 Duality

4.3 Minimizing & Mixed Constraints

April 2003 Mathematics 340 Name Page 2 of 12 pages

Chapter 2. Ma 322 Fall Ma 322. Sept 23-27

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

4.4 The Simplex Method and the Standard Minimization Problem


4. Duality and Sensitivity

Chapter 3, Operations Research (OR)

Linear Programming Duality

Math Models of OR: Some Definitions

Linear Programming Inverse Projection Theory Chapter 3

Relation of Pure Minimum Cost Flow Model to Linear Programming

Example Problem. Linear Program (standard form) CSCI5654 (Linear Programming, Fall 2013) Lecture-7. Duality

UNIT-4 Chapter6 Linear Programming

OPTIMISATION 2007/8 EXAM PREPARATION GUIDELINES

F 1 F 2 Daily Requirement Cost N N N

"SYMMETRIC" PRIMAL-DUAL PAIR

Part III: A Simplex pivot

Lecture 10: Linear programming. duality. and. The dual of the LP in standard form. maximize w = b T y (D) subject to A T y c, minimize z = c T x (P)

Duality Theory, Optimality Conditions

Special cases of linear programming

Lesson 27 Linear Programming; The Simplex Method

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

1 Review Session. 1.1 Lecture 2

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

3. THE SIMPLEX ALGORITHM

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

A Review of Linear Programming

Slide 1 Math 1520, Lecture 10

END3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur

Note 3: LP Duality. If the primal problem (P) in the canonical form is min Z = n (1) then the dual problem (D) in the canonical form is max W = m (2)

LINEAR PROGRAMMING 2. In many business and policy making situations the following type of problem is encountered:

15-780: LinearProgramming

Simplex Algorithm Using Canonical Tableaus

1. Introduce slack variables for each inequaility to make them equations and rewrite the objective function in the form ax by cz... + P = 0.

AM 121 Introduction to Optimization: Models and Methods Example Questions for Midterm 1

The Simplex Method for Solving a Linear Program Prof. Stephen Graves

OPTIMISATION /09 EXAM PREPARATION GUIDELINES

Discrete Optimization

Topic: Primal-Dual Algorithms Date: We finished our discussion of randomized rounding and began talking about LP Duality.

Sensitivity Analysis and Duality

The Dual Simplex Algorithm

4.6 Linear Programming duality

Lecture Notes 3: Duality

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

14. Duality. ˆ Upper and lower bounds. ˆ General duality. ˆ Constraint qualifications. ˆ Counterexample. ˆ Complementary slackness.

3 The Simplex Method. 3.1 Basic Solutions

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

Lecture 10: Linear programming duality and sensitivity 0-0

Section 4.1 Solving Systems of Linear Inequalities

3. Duality: What is duality? Why does it matter? Sensitivity through duality.

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

The Strong Duality Theorem 1

An introductory example

Algorithmic Game Theory and Applications. Lecture 7: The LP Duality Theorem

Another max flow application: baseball

U.C. Berkeley CS294: Beyond Worst-Case Analysis Handout 12 Luca Trevisan October 3, 2017

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

Math Models of OR: The Revised Simplex Method

Summary of the simplex method

CSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017

Finite Mathematics MAT 141: Chapter 4 Notes

OPERATIONS RESEARCH. Linear Programming Problem

1 Seidel s LP algorithm

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

Homework Assignment 4 Solutions

Linear Programming and the Simplex method

M340(921) Solutions Problem Set 6 (c) 2013, Philip D Loewen. g = 35y y y 3.

Transcription:

Understanding the Simplex algorithm. Ma 162 Spring 2011 Ma 162 Spring 2011 February 28, 2011 Standard Optimization Problems. A standard maximization problem can be conveniently described in matrix form as follows. Maximize P = CX subject to AX B and X 0. Here, X is a column of the variables used in the problem, C is a row vector, so that P = CX is a linear function of X. It is often similar to a profit function, hence the letter P. Moreover, in the current course we assume that B 0. This insures that the choice X = 0 satisfies all the inequalities, i.e. is a feasible solution. Problems can be analyzed without this assumption, but we won t try to solve them not in this course. Here is an example (4.1 Example 3): Take 2 1 2 14 A = 2 4 1, B = 26 and C = [ 2 2 1 ]. 1 2 3 28

Example continued. We construct a problem table (or tableau) recording all the coefficients as follows: x y z Constants 2 1 2 14 X Constants 2 4 1 26 or symbolically A B 1 2 3 28 C 2 2 1 We are using the title constants to match the book notation. When we write the Simplex tableau, it may be changed to RHS, since in the tableau, we have equations, not just inequalities. Minimization tableau. There is a natural dual problem associated with this table and it has a dual problem table (tableau) as follows: u v w Constants 2 2 1 2 1 4 2 2 2 1 3 1 14 26 28 or symbolically Y Constants A C B The matrices A, B, C are the transposes of A, B, C respectively. Thus the whole table is simply a transpose. Our dual problem is described as follows: Minimize 14u + 26v + 28w subject to the conditions 2u+2v+w 2, u+4v+2w 2, 2u+v+3w 1 and u, v, w 0.

Duality theorem. The dual problem is described as a minimization problem as follows. We let Y be a row vector of variables, equal in number to the number of rows of A. Minimize Y B subject to Y A C and Y 0. Compare this with the inequalities above by taking Y = [ u v w ]. The reason to write Y as a row rather than a column is somewhat technical and would be clarified below. The amazing theorem called the duality theorem states that any solution of the original maximization problem by the Simplex Algorithm produces a solution to its dual minimization problem by simply reading the final tableau. We describe this next. The solution from the algorithm. For our maximization problem above, we record the starting and the final tableaux and then show how to interpret them. Starting tableau: x y z u v w P RHS 2 1 2 1 0 0 0 14 2 4 1 0 1 0 0 26 1 2 3 0 0 1 0 28 2 2 1 0 0 0 1 0 End tableau: x y z u v w P RHS 1 0 7/6 2/3 1/6 0 0 5 0 1 1/3 1/3 1/3 0 0 4 0 0 5/2 0 1/2 1 0 15 0 0 2/3 2/3 1/3 0 1 18

The interpretation of the solution. Inspection of the final tableau says that the final basis is x, y, w, P and hence the final basic solution is: (x, y, z, u, v, w, P ) = (5, 4, 0, 0, 0, 15, 18). The Voodoo Principle also tells us the actual row transformations that we performed. This information is read from the 4 4 matrix under the variables u, v, w, P. We know that the row transformations can be performed by multiplying the original 4 8 matrix by some 4 4 matrix on the left. We see that this transformation matrix must be [ M 0 Y 1 ] = 2/3 1/6 0 0 1/3 1/3 0 0 0 1/2 1 0 2/3 1/3 0 1 Interpretation continued. The first part of the last row Y = [ 2/3 1/3 0 ] tells us that we must have multiplied the first three rows by 2/3, 1/3, 0 respectively and added to the last row. By looking at the the entries at the foot of the x, y, z columns, we deduce that [ 0 0 2/3 ] = C + Y A since the original entries were C = [ 2 2 1 ] and we added Y A to it. Thus Y A C. By looking at the last entry in the bottom row, we know that it was 0 and we have added Y B to it. Thus, we have Y 0, Y B = (2/3) (14) + (1/3) (26) + (0) (28) = 18. Thus Y is a feasible solution to the dual problem.

Why do we have the dual problem solved? Recall that the two Linear Programming Problems (LPP) are: Maximize: P = CX s.t. X 0, AX B and Minimize: Q = Y B s.t. Y 0, Y A C. Here we name the second function Q instead of C since C is used for the coefficients of P. Recall that by a feasible solution to either problem we mean a solution which satisfies all the inequalities, but may not give the maximum or minimum. If X 0, Y 0 are feasible solutions to the two problems respectively, then we see that Y 0 B Y 0 AX 0 CX 0. Thus the function value Q 0 = Y 0 B is always bigger than or equal to the function value P 0 = CX 0. Proof of Duality. Thus, if X 0 and Y 0 are feasible solutions to the maximization and its dual minimization problems respectively and if P 0 = CX 0 = Y 0 B = Q 0 then both must be simultaneously the optimum values for the respective problems, hence the solutions of both the problems at once! Thus for our dual problems X 0 = (5, 4, 0) and Y 0 = (2/3, 1/3, 0) are the respective solutions of the maximization and the minimization problems with a common function value 18. Warning! Note that the Y values are read at the foot of the original slack variables, but they are not the values of the basic solution for the slack variables corresponding to the maximization problem.

How to handle optimization problems? Recall that we always assume all our variables to be non negative in this course. In the following discussion, we are only discussing the remaining inequalities; we shall call them essential inequalities. If our essential inequalities are of type with non negative RHS, then we write it as a maximization problem and solve with the Simplex algorithm. (If we happen to be minimizing a function, we can always maximize its negative instead!) If our essential inequalities are of type with non negative RHS, then we write it as a minimization problem and solve its dual with the Simplex algorithm. Then read off the solution under the slack columns as shown above. (If we happen to be maximizing a function, we can always minimize its negative instead!) Terminology. The problem we wish to solve is always called the primal problem and its dual is the dual problem. When do we fail? Recall that if we have a negative entry in the last row of a simplex tableau but no suitable pivot above because all such entries are less than or equal to zero, then our maximization problem is unbounded and has no solution. For the dual minimization problem, we can claim that there is no feasible solution. This means that its feasible region is empty! We can also have a case where the dual minimization problem is unbounded, but then the primal maximization problem shall have no feasible solution! This cannot occur under our standardness assumption. You will meet this in higher courses.