Lagrangian Duality. Evelien van der Hurk. DTU Management Engineering

Similar documents
Lagrangian Duality. Richard Lusby. Department of Management Engineering Technical University of Denmark

Optimization for Communications and Networks. Poompat Saengudomlert. Session 4 Duality and Lagrange Multipliers

Lagrange Relaxation and Duality

Convex Optimization & Lagrange Duality

Linear and Combinatorial Optimization

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

Lecture 3: Lagrangian duality and algorithms for the Lagrangian dual problem

Lagrange duality. The Lagrangian. We consider an optimization program of the form

Extreme Abridgment of Boyd and Vandenberghe s Convex Optimization

Lagrangian Duality Theory

Solution Methods. Richard Lusby. Department of Management Engineering Technical University of Denmark

Generalization to inequality constrained problem. Maximize

Part IB Optimisation

Convex Optimization. Dani Yogatama. School of Computer Science, Carnegie Mellon University, Pittsburgh, PA, USA. February 12, 2014

Mathematical Foundations -1- Constrained Optimization. Constrained Optimization. An intuitive approach 2. First Order Conditions (FOC) 7

In the original knapsack problem, the value of the contents of the knapsack is maximized subject to a single capacity constraint, for example weight.

Duality. Lagrange dual problem weak and strong duality optimality conditions perturbation and sensitivity analysis generalized inequalities

Optimization. A first course on mathematics for economists

The Lagrangian L : R d R m R r R is an (easier to optimize) lower bound on the original problem:

On the Method of Lagrange Multipliers

EE364a Review Session 5

Lagrangian Methods for Constrained Optimization

Global Optimization of Polynomials

The general programming problem is the nonlinear programming problem where a given function is maximized subject to a set of inequality constraints.

Convex Optimization Boyd & Vandenberghe. 5. Duality

subject to (x 2)(x 4) u,

Support Vector Machines

Lecture 4: Optimization. Maximizing a function of a single variable

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

The Envelope Theorem

Additional Homework Problems

Constrained maxima and Lagrangean saddlepoints

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

Introduction to Machine Learning Lecture 7. Mehryar Mohri Courant Institute and Google Research

Duality Theory of Constrained Optimization

Duality. Geoff Gordon & Ryan Tibshirani Optimization /

Linear and non-linear programming

Applications of Linear Programming

Lagrangian Duality and Convex Optimization

Constrained Optimization and Lagrangian Duality

Applied Lagrange Duality for Constrained Optimization

E 600 Chapter 4: Optimization

Concave programming. Concave programming is another special case of the general constrained optimization. subject to g(x) 0

Algorithms for constrained local optimization

ICS-E4030 Kernel Methods in Machine Learning

5. Duality. Lagrangian

Nonlinear Optimization: What s important?

4. Algebra and Duality

Duality in Linear Programs. Lecturer: Ryan Tibshirani Convex Optimization /36-725

Machine Learning And Applications: Supervised Learning-SVM

Convex Optimization and Modeling

Motivation. Lecture 2 Topics from Optimization and Duality. network utility maximization (NUM) problem:

EE/AA 578, Univ of Washington, Fall Duality

Enhanced Fritz John Optimality Conditions and Sensitivity Analysis

Example: feasibility. Interpretation as formal proof. Example: linear inequalities and Farkas lemma

Optimization Theory. Lectures 4-6

Nonlinear Programming

Nonlinear Programming and the Kuhn-Tucker Conditions

CS711008Z Algorithm Design and Analysis

Seminars on Mathematics for Economics and Finance Topic 5: Optimization Kuhn-Tucker conditions for problems with inequality constraints 1

Maximum Theorem, Implicit Function Theorem and Envelope Theorem

E5295/5B5749 Convex optimization with engineering applications. Lecture 5. Convex programming and semidefinite programming

Lecture Note 5: Semidefinite Programming for Stability Analysis

g(x,y) = c. For instance (see Figure 1 on the right), consider the optimization problem maximize subject to

CS-E4830 Kernel Methods in Machine Learning

Lecture: Duality of LP, SOCP and SDP

Convex Optimization and Support Vector Machine

Homework Set #6 - Solutions

Tutorial on Convex Optimization: Part II

Optimization for Machine Learning

Linear Programming. Larry Blume Cornell University, IHS Vienna and SFI. Summer 2016

Constrained Optimization

DYNAMIC DUALIZATION IN A GENERAL SETTING

Outline. Roadmap for the NPP segment: 1 Preliminaries: role of convexity. 2 Existence of a solution

Lecture 8. Strong Duality Results. September 22, 2008

MATH529 Fundamentals of Optimization Constrained Optimization I

Mechanical Systems II. Method of Lagrange Multipliers

