Lecture 1 - Introduction To Optimization: TMA947 / MMG621 - Nonlinear Optimization
Lecture 1 - Introduction To Optimization: TMA947 / MMG621 - Nonlinear Optimization
Lecture 1 - Introduction To Optimization: TMA947 / MMG621 - Nonlinear Optimization
What is optimization?
Basic notation
• Vectors are written with bold face, i.e., x ∈ Rn .
1
TMA947 / MMG621 – Nonlinear optimization Lecture 1
(If we consider a maximization problem, we change the sign of f to get a minimization problem.)
Unconstrained optimization:
- I ∪ E = ∅,
- X = Rn .
Constrained optimization:
- I ∪ E 6= ∅, and/or
- X ⊂ Rn .
2
TMA947 / MMG621 – Nonlinear optimization Lecture 1
Conventions
Let
f ∗ := infimum f (x)
x∈S
denote the infimum value of f over the set S. If the value f ∗ is attained at some point x∗ in S, we can write
f ∗ := minimum f (x),
x∈S
and have f (x∗ ) = f ∗ . Another well-defined operator defines the set of minimal solutions to the problem
where S ⊆ S is nonempty if and only if the infimum value f ∗ is attained at some point x∗ in S.
∗
Examples
minimize (x + 1)2 ,
subject to x ∈ R,
Easy problem, (x + 1)2 is convex, no constraints. Just solve f ′ (x) = 0, and get the optimal solution x∗ = −1
and the optimal value f ∗ = 0.
3
TMA947 / MMG621 – Nonlinear optimization Lecture 1
minimize (x + 1)2 ,
subject to x ≥ 0.
Now the "f ′ (x) = 0" trick does not work and we need to consider the boundary. We get the optimal solution
x∗ = 0 and the optimal value f ∗ = 1.
minimize − x1 ,
subject to x1 + x2 ≤ 1,
x1 , x2 ≥ 0.
We solve this graphically. So optimal solution is x∗ = (1, 0)T and the optimal value if f ∗ = −1.
x2
1 −∇f = (1, 0)T
x1 + x2 = 1
x∗ = (1, 0)T
x1
0 1
As a first example of an real optimization problem, we consider the diet problem (first formulated by George
Stigler).
For a moderately active person, how much of each of a number of foods should be eaten on a daily basis
so that the person’s intake of nutrients will be at least equal to the recommended dietary allowances
(RDAs), with the cost of the diet being minimal?
We consider the case when the only allowed foods can be found at McDonalds.
For a moderately active person, how much of each of a number of McDonald foods (see Table 1) should
be eaten on a daily basis so that the person’s intake of nutrients will be at least equal to the recom-
mended dietary allowances (RDAs), with the cost of the diet being minimal?
4
TMA947 / MMG621 – Nonlinear optimization Lecture 1
X
minimize c j xj , (2a)
j∈Foods
X
subject to aij xj ≥ bi , i ∈ Nutrients, (2b)
j∈Foods
xj ≥ 0, j ∈ Foods. (2c)
5
TMA947 / MMG621 – Nonlinear optimization Lecture 1
Now consider going on a diet, meaning that we would like to eat as few calories as possible. We reformulate
our model to
X
minimize aCalories,j xj , (3a)
j∈Foods
X
subject to aij xj ≥ bi , i ∈ Nutrients \ {Calories}, (3b)
j∈Foods
xj ≥ 0, j ∈ Foods. (3c)
6
TMA947 / MMG621 – Nonlinear optimization Lecture 1
When first studied by the Stigler, the problem concerned the US military and had 77 different foods in the
model. He didn’t managed to solve the problem to optimality, but almost. The near optimal diet was
• Wheat flour
• Evaporated milk
• Cabbage
• Spinach
• Dried navy beans
7
TMA947 / MMG621 – Nonlinear optimization Lecture 1
Course material