ORF363 COS323 F14 Lec3
ORF363 COS323 F14 Lec3
Decision variables
Optimal solution :
Lec3 Page 1
Lec3p2, ORF363/COS323
Problem is "unbounded."
Lec3 Page 2
Lec3p3, ORF363/COS323
Unconstrained optimization:
you? • cousin 1
• grandma
• mom
• dad
• sister • Cousin 3
• brother
Location of person i:
Your location:
Lec3 Page 3
Lec3p4, ORF363/COS323
Legendre Gauss
(1752-1833) (1777-1855)
Given: mxn matrix
mx1 vector
Solve:
Lec3 Page 4
Lec3p5, ORF363/COS323
Data fitting.
Given:
We have three months of daily stock price data to train our model (lots of
5-day windows). How to find the best for future prediction?
Lec3 Page 5
Lec3p6, ORF363/COS323
Optimality conditions
Consider a function
A point is said to be a:
Local minimum:
Global minimum:
Local min
Strict global min Strict local max Strict local min
Local max and
local min
Lec3 Page 6
Lec3p7, ORF363/COS323
Notation reminder:
Lec3 Page 7
Lec3p8, ORF363/COS323
Fermat
(1607-1665)
Proof.
Lec3 Page 8
Lec3p9, ORF363/COS323
Remarks:
• This condition is necessary but not sufficient for local
optimality.
• Nevertheless, it is useful because any local minimum
must satisfy this condition. So, we can look for local (or
global) minima only among points that make the
gradient of the objective function vanish.
• We will see later that in presence of an important
concept called convexity, this condition is in fact
sufficient for local (and global!) optimality.
Notation:
Lec3 Page 9
Lec3p10, ORF363/COS323
Examples:
MATLAB: eig([2 4;4 5])
Lec3 Page 10
Lec3p11, ORF363/COS323
Proof.
"Little o" notation: see [CZ13], Section 5.6 or our previous lecture.
Lec3 Page 11
Lec3p12, ORF363/COS323
Proof.
Lec3 Page 12
Lec3p13, ORF363/COS323
Remarks.
• is not sufficient for local optimality.
Exercise. State (and prove) the analogues of our three theorems for
local maxima.
Lec3 Page 13
Lec3p14, ORF363/COS323
Solve:
Lec3 Page 14
Lec3p15, ORF363/COS323
Find all the local minima and maxima of the following function:
Lec3 Page 15
Lec3p16, ORF363/COS323
Notes:
• Optimality conditions are covered in Chapter 6 of [CZ13] in a more general
setting where one also has a general constraint The unconstrained
optimality conditions that we presented here are stated in Chapter 6 as
corollaries (called the "interior case"). You are only responsible for what was
covered in class.
• Least squares is covered in Section 12.1 of [CZ13]. But again, this is for
further reading and my notes should have everything that I expect you to
know.
References:
- [CZ13] E.K.P. Chong and S.H. Zak. An Introduction to
Optimization. Fourth edition. Wiley, 2013.
Lec3 Page 16