Calculation of Lagrange multipliers and their use for ...

26
Calculation of Lagrange multipliers and their use for sensitivity of optimal solutions Jaco F. Schutte EGM 6365 - Structural Optimization Fall 2005

Transcript of Calculation of Lagrange multipliers and their use for ...

Page 1: Calculation of Lagrange multipliers and their use for ...

Calculation of Lagrange multipliers and their use for

sensitivity of optimal solutions

Jaco F. Schutte

EGM 6365 - Structural OptimizationFall 2005

Page 2: Calculation of Lagrange multipliers and their use for ...

Constrained optimization

x1

x2

Infeasible regions

Feasible region

OptimumDecreasing f(x)

h(x)g(x)

Page 3: Calculation of Lagrange multipliers and their use for ...

Constraint normalization

0

1 0

a

a

a

g

g

σ σσ σ

σσ

≤= − ≤

= − ≥

Poor optimizer performance often encountered when constraints are not normalized

When normalized g = 0.1 → 10% margin in responce

Page 4: Calculation of Lagrange multipliers and their use for ...

Equality constraints

� Convert equality constraint to two equality constraints

� Increases the number of constraints

( ) ( )( )

00

0i

ii

h xh x

h x ≤= ⇔ ≥

Page 5: Calculation of Lagrange multipliers and their use for ...

Reduction of inequality constraints

� Using KS-function (Kreisselmeier-Steinhauser)

� KS bounded by

( )( )

( )

( ) ( )

1

1

00 1 ln

0

jg xj

j

j

g xg x

KS g x e

g x

ρ

ρ−

≥≥ ⇔ = −

∑!

( ) ( )min min

lnj

mg KS g x g

ρ ≤ ≤ −

Page 6: Calculation of Lagrange multipliers and their use for ...

Using KS to approximate hi(x)

For

the solution lies at hi(x) = - hi(x) = 0

Gradient of KS function of ± hi pair vanishes at solution hi = 0Value of KS function approaches 0 for ρ → ∞

( ) ( )( )

00

0i

ii

h xh x

h x ≤= ⇔ − ≤

( ) ln(2)0 ,KS h hρ

≥ − ≥ −

Page 7: Calculation of Lagrange multipliers and their use for ...
Page 8: Calculation of Lagrange multipliers and their use for ...

� Lagrangian function

where λ j are unknown Lagrange multipliers� Stationary point conditions for inequality

constraints:

Kuhn-Tucker conditions

Page 9: Calculation of Lagrange multipliers and their use for ...

Stationary points

Page 10: Calculation of Lagrange multipliers and their use for ...

Kuhn-Tucker conditions (contd.)

� Conditions only apply at a regular point (constraint gradients linearly independent)

� Equations

yield n + ne total equations� n stationary point coordinates� ne Lagrange multipliers

Page 11: Calculation of Lagrange multipliers and their use for ...

� Inequality constraints require transformation to equality constraints:

� This yields the following Lagrangian:

Kuhn-Tucker conditions (contd.)

Page 12: Calculation of Lagrange multipliers and their use for ...

Kuhn-Tucker conditions (contd.)

� Conditions for stationary points are then:

Page 13: Calculation of Lagrange multipliers and their use for ...

� If inequality constraint is inactive (t ≠ 0) then Lagrange multiplier = 0

� For inequality constraints a regular point is when gradients of active constraint are linearly independent

Kuhn-Tucker conditions (contd.)

Page 14: Calculation of Lagrange multipliers and their use for ...

� For an inequality constrained problem x is a minimum of a set of no-negative λ i can be found such that:

1)

2) The corresponding λ i is zero if constraint gj is not active

Kuhn-Tucker conditions (contd.)

Page 15: Calculation of Lagrange multipliers and their use for ...

Kuhn-Tucker graphical representation

Page 16: Calculation of Lagrange multipliers and their use for ...

Sufficient conditions� Kuhn-Tucker conditions are satisfied when no

-∇ f can be obtained without violating constraints� Possible to move perpendicular to constraints

and improve objective function (necessary conditions are met, but not sufficient)

� Kuhn tucker conditions for optimality are sufficient when� no. design vars. = no. of active constraints.� or, Hessian of Lagrangian function is positive definite

for subspace tangent to active constraints

Page 17: Calculation of Lagrange multipliers and their use for ...

Sufficient conditions (contd.)

� For equality constraints

where

� For inequality constraints

Page 18: Calculation of Lagrange multipliers and their use for ...

A function is convex if

or

Convex problems

Page 19: Calculation of Lagrange multipliers and their use for ...

� Convex optimization problem has� convex objective function� convex feasible domain if

� All inequality constraints are concave (or �gj = convex)

� All equality constraints are linear

� only one optimum� Kuhn-Tucker conditions necessary and will also

always be sufficient for global minimum

Convex problems (contd.)

Page 20: Calculation of Lagrange multipliers and their use for ...

Calculating Lagrange multipliers

� Lagrange equation in matrix notation:

where N is

assuming number of active constraints are r define a residual vector u (to be minimized)

Page 21: Calculation of Lagrange multipliers and their use for ...

Calculating Lagrange multipliers (contd.)

Obtain a least squares solution of u

By differentiating w.r.t. each λ

Or

And substituting into

We obtain where

Page 22: Calculation of Lagrange multipliers and their use for ...

Calculating Lagrange multipliers (contd.)

� P is a projection matrix which projects a vector into a subspace which is tangent to the constraints

� For the Kuhn Tucker conditions to be satisfied, ∇ f has to be orthogonal to this subspace

� The method of using is often ill-conditioned matrices and inefficient

Page 23: Calculation of Lagrange multipliers and their use for ...

Alternate method for calculating Lagrange multipliers

QR factorization of N gives a more efficient way ofcalculating λ

Because Q is orthogonal

Page 24: Calculation of Lagrange multipliers and their use for ...

║u║2 is then minimized by choosing

Alternate method for calculating Lagrange multipliers

Page 25: Calculation of Lagrange multipliers and their use for ...

Sensitivity of optimum solution to problem parameters

Assuming problem fitness and constraintsdepend on parameter p

The solution is

and the corresponding fitness value

Page 26: Calculation of Lagrange multipliers and their use for ...

Sensitivity of optimum solution to problem parameters (contd.)

We would like to obtain derivatives of f* w.r.t. p

Equations that govern the optimum solution are

After manipulating governing equations we obtain