1 Problemformulation
1 Problemformulation
1 / 53
Sources
2 / 53
Optimization problem formulation
3 / 53
Overview of Today’s Lecture
Learning Objectives: After this lecture you are expected to
1 understand how to frame optimization problems
Schedule:
• Design Optimization Example: Air Tank Design
• Mathematical Problem Formulation and Characteristics
• Introduction to Convex Optimization
• Conclusion
4 / 53
i
5 / 53
i
“airtank˙temp” — 2006/6/15 — 10:54 — page 1 — #1
6 / 53
Example: airtank design i
i
“airtank˙temp” — 2006/6/15 — 10:54 — page 1 — #1
Find : dimensions
Minimize : metal volume
Subject to : constraints on:
Total volume ( )
head h Head thickness ( )
Shell thickness ( )
s
Shell length ( & )
shell l
Outer radius ()
r
7 / 53
Example: airtank design i
i
“airtank˙temp” — 2006/6/15 — 10:54 — page 1 — #1
Find : x = [h, l, r , s]
Minimize : 2⇡(r + s)2 h + ⇡[(r + s)2 r 2 ]l
Subject to : ⇡r 2 l 2.12 · 107 cm3
h
r 0.13
s
head h r 0.01
10 cm l 750 cm
s
r + s 150 cm
shell l
r
Physical relevance: x 2 X h, l, r , s > 0
8 / 53
Example: airtank design i
i
“airtank˙temp” — 2006/6/15 — 10:54 — page 1 — #1
Find : x = [h, l, r , s]
Minimize : f = 2⇡(r + s)2 h + ⇡[(r + s)2 r 2 ]l
⇡r 2 l
Subject to : g1 = 2.12·10 7 + 1 0
h
g2 = 0.13r +10
s
head h g3 = 0.01r +10
l
s g4 = 10 + 1 0
l
shell l g5 = 750 10
r +s
r g6 = 150 1 0
Physical relevance: x 2 X h, l, r , s > 0
9 / 53
Design optimization
10 / 53
Optimization
11 / 53
Mathematical problem formulation
12 / 53
Negative null form
Other formulations:
• positive null form (g(x) 0)
• negative unity form (g(x) 1)
• positive unity form (g(x) 1)
13 / 53
Formulation examples
Optimization variables x:
• sizing (dimensions)
• shape (geometry of boundary)
• decisions (routes, propulsive power)
14 / 53
Example: airtank design 1-D
i i
i
“airtank˙temp” — 2006/6/15 — 10:54 — page 1 — #1
Find : x = [H, L, R, s]
Minimize : f = 2⇡(R + s)2 H + ⇡[(R + s)2 R 2 ]L
⇡R 2 L
Subject to : g1 = 2.12·10 7 + 1 0
H
head h g2 = 0.13R + 1 0
s
s
g3 = 0.01R +10
L
shell l g4 = 10 + 1 0
L
r g5 = 750 10
R+s
g6 = 150 10
Physical relevance: x 2 X H, L, R, s > 0
15 / 53
Example: airtank design 1-D
16 / 53
i
Example: airtank design 1-D
i
“plot1Da˙temp”
“plot1Da˙temp” —
— 2006/6/15
2006/6/26 —
— 16:36
16:21 —
— page
page 11 —
—
f(x)
17 / 53
Example: airtank design 1-D
f(x)
g6(x)
g
0
g3(x)
x
18 / 53
Example: airtank design 1-D
f(x)
g6(x)
g
0
g3(x)
infeasible feasible x
19 / 53
Example: airtank design 1-D
f(x)
f g6 = 0
g3 = 0
g6(x)
g
0
g3(x)
x
20 / 53
Example: airtank design 1-D
f(x)
f g6 = 0
g3 = 0
g6(x)
g
0
g3(x)
x
21 / 53
i
Example: airtank design 1-D
i
“plot1Df˙temp” — 2006/6/26 — 16:21 — page 1 —
f(x)
f g6 = 0
g3 = 0
22 / 53
i
f f(x) f g1 = 0 g2 = 0
f(x)
g=0
x x
• constrained optimum • unconstrained optimum
• bounded optimum • interior optimum
23 / 53
“multi˙temp” — 2006/6/15 — 17:12 — page 1 — #1
Multiple local minima: multi-modality
f(x)
f(x)
f f
local global global
local
x x
24 / 53
Example: airtank design 2-D
x 1 , r , x2 , l (2 design variables)
S, H constant parameters
25 / 53
“plot2Da˙temp” — 2006/6/15 — 21:15 — page 1 — #1
Example: airtank design 2-D
9 10
8
6 7 g1 = 0
f g1 < 0
x2 x2
feasible
x1 x1
objective function constraint g1
26 / 53
Example: airtank design 2-D
x2
g1
x1
27 / 53
Example: airtank design 2-D
g2 g3 g6
x2
g5
g4
g1
x1
28 / 53
Example: airtank design 2-D
g2 g3 g6
x2
g5
F feasible
domain
g4
g1
x1
29 / 53
Example: airtank design 2-D
optimum
g2 g3 g6
x2
g5
F
g4
g1
x1
30 / 53
Terminology
optimum
g2 g3 g6 Terminology
• feasibility
x2 • redundancy
g5
• domination
F
• well-boundedness
• uniqueness
g4
• active constraints
g1
• convexity
x1
31 / 53
Constraint activity theorem
32 / 53
Constrained optimum - 2D examples
f
f F
x2 F x2
g
P2 P2
P1 x1 P1 x1
33 / 53
Constrained optimum - 2D examples
f f
x2 F x2 F
P2 P2
P1 x1 P1 x1
34 / 53
i
“unc˙overv2D1˙temp” — 2007/4/4 —“unc˙overv2D2˙temp”
17:56 — page 1 —
Overview well-bounded problems
2-D examples
f f
x2 x2
x1 x1
35 / 53
i
“con˙overv2D1˙temp” — 2007/4/4 — 17:56“con˙overv2D2˙temp”
— page 1 — #1 — 20
Overview well-constrained problems
2-D examples
f
x2 x2
x1 x1
The number of active The number of active
constraints is less than the constraints equals the
number of variables. number of variables.
36 / 53
Normalization
Why is it important?
1 Speeds up convergence considerably
2 Sometimes even enables the solution of the problem
Consider example of min f (x) = x > Qx with Q = Q > ⌫ 0.
Gradient descent: xk+1 = xk s · rf (xk ).
2
Optimal s = max + min leads to convergence rate
⇣ ⌘k
kxk x ? k max min
max + min
· kx0 x ? k.
Suppose problem not normalized, then could have max min
1
(matrix ill-conditioned) and difficult convergence. For instance,
with RTOL= 10 6 and ratio equal to 1010 , you would converge in
7 · 1014 steps!
Instead, for ratio equal to 4, converge in 27 steps.
How to do it?
1 Normalize variables xn = x/x̄, so their magnitude is around 1
2 Normalize constraints and objective to have factors around 1
37 / 53More in the exercises.
Problem properties: smoothness
Function f (x) : Rn ! R is
@f
— differentiable if all @xi exist
@f
— continuously differentiable if all @xi continuous
@2f
— twice differentiable if all @xi @xj exist
@2f
— twice continuously differentiable if all @xi @xj continuous
38 / 53
i
Non-smoothness Reformulation - Max
i
“max˙temp” — 2006/6/25
f(x)
Non-smooth problem:
f
min max(0, x)
x2R
x
Reformulated: x-z<0
min z z
(x,z)2R2
s.t. x z 0
z 0 z>0 x
39 / 53
i
Non-smoothness reformulation - abs
i
“abs˙temp” — 2006/6/25 —
f(x)
Non-smooth problem:
f
min |x|
x2R
x
z
min z
(x,z)2R2
s.t. x z 0
x z 0 x
40 / 53
i
Non-smoothness reformulation - min
i
“max˙con˙temp” — 2006/6/2
41 / 53
Problem Properties: Convexity
convex function convex feasible domain
f x2
F
x x1
If
1 The objective function is a convex function over F
2 The feasible domain is convex (= h affine and g convex
then
1 The problem only has global minima
2 which can be computed in polynomial time
42 / 53
Convexity
43 / 53
Convexity
44 / 53
Quiz
45 / 53
Formulation Concepts
Optimization variables:
• single-variable or multi-variable
Objective function:
• minimization or maximization
• single-objective or multi-objective
Constraints:
• unconstrained or constrained
• equality or inequality
46 / 53
Formulation Concepts
Optimization variables:
• Domain: {0, 1}, N, N⇤ , Z, R, R+
47 / 53
i
Formulation classes:
i
linear program “LP˙temp” — 2006
Example: x2 g2
48 / 53
Formulation classes:
i
quadratic program “QP˙temp” — 2006
49 / 53
Formulation classes: non-linear least squares
i
Non-linear least squares (NLSQ) problem:
i
“NLLS˙temp” — 200
• Non-linear objective function with special structure
• No constraint functions
• Continuous design variables
1 P
m
f (x) = 2 rj2 (x)
j=1
y
Example:
(x, t) = x1 + tx2 + e x3 t
P
m
f (x) = 12 [yj (x, tj )]2
j=1
t1 t2 t3 t4 t5 t
50 / 53
i
51 / 53
i
“airtank˙temp” — 2006/6/15 — 10:54 — page 1 — #1
52 / 53
Conclusion
Take-home Messages:
• Optimization problems consist of variables, objective and
constraints
• The mathematical formulation is crucial (more next week)
• Normalizing variables and functions can improve/enable
numerical convergence
• Convex problem () Convex objective and constraint set
=) It has only global minima, which can be efficiently found
• There are different classes of problems; each class has
dedicated efficient solution algorithms
For next week:
• Do Computer Assignments 0 and 1
• Read 2.1-2, 3.1-2 and 4.1-4 from Convex Optimization by
Boyd & Vandenberghe
53 / 53