Duality Theory, Optimality Conditions

Similar documents
Simplex Algorithm Using Canonical Tableaus

4. Duality and Sensitivity

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

4.6 Linear Programming duality

Contents. 4.5 The(Primal)SimplexMethod NumericalExamplesoftheSimplexMethod

"SYMMETRIC" PRIMAL-DUAL PAIR

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)

F 1 F 2 Daily Requirement Cost N N N

Sensitivity Analysis and Duality in LP

Chap6 Duality Theory and Sensitivity Analysis

Part 1. The Review of Linear Programming

Chapter 1 Linear Programming. Paragraph 5 Duality

Linear and Combinatorial Optimization

Farkas Lemma, Dual Simplex and Sensitivity Analysis

Review Solutions, Exam 2, Operations Research

Lecture 10: Linear programming duality and sensitivity 0-0

II. Analysis of Linear Programming Solutions

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

Interior Point Methods for LP

THE UNIVERSITY OF HONG KONG DEPARTMENT OF MATHEMATICS. Operations Research I

Midterm Review. Yinyu Ye Department of Management Science and Engineering Stanford University Stanford, CA 94305, U.S.A.

0.1 O. R. Katta G. Murty, IOE 510 Lecture slides Introductory Lecture. is any organization, large or small.

LP Duality: outline. Duality theory for Linear Programming. alternatives. optimization I Idea: polyhedra

LINEAR PROGRAMMING II

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)

March 13, Duality 3

Appendix PRELIMINARIES 1. THEOREMS OF ALTERNATIVES FOR SYSTEMS OF LINEAR CONSTRAINTS

IE 5531: Engineering Optimization I

1 Review Session. 1.1 Lecture 2

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

Understanding the Simplex algorithm. Standard Optimization Problems.

Sensitivity Analysis and Duality

4. Duality Duality 4.1 Duality of LPs and the duality theorem. min c T x x R n, c R n. s.t. ai Tx = b i i M a i R n

Algorithm for QP thro LCP

Chapter 1: Linear Programming

SAMPLE QUESTIONS. b = (30, 20, 40, 10, 50) T, c = (650, 1000, 1350, 1600, 1900) T.

Optimisation and Operations Research

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

Lectures 6, 7 and part of 8

IE 400: Principles of Engineering Management. Simplex Method Continued

I.3. LMI DUALITY. Didier HENRION EECI Graduate School on Control Supélec - Spring 2010

Introduction to Mathematical Programming

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

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

UNIT-4 Chapter6 Linear Programming

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

OPERATIONS RESEARCH. Linear Programming Problem

The Dual Simplex Algorithm

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

Lecture Note 18: Duality

Linear Programming Duality

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

A Review of Linear Programming

EE364a Review Session 5

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

CSCI5654 (Linear Programming, Fall 2013) Lecture-8. Lecture 8 Slide# 1

Sensitivity Analysis

Summary of the simplex method

Linear Programming Inverse Projection Theory Chapter 3

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

Introduction to linear programming using LEGO.

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

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

Chapter 5 Linear Programming (LP)

COMPUTATIONAL COMPLEXITY OF PARAMETRIC LINEAR PROGRAMMING +

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

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Special cases of linear programming

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

Worked Examples for Chapter 5

The dual simplex method with bounds

Relation of Pure Minimum Cost Flow Model to Linear Programming

Introduction. Very efficient solution procedure: simplex method.

Fundamentals of Operations Research. Prof. G. Srinivasan. Indian Institute of Technology Madras. Lecture No. # 15


Algorithms and Theory of Computation. Lecture 13: Linear Programming (2)

Linear programming. Starch Proteins Vitamins Cost ($/kg) G G Nutrient content and cost per kg of food.

Lesson 27 Linear Programming; The Simplex Method

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

Chapter 4 The Simplex Algorithm Part I

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

56:171 Operations Research Midterm Exam - October 26, 1989 Instructor: D.L. Bricker

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

Part IB Optimisation

The Primal-Dual Algorithm P&S Chapter 5 Last Revised October 30, 2006

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

OPTIMISATION 2007/8 EXAM PREPARATION GUIDELINES

Teaching Duality in Linear Programming - the Multiplier Approach

Chapter 1. Preliminaries

MATH 373 Section A1. Final Exam. Dr. J. Bowman 17 December :00 17:00

Linear Programming. Linear Programming I. Lecture 1. Linear Programming. Linear Programming