Lecture: Duality.

Karush-Kuhn-Tucker Conditions. Lecturer: Ryan Tibshirani Convex Optimization /36-725

Nonlinear Programming (Hillier, Lieberman Chapter 13) CHEM-E7155 Production Planning and Control

Quiz Discussion. IE417: Nonlinear Programming: Lecture 12. Motivation. Why do we care? Jeff Linderoth. 16th March 2006

Maximum Value Functions and the Envelope Theorem

Lecture 18: Optimization Programming

Mathematical Economics: Lecture 16

CONSTRAINT QUALIFICATIONS, LAGRANGIAN DUALITY & SADDLE POINT OPTIMALITY CONDITIONS

minimize x subject to (x 2)(x 4) u,

Solving Dual Problems

1 Review Session. 1.1 Lecture 2

Structural and Multidisciplinary Optimization. P. Duysinx and P. Tossings

Primal-dual Subgradient Method for Convex Problems with Functional Constraints

Calculus Overview. f(x) f (x) is slope. I. Single Variable. A. First Order Derivative : Concept : measures slope of curve at a point.

EC /11. Math for Microeconomics September Course, Part II Lecture Notes. Course Outline

EC /11. Math for Microeconomics September Course, Part II Problem Set 1 with Solutions. a11 a 12. x 2

OPTIMIZATION THEORY IN A NUTSHELL Daniel McFadden, 1990, 2003

Finite Dimensional Optimization Part III: Convex Optimization 1

Lecture 9: Implicit function theorem, constrained extrema and Lagrange multipliers

EconS 301. Math Review. Math Concepts

Constrained Optimization. Unconstrained Optimization (1)

10 Numerical methods for constrained problems

Convex Optimization M2

Transcription:

Lagrangian Duality Evelien van der Hurk DTU Management Engineering

Topics Lagrange Multipliers Lagrangian Relaxation Lagrangian Duality 2 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example: Economic Order Quantity Model Parameters Demand rate: d Order cost: K Unit cost: c Holding cost: h Decision Variable: The optimal order quantity Q Objective Function: minimize dk Q + dc + hq 2 Optimal Order Quantity: Q = 2dK h 3 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

