Example: bachelor of science

Constrained Optimization Using Lagrange Multipliers

Constrained Optimization Using Lagrange MultipliersCEE 201L. Uncertainty, Design, and OptimizationDepartment of Civil and Environmental EngineeringDuke UniversityHenri P. Gavin and Jeffrey T. ScruggsSpring 2020In optimal design problems, values for a set ofndesign variables, (x1,x2, xn), areto be found that minimize a scalar-valued objective function of the design variables, suchthat a set ofminequality constraints, are satisfied. Constrained Optimization problems aregenerally expressed asminx1,x2, ,xnJ=f(x1,x2, ,xn)such thatg1(x1,x2, ,xn) 0g2(x1,x2, ,xn) (x1,x2, ,xn) 0(1)If the objective function is quadratic in the design variables and the constraint equations arelinearly independent, the Optimization problem has a unique the simplest constrai

Jul 10, 2020 · Constrained Optimization using Lagrange Multipliers 5 Figure2shows that: •J A(x,λ) is independent of λat x= b, •the saddle point of J A(x,λ) occurs at a negative value of λ, so ∂J A/∂λ6= 0 for any λ≥0. •The constraint x≥−1 does not affect the solution, and is called a non-binding or an inactive constraint. •The Lagrange multipliers associated with non-binding ...

Tags:

  Solutions

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Constrained Optimization Using Lagrange Multipliers

1 Constrained Optimization Using Lagrange MultipliersCEE 201L. Uncertainty, Design, and OptimizationDepartment of Civil and Environmental EngineeringDuke UniversityHenri P. Gavin and Jeffrey T. ScruggsSpring 2020In optimal design problems, values for a set ofndesign variables, (x1,x2, xn), areto be found that minimize a scalar-valued objective function of the design variables, suchthat a set ofminequality constraints, are satisfied. Constrained Optimization problems aregenerally expressed asminx1,x2, ,xnJ=f(x1,x2, ,xn)such thatg1(x1,x2, ,xn) 0g2(x1,x2, ,xn) (x1,x2, ,xn) 0(1)If the objective function is quadratic in the design variables and the constraint equations arelinearly independent, the Optimization problem has a unique the simplest Constrained minimization problem:minx12kx2wherek >0such thatx b.

2 (2)This problem has a single design variable, the objective function is quadratic (J=12kx2),there is a single constraint inequality, and it is linear inx(g(x) =b x). Ifg >0, theconstraint equation constrains the optimum and the optimal solution,x , is given byx = 0, the constraint equation does not constrain the optimum and the optimal solutionis given byx = 0. Not all Optimization problems are so easy; most Optimization methodsrequire more advanced methods. The methods of Lagrange Multipliers is one such method,and will be applied to this simple multiplier methods involve the modification of the objective function throughthe addition of terms that describe the constraints.

3 The objective functionJ=f(x) isaugmentedby the constraint equations through a set of non-negative multiplicativeLagrangemultipliers, j 0. The augmented objective function,JA(x), is a function of thendesignvariables andmLagrange Multipliers ,JA(x1,x2, ,xn, 1, 2, , m) =f(x1,x2, ,xn) +m j=1 jgj(x1,x2, ,xn)(3)For the problem of equation (2),n= 1 andm= 1, soJA(x, ) =12kx2+ (b x) =12kx2 x+ b(4)The Lagrange multiplier, , serves the purpose of modifying (augmenting) the objectivefunction from one quadratic (12kx2) to another quadratic (12kx2 x+ b) so that theminimum of the modified quadratic satisfies the constraint (x b)

4 2 CEE 201L. Uncertainty, Design, and Optimization Duke Spring 2020 Gavin and ScruggsCase 1:b= 1 Ifb= 1 then the minimum of12kx2is Constrained by the inequalityx b, and theoptimal value of should minimizeJA(x, ) atx=b. Figure 1(a) plotsJA(x, ) for a fewnon-negative values of and Figure 1(b) plots contours ofJA(x, ). cost, JA(x)design variable, x = 01233 =4b=1(a) multiplier, design variable, x(b)* variable, multiplier, (x, ) =12kx2 x+ bforb= 1andk= 2.(x , ) = (1,2)CCBY-NC-NDHPG, JTS July 10, 2020 Constrained Optimization Using Lagrange Multipliers3 Figure 1 shows that: JA(x, ) is independent of atx=b, JA(x, ) is minimized atx =bfor = 2, the surfaceJA(x, ) is a saddle shape, the point (x , ) = (1,2) is a saddle point, JA(x , ) JA(x , ) JA(x, ), minxJA(x, ) = max JA(x , ) =JA(x , )Saddle points have no slope.

