1 Bob and Sue solved this by hand: Maximize x 1 + 2 x 2 subject to 1 x 1 + 1 x 2 ≤ 10 -2 x 1 + 1 x 2 ≤ 4 x 1, x 2 ≥ 0 and their last dictionary was: X1.

Slides:



Advertisements
Similar presentations
1. Set up the phase 1 dictionary for this problem and make the first pivot: Maximize X 1 + X X 3 + X 4 subject to -X 1 + X X 4 ≤ -3 -X 1 +
Advertisements

Summary of complementary slackness: 1. If x i ≠ 0, i= 1, 2, …, n the ith dual equation is tight. 2. If equation i of the primal is not tight, y i =0. 1.
Geometry and Theory of LP Standard (Inequality) Primal Problem: Dual Problem:
In a previous lecture, this dictionary resulted after the first phase 1 pivot: X0 = X1 - 1 X2 + 1 X3 X4 = X1 + 3 X2 + 1 X
Standard Minimization Problems with the Dual
Operation Research Chapter 3 Simplex Method.
1 If you still are having problems getting your program to work, send me for help. You will need to use it later in the term to start Programming.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Chapter 6 Linear Programming: The Simplex Method
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Linear Inequalities and Linear Programming Chapter 5
The Simplex Method: Standard Maximization Problems
The Simplex Algorithm An Algorithm for solving Linear Programming Problems.
1 Linear programming simplex method This presentation will help you to solve linear programming problems using the Simplex tableau.
ISM 206 Lecture 4 Duality and Sensitivity Analysis.
Duality Dual problem Duality Theorem Complementary Slackness
7(2) THE DUAL THEOREMS Primal ProblemDual Problem b is not assumed to be non-negative.
ISM 206 Lecture 4 Duality and Sensitivity Analysis.
5.6 Maximization and Minimization with Mixed Problem Constraints
Chapter 4 The Simplex Method
Use complementary slackness to check the solution: ( 20/3, 0, 16/3, 0) Maximize 9 x 1 -3 x x 3 -7 x 4 subject to 2 x x x x 4 ≤
Linear Programming - Standard Form
Learning Objectives for Section 6.2
Chapter 6 Linear Programming: The Simplex Method
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Simplex Algorithm.Big M Method
Duality Theory LI Xiaolei.
ECE 556 Linear Programming Ting-Yuan Wang Electrical and Computer Engineering University of Wisconsin-Madison March
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: The Simplex Method Chapter 5.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Duality Theory  Every LP problem (called the ‘Primal’) has associated with another problem called the ‘Dual’.  The ‘Dual’ problem is an LP defined directly.
After one pivot: HNT= [4 2 3]
OR Perturbation Method (tableau form) (after two iterations, optimal solution obtained) (0+2  1 ) (0+2  2 ) (1+  3 )
1 Announcements: The deadline for grad lecture notes was extended to Friday Nov. 9 at 3:30pm. Assignment #4 is posted: Due Thurs. Nov. 15. Nov is.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
4  The Simplex Method: Standard Maximization Problems  The Simplex Method: Standard Minimization Problems  The Simplex Method: Nonstandard Problems.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Mechanical Engineering Department 1 سورة النحل (78)
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
 Minimization Problem  First Approach  Introduce the basis variable  To solve minimization problem we simple reverse the rule that is we select the.
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
EE/Econ 458 Duality J. McCalley.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.3 The student will be able to formulate the dual problem. The student.
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ 5.5 Dual problem: minimization.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
CSC 445/545 is done at 4:30 so I did NOT fill in the box for 4:30 for our class. Please put your name here. Please put your as well. 1.
OR Relation between (P) & (D). OR optimal solution InfeasibleUnbounded Optimal solution OXX Infeasible X( O )O Unbounded XOX (D) (P)
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
Use duality theory to check if the solution implied by the dictionary is correct. Maximize x x x 3 subject to 1 x x x 3 ≤ 5 1 x.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
5.5 Dual problem: minimization with problem constraints of the form Associated with each minimization problem with constraints is a maximization problem.
Chap 10. Sensitivity Analysis
The minimum cost flow problem
Perturbation method, lexicographic method
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
Chapter 4 Linear Programming: The Simplex Method
Chap 9. General LP problems: Duality and Infeasibility
The Simplex Method: Standard Minimization Problems
Lecture 4 Part I Mohamed A. M. A..
Chapter 5. The Duality Theorem
DUALITY THEORY Reference: Chapter 6 in Bazaraa, Jarvis and Sherali.
Presentation transcript:

