Professional Documents
Culture Documents
METAHEURISTICS
Introduction
433
Nature of metaheuristics
Example: Maximize
434
436
437
Nature of metaheuristics
How to overcome this drawback?
What happens in large problems with many
variables?
Metaheuristic: general solution method that
orchestrates the interaction between local
improvement procedures and higher level strategies
to create a process to escape from local optima and
perform a robust search of a feasible region.
A trial solution after a local optimum can be inferior to
this local optimum.
438
Solutions by metaheuristics
439
Metaheuristics
Advantage: deals well with large complicated
problems.
Disadvantage: no guarantee to find optimal solution
or even a nearly optimal solution.
When possible, an algorithm that can guarantee
optimality should be used instead.
Can be applied to nonlinear or integer programming.
Most commonly it is applied to combinatorial
optimization problems.
440
441
442
443
Solving example
444
446
Example
1-3-2-4-5-6-7-1
1-2-4-3-5-6-7-1
1-2-3-5-4-6-7-1
1-2-3-4-6-5-7-1
Distance = 68
Distance = 65
Distance = 65
Distance = 66
447
Tabu Search
445
Example
448
Includes a local search procedure, allowing nonimprovement moves to the best solution.
Referred to as steepest ascent/mildest descent
approach.
To avoid cycling a local optimum, a tabu list is added.
Tabu list records forbidden moves, knows as tabu
moves.
Thus, it uses memory to guide the search.
Can include intensification or diversification.
Joo M. C. Sousa, U. Kaymak, C.A. Silva, A. Moutinho
449
450
1.
2.
3.
4.
451
Adding constraints
452
453
Solving example
454
Delete
BE
CE
75 + 200 = 275
BE
AC
70 + 200 = 270
BE
AB
60 + 100 = 160
CD
AD
60 + 100 = 160
CD
AC
65 + 300 = 365
DE
CE
85 + 100 = 185
DE
AC
80 + 100 = 180
DE
AD
75 + 0
Cost
= 75
Minimum
455
Iteration 2
Add DE to network.
Delete AD from network.
Add DE to tabu list
Add
Delete
AD
DE*
Cost
(Tabu move)
AD
CE
AD
AC
85 + 100 = 185
BE
CE
100 + 0 = 100
80 + 100 = 180
BE
AC
95 + 0 = 95
BE
AB
85 + 0 = 85
CD
DE*
60 + 100 = 160
CD
CE
95 + 100 = 195
Minimum
*A tabu move;
456
Iteration 3
457
Optimal solution
Add
Delete
AB
BE*
(Tabu move)
Cost
AB
CE
100 + 0 = 100
AB
AC
95 + 0 = 95
AD
DE*
60 + 100 = 160
AD
CE
95 + 0
AD
AC
90 + 0
CD
DE*
70 + 0
= 70
CD
CE
105 + 0
= 105
= 95
= 90
Minimum
*A tabu move;
458
460
459
Solving problem
Initial trial solution: 1-2-3-4-5-6-7-1 Distance = 69
Iteration 1: choose to reverse 3-4.
Deleted links: 2-3 and 4-5
Added links (tabu list): 2-4 and 3-5
New trial solution: 1-2-4-3-5-6-7-1 Distance = 65
Deleted links: 4-3 and 6-7 (OK since not in tabu list)
Added links: 4-6 and 3-7
Tabu list: 2-4, 3-5, 4-6 and 3-7
New trial solution: 1-2-4-6-5-3-7-1 Distance = 64
461
Solving problem
462
Iteration 4
463
464
465