Optimization Techniques Overview
Optimization Techniques Overview
Ramalingam Sakthivel
1
OPTIMIZATION TECHNIQUES
• Introduction
• Methods
• Engineering applications of optimization
• Statement of an optimization problem
• Classification of optimization problems
• Single variable optimization
• Multivariable optimization with no constraints
• Multi variable optimization with equality and inequality
constraints: Lagrange multipliers methods, Kuhn-Tucker
conditions.
2
Ramalingam Sakthivel Assistant Professor (Senior Grade)
INTRODUCTION
What is Optimization?
• Optimization is the process of finding the best possible solution or outcome under a given set of
circumstances.
• It involves maximizing or minimizing a particular objective function by adjusting input parameters
within specified constraints.
• Objective Function: A mathematical expression representing the goal (e.g., cost, profit, efficiency).
• Constraints: Limitations or restrictions on the variables (e.g., budget, resources, time).
3
Ramalingam Sakthivel Assistant Professor (Senior Grade)
INTRODUCTION
Applications of
Optimization
Supply chain management: Resource allocation in Power grid optimization: Route optimization: Finding Training models: Optimizing
Minimizing transportation hospitals: Assigning beds, Ensuring efficient power the shortest or fastest paths loss functions in algorithms
and inventory costs. staff, and equipment. distribution. for delivery. like deep learning.
Revenue management: Treatment planning: Renewable energy: Traffic management: Hyperparameter tuning:
Optimizing pricing strategies Optimizing radiation doses in Maximizing energy capture in Reducing congestion in urban Selecting the best model
for maximum profitability. cancer therapy. solar panels or wind turbines. areas. configurations.
Portfolio optimization:
Drug design: Finding the Energy storage: Optimizing Fleet management: Allocating Feature selection: Identifying
Allocating investments to
optimal combination of the use of battery systems in and scheduling vehicles for the most relevant features for
maximize returns while
molecules for new drugs. smart grids. logistics companies. prediction models.
minimizing risk.
5
Ramalingam Sakthivel Assistant Professor (Senior Grade)
Engineering Applications of Optimization
Objective Function
• A Mathematical expression representing the goal of the optimization.
• Example: Maximize 𝑓(𝑥) or Minimize 𝑓 𝑥 , where 𝑓(𝑥) is the function to optimize.
Decision Variables
• Variables that can be adjusted to optimize the objective function.
• Example: 𝑥1 , 𝑥2 , 𝑥3 , … … … 𝑥𝑛 represent the variables to be determined.
Constraints
Restrictions or limitations on the decision variables. These can be:
• Equality Constraints: 𝑔𝑖 𝑥 = 0
• Inequality Constraints: ℎ𝑗 (𝑥) ≤ 𝑏𝑗
Feasible Region
• The set of all possible values of the decision variables that satisfy the constraints.
Optimization Type
• Specifies whether the problem is a maximization or minimization problem.
7
Ramalingam Sakthivel Assistant Professor (Senior Grade)
Statement of an Optimization Problem
Mathematical Formulation
𝑔𝑖 𝑥 = 0 (𝐸𝑞𝑢𝑎𝑙𝑖𝑡𝑦 𝐶𝑜𝑛𝑠𝑡𝑟𝑎𝑛𝑖𝑛𝑡𝑠)
Subject to: ൝
ℎ𝑗 𝑥 ≤ 𝑏𝑗 (𝐼𝑛𝑒𝑞𝑢𝑎𝑙𝑖𝑡𝑦 𝐶𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠)
𝑥 ∈ 𝓍 (Feasible Region)
8
Ramalingam Sakthivel Assistant Professor (Senior Grade)
Classification of Optimization Problems
Classification of
Optimization
Problems
Based on the Objective Based on the Nature of Based on Deterministic Based on Solution
Based on Constraints
Function Variables or Stochastic Nature Techniques
9
Ramalingam Sakthivel Assistant Professor (Senior Grade)
SINGLE-VARIABLE OPTIMIZATION
• Single variable optimization involves finding the maximum or minimum value of a function that depends on a
single variable, typically within a specific domain.
• The function to be optimized is of the form 𝑓(𝑥), where 𝑥 is the decision variable.
• A function of one variable 𝑓(𝑥) is said to have a relative or local minimum at 𝑥 = 𝑥 ∗ if 𝑓(𝑥 ∗ ) ≤ 𝑓(𝑥 ∗ + ℎ) for
all sufficiently small positive and negative values of ℎ.
• Similarly a point 𝑥 ∗ is called a relative or local maximum if 𝑓(𝑥 ∗ ) ≥ 𝑓(𝑥 ∗ + ℎ) for all values of ℎ sufficiently
close to zero.
• A function 𝑓(𝑥) is said to have a global or absolute minimum at 𝑥 ∗ if 𝑓(𝑥 ∗ ) ≤ 𝑓(𝑥) for all 𝑥.
• Similarly, a point 𝑥 ∗ will be a global maximum of 𝑓(𝑥) if 𝑓(𝑥 ∗ ) ≥ 𝑓(𝑥) for all 𝑥.
10
Ramalingam Sakthivel Assistant Professor (Senior Grade)
SINGLE-VARIABLE OPTIMIZATION
Applications
Economics and
Engineering Physics Operations Research Computer Science Healthcare Transportation Environmental Studies
Business
Profit Design
Equilibrium Algorithm Treatment Route Pollution
Maximizati Optimizatio Scheduling
Points Design Planning Planning Control
on n
12
Ramalingam Sakthivel Assistant Professor (Senior Grade)
MULTI-VARIABLE OPTIMIZATION WITH NO CONSTRANTS
Definition
Multivariable optimization with no constraints involves finding the maximum or minimum of a function
𝑓(𝑥1 , 𝑥2 , … … , 𝑥𝑛 ) where there are no restrictions on the decision variables 𝑥1 , 𝑥2 , … … , 𝑥𝑛 .
Objective Function
The goal is to optimize (maximize or minimize) 𝑓(𝑥1 , 𝑥2 , … … , 𝑥𝑛 ) .
Critical Points
Critical points occur where all first partial derivatives are zero:
𝜕𝑓 𝜕𝑓 𝜕𝑓
= =⋯= =0
𝜕𝑥1 𝜕𝑥2 𝜕𝑥𝑛
Gradient Vector
𝜕𝑓 𝜕𝑓 𝜕𝑓
The gradient ∇𝑓 = (𝜕𝑥 , 𝜕𝑥 , … , 𝜕𝑥 ) represents the direction of steepest ascent.
1 2 𝑛
At a critical point, ∇𝑓 = 0
13
Ramalingam Sakthivel Assistant Professor (Senior Grade)
MULTI-VARIABLE OPTIMIZATION WITH NO CONSTRANTS
𝜕2𝑓 𝜕2𝑓
... Conditions for Negative Definite:
𝜕𝑥12 𝜕𝑥1 𝜕𝑥2
𝐻1 < 0, 𝐻2 > 0, 𝐻3 < 0, … … . … … .
𝜕2𝑓 𝜕2𝑓
𝐻= ... ⟹ The principal minors are in opposite sings.
𝜕𝑥2 𝜕𝑥1 𝜕𝑥22
. . .
. . . Where,
. . .
𝐻1 is the determinant of 1 × 1 matrix of 𝐻.
14
Ramalingam Sakthivel Assistant Professor (Senior Grade)
MULTI-VARIABLE OPTIMIZATION WITH NO CONSTRANTS
15
Ramalingam Sakthivel Assistant Professor (Senior Grade)
Figure 1.1 Relative and global minima
16
Ramalingam Sakthivel Assistant Professor (Senior Grade)
APPLICATIONS OF MULTI-VARIABLE OPTIMIZATION WITH NO CONSTRANTS
Applications
Maximizing profits or
Optimizing the shape of a
minimizing costs as functions Minimizing energy functions Designing systems like
structure or a machine Optimizing model parameters
of multiple variables like in systems without boundary communication networks for
component for strength and (e.g., weights) during training.
labor, materials, and conditions. maximum efficiency.
efficiency.
production levels.
17
Ramalingam Sakthivel Assistant Professor (Senior Grade)
MULTI-VARIABLE OPTIMIZATION WITH EQUALITY AND INEQUALITY CONSTRANTS
Definition
When solving multivariable optimization problems with constraints, the goal is to optimize (maximize or
minimize) a function 𝑓 𝑥1 , 𝑥2 , … … , 𝑥𝑛 , subject to equality and/or inequality constraints.
Objective Function
The function to be optimized, 𝑓 𝑥1 , 𝑥2 , … … , 𝑥𝑛 .
Constraints
• Equality Constraints: 𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 = 0, 𝑖 = 1,2, … , 𝑚.
• Inequality Constraints: ℎ𝑗 𝑥1 , 𝑥2 , … … , 𝑥𝑛 ≤ 0, 𝑗 = 1,2, . . , 𝑝.
Feasible Region
The set of all points that satisfy the constraints.
Optimization Goal
Find points in the feasible region where the objective function is maximized or minimized.
18
Ramalingam Sakthivel Assistant Professor (Senior Grade)
MULTI-VARIABLE OPTIMIZATION WITH EQUALITY AND INEQUALITY CONSTRANTS
• Objective Function:
Optimize (Minimize or Maximize): 𝑓 𝑥1 , 𝑥2 , … … , 𝑥𝑛 .
Subject to Equality Constraints:
𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 = 0, 𝑖 = 1,2, … , 𝑚.
Lagrangian Function Formulation
The Lagrangian function combines the objective function 𝑓 𝑥1 , 𝑥2 , … … , 𝑥𝑛 and the equality constraints
𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 using Lagrange multipliers λ𝑖 :
𝐿(𝑥1 , 𝑥2 , … … , 𝑥𝑛 , λ1 , λ2 , … … , λ𝑚 ) = 𝑓 𝑥1 , 𝑥2 , … … , 𝑥𝑛 − σ𝑚
𝑖=1 λ𝑖 𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛
where
• λ𝑖 are Lagrange multipliers.
• 𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 : Equality constraints.
19
Ramalingam Sakthivel Assistant Professor (Senior Grade)
MULTI-VARIABLE OPTIMIZATION WITH EQUALITY AND INEQUALITY CONSTRANTS
• Stationary Condition:
The gradient of the Lagrangian with respect to 𝑥𝑘 must be zero.
𝜕𝐿
= 0, 𝑘 = 1, … , 𝑛,
𝜕𝑥𝑘
• Constraint Satisfaction:
The equality constraints must hold
𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 = 0, 𝑖 = 1,2, … , 𝑚.
20
Ramalingam Sakthivel Assistant Professor (Senior Grade)
MULTI-VARIABLE OPTIMIZATION WITH EQUALITY AND INEQUALITY CONSTRANTS
• The Karush-Kuhn-Tucker (KKT) conditions are used for solving optimization problems with both equality and
inequality constraints. These conditions generalize the Lagrangian method by incorporating inequality
constraints.
21
Ramalingam Sakthivel Assistant Professor (Senior Grade)
MULTI-VARIABLE OPTIMIZATION WITH EQUALITY AND INEQUALITY CONSTRANTS
KKT Conditions
The KKT conditions consist of the following:
1. KKT Lagrangian Function
The Lagrangian function is extended to include both equality and inequality constraints
𝑝
𝐿(𝑥1 , … … , 𝑥𝑛 , λ1 , … … , λ𝑚 , 𝜇1 , … , 𝜇𝑝 ) = 𝑓 𝑥1 , 𝑥2 , … … , 𝑥𝑛 − σ𝑚
𝑖=1 λ𝑖 𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 − σ𝑗=1 𝜇𝑗 ℎ𝑗 𝑥1 , 𝑥2 , … … , 𝑥𝑛
Where,
• λ𝑖 : Lagrange multipliers for equality constraints.
• 𝜇𝑗 : Lagrange multipliers for inequality constraints (𝜇𝑗 ≥ 0).
• 𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 : Equality constraints.
• ℎ𝑗 𝑥1 , 𝑥2 , … … , 𝑥𝑛 : Inequality constraints.
2. Stationarity Condition
The gradient of the Lagrangian with respect to 𝑥 must be zero:
∇𝑥 𝐿(𝑥1 , … … , 𝑥𝑛 , λ1 , … … , λ𝑚 , 𝜇1 , … , 𝜇𝑝 ) = ∇𝑓 𝑥1 , 𝑥2 , … … , 𝑥𝑛 − σ𝑚
𝑖=1 λ𝑖 ∇𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 −
σ𝑝𝑗=1 𝜇𝑗 ∇ℎ𝑗 𝑥1 , 𝑥2 , … … , 𝑥𝑛
22
Ramalingam Sakthivel Assistant Professor (Senior Grade)
MULTI-VARIABLE OPTIMIZATION WITH EQUALITY AND INEQUALITY CONSTRANTS
3. Primal Feasibility
The solution must satisfy the equality and inequality constraints
𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 = 0
ℎ𝑗 𝑥1 , 𝑥2 , … … , 𝑥𝑛 ≤ 0
4. Dual Feasibility
The multipliers for inequality constraints must be non-negative
𝜇𝑗 ≥ 0.
5. Complementary Slackness
For each inequality constraint, the product of the multiplier and the constraint must be zero
𝜇𝑗 ℎ𝑗 = 0. 𝑗 = 1,2, … , 𝑝.
23
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
3. Constraints:
Conditions that the solution must satisfy, classified into
• Equality Constraints: 𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 = 0, 𝑖 = 1, . . , 𝑚
24
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
• Inequality Constraints: ℎ𝑗 𝑥1 , 𝑥2 , … … , 𝑥𝑛 ≤ 0 , 𝑗 = 1, … . . , 𝑝.
4. Feasible Region:
The set of all points 𝑥 that satisfy the constraints.
Mathematical Formulation
Optimize (Minimize or Maximize): 𝑓 𝑥1 , 𝑥2 , … … , 𝑥𝑛
Subject to Constraints:
𝑔𝑖 𝑥1 , 𝑥2 , … … , 𝑥𝑛 = 0, 𝑖 = 1,2, … , 𝑚.
ℎ𝑗 𝑥1 , 𝑥2 , … … , 𝑥𝑛 ≤ 0, 𝑗 = 1,2, . . , 𝑝.
25
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
Quadratic Expression
• An expression of degree 𝑛 in variable 𝑥 is 𝑎0 𝑥 𝑛 + 𝑎1 𝑥 𝑛−1 + 𝑎2 𝑥 𝑛−2 + ⋯ +𝑎𝑛−1 𝑥 + 𝑎𝑛 = 0 where 𝑎0 ≠ 0 and
𝑎1 , 𝑎2 , 𝑎3 , … , 𝑎𝑛 are real numbers. 𝑎0 , 𝑎1 , 𝑎2 , … , 𝑎𝑛 are called coefficients of the expression.
• In particular an expression of degree 2 is called a Quadratic Expression which is expressed as
𝒑 𝒙 = 𝒂𝒙𝟐 + 𝒃𝒙 + 𝒄, 𝑎 ≠ 0 and 𝑎, 𝑏, 𝑐 are real numbers.
−𝒃 ± 𝒃𝟐 − 𝟒𝒂𝒄
𝒙=
𝟐𝒂
26
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
Example:
Find the roots of the quadratic equation 𝒙𝟐 + 𝟖𝒙 + 𝟏𝟐 = 𝟎
Solution:
Compare given equation with the quadratic expression, we get
𝑎 = 1, 𝑏 = 8, 𝑐 = 12
−𝒃 ± 𝒃𝟐 − 𝟒𝒂𝒄
𝒙=
𝟐𝒂
−8 ± 82 − 4 × 1 × 12 −8 ± 64 − 48 −8 ± 16 −8 ± 4
𝑥= ⟹𝑥= ⟹𝑥= ⟹𝑥=
2×1 2 2 2
−8+4 −8−4
⟹𝑥= and 𝑥=
2 2
⟹ 𝑥 = −2 and 𝑥 = −6 are the roots of the given quadratic equation.
27
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
Synthetic Division
• We can use Synthetic Division method for solving Higher-Degree equations.
Example:
Find the roots of the equation 𝒙𝟒 + 𝒙𝟑 − 𝟏𝟏𝒙𝟐 − 𝟓𝒙 + 𝟑𝟎 = 𝟎
Solution:
Use synthetic division, because this equation is in degree 3.
1 1 − 11 −5 30
2 0 2 6 − 10 − 30
1 3 −5 − 15 0
−3 0 −3 0 15
1 0 −5 0
⟹ 𝑥 − 2 𝑥 + 3 𝑥2 − 5 = 0
∴ The roots are 𝑥 = 2, 𝑥 = −3, 𝑥 = ± 5.
28
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
29
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
30
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
𝑓𝑚𝑖𝑛 = 𝑓 𝑥 = 2 = −11
31
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
Differentiate 𝑓 𝑥
𝑣 𝑥 𝑢′ 𝑥 − 𝑢(𝑥)𝑣 ′ 𝑥
𝑓′ 𝑥 =
𝑣(𝑥) 2
𝑥 − 1 𝑥 − 2 2𝑥 − 𝑥 2 (2𝑥 − 3 )
𝑓′ 𝑥 = 2
𝑥 − 1 (𝑥 − 2)
32
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
Set 𝑓 ′ 𝑥 = 0
′
𝑥 − 1 𝑥 − 2 2𝑥 − 𝑥 2 (2𝑥 − 3 )
𝑓 𝑥 = 2 =0
𝑥 − 1 (𝑥 − 2)
2𝑥 𝑥 2 − 3𝑥 + 2 − 𝑥 2 (2𝑥 − 3 ) = 0
2𝑥 3 − 6𝑥 2 + 4𝑥 − 2𝑥 3 + 3𝑥 2 = 0
−3𝑥 2 + 4𝑥 = 0
𝑥(4 − 3𝑥) = 0
∴ The critical points are
4
𝑥=0 𝑎𝑛𝑑 𝑥=3
To verify the nature of critical point:
Taking second derivative, and using critical point
2
(𝑥 − 1)(𝑥 − 2) 4 − 6𝑥 − 4𝑥 − 3𝑥 2 2(𝑥 − 1)(𝑥 − 2)[ 𝑥 − 1 + (𝑥 − 2)]
𝑓″ 𝑥 = 4
𝑥 − 1 (𝑥 − 2)
𝑥−1 𝑥−2 2 (4) 4×(−2)2 16
At 𝑥 = 0, 𝑓 ″ 𝑥 = 4 = = 16 = 1 > 0 and hence 𝑓(𝑥) is minimum at 𝑥 = 0. Therefore,
−1 (−2) (−2)4
0
𝑓𝑚𝑖𝑛 = 𝑓 𝑥 = 0 = (−1)(−2) =0
33
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
2
(𝑥 − 1)(𝑥 − 2) 4 − 6𝑥 − 4𝑥 − 3𝑥 2 2(𝑥 − 1)(𝑥 − 2)[ 𝑥 − 1 + (𝑥 − 2)]
𝑓″ 𝑥 = 4
𝑥 − 1 (𝑥 − 2)
4
At 𝑥 = 3 ,
2 2
4 4 4 4 4 4 4 4 4
3−1 3−2 4−6 3 − 4 3 −3 3 2 3−1 3−2 − 1 +
3 3−2
𝑓″ 𝑥 = 4
4 4
3−1 3−2
2
1 −2 16 16 1 −2 1 −2
× 4−8 − 3 − 3 ×2×3× 3 × 3+ 3
3 3
= 4
1 −2
×
3 3
2
−2
× −4 − 0 −4 −4
= 9 = = = −81 < 0
−2 4
−2 2 4
9 9 81
4
and hence 𝑓(𝑥) is maximum at 𝑥 = 3 .
34
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
Therefore,
4 2
4 3
𝑓𝑚𝑎𝑥 = 𝑓 𝑥 = = 4 4
3 −1 3−2
3
16 9
= ×
9 −2
= −8
35
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
𝑥−1 =0 or 𝑥+1 =0 or (𝑥 2 − 3) = 0
𝑥=1 𝑥 = −1 𝑥=± 3
⟹ 𝑓 𝑥 = 0 at 𝑥 = 0, 𝑥 = 1, 𝑥 = −1, 𝑥 = ± 3
37
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
38
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
6. A rectangular garden is to be constructed using a rock wall as one side of the garden
and wire fencing for the other three sides (as in Figure 1). Given 100 ft of wire fencing,
determine the dimensions that would create a garden of maximum area. What is the
maximum area?
Figure 1
39
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
Solution:
Let 𝑥 denote the length of the side of the garden perpendicular to the rock wall and 𝑦 denote the length of
the side parallel to the rock wall.
40
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
7. A rectangular box with a square base, an open top, and a volume of 𝟐𝟏𝟔 𝒊𝒏𝟑 is to be
constructed. What should the dimensions of the box be to minimize the surface area of
the box? What is the minimum surface area?
Solution:
Draw a rectangular box and introduce the variable 𝑥 to represent the length of each side of the square
base and 𝑦 to represent the height of the box.
Let 𝑆 denote the surface area of the open-top box. Since the box has an open top, we need only determine
the area of the four vertical sides and the base. The area of each of the four vertical sides is 𝑥 × 𝑦. The area of the
base is 𝑥 2 . Therefore, the surface area of the box is
𝑆 = 4𝑥𝑦 + 𝑥 2 −−−−−−→ [1]
42
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
Since the volume of this box is 𝑥 2 𝑦 and the volume is given as 216 𝑖𝑛3 .
𝑥 2 𝑦 = 216
216
𝑦 = 2 −−−−−→ [2]
𝑥
Substitute [2] in [1], we get
216 2
864
𝑆 𝑥 = 4𝑥 2
+𝑥 = + 𝑥2
𝑥 𝑥
To find critical point:
Taking derivative S(𝑥)
864
𝑆′ 𝑥 = − + 2𝑥
𝑥2
864
Set 𝑆 ′ 𝑥 = 0 ⟹ − + 2𝑥 = 0
𝑥2
864
= 2𝑥
𝑥2
3 3 3
𝑥 3 = 432 ⟹ 𝑥 = 432 ⟹ 𝑥 = 6×6×6×2 ⟹𝑥 = 6 2
3
∴ The critical point is 𝑥 = 6 2
43
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
44
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
45
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
1
𝑥=2
Substituting the value of 𝑥 on the Eq. [1], we get
1 2
1 ==⇒ −3 2
+ 3𝑧 =0
3
− 4 + 3𝑧 =0
3 1
3𝑧 = 4 = 𝑧 = 4
∴ The critical points are
1 1
𝑥 = 2, 𝑦 = 1, 𝑧 = 4.
𝑓𝑦𝑦 = −2
𝐻1 = −3 < 0
𝑓𝑧𝑧 = −6 −3 0
𝐻2 = =6>0
𝑓𝑥𝑦 = 𝑓𝑦𝑥 = 0 0 −2
−3 0 3
𝑓𝑥𝑧 = 𝑓𝑧𝑥 = 3
𝐻3 = 𝐻 = 0 −2 0
𝑓𝑦𝑧 = 𝑓𝑧𝑦 = 0 3 0 −6
= −3 12 + 3 6 = −36 + 18 = −18 < 0
Condition for minimum: (+ve definite) ∴ This is the negative definite.
𝐻1 > 0, 𝐻2 > 0, 𝐻3 > 0 Maximum of 𝑈 = −𝑥 3 + 3𝑥𝑧 + 2𝑦 − 𝑦 2 − 3𝑧 2
Condition for maximum: (-ve definite) 1 3 1 1 1 2
=− +3 + 2 1 −1−3
2 2 4 4
𝐻1 < 0, 𝐻2 > 0, 𝐻3 < 0 1 3 3
= − 8 + 8 + 2 − 1 − 16
2 3
−3 0 3 = 8 + 1 − 16
𝐻 = 0 −2 0 4 3
3 0 −6 = +1−
16 16
1
= 16 + 1
−3 0 3
17
𝐻 = 0 −2 0 = 16
3 0 −6
48
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
49
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
51
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
𝜕𝐿 −8 + 𝜆
= 2𝑥2 + 8 − 𝜆 = 0 =⇒ 𝑥2 = −−−−−−−−−−−−→ [2]
𝜕𝑥2 2
𝜕𝐿 −6 + 𝜆
= 6𝑥3 + 6 − 𝜆 = 0 =⇒ 𝑥3 = −−−−−−−−−−−−→ [3]
𝜕𝑥3 6
𝜕𝐿
= − 𝑥1 + 𝑥2 + 𝑥3 − 20 = 0 −−−−−−−−−−−−−−−−−→ [4]
𝜕𝜆
11𝜆 = 330
330
𝜆=
11
𝜆 = 30
Substituting 𝜆 = 30 on Eqs. [1], [2], [3], we get
−10 + 30
1 ==⇒ 𝑥1 = =5
4
−8 + 30
2 ==⇒ 𝑥2 = = 11
2
−6 + 30
3 ==⇒ 𝑥3 = =4
6
53
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
54
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
4 0 0
𝐵
𝐻 = 0 2 0
0 0 6
𝐻1𝐵 = 4
𝐻2𝐵 = 8
𝐻3𝐵 = 48
∴ 𝑓(𝑥) is minimum at point (5, 11, 4) as all principal minor are positive.
55
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
56
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
𝜕𝐿
= 0 ⟹ 4 − 2𝑥2 − 𝜆 = 0 −−−−−−−−−→ [2]
𝜕𝑥2
Using KKT we’ve,
𝜆ℎ = 0 ===⇒ 𝜆 2𝑥1 + 𝑥2 − 5 = 0 −−−→ [3]
Case 1:
Let 𝜆 = 0, then
10 5
[1]===⇒ 10 − 4𝑥1 =0 ====> 𝑥1 = 4
=2
4
[2]===⇒ 4 − 2𝑥2 =0 ====> 𝑥2 = 2 =2
∴ 1 , 2 , 3 , 5 , 6 conditions are satisfied.
57
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
But [4],
5
==⇒ 2 +2≤5
2
7≤5
Which is absurd.
∴ we reject this case.
Case 2:
Let 2𝑥1 +𝑥2 − 5 = 0, then
2𝑥1 +𝑥2 = 5 −−−−−−→ [7]
Now eliminating 𝜆 from [1] and [2],
[1] ===> 10 − 4𝑥1 − 2𝜆 = 0
2 × 2 =⇒ 8 − 4𝑥2 − 2𝜆 = 0
58
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
59
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
Optimal Solution is
11 4
𝑥1 = , 𝑥2 = 3
6
11 4 121 16
∴ Maximize 𝑓 𝑥 = 10 +4 −2 −
6 3 36 9
660 + 192 − 242 − 64
=
36
546
=
36
91
=
6
60
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
𝜕𝐿
= 0 ⟹ 10 − 2𝑥2 − 𝜆1 − 𝜆2 = 0 −−−−→ [2]
𝜕𝑥2
Using KKT we’ve,
𝜆1 ℎ1 = 0 ⟹ 𝜆1 𝑥1 + 𝑥2 − 8 = 0 −−−→ [3]
𝜆2 ℎ2 = 0 ⟹ 𝜆2 −𝑥1 + 𝑥2 − 5 = 0 −−−→ [4]
ℎ1 ≤ 0 ⟹ 𝑥1 + 𝑥2 − 8 ≤ 0 −−−−−−−−→ 5
ℎ2 ≤ 0 ⟹ −𝑥1 + 𝑥2 − 5 ≤ 0 −−−−−−−→ 6
𝑥1 , 𝑥2 , 𝜆1 , 𝜆2 ≥ 0 −−−−→ 7
Case 1:
Let 𝜆1 = 0, 𝜆2 = 0 then
10
[1] ⟹ 10 − 2𝑥1 = 0 ⟹ 𝑥1 = =5
2
10
[2]⟹ 10 − 2𝑥2 = 0 ⟹ 𝑥2 = =5
2
Since Eqn. [5] is not satisfied.
∴ We reject it.
62
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
63
Ramalingam Sakthivel Assistant Professor (Senior Grade)
QUESTIONS AND PROBLEMS RELATED ON THIS MODULE
65
Ramalingam Sakthivel Assistant Professor (Senior Grade)