1 Bob and Sue solved this by hand: Maximize x x 2 subject to 1 x x 2 ≤ x x 2 ≤ 4 x 1, x 2 ≥ 0 and their last dictionary was: X1 = X X3 X4 = X X z = X X3 1.What is the dual? 2.Use the dictionary to find y 1 and y 2. 3.Use duality theory to see if this is a correct solution to this problem.

2 If you still are having problems getting your program to work, send me for help. You will need to use it later in the term to start Programming Project #2 and to find answers to problems. Assignment #2 is now available: Due Thurs. Oct. 4 at the beginning of class. Mon. Oct. 8 is a holiday (Thanksgiving): late deadline is Tues. Oct. 9 at 3:30pm, you can slip late submissions under my office door.

Alan Turing Celebration Lecture Biological Evolution as a Form of Learning Leslie Valiant, CC and Applied Math., Harvard Wed. Oct 10, 3:30pm, ECS 124 Pre-test questions on Wed. Oct. 10: I will be in class from 3:30-4:20 and will also book a room from 4:30-5:20 for students who want to attend this talk. Old exams are posted on the class web page.

Consider Maximize 4 X X X X 4 subject to 1 X X X X 4 ≤ 1 5 X X X X 4 ≤ X X X X 4 ≤ 3 X 1, X 2, X 3, X 4 ≥ 0

The initial dictionary: X5 = 1- 1 X1 + 1 X2 + 1 X3 - 3 X4 X6 = X1 - 1 X2 - 3 X3 - 8 X4 X7 = 3+ 1 X1 - 2 X2 - 3 X3 + 5 X z = X1 + 1 X2 + 5 X3 + 3 X4 After 3 pivots: X4 = 5- 1 X1 - 1 X3 - 2 X5 - 1 X7 X6 = 1+ 5 X1 + 9 X X X7 X2 = X1 - 4 X3 - 5 X5 - 3 X z = X1 - 2 X X5 - 6 X7 The optimal solution: (actually 29).

After 3 pivots: X4 = 5- 1 X1 - 1 X3 - 2 X5 - 1 X7 X6 = 1+ 5 X1 + 9 X3 +21 X5 +11 X7 X2 = X1 - 4 X3 - 5 X5 - 3 X z = X1 - 2 X3 -11 X5 - 6 X7 Take y 1 = -(coeff. of X5 in Z row)=11 Take y 2 = -(coeff. of X6 in Z row)= 0 Take y 3 = -(coeff. of X7 in Z row)= 6 In general, set y i = -1 * (coeff. of ith slack variable in the Z row).

The initial dictionary: X5 = 1- 1 X1 + 1 X2 + 1 X3 - 3 X4 X6 = X1 - 1 X2 - 3 X3 - 8 X4 X7 = 3+ 1 X1 - 2 X2 - 3 X3 + 5 X z = X1 + 1 X2 + 5 X3 + 3 X4 Multiply the 3 rows of the initial dictionary by y 1, y 2, and y 3 respectively: 11 X5 = X1 +11 X2 +11 X3 -33 X4 0 X6 = X1 - 0 X2 - 0 X3 - 0 X4 6 X7 = X1 -12 X2 -18 X3 +30 X4

Multiply the 3 rows of the initial dictionary by y 1, y 2, and y 3 respectively then add them together: 11 X5 = X1 +11 X2 +11 X3 -33 X4 0 X6 = X1 - 0 X2 - 0 X3 - 0 X4 6 X7 = X1 -12 X2 -18 X3 +30 X4 ======================================= 11 X5 +6 X7 = X1 - 1 X2 - 7 X3 - 3 X4 Rearrange: 0= X1 - 1 X2 - 7 X3 - 3 X X5 - 6 X7

