Geometry and Theory of LP Standard (Inequality) Primal Problem: Dual Problem:

Slides:



Advertisements
Similar presentations
IEOR 4004 Midterm Review (part I)
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.
IEOR 4004 Midterm review (Part II) March 12, 2014.
Solving LP Models Improving Search Special Form of Improving Search
Linear Programming Problem
Lesson 08 Linear Programming
Lecture #3; Based on slides by Yinyu Ye
Introduction to Algorithms
CCMIII U2D4 Warmup This graph of a linear programming model consists of polygon ABCD and its interior. Under these constraints, at which point does the.
Chapter 6 Linear Programming: The Simplex Method
The Simplex Method and Linear Programming Duality Ashish Goel Department of Management Science and Engineering Stanford University Stanford, CA 94305,
Chapter 2: Introduction to Linear Programming
Duality Dual problem Duality Theorem Complementary Slackness
Computational Methods for Management and Economics Carla Gomes
Linear Programming Optimal Solutions and Models Without Unique Optimal Solutions.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Chapter 3 An Introduction to Linear Programming
Linear Programming.
Graphical Solutions Plot all constraints including nonnegativity ones
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
LINEAR PROGRAMMING SIMPLEX METHOD.
Linear Programming Chapter 13 Supplement.
Special Conditions in LP Models (sambungan BAB 1)
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS ST. EDWARD’S UNIVERSITY.
Duality Theory 對偶理論.
Managerial Decision Making and Problem Solving
1 1 Slide Linear Programming (LP) Problem n A mathematical programming problem is one that seeks to maximize an objective function subject to constraints.
L4 Graphical Solution Homework See new Revised Schedule Review Graphical Solution Process Special conditions Summary 1 Read for W for.
Duality Theory LI Xiaolei.
Introduction to Operations Research
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Duality Theory  Every LP problem (called the ‘Primal’) has associated with another problem called the ‘Dual’.  The ‘Dual’ problem is an LP defined directly.
LP: Summary thus far Requirements Graphical solutions Excel Sensitivity Analysis.
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
A LINEAR PROGRAMMING PROBLEM HAS LINEAR OBJECTIVE FUNCTION AND LINEAR CONSTRAINT AND VARIABLES THAT ARE RESTRICTED TO NON-NEGATIVE VALUES. 1. -X 1 +2X.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
Part 3 Linear Programming 3.3 Theoretical Analysis.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
3 Components for a Spreadsheet Optimization Problem  There is one cell which can be identified as the Target or Set Cell, the single objective of the.
Linear Programming Short-run decision making model –Optimizing technique –Purely mathematical Product prices and input prices fixed Multi-product production.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
P RIMAL -D UAL LPP. T HE R EDDY M IKKS C OMPANY - PROBLEM Reddy Mikks company produces both interior and exterior paints from two raw materials, M 1 and.
1 Simplex algorithm. 2 The Aim of Linear Programming A Linear Programming model seeks to maximize or minimize a linear function, subject to a set of linear.
Part 3 Linear Programming 3.3 Theoretical Analysis.
1 1 Slide Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
1 Chapter 4 Geometry of Linear Programming  There are strong relationships between the geometrical and algebraic features of LP problems  Convenient.
Chapter 2 Linear Programming Models: Graphical and Computer Methods
An Introduction to Linear Programming
Linear Programming Dr. T. T. Kachwala.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
MBA 651 Quantitative Methods for Decision Making
Graphical Analysis – the Feasible Region
Chap 9. General LP problems: Duality and Infeasibility
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Chapter 3 The Simplex Method and Sensitivity Analysis
Part 3 Linear Programming
Max Z = x1 + x2 2 x1 + 3 x2  6 (1) x2  1.5 (2) x1 - x2  2 (3)
Linear Programming I: Simplex method
Lecture 4 Part I Mohamed A. M. A..
Chapter 5. The Duality Theorem
Linear Programming Problem
Part 3. Linear Programming
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
Presentation transcript:

Geometry and Theory of LP Standard (Inequality) Primal Problem: Dual Problem:

