Optimization Technique
Optimization Technique
College of Engineering
Electronics and Communications Dep.
Prepared by:
ADNAN
ZAID
SHAHAD
Supervised by:
Assistant Prof. Dr.Dhirgham K. Naji
Agenda
- Tabu criterion
Tabu Tenure
- Aspiration
- Examples of use
Knapsack
TSP
- Intensification
- Diversification
Terminology:Neighborhoods
• To make sure we understand this
correctly:
• A neighborhood is a set of solutions
that are close to one given solution
A set of solutions that can be reached from
another by making only one move
N(x) usually denotes the neighborhood of x
Tabu
• The word tabu (or taboo) comes
from Tongan
– a language of Polynesia
– used by the aborigines of Tonga island
to indicate things that cannot be
touched because they are sacred
Tabu Search
• Tabu Search:
Cut off the search from parts of the search
space (temporarily)
Guide the search towards other parts of
the search by using penalties and bonuses
General Formulation
Some Critical Choices
• Choice of neighborhood, N
• Definition of the tabu memory
• How to select the candidate list
• The definition of the evaluation function
– Improvement in solution values
– Tabu criteria
– Aspiration criteria
– Long term strategies
Basic Tabu Search
Yes
Final solution
Tabu Attribute Selection
• Attribute
A property of a solution or a move
5 5
2 3 2 3
7 7
1 1
4 6 4
6
Example 2
Costs
B B
20 30 20 30
10 5 10 5
A C E A C E
25 25
15 40 15 40
D D
Constraints 1: Link AD can be included only if link DE also is included. (Penalty: 100)
Constraints 2: At most one of the three links – AD, CD, and AB – can be included.
(Penalty of 100 if selected two of the three, 200 if all three are selected.)
Iteration 1
Cost=50+200 (constraint
penalties)
BE CE 75+200=275
B
20 30 BE AC 70+200=270
10 5 BE AB 60+100=160
A C E
CD AD 60+100=160
25
CD AC 65+300=365
Delete 15 D
40 Add
DE CE 85+100=185
DE AC 80+100=180
DE AD 75+0=75
Constraints 1: Link AD can be included only if link DE also is included. (Penalty: 100)
Constraints 2: At most one of the three links – AD, CD, and AB – can be included.
(Penalty of 100 if selected two of the three, 200 if all three are selected.)
Tabu list: DE
Iteration 2
Cost=75
BE CE 100+0=100
25
15 40 Tabu BE AC 95+0=95
D
BE AB 85+0=85
CD DE* 60+100=160
CD CE 95+100=195
Constraints 1: Link AD can be included only if link DE also is included. (Penalty: 100)
Constraints 2: At most one of the three links – AD, CD, and AB – can be included.
(Penalty of 100 if selected two of the three, 200 if all three are selected.)
Tabu list: DE & BE
Iteration 3
Cost=85
10 5 AB AC 95+0=95
A C E
AD DE* 60+100=160
25 Add
15 40 Tabu AD CE 95+0=95
D
AD AC 90+0=90
Delete
CD DE* 70+0=70
CD CE 105+0=105
Constraints 1: Link AD can be included only if link DE also is included. (Penalty: 100)
Constraints 2: At most one of the three links – AD, CD, and AB – can be included.
(Penalty of 100 if selected two of the three, 200 if all three are selected.)
B Optimal Solution
20 30
Cost = 70
10 5
A C E Additional iterations only find
25 Inferior solutions
15 40
D
Current Solution
Neighbor
Infeas.
Neighbor
Variables flipped so far: none
1001 1101
0001 0101
12 23
7 18
Infeas.
Neighbor
Variables flipped so far: 3
Neighbor
Infeas.
Neighbor
Variables flipped so far: 3
Neighbor
Infeas.
Neighbor
Neighbor
Infeas.
Neighbor
Variables flipped so far: 3, 2
Solution value
Solution space
Aspiration Criterion
• Intensification:
Choose Sf to be a small subset of elite
solutions
• E.g., that have overlapping attributes
Can have several such subset
• Partitioning, clustering-analysis
Whips and Carrots
• Intensification:
Moves to solutions containing attributes with a
high frequency among the elite solutions are
encouraged
TSP-example: g(x)=f(x)-w2ij
TS Example: TSP
i, j i j i, j 1, n
2 3
1 2 3 4 5 6 7
1
4
6
Move: Exchange 5
in permutation 2
7
3
2 vector
6 7 3 4 5 1 1
4
6
Move: Exchange(5,6) 5
2 3
7
2 5 7 3 4 6 1
1
4
6
TSP Example
n
• Number of neighbors: 2
• For every neighbor: Move value
k 1 f (ik 1 ) f (ik ), ik 1 N (ik )
• Aspiration criterion
new best solution
TSP Example: Data structure
2 3 4 5 6 7
1 0 2 0 0 0 0
2 0 3 0 0 0
3 0 0 0 0
4 1 0 0
5 0 0
6 0
TSP Example: Tabu Criteria/Attributes
4
6
1 2 3 4 5 6 7
2 4 7 3 5 6 1
TSP Example: Iteration 0
Tabu list:
2 3 4 5 6 7
1 0 0 0 0 0 0
2 0 0 0 0 0
3 0 0 0 0
4 0 0 0
5 0 0
6 0
TSP Example: Iteration 1
Tabu list:
2 3 4 5 6 7
1 0 0 0 0 0 0
2 0 0 0 0 0
3 0 0 0 0
4 3 0 0
5 0 0
6 0
TSP Example: Iteration 2
Exchange Value
Candidate list: 3.1 -2
2.3 -1 Choose move (3,1)
3.6 1
7.1 2 Update tabu list
6.1 4
Tabu list:
2 3 4 5 6 7
1 0 3 0 0 0 0
2 0 0 0 0 0
3 0 0 0 0
4 2 0 0
5 0 0
6 0
TSP Example: Iteration 3
Frequency of moves