Rearrange: 0= X1 - 1 X2 - 7 X3 - 3 X X5 - 6 X7 Add to the original equation for z: z= 0 +4 X1 +1 X2 +5 X3 +3 X4 0= X1 -1 X2 -7 X3 -3 X4 -11 X5 -6 X z= X1 +0 X2 -2 X3 -0 X4 -11 X5 -6 X7

z= 0 +4 X1 +1 X2 +5 X3 +3 X4 0= X1 -1 X2 -7 X3 -3 X4 -11 X5 -6 X z= X1 +0 X2 -2 X3 -0 X4 -11 X5 -6 X7 The last dictionary: X4 = 5- 1 X1 - 1 X3 - 2 X5 - 1 X7 X6 = 1+ 5 X1 + 9 X3 +21 X5 +11 X7 X2 = X1 - 4 X3 - 5 X5 - 3 X z = X1 - 2 X3 -11 X5 - 6 X7

It is no surprise that this is the same as the z row in the final tableau. The Simplex method proceeds by adding linear combinations of the rows to the z row. The linear combination that led to the final result can be determined by looking at the coefficients of the slack variables because each slack variable is in only one of the original equations, and its original coefficient is 1.

Why in general must y as determined this way be dual feasible? First, y ≥ 0 because if the value of y i was negative the corresponding coefficient in the z row would be strictly positive, and hence the Simplex method would continue to pivot.

Second, The fact that these constant multiples of the original equations yield coefficients of the x i 's that dominate those in the objective function is an artifact of the fact that we do not stop pivoting until the coefficients of x i 's in the z row are negative or zero.

DUAL CONSTRAINT: a 11 y 1 + a 21 y a m1 y m ≥ c 1 The z row when we are done has the coefficient of x 1 equal to: c 1 – (a 11 y 1 + a 21 y a m1 y m ) The coefficient of x 1 must be ≤ 0 since otherwise we would keep pivoting. This happens exactly when: a 11 y 1 + a 21 y a m1 y m ≥ c 1 So this dual constraint is satisfied.

Finally, the objective function values are the same for the dual as for the primal because the values are just b 1 y 1 + b 2 y b m y m The primal value of z equals this because this because we added this linear combination of the b i ’s to the z row, and the dual value equals this by definition.

A linear programming problem can have an optimal solution, or it can be infeasible or unbounded. Thought question: which combinations are possible?

The Duality Theorem If the primal has an optimal solution x * with z= c T x *, then the dual also has an optimal solution y *, and b T y * = c T x *.

Theorem (last class): For every primal feasible solution x= (x 1, x 2,..., x n ) and for every dual feasible solution y= (y 1, y 2,..., y m ), c 1 x 1 + c 2 x c n x n ≤ b 1 y 1 + b 2 y b m y m

Example on assignment that is due today:

Another example: Maximize 2 X1 - X2 subject to X1 - X2 ≤ 1 -X1 + X2 ≤ -2 X ≥ 0 What is the dual? Draw a picture of this.

Maximize 2 X1 - X2 subject to X1 - X2 ≤ 1 -X1 + X2 ≤ -2 X ≥ 0 The dual is: Minimize 1 Y1 - 2 Y2 subject to Y1 - Y2 ≥ 2 -Y1 + Y2 ≥ -1 Y ≥ 0 The dual in standard form: Maximize - Y1 + 2 Y2 subject to - Y1 + Y2 ≤ -2 Y1 - Y2 ≤ 1 Y ≥ 0

Maximize 2 X1 - X2 subject to X1 - X2 ≤ 1 -X1 + X2 ≤ -2 X ≥ 0 Last dictionary for phase 1: X1 = X X X4 X0 = X X X z = X X X4 X1=1.5, X2=0, Z= -0.5

Maximize 2 X1 - X2 subject to X1 - X2 ≤ misses constraint by X1 + X2 ≤ misses constraint by -0.5 z tells us how badly the worst constraint is missing its constraint. Last dictionary: X1=1.5, X2=0, Z= -0.5