ECE 307- Techniques for Engineering Decisions

Systems Analysis in Construction

Discrete Optimization

MAT016: Optimization

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

3 Development of the Simplex Method Constructing Basic Solution Optimality Conditions The Simplex Method...

9.1 Linear Programs in canonical form

Foundations of Operations Research

56:171 Operations Research Fall 1998

Transcription:

5.1 Duality Theory, Optimality Conditions Katta G. Murty, IOE 510, LP, U. Of Michigan, Ann Arbor We only consider single objective LPs here. Concept of duality not defined for multiobjective LPs. Every LP has another LP called its dual, which shares the same data, and is derived through rational economic arguments. In this context the original LP called the primal LP. Variables in the dual problem are different from those in the primal; each dual variable is associated with a primal constraint, it is the marginal value or Lagrange multiplier corresponding to that constraint. Example: Primal Fertilizer Maker s Problem. FERTILIZER MAKER has daily supply of: 1500 tons of RM 1 1200 tons of RM2 500 tons of RM 3 She wants to use these supplies to maximize net profit. DETERGENT MAKER wants to buy all of fertilizer maker s 106

supplies at cheapest price for his detergent process. Suppose he offers: $ π 1 /ton for RM1 $ π 2 /ton for RM2 $ π 3 /ton for RM3 These prices are the variables in his problem. Total payment comes to 1500π 1 + 1200π 2 + 500π 3 which he wants to minimize. FERTILIZER MAKER: won t sell supplies unless detergent maker s prices are competitive with each of hi-ph, lo-ph processes. Hi-ph process converts a packet of {2 tons RM1, 1 ton RM2, and 1 ton RM3} into $15 profit. In terms of detergent maker s prices, the same packet yields $(2π 1 + π 2 + π 3 ). So, she demands 2π 1 + π 2 + π 3 15 for signing deal. Similarly, by analyzing lo-ph process, she demands π 1 +π 2 10 to sign deal. From these economic arguments, we see that detergent maker s problem is: 107

Dual Associated primal activity Minimize 1500π 1 +1200π 2 +500π 3 subject to 2π 1 +π 2 +π 3 15 Hi-ph π 1 +π 2 10 lo-ph π 1, π 2, π 3, 0 From arguments, we see that if dual problem has unique opt. sol., it is the marginal value vector for primal. 108

5.4 Procedure for Writing Dual of a General LP 1. Arrange all the constraints in the form of a detached coefficient tableau. Here constraint means: any condition involving 2 or more variables any nonzero lower bound or upper bound condition on a single variable. Hence, only conditions not counted as constraints for this purpose are nonnegativity or nonpositivity restrictions on individual variables. Suppose x j,j =1tonare primal variables, and A j is the column of x j in this tableau. Let c j be the coeff. of x j in the primal obj. function. Let b be the RHS constants vector in this tableau. Any primal variable for which a lower and an upper bound restriction are included among the constraints above, is treated as an unrestricted variable. 109

2. Define right type of inequality to mean; inequality in a minimization problem inequality in a maximization problem. Otherwise inequality constraint called wrong type. 3. Associate a separate dual variable for each primal constraint above. Let π denote row vector of dual variables in proper order. 4. In dual problem, dual variables associated with primal equality constraints are unrestricted in sign. dual variables associated with right (wrong) type of primal inequality constraints are nonnegative (nonpositive) variables. 5. The dual objective function is πb. If primal ia a minimization problem, dual is a maximization problem, and vice versa. 6. There is one dual constraint for each primal variable. The one associated with x j is: 110

πa j = c j if x j is an unrestricted primal variable πa j c j if x j is a sign restricted primal variable where, denotes the right (wrong) type inequality for dual problem, if x j is a nonnegative (nonpositive) variable. 111

5.7 Complementary Pairs In A Primal, Dual Pair Let (P ), (D) be a primal, dual pair of LPs. If x j is a sign restricted variable in (P ), there is an inequality constraint in (D) associated with it; let s j denote the nonnegative dual slack variable corresponding to it. Then ( x j,s j )isa complementary pair in (P ), (D); where x j is x j ( x j )ifitisa nonnegative (nonpositive) variable in (P ). Similarly, if π i is a sign restricted dual variable, it is associated with a primal inequality constraint. ±π i whichever is nonnegative, and the nonnegative primal slack variable corresponding to it, also form a complementary pair in (P ), (D). 112