Geometry of the Prototype Example P1 P2 0 Every point in this nonnegative quadrant is associated with a specific production alternative. ( point = decision = solution ) Max 3 P1 + 5 P2 s.t. P1 + < 4 (Plant 1) 2 P2 < 12 (Plant 2) 2 P2 < 12 (Plant 2) 3 P1 + 2 P2 < 18 (Plant 3) 3 P1 + 2 P2 < 18 (Plant 3) P1, P2 > 0 (nonnegativity) P1, P2 > 0 (nonnegativity)

Geometry of the Prototype Example P1 P2 (0,0) Max 3 P1 + 5 P2 s.t. P1 + < 4 (Plant 1) 2 P2 < 12 (Plant 2) 2 P2 < 12 (Plant 2) 3 P1 + 2 P2 < 18 (Plant 3) 3 P1 + 2 P2 < 18 (Plant 3) P1, P2 > 0 (nonnegativity) P1, P2 > 0 (nonnegativity) (4,0)

Geometry of the Prototype Example P1 P2 (0,0) Max 3 P1 + 5 P2 s.t. P1 + < 4 (Plant 1) 2 P2 < 12 (Plant 2) 2 P2 < 12 (Plant 2) 3 P1 + 2 P2 < 18 (Plant 3) 3 P1 + 2 P2 < 18 (Plant 3) P1, P2 > 0 (nonnegativity) P1, P2 > 0 (nonnegativity) (4,0) (0,6)

Geometry of the Prototype Example P1 P2 (0,0) Max 3 P1 + 5 P2 s.t. P1 + < 4 (Plant 1) 2 P2 < 12 (Plant 2) 2 P2 < 12 (Plant 2) 3 P1 + 2 P2 < 18 (Plant 3) 3 P1 + 2 P2 < 18 (Plant 3) P1, P2 > 0 (nonnegativity) P1, P2 > 0 (nonnegativity) (4,0) (0,6)(2,6) (4,3) (9,0)

Geometry of the Prototype Example P1 P2 (0,0) Max 3 P1 + 5 P2 s.t. P1 + < 4 (Plant 1) 2 P2 < 12 (Plant 2) 2 P2 < 12 (Plant 2) 3 P1 + 2 P2 < 18 (Plant 3) 3 P1 + 2 P2 < 18 (Plant 3) P1, P2 > 0 (nonnegativity) P1, P2 > 0 (nonnegativity) (4,0) (0,6)(2,6) (4,3) (9,0)

P1 P2 (0,0) Max 3 P1 + 5 P2 In Feasible Region (4,0) (0,6)(2,6) (4,3) (9,0) Feasible region is the set of points (solutions) that simultaneously satisfy all the constraints. There are infinitely many feasible points (solutions).

Geometry of the Prototype Example P1 P2 (0,0) Max 3 P1 + 5 P2 (4,0) (0,6)(2,6) (4,3) (9,0) Objective function contour (iso-profit line) 3 P1 + 5 P2 = 12

Geometry of the Prototype Example P1 P2 (0,0) Max 3 P1 + 5 P2 s.t. P1 + < 4 (Plant 1) 2 P2 < 12 (Plant 2) 2 P2 < 12 (Plant 2) 3 P1 + 2 P2 < 18 (Plant 3) 3 P1 + 2 P2 < 18 (Plant 3) P1, P2 > 0 (nonnegativity) P1, P2 > 0 (nonnegativity) (4,0) (0,6)(2,6) (4,3) (9,0) Optimal Solution: the solution for the simultaneous boundary equations of two active constraints 3 P1 + 5 P2 = 36

Degeneracy P1 P2 (0,0) Max 3 P1 + 5 P2 s.t. P1 + < 4 (Plant 1) 2 P2 < 12 (Plant 2) 2 P2 < 12 (Plant 2) 3 P1 + 2 P2 < 24 (Plant 3) 3 P1 + 2 P2 < 24 (Plant 3) P1, P2 > 0 (nonnegativity) P1, P2 > 0 (nonnegativity) (4,0) (0,6)(2,6) (9,0) The number of active constraints is more than the number of variables.

