DM841 Discrete Optimization Part 2 – Lecture 4
Beyond Local Search
Marco Chiarandini
Department of Mathematics & Computer Science University of Southern Denmark
Beyond Local Search Marco Chiarandini Department of Mathematics - - PowerPoint PPT Presentation
DM841 Discrete Optimization Part 2 Lecture 4 Beyond Local Search Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark Local Search Revisited Outline 1. Local Search Revisited Components 2
Department of Mathematics & Computer Science University of Southern Denmark
Local Search Revisited
2
Local Search Revisited
3
Local Search Revisited
◮ Parameters ◮ Variables and Solution Representation
◮ Soft constraint violations ◮ Evaluation function: soft constraints + objective function
◮ Neighborhoods ◮ Delta evaluations
4
Local Search Revisited
5
Local Search Revisited
◮ Random Walk ◮ First/Random Improvement ◮ Best Improvement ◮ Min Conflict Heuristic
6
Local Search Revisited
◮ Given: TSP instance G with vertices v1, v2, . . . , vn. ◮ Search space: Hamiltonian cycles in G; ◮ Neighborhood relation N: standard 2-exchange neighborhood ◮ Initialization:
◮ Search steps: determined using first improvement
◮ Termination: when no improving search step possible
7
Local Search Revisited
8
Local Search Revisited
9
Local Search Revisited
10
Local Search Revisited
11
Local Search Revisited
◮ permutations (implicit: alldiffrerent)
◮ linear (scheduling problems) ◮ circular (traveling salesman problem)
◮ arrays (implicit: assign exactly one, assignment problems: GCP) ◮ sets (implicit: disjoint sets, partition problems: graph partitioning, max
12
Local Search Revisited
◮ function fπ : Sπ → Q that maps candidate solutions of
◮ used for assessing or ranking neighbors of current
◮ Evaluation function: part of LS algorithm. ◮ Objective function: integral part of optimization problem. ◮ Some LS methods use evaluation functions different from given objective
13
Local Search Revisited
◮ feasibility
◮ optimization
◮ sequence of feasibility problems ◮ staying in the space of feasible candidate solutions ◮ considering feasible and infeasible configurations
14
Local Search Revisited
◮ decomposition-based violations
◮ variable-based violations
◮ value-based violations
◮ arithmetic violations ◮ combinations of these
15
Local Search Revisited
◮ alldiff(x1, . . . , xn):
◮ viol =
v∈V I(max{cv − 1, 0} > 0) value-based
◮ viol = maxv∈V max{cv − 1, 0} value-based ◮ viol =
v∈V max{cv − 1, 0} value-based
◮ # variables with same value, variable-based, here leads to same
◮ l ≤ r viol = max{l − r, 0} ◮ l = r viol = |l − r| ◮ l = r viol = 1 if l = r, 0 otherwise
16