5 JA(x, ) x x=x = = 0(5a) JA(x, ) x=x = = 0(5b)(5c)For this problem, JA(x, ) x x=x = = 0 kx = 0 =kx (6a) JA(x, ) x=x = = 0 x +b= 0 x =b(6b)This example has a physical interpretation. The objective functionJ=12kx2representsthe potential energy in a spring. The minimum potential energy in a spring corresponds toa stretch of zero (x = 0). The Constrained problem:minx12kx2such thatx 1means minimize the potential energy in the spring such that the stretch in the spring isgreater than or equal to 1.

6 The solution to this problem is to set the stretch in the springequal to the smallest allowable value (x = 1). Theforceapplied to the spring in order toachieve this objective isf=kx . This forceistheLagrange multiplierfor this problem,( =kx ).The Lagrange multiplier is the force required to enforce the , JTS July 10, 20204 CEE 201L. Uncertainty, Design, and Optimization Duke Spring 2020 Gavin and ScruggsCase 2:b= 1 Ifb= 1 then the minimum of12kx2is notconstrained by the inequalityx b. Thederivation above would givex = 1, with = k.

7 The negative value of indicatesthat the constraint does not affect the optimal solution, and should therefore be set tozero. Setting = 0,JA(x, ) is minimized atx = 0. Figure 2(a) plotsJA(x, ) for a fewnegative values of and Figure 2(b) plots contours ofJA(x, ). cost, JA(x)design variable, x = 0-1-2-3 =-4b=-1(a) multiplier, design variable, x(b)* variable, multiplier, (x, ) =12kx2 x+ bforb= 1andk= 2.(x , ) = (0,0)CCBY-NC-NDHPG, JTS July 10, 2020 Constrained Optimization Using Lagrange Multipliers5 Figure 2 shows that: JA(x, ) is independent of atx=b, the saddle point ofJA(x, ) occurs at a negative value of , so JA/ 6= 0 for any 0.

8 The constraintx 1 does not affect the solution, and is called anon-bindingor aninactiveconstraint. The Lagrange Multipliers associated with non-binding inequality constraints are nega-tive. If a Lagrange multiplier corresponding to an inequality constraint has a negative valueat the saddle point, it is set to zero, thereby removing the inactive constraint from thecalculation of the augmented objective summary, if the inequalityg(x) 0 constrains the minimum off(x) then theoptimum point of the augmented objectiveJA(x, ) =f(x)+ g(x) is minimized with respecttoxand maximized with respect to.

9 The Optimization problem of equation (1) may bewritten in terms of the augmented objective function (equation (3)),max 1, 2, , mminx1,x2, ,xnJA(x1,x2, ,xn, 1, 2, , m)such that j 0 j(7)The necessary conditions for optimality are: JA xk xi=x i j= j= 0(8a) JA k xi=x i j= j= 0(8b) j 0(8c)These equations define the relations used to derive expressions for, or compute values of, theoptimal design variablesx i. Lagrange Multipliers for inequality constraints,gj(x1, ,xn) 0,are non-negative. If an inequalitygj(x1, ,xn) 0 constrains the optimum point, the cor-responding Lagrange multiplier, j, is positive.

10 If an inequalitygj(x1, ,xn) 0 does notconstrain the optimum point, the corresponding Lagrange multiplier, j, is set to , JTS July 10, 20206 CEE 201L. Uncertainty, Design, and Optimization Duke Spring 2020 Gavin and ScruggsSensitivity to Changes in the Constraints and Redundant ConstraintsOnce a Constrained Optimization problem has been solved, it is sometimes useful toconsider how changes in each constraint would affect the optimized cost. If the minimumoff(x) (wherex= (x1, ,xn)) is Constrained by the inequalitygj(x) 0, then at theoptimum pointx ,gj(x ) = 0 and j>0.


Related search queries