LP Terminology n n solution (decision, point): any specification of values for all decision variables, regardless of whether it is a desirable or even allowable choice n n feasible solution: a solution for which all the constraints are satisfied. n n feasible region (constraint set, feasible set): the collection of all feasible solution n n objective function contour (iso-profit, iso-cost line) n n optimal solution (optimum): a feasible solution that has the most favorable value of the objective function n n optimal (objective) value: the value of the objective function evaluated at an optimal solution n n active constraint (binding constraint) n n inactive constraint n n redundant constraint n n interior, boundary n n extreme point (corner)

Unbounded or Infeasible Case n On the left, the objective function is unbounded n On the right, the feasible set is empty

Graphical Solution Seeking n Plot the feasible region. n If the region is empty, stop: the problem is infeasible; there must be conflicting constraints in the model. n Plot the objective function contour and choose the optimizing direction. n Determine whether the objective value is bounded or not. If not, stop: the problem is unbounded; there must be mistakes in model formulation. n Determine an optimal corner point. n Identify active constraints at this corner. n Solve simultaneous linear equations for the optimal solution. n Evaluate the objective function at the optimal solution to obtain the optimal value of the problem.

Theory of Linear Programming An LP problem falls in one of three cases: n Problem is infeasible: Feasible region is empty. n Problem is unbounded: Feasible region is unbounded towards the optimizing direction. n Problem is feasible and bounded: then there exists an optimal point; an optimal point is on the boundary of the feasible region; and there is always at least one optimal corner point (if the feasible region has a corner point). When the problem is feasible and bounded, n There may be a unique optimal point or multiple optima (alternative optima). n If a corner point is not “worse” than all its neighbor corners, then it is optimal.

Convexity of Feasible Region Convex Set Non-Convex Set Convex Set Non-Convex Set F is a convex set if and only if for any two points, x and y, of F, their convex combination,  x + (1-  )y, for all real values 0 <=  <= 1, is also in F. F is a convex set if and only if for any two points, x and y, of F, their convex combination,  x + (1-  )y, for all real values 0 <=  <= 1, is also in F.

Local Optimal => Global Optimal Convex Set Convex Set Proof by contradiction: If the point is not globally optimal, then it is not locally optimal Proof by contradiction: If the point is not globally optimal, then it is not locally optimal

LP Duality Standard (Inequality) Primal Problem: Dual Problem:

LP Duality (continued) Standard (Equality) Primal Form: Dual Form:

Example: max 3x1 + 5x2 max 3x1 + 5x2s.t. x1 <= 4 x1 <= 4 2x2 <= 12 2x2 <= 12 3x1 + 2x2 <=18 x1, x2 >= 0 x1, x2 >= 0 min 4y1 + 12y2 + 18y3 min 4y1 + 12y2 + 18y3 s.t. s.t. y1 + 3y3 >= 3 y1 + 3y3 >= 3 2y2 + 2y3 >= 5 2y2 + 2y3 >= 5 y1, y2, y3 >= 0 y1, y2, y3 >= 0

General Rules for Constructing Dual 1. The number of variables in the dual problem is equal to the number of constraints in the original (primal) problem. The number of constraints in the dual problem is equal to the number of variables in the original problem. 2. Coefficient of the objective function in the dual problem come from the right- hand side of the original problem. 3. If the original problem is a max model, the dual is a min model; if the original problem is a min model, the dual problem is the max problem. 4. The coefficient of the first constraint function for the dual problem are the coefficients of the first variable in the constraints for the original problem, and the similarly for other constraints. 5. The right-hand sides of the dual constraints come from the objective function coefficients in the original problem.

