Chap 1 PDF
Chap 1 PDF
Chap 1 PDF
Implementation
E-G. Talbi
Professor – Polytech’Lille -
Team manager –INRIA – University of
Lille - CNRS –
France
talbi@lifl.fr
Wiley, 2009 (596pp)
ISBN: 978-0-470-27858-1
Optimization models
Optimization methods
z Exact algorithms / Approximate algorithms
z When using metaheuristics?
z Greedy heuristics
Main common concept of metaheuristics
z Representation
z Objective function
Constraint handling
Parameter tuning
Performance analysis of metaheuristics
Software frameworks for metaheuristics
z ParadisEO framework
Importance of models
P class:
z Shortest path, network flow
z Spanning tree, bipartite matching, linear programming, …
NP-complete:
z Sequencing and scheduling problems: flow-shop, job-shop,
open-shop, …
z Assignment and location problems: QAP, GAP, p-median, …
z Grouping problems: clustering, graph partitioning, coloring, …
z Routing and covering problems: set covering, VRP, …
z Knapsack, cutting and packing problems
Dynamic optimization
z Deterministic objective function, varies over time
z e.g. VRP – new demand Æ Track the optimal solution
z Multi-periodic optimization: periodic change (change known
a priori)
z e.g. planning problem (traffic, incoming technology)
n n
∑
i =1
4
cos ( x i
)−2 ∏
i =1
cos 2 ( x)
i
Non linear Function
G 2( x ) = Global Optimum unknown
n
∑ix
2
i
i =1
n n
∏ x ≥ 0.75
i =1
i ∑ x ≤ 7.5n i
0≤ x ≤ 10
i
i =1
Ex : Timetabling :
z List of courses, classes, students / classes, professor /
classes, available rooms, capacity of rooms, logistics of
rooms (video, computer, microphone, …).
Objectives : Constraints :
z Min (number of sites) Covering
Handover
z Min (interferences)
Search space :
568 sites candidates Î 23689160 solutions
and ~ 600.109 choices for one antenna !
Cost Evaluation (pop : 100, Gen : 105,
cost = more than one year !!)
1 omni or 1-3 sectorial
Metaheuristics E-G. Talbi
Impact of the parameters via
simulation
Cell = zone covered by a BTS
Limited Traffic for a site (technological constraint)
Many sites are necessary
z Covering
z Handover (mobility)
Min Interferences
Input
z Capacity K
z n items with weights wi and values vi
Goal
z Output a set of items S such that
z the sum of weights of items in S is at most K
z and the sum of values of items in S is maximized
Example :
( x1 ∨ x2 ) ∧ ( x1 ∨ x3 ) ∧ ( x1 ∨ x4 ) ∧ ( x 2 ∨ x 4 ) ∧ ( x2 ∨ x5 ) ∧ ( x2 ∨ x6 ) ∧ F
e
Color Largest Degree First (LF Algorithm)
c
Welsh and Powell [1967] d
Order by degree
Node : b, e, a, f, c, d
Color : 1 2 3 3 2 1
Metaheuristics E-G. Talbi
Ex : Constructive algorithms (Graph
coloring)
Merging Non-adjacent vertices
Dutton and Brigham [1981]
DB Algorithm
e
c
d
(a, c) (a, f) (b, d) (c, d) (c, e) (d, f)
1 2 2 0 2 1
2 1 2
{a,f} {a,f}
{a,f}
b
e e {b,d}
{c,e} {b,d}
d c Metaheuristics c E-G. Talbi
When using Metaheuristics?
Representation-solution mapping
Direct versus indirect encodings
1 3 5 2 6 4 7 8
Permutation : a configuration
Messy representations
Non-coding regions
Diploid representations
Quantum representations
Mixed representations
G = (S,A)
coloring f : S → C such as (s,t) ∈ A ⇒
f(s) ≠ f(t)
Chr(G) = min card f(S), chromatic number
of G
f
Chr(G) = 3
2 1 2
2 2
2 3 4
2 1 2
c 5 d
1 1
Metaheuristics E-G. Talbi
Steiner problem in a graph
1 1
a 1 b
2 1 2
2 2
2 3 4
2 1 2
c 5 d
1 1
Metaheuristics E-G. Talbi
Steiner problem in a graph
Characterization of a solution
X ⊆ V: sub-set of non obligatory vertices
Steiner Tree
⇑⇓
Tree which connects the terminal vertices (obligatory using a sub-
set X of non-obligatory vertices
|V| = p
Solution: s = (s1,s2,…,si,…,sp) ⇔ X
Representation by a 0-1 indication of appartenance
si = 1, if the i-th vertice non-obligatory is used (i.e., if
vi ∈ X)
si = 0, otherwise
Diversity
N=3
w1
w4
w2
w5 Items to pack
Bin capacity C
customers
routes
Depot Depot
(a) (b)
Constraints :
Objectives :
8
6
3
1 5 7
2
4
w1=5 w2=4 w3=6 w4=3 w5=5 w6=8 w7=5 w8=9 knapsack with a
u1=3 u2=5 u3=7 u4=4 u5=2 u6=9 u7=5 u8=8 capacity of 15
13 16
A B C
14 3 4
Constructed solution
6 8
5
19 15
I
G H