Professional Documents
Culture Documents
Question 1
Consider the following function:
f(x) = x12 + 3x1x2 + (x2 – 1)2
Is this function convex? Explain.
1
1/30/2013
Question 2
Consider minimizing the following function:
f(x) = x12 + 3x1x2 + (x2 – 1)2
For each of the following candidate solutions x*, use the first order necessary
condition, the second order necessary condition, and/or the second order
sufficient condition to evaluate x* as a potential local minimum.
• x* = [0 0]’
• x* = [6/5 -4/5]’
2
1/30/2013
Types of Algorithms
• Exact algorithms produce optimal solutions (or as
close to optimal as you want).
• Approximation algorithms produce near-optimal
solutions.
– Solution quality is guaranteed a priori for all
problem instances.
– Performance guarantees can be constant-
factor, or they can be a function of the
problem size.
• Heuristics produce solutions of unknown quality.
– Bounds can sometimes be derived a posteriori.
5
Heuristics
• Greedy strategy
• Local search
• Simulated annealing
• Tabu search
• Genetic algorithm
3
1/30/2013
Min/Max Decomposition
1. “Guess” an initial solution y.
2. Solve the Subproblem using this y.
– Accumulate another extreme point.
– Update upper bound if possible. If the upper bound is updated, set
y* =y (i.e., save the current y as a possible optimal solution).
– If upper bound = lower bound, stop.
Return y* as the optimal solution.
3. Solve the Master Problem using all accumulated extreme points.
– Update lower bound.
– If upper bound = lower bound, stop.
Return y* as the optimal solution.
4. Return to Step 2. Solve the Subproblem using the optimal y from Step 3.
s.t. u1 u2 1
u1 , u2 0
• Master problem: the outer (min) optimization problem,
with any subset of the inner problem’s extreme points.
min z
y,z
4
1/30/2013
Benders Decomposition
• Benders decomposition is used for problems in which
variables can be separated into a vector x of “easy”
variables and a vector y of “hard” variables.
– Given values of the “hard” variables y, it is easy to
optimize with respect to the “easy” variables x.
• Consider the problem
z* min f ( y ) c ' x
x, y
s.t. Ax By b
x0
y Y
Benders Decomposition
• For a fixed y, the “easy” subproblem is:
h( y ) f ( y ) min c ' x
x
s.t. Ax b By
x0
s.t. A ' u c
5
1/30/2013
s.t. x1 x2 1
2x1 3x2 12 y1
x2 3 y2 1
x1 0
y1 , y2 {0,1}
Let y1, y2 be the “hard” variables and x1, x2 be the “easy” variables.
a) Write the primal subproblem.
6
1/30/2013
• Sufficient conditions:
If A is a sufficient condition for B, then:
– If A is true, B is definitely true.
– If A is not true, B may or may not be true.
7
1/30/2013
Optimality Conditions
• First order necessary condition:
8
1/30/2013
Convex Functions
• A function f(x) is convex if:
Convex Sets
• A set S is convex if
x (1 ) x S x , x S ; [0,1]
18
9
1/30/2013
10
1/30/2013
Consequences of Convexity
• If f is convex,
every local minimum is a global minimum.
• If f is convex and x* is a stationary point,
then x* is a global minimum.
• If f is strictly convex,
then there exists at most one global minimum.
f ( x (1 ) x) f ( x ) (1 ) f ( x) x , x, [0,1]
Descent Directions
• A direction d is a descent direction at a point x if
f(x)’d < 0.
11
1/30/2013
Steepest Descent
12
1/30/2013
x14 2 x13
min2 f x x22
xR 4 3
c) Evaluate each of the following candidate solutions x*. In particular, state whether or not
x* can be confirmed as a local minimum or a global minimum of f(x), and give a rationale
for your statement. If you’re sure that x* is not local minimum of f(x), find a direction d
that is a descent direction at x*.
x* = [0 0]’ x* = [-2 0]’ x* = [1 1]’
13