3-FENG 346 Constrained and Nonlinear Optimization Problems - B
3-FENG 346 Constrained and Nonlinear Optimization Problems - B
•Equality Constraints
Substitution Method
•Inequality Constraints
The Variate Transformation Method
2
Constrained Optimization Problems
3
Constrained Optimization Problems
A feasible region is a region that satisfies all the constraints of the problem.
4
Equality Constrains
• In the single variable design parameter case, the boundary conditions are easy to check because there
are only two boundaries.
• In multivariable design parameter case, there are infinitely many solutions on the boundary.
Remember that the feasible region is only on the boundary because the equality constraint restricts it
5
Equality Constrains
Suppose that is the objective function and dependent on number of design variables. Hence, it is
degrees optimization problem.
Then, there are number of equality constraints, expressed via the function .
Remember that .
Several methods can be used for equality constrained optimization problems, and the method is selected
according to the type of problem.
6
Substitution Method
7
Substitution Method
Example : Find the maximum area of the rectangle inside a triangle as a function of , as shown in the
figure below.
After solving Eqn (2) for , it is substituted to Eqn (1). Hence, both the
Number of equality constraints = 1
variable and constraint are eliminated from the optimization problem Degrees of the optimization problem
and the constraint is guaranteed.
Stationary Points;
9
Lagrange Multipliers Method
10
Lagrange Multipliers Method
∇ 𝑓 /¿ ∇ 𝑔
Notations : The constraint equation notations are in some books while it is
or in others. 11
Lagrange Multipliers Method
Although these two gradients are parallel, they may not be in same direction or size. Hence, a
constant / scaler multiplier can define their linear relationship. This multiplier is also called
Lagrange Multiplier.
There exists n number of equations with n number of variables, so there are finite number of
solutions. Then the global extremum (minimum or maximum) can be find easily. 12
Lagrange Multipliers Method
13
Lagrange Multipliers Method
Example 1
∇ 𝑓 /¿ ∇ 𝑔
Objective Constraint
function g
∇ 𝑓 =¿ ∇ 𝑔=¿
(1)
not an ellipse
Max.
Min.
Min.
Max.
Maximums
16
Number of equality constraints = 1
Lagrange Multipliers Method Degrees of the optimization problem
Example 2 : Find the maximum area of the rectangle inside a triangle as a function of , as shown in the
figure below. (This problem was solved via substitution method)
17
Lagrange Multipliers Method
Rectangular Prism Volume
Example 3 :Find the dimensions of the rectangular prism with the largest
volume that can be fitted into the ellipsoid
4 equations, 4 unknowns
Add them up
19
1
Lagrange Multipliers Method
Rectangular Prism Volume
20
• Single Objective Function
Lagrange Multipliers Method • Nonlinear
• Constrained (equality)
Example 4 :Find the closest and the farthest points and their distances between the origin of the Oxyz and the
cross-section of the ellipsoid and surface
5 equations
5 unknowns
22
Lagrange Multipliers Method
23
• Single Objective Function
Lagrange Multipliers Method • Nonlinear
• Constrained (equality)
Example 5 :Minimize the function
Subject to an equality constraint
Number of equality constraints = 1
Degrees of the optimization problem 2
24
Lagrange Multipliers Method
25
• Single Objective Function
Lagrange Multipliers Method • Nonlinear
Cylindrical Tank Design • Constrained (equality)
Example 6 :The tank is closed at both ends and is required to have volume The radius and height are
selected as design variables. It is desired to design the tank having minimum surface area.
26
Lagrange Multipliers Method
Cylindrical Tank Design
27
Inequality Constraints
Suppose that is the objective function and dependent on number of design variables. Hence, it is
degrees optimization problem.
Then, there are number of inequality constraints, expressed via the function .
Several methods can be used for inequality constrained optimization problems, and the method is
selected according to the type of problem.
28
Inequality Constraints
If the inequality constraints are simple expressions, the variate transformation method can eliminate
them from the optimization problem. Thus, the problem is transformed into an equality constraint or
unconstrained form.
Some Example Variate Transformations for Inequality Constraints
29
Inequality Constraints
Variate Transformation Method
30
Inequality Constraints
Variate Transformation Method
31
Inequality Constraints
Variate Transformation Method
32
Inequality Constraints
Variate Transformation Method
33
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
All inequality constraints are transformed to the equality constraints. Now, it is possible to continue with
Lagrange Multipliers method.
35
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
both sides
36
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
1) If Constraint is active
2) If Constraint is inactive
The constraint already restricts a region in which the extremum will not be exist. In this case, the solution
is not on the baundary of the infeasible region.
37
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
Proof
both sides and sum
Step 3 – Global Minimum: Compare the results of the optimum solutions in the
objective function. Then find the global minimum one.
39
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
Example : Let’s solve same problem with KKT – Necessary Conditions Method
Minimize the function subject to the inequality constraints
Reminder for KKT
Necessary Conditions
Transform the
problem into
standard form
40
Reminder for KKT
Inequality Constraints Necessary Conditions
Karush-Kuhn-Tucker (KKT) Necessary Conditions
41
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
1) µ1= µ2 =µ 3= 0 Assume that all constraints are inactive. It gives Then condition 6 gives . The
option is elected via condition 6. It means that at least one constraint is active. The minimum is not out of
all 3 constraints. No solution.
2) µ1 ≠ 0 , µ2 =µ 3= 0 Assume that the first constraint is active and others are inactive. It gives Then
condition 6 gives . The option is elected via condition 6. It means that not only first constraint is active. The
minimum is not on only first constraint’s baundary. No solution 42
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
3) µ3 ≠ 0 , µ1 =µ 2= 0 Assume that the only third constraint is active and others are inactive. It gives;
43
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
4) µ2 ≠ 0 , µ1 =µ 3= 0 Assume that the second constraint is active and others are inactive. It gives Then
condition 6 gives . The option is elected via condition 6. It means that not only second constraint is active.
The minimum is not on only first constraint’s baundary. No solution
5) µ2 ≠ 0 , µ3 ≠ 0 , µ1= 0 Assume that only first constraint is inactive and others are active. It gives . The
option is elected via condition 8 because of negative Lagrange Multiplier. It means that constraints 2 and 3
are not active together. The minimum is not on both second and third constraint’s baundaries. No solution
44
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
6) µ1 ≠ 0 , µ3 ≠ 0 , µ 2= 0 Assume that only second constraint is inactive and others are active. It gives . The
option is elected via condition 7 because of negative Lagrange Multiplier. It means that constraints 1 and 3
are not active together. The minimum is not on both first and third constraint’s baundaries. No solution
7) µ1 ≠ 0 , µ2 ≠ 0 , µ 3= 0 Assume that only third constraint is inactive and others are active. It gives Then
condition 6 gives . The option is elected via condition 6. It means that constraints 1 and 3 are not active
together. The minimum is not on both first and second constraint’s baundaries. No solution
45
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
8) µ1 ≠ 0 , µ2 ≠ 0 , µ 3 ≠ 0 Assume that all constraints are active. It gives which is not possible. No solution
Global Minimum
46
Inequality Constraints
Karush-Kuhn-Tucker (KKT) Necessary Conditions
Global Minimum :
47