Chapter 2 - Unconstrained Optimization
Chapter 2 - Unconstrained Optimization
Departemen Matematika
FMIPA UGM
What is optimization?
• The process of finding the best value for the variables of a particular
problem to minimize or maximize an objective function.
• Example: How to minimize the risk and maximize profit?
Components of on optimization problem:
• Objective function, express performance of a system, need to be minimized
or maximized.
• Decision variable
A set of unknowns, define the objective function and constraints, can
be continuous, integer or biner.
• Constraints
They are conditions, allows the unknows to take on certain values but
exclude other to render the design to be feasible.
Types of optimization models
The type of objective function or constraints:
• Linear
• Non-Linear
• So 𝑓"" > 0, 𝑓## > 0 and 𝑓"" . 𝑓## − (𝑓"# )! > 0, then point
(1.3, 𝑓(1.3)) = (1,3.4) is a local minimum that becomes
the global minimum.
Example
𝑓 𝑥, 𝑦 = 𝑥 ! + 4𝑦 ! − 2𝑥 − 16𝑦 + 𝑥𝑦
Necessary conditions:
• 𝑓" = 2𝑥 − 2 + 𝑦 = 0
• 𝑓# = 8𝑦 − 16 + 𝑥 = 0
Solution of linear equation system 𝑥 = 0, 𝑦 = 2
Check the type:
• 𝑓"" = 2, 𝑓## = 8 , 𝑓"# = 1
• So 𝑓"" > 0, 𝑓## > 0 and 𝑓"" . 𝑓## − (𝑓"# )! > 0, then point
(0,2, 𝑓(0,2)) = (1,3, −16) is a point local minimum that
becomes global minimum.
Example
𝑓 𝑥, 𝑦 = −𝑥 ! − 4𝑦 ! + 6𝑥 + 16𝑦
Necessary conditions:
• 𝑓" = −2𝑥 + 6 = 0 ⟹ 𝑥 = 3
• 𝑓# = −8𝑦 + 16 = 0 ⟹ 𝑦 = 2
• So 𝑓"" < 0, 𝑓## < 0 and 𝑓"" . 𝑓## − (𝑓"# )! > 0, then point (3,2, 𝑓(3,2)) =
(3,2, 25) is a point local maximum that becomes global maximum.
Optimization of function of 𝑛-variables
Definition
A stationary value of a function 𝑓 over the domain ℜ4 occurs at a point
𝑥 ∗ = (𝑥6∗ ⋯ 𝑥4∗ ) at which the 𝑛-equalities
• 3𝑥!! − 12 = 0 ⟺ 3 𝑥!! − 4 = 0 ⟺ 𝑥! − 2 𝑥! + 2 = 0 ⟺ 𝑥! = 2 or 𝑥! = −2
6𝑥> 0
• Hessian matrix 𝐻 =
0 6𝑥!
Example
6 0 6−𝜆 0
• 𝐻(1,2) = then = 0 is satisfied 𝜆 = 6 and 𝜆 =
0 12 0 12 − 𝜆
12. Two eigenvalues are positive, so 𝐻(1,2) is positive definite. It means
function 𝑓 reaches a minimum value at point (1,2).
−6 0 −6 − 𝜆 0
• 𝐻(−1, −2) = then = 0 is satisfied 𝜆 =
0 −12 0 −12 − 𝜆
− 6 and 𝜆 = −12. Two eigenvalues are negative, so 𝐻(−1, −2) is negative
definite. It means function 𝑓 reaches a maximum value at point (−1, −2).
• Both 𝐻(1, −2) and 𝐻(−1, 2) have are positive and negative eigenvalue, so
points (1, −2) and (−1, 2) are saddle points.
Eigenvalue
The scalar 𝜆 that satisfy characteristic equation
𝐴 − 𝜆𝐼 = 0
is called eigenvalue.
Example:
2 1
Given matrix 𝐴 = .
3 4
2 1 𝜆 0 2−𝜆 1
So 𝐴 − 𝜆𝐼 = − =
3 4 0 𝜆 3 4−𝜆
Theorem 1
A quadratic form 𝑥 A 𝐴𝑥 is positive definite (negative) if all eigenvalue of
matrix 𝐴 are positive(negative ).
Excercises
Find all stationary points and identify the type
1. 𝑓 𝑥, 𝑦 = 𝑥 B − 3𝑥 + 𝑥𝑦 @