Lecture 1 - Introduction To Optimization PDF
Lecture 1 - Introduction To Optimization PDF
Lecture 1
Heuristic Optimization Methods:
Introduction to Optimization
Slides prepared by Nina Skorin-Kapov
Optimization models
2
Why optimization?
3
Why heuristics?
4
Solving optimization problems
Identify
Model Optimize
(formulate)
the the
the
problem problem
problem
5
Solving optimization problems
6
Identifying the problem
7
Modeling the problem
9
Optimization problems
10
Global optimum
Global optimum:
A solution s S is a global optimum if
s S , f ( s) f ( s) (maximization problem)
11
Local vs. Global Optimum
Minimization problem
f(s)
Global
Local optima optimum
sS s*
12
Optimization models
Other:
Modeling uncertainty
Modeling dynamicity
Modeling robustness
13
Mathematical program
g m ( x1 , , xn ) bm
h1 ( x1 , , xn ) = c1
Equality constraints (Rn → R)
h p ( x1 , , xn ) = c p
x = (x1 ,..., xn ) n Vector of decision variables
Solution space:
S = x n such that x fulfils the constraint s
S n
Rn
S
15
Some classifications
16
Some classifications
17
Linear programming (LP)
18
Linear programming (LP)
min cT x
Canonical form of In matrix subject to :
an LP problem form:
Ax b
min c1 x1 + ... + cn xn x0
Vector of
subject to : continuous
xT = ( x1 ,..., xn ),
decision
a11 x1 + ... + a1n xn b1 variables cT = (c1 ,..., cn ),
Constant bT = (b1 ,...,bm ),
... vectors
a11 ... a1n
am1 x1 + ... + amn xn bm Constant A = ... ... ...
matrix a
x1 0,..., xn 0 m1 ... amn
19
Linear programming (LP)
Each inequality constraint can be transformed into:
-one equality constraint with a new decision variable (slack variable)
AND
-one inequality constraint: the slack variable must be non-negative
min 5 x1 + 3 x2 − 6 x3
min 5 x1 + 3 x2 − 6 x3
subject to :
subject to : x2 + 10 x3 = 9
x2 + 10 x3 = 9 equivalent to
x1 + 3 x2 + x4 = 1
1
x + 3 x 2 1 x 0, x 0, x 0
x 0, x 0, x 0 1 2 3
1
x4 0
2 3
slack variable:
-one per inequality constraint
-does not appear in the objective function
20
Linear programming (LP)
min 5 x1 + 3 x2 − 6 x3
min 5 x1 + 3 x2 − 6 x3
subject to :
subject to : x2 + 10 x3 9
x2 + 10 x3 = 9 equivalent to
x2 + 10 x3 9
1
x + 3 x 2 1 x + 3x 1
x 0, x 0, x 0 1 2
1
x1 0, x2 0, x3 0
2 3
21
LP Example
22
LP Example – LP formulation
Objective
Max 2.25x1 + 4x2
Function
s.t. x1 < 7
Problem specific
x1 + 2x2 < 10
constraints
x1 + x 2 < 8
25
Constraint programming (CP)
26
CP vs. IP Example
n variables
CP:
alldifferent ( y1 , , yn ) yi=the index of the location
where object oi is assigned
(B)IP
1, oi assigned l j n2 variables
xij =
0, otherwise
27
CP vs IP
28
Other models
Uncertainty
Input data is subject to noise
Ex: variable processing in scheduling problems
Use stochastic programming
Dynamicity
Input data changes over time (may or may not be known in
advance)
Ex: dynamic routing
The objective function is deterministic but changes over time
Robustness
Decision variables may change after the solution has been
implemented
The solution should be acceptable in the presence of small
changes
29
Combinatorial optimization
30
Examples of classical combinatorial
optimization problems
31