Lagrangian Duality

Lagrangian Duality

Lagrangian Duality Richard Lusby Department of Management Engineering Technical University of Denmark Today's Topics (jg Lagrange Multipliers Lagrangian Relaxation Lagrangian Duality R Lusby (42111) Lagrangian Duality 2/30 Example: Economic Order Quantity Model (jg Parameters I Demand rate: d I Order cost: K I Unit cost: c I Holding cost: h Decision Variable: The optimal order quantity Q Objective Function: dK hQ minimize + dc + Q 2 Optimal Order Quantity: r 2dK Q∗ = h R Lusby (42111) Lagrangian Duality 3/30 EOQ Model Consider the following extension(jg Suppose we have several items with a space constraint q The problem P dj Kj hQj minimize + dj cj + j Qj 2 P subject to: Qj q j ≤ We have the following possibilities 1 The constraint is non-binding/slack, i.e r X 2dj Kj < q h j 2 The constraint is binding/active R Lusby (42111) Lagrangian Duality 4/30 Lagrange Multiplier (jg The problem P dj Kj hQj minimize T (Q ; Q ;:::; Qn) = + dj cj + 1 2 j Qj 2 P subject to: j Qj = q Lagrange multiplier λ X minimize T (Q ; Q ;:::; Qn) + λ( Qj q) 1 2 − j Differentiate with respect to Qj : @L dj Kj h = 2 + + λ = 0 j @Qj − Qj 2 8 Solving for Qj r 2dj Kj Qj = j h + 2λ 8 R Lusby (42111) Lagrangian Duality 5/30 Lagrange multiplier Continued(jg Substituting this into the constraint we have r X 2dj Kj = q h + 2λ j Solving for λ and Qj gives: P 2 p2dj Kj j h q − λ = λ∗ = 2 r 2dj Kj Q∗ = j j h + 2λ∗ 8 R Lusby (42111) Lagrangian Duality 6/30 Interpretation of λ (jg In linear programming a dual variable is a shadow price: ∗ ∗ @Z yi = @bi Similarly, in the EOQ model, the Lagrange multiplier measures the marginal change in the total cost resulting from a change in the available space @T ∗ λ∗ = @q R Lusby (42111) Lagrangian Duality 7/30 Example (jg Problem minimize: x2 + y 2 + 2z2 subject to: 2x + 2y 4z 8 − ≥ The Lagrangian is: L(x; y; z; µ) = x2 + y 2 + 2z2 + µ(8 2x 2y + 4z) − − Note that the unconstrained minimum x = y = z = 0 is not feasible R Lusby (42111) Lagrangian Duality 8/30 Example Continued (jg Differentiating with respect to x; y; z @L = 2x 2µ = 0 @x − @L = 2y 2µ = 0 @y − @L = 4z + 4µ = 0 @z We can conclude that z = µ, x = y = µ − Substituting this into 2x + 2y 4z = 8 gives x = 1; y = 1; z = 1 − − Optimal objective function value = 4 R Lusby (42111) Lagrangian Duality 9/30 Checking the value of µ (jg µ = 1 states that we can expect an increase (decrease) of one unit ! for a unit change in the right hand side of the constraint Resolve the problem with a righthandside on the constraint of 9 µ∗ = 9 ; x∗ = 9 ; y ∗ = 9 ; z∗ = 9 8 8 8 − 8 New objective function value: 92 92 92 324 + + 2 = 8 8 −8 64 This is an increase of 1 unit ≈ R Lusby (42111) Lagrangian Duality 10/30 Lagrange relaxation (jg Problem P minimize: f (x) subject to: g(x) 0 ≤ Choose non negative multipliers u Solve the Lagrangian: minimize f (x) + ug(x), Optimal solution x∗; u∗ R Lusby (42111) Lagrangian Duality 11/30 Lagrange relaxation Continued(jg f (x∗) + u∗g(x∗) provides a lower bound P If g(x∗) 0, u∗g(x∗) = 0, x∗ is an optimal solution to problem ≤ P x∗ is an optimal solution to: minimize: f (x) subject to: g(x) g(x∗) ≤ R Lusby (42111) Lagrangian Duality 12/30 Class Exercises (jg Proofs Equality Constraints R Lusby (42111) Lagrangian Duality 13/30 Example from last time ... (jg Example 2 2 minimize 2x1 + x2 subject to: x1 + x2 = 1 L(x ; x ; λ ) = 2x2 + x2 + λ (1 x x ) 1 2 1 1 2 1 − 1 − 2 R Lusby (42111) Lagrangian Duality 14/30 Different values of λ1 (jg λ = 0 get solution x = x = 0; 1 x x = 1 1 ! 1 2 − 1 − 2 L(x1; x2; λ1) = 0 λ = 1 get solution x = 1 ; x = 1 ; 1 x x = 1 1 ! 1 4 2 2 − 1 − 2 4 5 L(x ; x ; λ ) = 1 2 1 8 λ = 2 get solution x = 1 ; x = 1; 1 x x = 1 1 ! 1 2 2 − 1 − 2 − 2 1 L(x ; x ; λ ) = 1 2 1 2 λ = 4 get solution x = 1 ; x = 2 ; 1 x x = 0 1 3 ! 1 3 2 3 − 1 − 2 2 L(x ; x ; λ ) = 1 2 1 3 R Lusby (42111) Lagrangian Duality 15/30 Lagrangian Dual (jg Primal minimize: f (x) subject to: g(x) 0 ≤ h(x) = 0 Lagrangian Dual maximize: θ(u; v) subject to: u 0 ≥ θ(u; v) = min f (x) + ug(x) + vh(x) x f g R Lusby (42111) Lagrangian Duality 16/30 Lagrangian Dual Continued(jg Weak Duality: For Feasible Points θ(u; v) f (x) ≤ Strong Duality: Under Constraint Qualification If f and g are convex and h is affine, the optimal objective function values are equal Often there is a duality gap R Lusby (42111) Lagrangian Duality 17/30 Example 1 (jg The problem 2 2 minimize: x1 + x2 subject to: x + x 4 1 2 ≥ x ; x 0 1 2 ≥ 2 2 Let X := x R x1; x2 0 = R f 2 j ≥ g + The Lagrangian is: L(x; λ) = x2 + x2 + λ(4 x x ) 1 2 − 1 − 2 R Lusby (42111) Lagrangian Duality 18/30 Example 1 Continued(jg The Lagrangian dual function: 2 2 θ(λ) = min x1 + x2 + λ(4 x1 x2) x2X f − − g 2 2 = 4λ + min x1 + x2 λx1 λx2) x2X f − − g 2 2 = 4λ + min x1 λx1 + min x2 λx2 x1≥0f − g x2≥0f − g For a fixed value of λ 0, the minimum of L(x; λ) over x X is λ ≥ λ 2 attained at x1(λ) = 2 ; x2(λ) = 2 λ2 L(x(λ); λ) = 4λ λ 0 ) − 2 8 ≥ R Lusby (42111) Lagrangian Duality 19/30 Example 1 Continued(jg The dual function is concave and differentiable We want to maximize the value of the dual function @L = 4 λ = 0 @λ − This implies λ∗ = 4; θ(λ∗) = 8 x(λ∗) = x∗ = (2; 2) R Lusby (42111) Lagrangian Duality 20/30 Example 1 Graph of Dual Function(jg θ(λ) λ2 4λ 2 8 − 7 6 5 4 3 2 1 12345678 λ R Lusby (42111) Lagrangian Duality 21/30 Example 2 (jg The problem minimize: 3x1 + 7x2 + 10x3 subject to: x + 3x + 5x 7 1 2 3 ≥ x ; x ; x 0; 1 1 2 3 2 f g 3 Let X := x R xj 0; 1 ; j = 1; 2; 3 f 2 j 2 f g g The Lagrangian is: L(x; λ) = 3x + 7x + 10x + λ(7 x 3x 5x ) 1 2 3 − 1 − 2 − 3 R Lusby (42111) Lagrangian Duality 22/30 Example 2 Continued(jg The Lagrangian dual function: θ(λ) = min 3x1 + 7x2 + 10x3 + λ(7 x1 3x2 5x3) x2X f − − − g = 7λ + min (3 λ)x1 + min (7 3λ)x2 x12f0;1gf − g x22f0;1gf − g min (10 5λ)x3 x32f0;1gf − g X (λ) is obtained by setting ( ( 1 0 xj = when the objective coefficient is ≤ 0 0 ≥ R Lusby (42111) Lagrangian Duality 23/30 Example 2 Lagrangian Dual Function Solution(jg λ x (λ) x (λ) x (λ) g(x(λ)) θ(λ) 2 1 2 3 [ ; 2] 0 0 0 7 7λ −∞7 [2; 3 ] 0 0 1 2 10+2λ 7 [ 3 ; 3] 0 1 1 -1 17-λ [3; ] 1 1 1 -2 20-2λ 1 R Lusby (42111) Lagrangian Duality 24/30 Example 2 Graph of Dual Function(jg θ(λ) 16 10+2λ 17 λ 14 − 12 20 2λ 10 − 7λ 8 6 4 2 7 λ 1 23 3 4 R Lusby (42111) Lagrangian Duality 25/30 Example 2 Continued(jg θ is concave, but non-differentiable at break points λ 2; 7 ; 3 2 f 3 g Check that the slope equals the value of the constraint function The slope of θ is negative for objective pieces corresponding to feasible solutions to the original problem The one variable function θ has a \derivative" which is non-increasing; this is a property of every concave function of one variable ∗ 7 ∗ 44 λ = 3 ; θ(λ ) = 3 x∗ = (0; 1; 1); f (x∗) = 17 A positive duality gap! X (λ∗) = (0; 0; 1); (0; 1; 1) f g R Lusby (42111) Lagrangian Duality 26/30 Example 3 Continued(jg The problem minimize: cT x subject to: Ax b ≥ x free Objective: f (x) = cT x Identifying g(x) g(x) = Ax b − Lagrangian dual function: θ(λ) = min cT x + λT (b Ax) = λT b x f − g R Lusby (42111) Lagrangian Duality 27/30 Example 3 Continued(jg Provided that the following condition is satisfied AT λ c = 0 − That is, we get the following problem maximize: bT λ subject to: AT λ = c λ 0 ≥ Compare with Dual: min. bT λ s.t. AT λ = c; λ 0 ≥ R Lusby (42111) Lagrangian Duality 28/30 Class exercise 1 minimize: x subject to: x2 + y 2 = 1 Solve the problem Formulate and solve the dual Check whether the objective functions are equal R Lusby (42111) Lagrangian Duality 29/30 Class Exercise 2 minimize: 2x + x − 1 2 subject to: x1 + x2 = 3 (x ; x ) X 1 2 2 1 Suppose X= (0,0),(0,4),(4,4),(4,0),(1,2),(2,1) f g 2 Formulate the Lagrangian Dual Problem 3 Plot the Lagrangian Dual Problem 4 Find the optimal solution to the primal and dual problems 5 Check whether the objective functions are equal 6 Explain your observation in 5 R Lusby (42111) Lagrangian Duality 30/30.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    30 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us