Examples Min z =3x 1 +11x 2 15x 3 +10x 4 +4x 5 +57x 6 subject to x 1 +2x 2 +3x 3 2x 4 + x 5 +16x 6 =17 x 2 4x 3 + x 4 + x 5 + x 6 =2 x 3 2x 4 + x 5 =1 x j 0 for all j Minimize z = cx subject to Ax = b x 0 Minimize z =6x 1 +7x 2 subject to x 1 + x 2 + x 3 10 3x 2 +7x 3 13 x 0 113

Minimize z = cx subject to Ax b x 0 Minimize z = cx subject to Ax b l x u 114

5.10 Duality Theory 1. Farkas Lemma: Theorem of Alternatives for Linear Constraints Including Inequalities: For any A m n,b R m ; either system (1) has a feasible solution x, or system (2) has a feasible solution π, but not both. Ax = b x 0 πa 0 πb > 0 (1) (2) This is a special case of the separating hyperplane theorem for two disjoint convex sets. The main duality theorem of LP can be proved as a corollary of Farkas lemma and vice versa. 115

2. Dual of the dual is the primal. 3. Duals of equivalent LPs are equivalent. 4. Both the primal and dual problems could be infeasible. EXAMPLE: Minimize z =2x 1 4x 2 subject to x 1 x 2 = 1 x 1 + x 2 = 2 x 0 5. Weak Duality Theorem: In a primal, dual pair; if primal is the minimization problem with objective function z(x), and dual is the maximization problem with objective function v(π); then, for all primal feasible solutions x and dual feasible solutions π, Corollaries: z(x) v(π) 116

(i) The primal objective value at any primal feasible solution is an upper bound for the maximum objective value in the dual. (ii) The dual objective value at any dual feasible solution is a lower bound for the minimum objective value in the primal. (iii) If primal is feasible, and z in it, dual must be infeasible. (iv) If dual is feasible, and v in it, primal must be infeasible. (v) SUFFICIENT OPT. CRITERION FOR PRIMAL, DUAL PAIR: If x is primal feasible, π is dual feasible, and z( x) = v( π), then x is opt. for primal, and π is opt. for dual. EXAMPLE : Fertilizer problem: x = (300, 900) T, π = (5, 5, 0). EXAMPLE: A diet problem. x =(0, 0, 0, 0, 5, 2) T, π = (3, 8). 117

x 1 x 2 x 3 x 4 x 5 x 6 1 0 2 2 1 2 9 0 1 3 1 3 2 19 35 30 60 50 27 22 = z min. x j 0 for all j 6. Duality Theorem of LP: In a primal, dual pair of LPs, if one has an opt. sol., the other does also, and the two optimum objective values are equal. 7. In a primal, dual pair of LPs, if one of the problems is feasible, and has the objective unbounded, then the other problem is infeasible. 8. COMPLEMENTARY SLACKNESS THEOREM: In a primal, dual pair of LPs, let x, π be primal and dual feasible respectively. They are optimal to the respective problems iff at least one quantity in every complementary pair is 0 in them. C.S. THEOREM FOR STANDARD FORM: A m n. 118

Primal: min z = cx, subject to Ax = b, x 0. Dual : max v = πb, subject to πa c C. pairs are: (x j, c j = c j πa.j ), j =1ton. C.S. THEOREM FOR SYMMETRIC FORM: A m n. Primal: min z = cx, subject to Ax b, x 0. Dual : max v = πb, subject to πa c, π 0. C. pairs are: (x j, c j = c j πa.j ), j =1ton; and(π, A i. x b i ), i =1tom. 9. Nec. & suff. Opt. Conds. for LP: A feasible sol. x to an LP (the primal), is optimal iff there exists a dual feasible solution π which satisfies the C. S. Conds. with it. Can also be proved from Farkas lemma. 119

Example: Consider the feasible solution x =(6, 0, 1, 0, 2) T for the LP min z = 3x 1 + x 2 +3x 3 +5x 5 s. to x 1 + x 2 x 3 +2x 4 x 5 5 2x 1 +2x 3 x 4 +3x 5 8 x 1 6 3x 2 +3x 4 5 5x 3 x 4 +7x 5 7 9. Strict Complementary Slackness Theorem: Suppose a primal, dual pair of LPs have optimum solutions. Then there exist optimum solutions to the two problems in which exactly one variable in every complementary pair is zero and the other is positive. 120

