Professional Documents
Culture Documents
3
Local search
• Assumes initial solution as fixed point
• Generates the neighborhood and compares
• If better ->
• Else finished!
• Looks perfect
• But …
4
Local search
• Unfavorable solution space
• Practically locked within initial solution
• Local optimum can be actually a very bad one
• Highly dependent on solution space
• Can be solved with some “tricks”
• Deliberately accept worse result to escape
• Looks like a gambling decision
5
Metaheuristics
• Way to tackle aforementioned problems
• Combination of techniques
• For better exploration of solution space
• But doesn’t guarantee optimality either!
• More complex implementation
• Criticized in the no free lunch theorems*
• Yet, highly used
7
VNS - Overview
• Relatively young metaheuristic (1995)
• Systematically change the neighborhood
• Based on three facts:
A local minimum w.r.t. one neighborhood structure is not
necessary so with another
A global minimum is local minimum w.r.t. all possible
neighborhood structures
For many problems local minima w.r.t. one or several
neighborhoods are close to each other
10
Variations and descendents of VNS
• Variable neighborhood descent (VND)
• Reduced VNS (RVNS)
• Skewed VNS (SVNS)
• General VNS (GVNS)
• VN Decomposition Search (VNDS)
• Parallel VNS (PVNS)
• Primal Dual VNS (P-D VNS)
• Reactive VNS
• Backward-Forward VNS
• Best improvement VNS
• Exterior point VNS
• VN Simplex Search (VNSS)
• VN Branching . . . .
11
Scientific Paper on VNS
New heuristics for one-dimensional bin packing
By
Work at the American University of Beirut
Also work as consultants in industry
More then 10 cooperative papers
Scheduling, packing & cutting problems
• Shaking:
k-th neighborhood – performing k random moves
Element can be moved only once per neighborhood
All moves are treated as equal, without analyzing
Of course, there is no point to swap elements of the same size!
15
VNS for BPP
• OK, next is local search
• Metric for finding a local optimum
Transfers f [l ( ) ti ]2 [l ( ) ti ]2 l ( )2 l ( )2
Swaps f [l ( ) ti t j ]2 [l ( ) ti t j ]2 l ( )2 l ( )2
0.4
0.4 f (0.6 0.4)2 (0.5 0.4)2 0.52 0.62 0.24
0.5 0.5
0.2 0.2
0.2 0.3
0.3 0.2 f (0.7 0.2 0.3)2 (0.6 0.3 0.2)2 0.72 0.52 0.15
0.5 0.5
0.3 0.3
17
The experiment & the results
• Borland Pascal on Pentium II 400MHz
• Problem classes:
U class – uniform distribution (20, 100) into bins of 150
T class – “triplets” of elements from (25, 50) into bins of 100
B class – divided in B1, B2, B3 problems, computationally very hard
B1 – 704/720 solved optimally, items from (50, 500)
B2 – 477/480 solved optimally, items from (50, 500)
B3 – uniform distribution (20k, 35k) into bins of 100k, 3/10 solved optimally
18
The experiment & the results
• MBS’ + VNS vs the rest
Algorithm hits inferior abs.dev.av abs.dev.max rel.dev.av rel.dev.max time av. time max.
20
21