Lecture 4.b - Metaheuristics - Basic Concepts
Lecture 4.b - Metaheuristics - Basic Concepts
Lecture 4.b
Heuristic Optimization Methods:
Metaheuristics: Basic Concepts
Slides prepared by Nina Skorin-Kapov
Metaheuristics
Some Classifications
Zavod za telekomunikacije 2
Optimization methods
University of Zagreb, Croatia
Exact Approximate
A*
methods methods
Simplex- Constraint
based for LP programming Approximation
algorithms
Heuristic
Branch and Bound, Dynamic
Cut , Price (B&B, programming algorithms
B&C, B&P)
Improvement (meta)heuristics
Constructive heuristics
• Local search
• Greedy algorithms
•Nature inspired
• Tabu search, Genetic
Hybrid methods
algorithms, Simmulated
• GRASP Annealing, Ant colony
•Problem specific
heuristics
Zavod za telekomunikacije 3
Metaheuristics
University of Zagreb, Croatia
Zavod za telekomunikacije 4
Diversification vs. Intensification
University of Zagreb, Croatia
Diversification Intensification
Zavod za telekomunikacije 5
Some classifications…..
University of Zagreb, Croatia
Zavod za telekomunikacije 6
Some classifications…..
University of Zagreb, Croatia
Zavod za telekomunikacije 7
Some classifications…..
University of Zagreb, Croatia
Stochastic: Deterministic:
Stochastic: Deterministic:
• Random rules are applied during •Solves an optimization
the search problem by making
• A different final solution can be deterministic decisions
obtained from the same initial
solution! This must be taken into •The same initial solution will
account in performance evaluation always lead to the same final
solution
Zavod za telekomunikacije 8
Some classifications…..
University of Zagreb, Croatia
Zavod za telekomunikacije 9
Main design concepts
University of Zagreb, Croatia
Zavod za telekomunikacije 10
Solution Representation
University of Zagreb, Croatia
Zavod za telekomunikacije 12
Solution Representation classes
University of Zagreb, Croatia
1 0 1 1 1 1 0 0 0 1 0 1 0 1
Zavod za telekomunikacije 14
Example: vector of discrete values
University of Zagreb, Croatia
Zavod za telekomunikacije 17
Example: permutation vector
University of Zagreb, Croatia
9 6 8 7 5 1 4 3 2 0
Zavod za telekomunikacije 18
Example: N-Queens problem
University of Zagreb, Croatia
Zavod za telekomunikacije 19
Example: 8-Queens problem
University of Zagreb, Croatia
Zavod za telekomunikacije 20
Representation space variations
University of Zagreb, Croatia
Zavod za telekomunikacije 22
Random Key encoding
University of Zagreb, Croatia
Zavod za telekomunikacije 23
Random Key encoding example
University of Zagreb, Croatia
Initial rank: 1 2 3 4 5 6 7
Permutation: 7 5 1 4 2 3 6
Zavod za telekomunikacije 24
Representation-Solution mapping
University of Zagreb, Croatia
Zavod za telekomunikacije 26
Example: Job-shop scheduling
University of Zagreb, Croatia
Zavod za telekomunikacije 27
Example direct encoding of JSP
University of Zagreb, Croatia
Op 1 Op M
Op11 Op21 OpM1
M3(5-8) M6(9-16) M1(21-40)
Job 1
Op12 Op22
M3(1-4) M1(13-20)
Zavod za telekomunikacije 28
Example indirect encoding of JSP
University of Zagreb, Croatia
1 J
Job i … Job k
Zavod za telekomunikacije 29
Example indirect encoding of JSP
University of Zagreb, Croatia
Zavod za telekomunikacije 30
Main design concepts
University of Zagreb, Croatia
Zavod za telekomunikacije 31
Fitness/Evaluation function
University of Zagreb, Croatia
Zavod za telekomunikacije 32
Straightforward fitness functions
University of Zagreb, Croatia
Zavod za telekomunikacije 33
Guiding fitness functions
University of Zagreb, Croatia
Zavod za telekomunikacije 34
Guiding fitness functions
University of Zagreb, Croatia
Straightforward fitness
function:
1, if F is TRUE
Fitness and objective functions are the same f =
Poor differentiation between solutions→
0, otherwise
almost all solutions have f value 0
Guiding fitness function:
The fitness is number of satisfied clauses f (s) = number of clauses
in the solution → max fitness guides the in F satisfiedby solutions
search procedure (MAX-SAT model)
Zavod za telekomunikacije 35
Fitness functions with representation decoding
University of Zagreb, Croatia
Zavod za telekomunikacije 36
Example - the minimum Steiner tree problem
University of Zagreb, Croatia
Non-terminal nodes: [a d e f g]
(3) e
Representation (genotype): b
s = [0 1 0 1 1] (4)
(3) (1) (3)
h
Solution (phenotype): d (2) f
a
the MST shown
(1) (2)
Fitness function: (4) (1) (2)
f(s)=8 c
(4)
g
Zavod za telekomunikacije 38
Interactive fitness function
University of Zagreb, Croatia
Zavod za telekomunikacije 40
Meta-modeling (1/2)
University of Zagreb, Croatia
Zavod za telekomunikacije 41
Meta-modeling (2/2)
University of Zagreb, Croatia
Model selection:
A trade-off between the complexity of the model or
approximation and its accuracy
Beneficial to use multiple models
Can use multiple local models instead of a
global model can also be beneficial