5.25 LP in Standard Form, Primal and Dual Feasibility of Basic Vectors Consider the LP in standard form, for which the original tableau given below. Original Tableau Basic x 1... x m x m+1... x n z x 1 a 11... a 1m a 1,m+1... a 1n 0 b 1....... x m a m1... a mm a m,m+1... a mn 0 b m z c 1... c m c m+1... c n 1 0 A basic vector, x B =(x 1,...,x m ) say, and the associated basis B, are said to be: 121

Primal feasible If the primal basic solution wrt x B is primal feasible, i.e., 0, i.e., if B 1 b 0. Dual feasible Dual basic sol. obtained by solving system of dual constraints corresponding to basic variables in x B as a system of eqs., i.e., πb = c B. So, dual basic sol. is π = c B B 1. This definition guarantees that the primal & dual basic sols. wrt a basic vector always satisfy C.S. conds. x B said to be dual feasible if the dual basic sol. satisfies other dual constraints; i.e., if dual slacks c j = c j πa.j = relative cost coeffs. wrt x B, are all 0. Optimal If it is both primal and dual feasible. So, dual feasibility cond. for a basic vector, same as Opt. cond. in primal simplex algo. 122

Example x 1 x 2 x 3 x 4 x 5 x 6 z b 1 2 3 2 1 16 0 17 0 1 4 1 1 1 0 2 0 0 1 2 1 0 0 1 3 11 15 10 4 57 1 =0 x j 0 for all j, minz. (x 1,x 2,x 3 ), Inverse tableau = 1 2 11 0 0 1 4 0 0 0 1 0 3 5 4 1 (x 4,x 5,x 6 ), Inverse tableau = 1/48 1/3 5/16 0 1/16 0 1/16 0 1/24 2/3 3/8 0 51/16 6 83/16 1 123

To Check Optimality of a Given Feasible Solution Say x. Write all equality constraints that dual variables have to satisfy, if x were to be primal opt., from the C.S. conds. If these equality constraints have a unique sol., π say, and it satisfies all other dual constraints, then x, π are respectively primal and dual opt. Example: Check whether x = (12, 7, 2, 1, 0) T is opt. to following LP. x 1 x 2 x 3 x 4 x 5 b 1 2 2 1 3 3 0 1 1 2 4 3 0 0 2 5 1 9 6 9 5 10 25 = z(x), minimize x 1 to x 5 0 Example: Check whether x = (10, 5, 0, 0, 0) T is opt. to following LP. 124

x 1 x 2 x 3 x 4 x 5 b 2 1 1 2 1 25 2 0 2 1 3 20 8 6 10 20 2 = z(x), minimize x 1 to x 5 0 Example: Check whether x = (10, 15, 0, 0, 0) T is opt. to following LP. x 1 x 2 x 3 x 4 x 5 b 1 0 1 2 1 10 0 1 1 2 2 15 1 1 1 1 1 25 1 4 2 4 20 = z(x), minimize x 1 to x 5 0 Theorem: If LP in standard form has a nondegenerate opt. BFS, dual optimum is unique, and it is the marginal value vector for the primal. Theorem: Any algorithm for solving linear inequalities (without any optimization) can be used to solve an LP directly. 125

5.20 How to Check if an Opt. Sol. to LP Is Unique? Consider LP in standard form: min z = cx, subject to Ax = b, x 0, where A m n and rank m. Suppose x is an opt. sol. If x is not a BFS, obviously, the problem has alternate optima. All feasible solutions obtained during purification process to obtain a BFS from x are alternate optima. Suppose x is a BFS. Let x B =(x 1,...,x m ) be an optimum basic vector corresponding to x. If relative cost coeffs. of nonbasics c m+1,..., c n are all positive, by C.S. theorem, x is the unique primal optimum solution. If some nonbasic rel. costs, say c m+1,..., c m+r are zero, and the others are positive. By C.S. Theorem, any feasible solution with x m+r+1 =... = x n = 0 is optimum to the primal. So bringing any of the nonbasics x m+1,...,x m+r into x B leads to an alternate opt. BFS if the pivot step is nondegenerate. To check if an alternate optimum exists, we could fix x m+r+1,...,x n 126

all at 0 and delete them. In the remaining system, maximize x m+1 +... + x m+r beginning with x B. If maximum is 0, x is the unique primal opt. Otherwise, the optimum solution of this problem is an alternate opt. for primal. 127