General Rules for Constructing Dual ( Continued) 6. The sense of the ith constraint in the dual is = if and only if the ith variable in the original problem is unrestricted in sign. 7. If the original problem is man (min ) model, then after applying Rule 6, assign to the remaining constraints in the dual a sense the same as (opposite to ) the corresponding variables in the original problem. 8. The ith variable in the dual is unrestricted in sigh if and only if the ith constraint in the original problem is an equality. 9. If the original problem is max (min) model, then after applying Rule 8, assign to the remaining variables in the dual a sense opposite to (the same as) the corresponding constraints in the original problem. Max model Min model x i >= 0 ith constraint>= x i ith constraint ith constraint = ith const y i >= 0 ith const >= y i y i free

Economic Interpretation 1. Max Model: the shadow price for the ith constraint = the optimal value of the ith variable in the dual. 2. Min Model: the shadow price for the ith constraint = - the optimal value of the ith variable in the dual. 3. Suppose Factory 1’s production problem is Max3x1 + 5x2 s.t. x1 <= 4 s.t. x1 <= 4 2x2 <= 12 2x2 <= 12 3x1 + 2x2 <= 18 3x1 + 2x2 <= 18 x1, x2 >= 0 x1, x2 >= 0 Suppose that the management of Factory 2 decides to BUY the raw material in factory 1. What are ‘fair price’ for the three raw material? Amount Factory 2 pays = 4y1 + 12y2 + 18y3 Amount Factory 2 pays = 4y1 + 12y2 + 18y3 Of course, Factory 2 wants to pay as less as possible. Its goal is to Of course, Factory 2 wants to pay as less as possible. Its goal is to Min 4y1 + 12y2 + 18y3

Economic Interpretation ( continued ): However, the prices must satisfy Factory 1 such that Factory 1 is willing to sell. However, the prices must satisfy Factory 1 such that Factory 1 is willing to sell. Factory 1 sees that if it has 1 unit raw material 1 and 3 units of raw material 3, it Factory 1 sees that if it has 1 unit raw material 1 and 3 units of raw material 3, it could produce on unit product 1 for a profit $3. Thus, to satisfy Factory 1, could produce on unit product 1 for a profit $3. Thus, to satisfy Factory 1, Factory 2 will cover the loss of product 1 in Factory 1 due to the sell: Factory 2 will cover the loss of product 1 in Factory 1 due to the sell: y1 + 3y3 >= 3 The same is true for Product 2 in Factory 1: The same is true for Product 2 in Factory 1: 2y2 + 2y3 >=5 Finally, Factory 2 faces the optimal pricing problem Finally, Factory 2 faces the optimal pricing problem min 4y1 + 12y2 + 18y3 s.t. y1 + 3y3 >= 3 2y2 + 2y3 >= 5 2y2 + 2y3 >= 5 y1, y2, y3 >= 0 y1, y2, y3 >= 0 It provides ‘fair prices’ in the sense of prices that yield the minimum acceptable It provides ‘fair prices’ in the sense of prices that yield the minimum acceptable liquidation payment. liquidation payment.

Relations between Primal and Dual 1. The dual of the dual problem is again the primal problem. 2. Either of the two problems has an optimal solution if and only if the other does; if one problem is feasible but unbounded, then the other is infeasible; if one is infeasible, then the other is either infeasible or feasible/unbounded Weak Duality Theorem: The objective function value of the primal (dual) to be maximized evaluated at any primal (dual) feasible solution cannot exceed the dual (primal) objective function value evaluated at a dual (primal) feasible solution. c T x >= b T y (in the standard equality form)

Relations between Primal and Dual (continued) Strong Duality Theorem: When there is an optimal solution, the optimal objective value of the primal is the same as the optimal objective value of the dual. c T x* = b T y* 5. Complementary Slackness Theorem: 5. Complementary Slackness Theorem: Consider an inequality constraint in any LP problem. If that constraint is inactive for an optimal solution to the problem, the corresponding dual variable will be zero in any optimal solution to the dual of that problem. x* j (c-A T y*) j = 0, j=1,…,n.

Optimality Conditions Primal Feasibility: Dual Feasibility: Strong Duality: Strong Duality: or Complementary Slackness:

States of the LP Problems DualPrimal Have an Opt. SolutionUnboundedInfeasible Solution Unbounded Infeasible