EOQ Model Suppose we have several items with a space constraint q The problem minimize subject to: ( ) djk j j Q j + d j c j + hqj 2 j Q j q We have the following possibilities 1 The constraint is non-binding/slack, i.e 2dj K j h j < q 2 The constraint is binding/active 4 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Lagrange Multiplier The problem minimize T (Q 1, Q 2,..., Q n ) = j subject to: j Q j = q ( djk j Q j ) + d j c j + hqj 2 Lagrange multiplier λ minimize T (Q 1, Q 2,..., Q n ) + λ( j Q j q) Differentiate with respect to Q j : T = d jk j Q j Q 2 + h j 2 + λ = 0 j Solving for Q j Q j = 2dj K j h + 2λ j 5 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Lagrange multiplier Substituting this into the constraint we have 2dj K j h + 2λ = q Solving for λ and Q j gives: j ( j 2djK j ) 2 h λ = λ = q 2 Q j = 2dj K j h + 2λ j 6 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Interpretation of λ In linear programming a dual variable is a shadow price: y i = Z b i 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 7 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example Problem minimize: x 2 + y 2 + 2z 2 subject to: 2x + 2y 4z 8 The Lagrangian is: L(x, y, z, µ) = x 2 + y 2 + 2z 2 + µ(8 2x 2y + 4z) Note that the unconstrained minimum x = y = z = 0 is not feasible 8 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example Continued Differentiating with respect to x, y, z L = 2x 2µ = 0 x L y L z We can conclude that z = µ, x = y = µ = 2y 2µ = 0 = 4z + 4µ = 0 Substituting this into 2x + 2y 4z = 8 gives x = 1, y = 1, z = 1 Optimal objective function value = 4 9 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Checking the value of µ µ = 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 8, x = 9 8, y = 9 8, z = 9 8 New objective function value: ( ) 2 9 + 8 This is an increase of 1 unit ( ) 2 ( 9 + 2 9 ) 2 = 324 8 8 64 10 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Lagrange relaxation 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 11 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Lagrange relaxation f(x ) + ug(x ) provides a lower bound P If g(x ) 0, ug(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 ) 12 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example from last time... Example minimize 2x 2 1 + x 2 2 subject to: x 1 + x 2 = 1 L(x 1, x 2, λ 1 ) = 2x 2 1 + x 2 2 + λ 1 (1 x 1 x 2 ) 13 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Different values of λ 1 λ 1 = 0 get solution x 1 = x 2 = 0, 1 x 1 x 2 = 1 L(x 1, x 2, λ 1 ) = 0 λ 1 = 1 get solution x 1 = 1 4, x 2 = 1 2, 1 x 1 x 2 = 1 4 L(x 1, x 2, λ 1 ) = 5 8 λ 1 = 2 get solution x 1 = 1 2, x 2 = 1, 1 x 1 x 2 = 1 2 L(x 1, x 2, λ 1 ) = 1 2 λ 1 = 4 3 get solution x 1 = 1 3, x 2 = 2 3, 1 x 1 x 2 = 0 L(x 1, x 2, λ 1 ) = 2 3 14 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Lagrangian Dual 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 15 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Lagrangian Dual 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 16 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 1 The problem minimize: x 2 1 + x 2 2 subject to: x 1 + x 2 4 x 1, x 2 0 Let X := {x R 2 x 1, x 2 0} = R 2 + The Lagrangian is: L(x, λ) = x 2 1 + x 2 2 + λ(4 x 1 x 2 ) 17 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 1 The Lagrangian dual function: θ(λ) = min x X {x2 1 + x 2 2 + λ(4 x 1 x 2 )} = 4λ + min x X {x2 1 + x 2 2 λx 1 λx 2 )} = 4λ + min x 1 0 {x2 1 λx 1 } + min x 2 0 {x2 2 λx 2 } For a fixed value of λ 0, the minimum of L(x, λ) over x X is attained at x 1 (λ) = λ 2, x 2(λ) = λ 2 L(x(λ), λ) = 4λ λ2 2 λ 0 18 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 1 The dual function is concave and differentiable We want to maximize the value of the dual function This implies λ = 4, θ(λ ) = 8 x(λ ) = x = (2, 2) L λ = 4 λ = 0 19 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 1 θ(λ) 8 4λ λ2 2 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 λ 20 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 2 The problem minimize: 3x 1 + 7x 2 + 10x 3 subject to: x 1 + 3x 2 + 5x 3 7 x 1, x 2, x 3 {0, 1} Let X := {x R 3 x j {0, 1}, j = 1, 2, 3} The Lagrangian is: L(x, λ) = 3x 1 + 7x 2 + 10x 3 + λ(7 x 1 3x 2 5x 3 ) 21 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 2 The Lagrangian dual function: θ(λ) = min {3x 1 + 7x 2 + 10x 3 + λ(7 x 1 3x 2 5x 3 )} x X = 7λ + min {(3 λ)x 1} + min {(7 3λ)x 2} x 1 {0,1} x 2 {0,1} min {(10 5λ)x 3} x 3 {0,1} X(λ) is obtained by setting { 1 x j = when the objective coefficient is 0 { 0 0 22 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 2 λ x 1 (λ) x 2 (λ) x 3 (λ) g(x(λ)) θ(λ) [, 2] 0 0 0 7 7λ [2, 7 3 ] 0 0 1 2 10+2λ [ 7 3, 3] 0 1 1-1 17-λ [3, ] 1 1 1-2 20-2λ 23 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 2 18 θ(λ) 16 14 10+2λ 17 λ 12 10 8 6 4 2 7λ 20 2λ 7 1 2 3 3 4 λ 24 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 2 θ is concave, but non-differentiable at break points λ {2, 7 3, 3} 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 3, θ(λ ) = 44 3 = 14 2 3 x = (0, 1, 1), f(x ) = 17 A positive duality gap! X(λ ) = {(0, 0, 1), (0, 1, 1)} 25 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 3 The problem minimize: subject to: c T x Ax b x free Objective: Identifying g(x) f(x) = c T x g(x) = Ax b Lagrangian dual function: θ(λ) = min{c T x + λ T (b Ax)} = λ T b x 26 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Example 3 Provided that the following condition is satisfied A T λ c = 0 That is, we get the following problem maximize: subject to: b T λ A T λ = c λ 0 Compare with Dual: min. b T λ s.t. A T λ = c, λ 0 27 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Class exercise 1 minimize: x subject to: x 2 + y 2 = 1 Solve the problem Formulate and solve the dual Check whether the objective functions are equal 28 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Class Exercise 2 minimize: 2x 1 + x 2 subject to: x 1 + x 2 = 3 (x 1, x 2 ) X 1 Suppose X={(0,0),(0,4),(4,4),(4,0),(1,2),(2,1)} 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 29 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017

Richard M. Lusby DTU Management Engineering, Technical University of Denmark Building 424, Room 208 rmlu@dtu.dk 2800 Kgs. Lyngby, Denmark phone +45 4525 3084 http://www.man.dtu.dk 30 DTU Management Engineering 42111: Static and Dynamic Optimization (5) 02/10/2017