Large Neighborhood Search (LNS) : Metaheuristics
Large Neighborhood Search (LNS) : Metaheuristics
search (LNS)
METAHEURISTICS
Achmad P. Rifai
= Number of
Pseudocode of LNS
1 Input: iterations
2 Generate an initial solution = degree of
3 Calculate the fitness values of the solution destruction
4 While
5 Perform destroy operation
6 Perform repair operation
7 Perform adjustment to the new solution
8 Calculate the fitness values of the solution
If < then ,
99 End
End while
while
10
10 Output: and
4 1
5
depot
6
2
2. Create an initial solution
All nodes are only visited 7
once
7 4 5 1 6 3 2 8 8 3
Example 3
5. Perform destroy operation
If
Random removal
Else
Longest distance removal
6. Perform repair operation and adjustment
If
Random insertion
Else
Greedy algorithm
Example 3
8. Calculate the fitness values of the solution
If <
Else
9. Update
10. Record the best-known solution and minimum obtained
objective values, show the results
Adaptive LNS
•
Previously, we randomly select the operator for destroy and
repair operations
• In ALNS the operators are selected based on their historical
performance
𝑤 − −
𝑑 , 𝑡 +1 =𝛼 (𝑤 𝑑 , 𝑡 )+(1 − 𝛼 ) 𝛽
Z 1 if 𝑓 ( 𝑋𝑛𝑒𝑤 )≤ 𝑓 ( 𝑋 )
𝛽=
{ Z 2 if 𝑓 ( 𝑋𝑛𝑒𝑤 )> 𝑓 ( 𝑋 )
=decay parameter, controls the sensitivity or weight to change. The higher its
value, the more reluctant the weights to change.
= score to change the weights based on the performance of operator in previous
iteration
References
• Gendreau, M., & Potvin, J. Y. (2010). Handbook of metaheuristics. Springer, Boston,
MA.
• Pisinger, D., & Ropke, S. (2010). Large neighborhood search. In Handbook of
metaheuristics (pp. 399-419). Springer, Boston, MA.
• Ropke, S., & Pisinger, D. (2006). An adaptive large neighborhood search heuristic
for the pickup and delivery problem with time windows. Transportation science,
40(4), 455-472.
• Rifai, A. P., Nguyen, H. T., & Dawal, S. Z. M. (2016). Multi-objective adaptive large
neighborhood search for distributed reentrant permutation flow shop scheduling.
Applied Soft Computing, 40, 42-57.