Search Landscape (continued) and Simple Local Search Methods Marco - - PowerPoint PPT Presentation

search landscape continued and simple local search methods
SMART_READER_LITE
LIVE PREVIEW

Search Landscape (continued) and Simple Local Search Methods Marco - - PowerPoint PPT Presentation

LOCAL SEARCH METHODS APPLICATIONS AND ENGINEERING Lecture 4 Search Landscape (continued) and Simple Local Search Methods Marco Chiarandini Outline 1. Plateaux 2. Barriers and Basins 3. Construction Heuristics and Perturbative Searches


slide-1
SLIDE 1

LOCAL SEARCH METHODS

APPLICATIONS AND ENGINEERING

Lecture 4

Search Landscape (continued) and ’Simple’ Local Search Methods

Marco Chiarandini

slide-2
SLIDE 2

Outline

  • 1. Plateaux
  • 2. Barriers and Basins
  • 3. Construction Heuristics and Perturbative Searches for SMTWTP and GCP
  • 4. Iterative Improvement Extensions

Local Search Methods: Applications and Engineering 2

slide-3
SLIDE 3

Outline

  • 1. Plateaux
  • 2. Barriers and Basins
  • 3. Construction Heuristics and Perturbative Searches for SMTWTP and GCP
  • 4. Iterative Improvement Extensions
slide-4
SLIDE 4

Plateaux

Plateaux, i.e., ‘flat’ regions in the search landscape, are characteristic for the neutral landscapes obtained for combinatorial problems such as SAT. Intuition: Plateaux can impede search progress due to lack of guidance by the evaluation function.

P6.2 P6.1 P5 P4.1 P4.2 P3.2 P3.1 P2 P1 P4.3 P4.4

Local Search Methods: Applications and Engineering 4

slide-5
SLIDE 5

Definitions

◮ Region: connected set of search positions. ◮ Border of region R: set of search positions with at least one direct

neighbour outside of R (border positions).

◮ Plateau region: region in which all positions have

the same level, i.e., evaluation function value, l.

◮ Plateau: maximally extended plateau region,

i.e., plateau region in which no border position has any direct neighbours at the plateau level l.

◮ Solution plateau: Plateau that consists entirely of solutions of the

given problem instance.

◮ Exit of plateau region R: direct neighbour s of a border position of R

with lower level than plateau level l.

◮ Open / closed plateau: plateau with / without exits.

Local Search Methods: Applications and Engineering 5

slide-6
SLIDE 6

Measures of plateau structure:

◮ plateau diameter = diameter of corresponding subgraph of GN ◮ plateau width = maximal distance of any plateau position to the

respective closest border position

◮ plateau branching factor = fraction of neighbours of a plateau position

that are also on the plateau.

◮ number of exits, exit density ◮ distribution of exits within a plateau, exit distance distribution

(in particular: avg./max. distance to closest exit)

Local Search Methods: Applications and Engineering 6

slide-7
SLIDE 7

Some plateau structure results for SAT:

◮ Plateaux typically don’t have an interior, i.e., almost every position is on

the border.

◮ The diameter of plateaux, particularly at higher levels, is comparable to

the diameter of search space. (In particular: plateaux tend to span large parts of the search space, but are quite well connected internally.)

◮ For open plateaux, exits tend to be clustered, but the average exit

distance is typically relatively small.

Local Search Methods: Applications and Engineering 7

slide-8
SLIDE 8

Idea: Obtain abstract view of neutral landscape by collapsing positions on the same plateau into ‘macro positions’.

Plateau connection graphs (PCGs):

◮ Vertices: plateaux of given landscape ◮ Edges (directed): connect plateaux that are directly connected by one or

more exit.

◮ Additionally, edge weights can be used to indicate the relative numbers

  • f exits from one plateau to its PCG neighbours.

Local Search Methods: Applications and Engineering 8

slide-9
SLIDE 9

Example: Simple landscape L and plateau connection graph

  • PCG. . .

P6.2 P6.1 P5 P4.1 P4.2 P3.2 P3.1 P2 P1 P4.3 P4.4 P6.2 P6.1 P5 P4.1 P4.2 P3.2 P3.1 P2 P1 P4.3 P4.4

Note: The plateaux form a partition of L, i.e. every position in L is part of exactly one (possibly degenerate) plateau.

Local Search Methods: Applications and Engineering 9

slide-10
SLIDE 10

Outline

  • 1. Plateaux
  • 2. Barriers and Basins
  • 3. Construction Heuristics and Perturbative Searches for SMTWTP and GCP
  • 4. Iterative Improvement Extensions
slide-11
SLIDE 11

Barriers and Basins Observation:

The difficulty of escaping from closed plateaux or strict local minima is related to the height of the barrier, i.e., the difference in evaluation function, that needs to be overcome in order to reach better search positions: Higher barriers are typically more difficult to overcome (this holds, e.g., for Probabilistic Iterative Improvement

  • r Simulated Annealing).

Local Search Methods: Applications and Engineering 11

slide-12
SLIDE 12

Definitions:

◮ Positions s, s′ are mutually accessible at level l

iff there is a path connecting s′ and s in the neighbourhood graph that visits only positions t with g(t) ≤ l.

◮ The barrier level between positions s, s′, bl(s, s′)

is the lowest level l at which s′ and s′ are mutually accessible; the difference between the level of s and bl(s, s′) is called the barrier height between s and s′.

◮ The depth of a position s is the minimal barrier height between s and

any position s′ at a level lower than s, i.e., for which g(s′) < g(s).

◮ Basins, i.e., maximal (connected) regions of search positions

below a given level, form an important basis for characterising search space structure.

Local Search Methods: Applications and Engineering 12

slide-13
SLIDE 13

Example: Basins in a simple search landscape and corresponding basin tree

B4 B3 B1 B2 l2 l1 B4 B3 B1 B2

Note: The basin tree only represents basins just below the critical levels at which neighbouring basins are joined (by a saddle).

Local Search Methods: Applications and Engineering 13

slide-14
SLIDE 14

Note:

◮ Like plateau connection graphs, basin trees can provide

much deeper insights into SLS behaviour and problem hardness than global measures of search space structure, such as FDC or ACC.

◮ But: This type of analysis is computationally expensive,

since it requires enumeration (or sampling) of large parts of the search space.

Local Search Methods: Applications and Engineering 14

slide-15
SLIDE 15

Phase Transition for 3-SAT

0.2 0.4 0.6 0.8 1 3 3.5 4 4.5 5 5.5 6

#cl/#var P(sat), P(unsat)

−4 −3 −2 −1 1

P(sat) P(unsat) kcnfs mean sc (all)

log mean search cost [CPU sec]

0.2 0.4 0.6 0.8

1

3 3.5 4 4.5 5 5.5 6

#cl/#var P(sat), P(unsat)

−4 −3 −2 −1 1

kcnfs mean sc (unsat) kcnfs mean sc (all) nov+ mean sc (sat) P(sat) P(unsat)

log mean search cost [CPU sec]

Local Search Methods: Applications and Engineering 15

slide-16
SLIDE 16

Outline

  • 1. Plateaux
  • 2. Barriers and Basins
  • 3. Construction Heuristics and Perturbative Searches for SMTWTP and GCP
  • 4. Iterative Improvement Extensions
slide-17
SLIDE 17

Single Machine Total Weighted Tardiness Problem Construction Heuristics

◮ Earliest due date ◮ Modified due date ◮ Apparent urgency

Iterative Improvement

◮ Interchange (size n(n − 1)/2; delta computation in O(|i − j|); complete

examination O(n3))

◮ Insert (size (n − 1)2; delta computation in O(|i − j|); complete

examination O(n3))

◮ Swap (size n − 1; delta computation in O(1); complete examination

O(n)) Speed-ups:

◮ Interchange fast branching ◮ Insert exploration as sequence of swaps

Local Search Methods: Applications and Engineering 17

slide-18
SLIDE 18

Graph Colouring Problem Construction Heuristics

◮ Greedy Algorithm. Vertex order decided:

◮ static order (random, largest degree, smallest last degree) ◮ dynamic order (largest saturation first)

◮ Recursive Largest First

Iterative Improvement

Three approaches:

◮ k fixed, complete (improper) colourings (g(s) = |Ec| or g(s) = |V c|)

◮ One exchange ◮ Two exchange (but quadratic complexity, hence less used)

◮ k fixed, partial (proper) colourings (g(s) = v∈Cimp dCimp(v))

◮ i-swap

◮ k variable, complete colourings (g(s) = − k

  • i=1

|Ci| + 2

k

  • i=1

|Ci||Ei|)

◮ Kempe Chains Local Search Methods: Applications and Engineering 18

slide-19
SLIDE 19

Outline

  • 1. Plateaux
  • 2. Barriers and Basins
  • 3. Construction Heuristics and Perturbative Searches for SMTWTP and GCP
  • 4. Iterative Improvement Extensions
slide-20
SLIDE 20

Variable Neighborhood Descent

◮ Recall: Local minima are relative to neighborhood relation. ◮ Key idea: To escape from local minimum of given neighbourhood

relation, switch to different neighbhourhood relation.

◮ Use k neighbourhood relations N1, . . . , Nk, (typically) ordered according

to increasing neighbourhood size.

◮ Always use smallest neighbourhood that facilitates improving steps. ◮ Upon termination, candidate solution is locally optimal w.r.t. all

neighbourhoods

Local Search Methods: Applications and Engineering 20

slide-21
SLIDE 21

Variable Neighbourhood Descent (VND): determine initial candidate solution s i := 1 Repeat: | | choose a most improving neighbour s′ of s in Ni | | If g(s′) < g(s): | | s := s′ | | i := 1 | | Else: | i := i + 1 Until i > k

Local Search Methods: Applications and Engineering 21

slide-22
SLIDE 22

Note:

◮ VND often performs substantially better than simple II

  • r II in large neighbourhoods [Hansen and Mladenovi´

c, 1999]

◮ Many variants exist that switch between neighbhourhoods

in different ways.

◮ More general framework for LS algorithms that switch

between multiple neighbourhoods: Variable Neighbourhood Search (VNS) [Mladenovi´ c and Hansen, 1997].

Local Search Methods: Applications and Engineering 22

slide-23
SLIDE 23

Variable Depth Search

◮ Key idea: Complex steps in large neighbourhoods = variable-length

sequences of simple steps in small neighbourhood.

◮ Use various feasibility restrictions on selection of simple search steps to

limit time complexity of constructing complex steps.

◮ Perform Iterative Improvement w.r.t. complex steps.

Variable Depth Search (VDS): determine initial candidate solution s ˆ t := s While s is not locally optimal: | | Repeat: | | | | select best feasible neighbour t | | | If g(t) < g(ˆ t): ˆ t := t | | Until construction of complex step has been completed ⌊ s := ˆ t

Local Search Methods: Applications and Engineering 23

slide-24
SLIDE 24

Example: The Lin-Kernighan (LK) Algorithm for the TSP (1)

◮ Complex search steps correspond to sequences

  • f 2-exchange steps and are constructed from

sequences of Hamiltonian paths (= paths that visit every node in given graph exactly once).

◮ δ-path: Hamiltonian path p + 1 edge connecting one end of p to interior

node of p (‘lasso’ structure): u

a)

v u

b)

v w

Local Search Methods: Applications and Engineering 24

slide-25
SLIDE 25

Basic LK exchange step:

◮ Start with Hamiltonian path (u, . . . , v):

u

a)

v

◮ Obtain δ-path by adding an edge (v, w):

u

b)

v w

◮ Break cycle by removing edge (w, v′):

u

c)

v v' w

◮ Note: Hamiltonian path can be completed

into Hamiltonian cycle by adding edge (v′, u):

u

c)

v v' w

Local Search Methods: Applications and Engineering 25

slide-26
SLIDE 26

Construction of complex LK steps:

  • 1. start with current candidate solution (Hamiltonian cycle) s; set t∗ := s;

set p := s

  • 2. obtain δ-path p′ by replacing one edge in p
  • 3. consider Hamiltonian cycle t obtained from p by

(uniquely) defined edge exchange

  • 4. if w(t) < w(t∗) then set t∗ := t; p := p′; go to step 2
  • 5. else accept t∗ as new current candidate solution s

Note: This can be interpreted as sequence of 1-exchange steps that alternate between δ-paths and Hamiltonian cycles.

Local Search Methods: Applications and Engineering 26

slide-27
SLIDE 27

Additional mechanisms used by LK algorithm:

◮ Tabu restriction: Any edge that has been added cannot be removed and

any edge that has been removed cannot be added in the same LK step. Note: This limits the number of simple steps in a complex LK step.

◮ Limited form of backtracking ensures that local minimum found by the

algorithm is optimal w.r.t. standard 3-exchange neighbhourhood

◮ (For further details, see text book)

Local Search Methods: Applications and Engineering 27

slide-28
SLIDE 28

Note:

Variable depth search algorithms have been very successful for other problems, including:

◮ the Graph Partitioning Problem [Kernigan and Lin, 1970]; ◮ the Unconstrained Binary Quadratic Programming Problem [Merz and

Freisleben, 2002];

◮ the Generalised Assignment Problem [Yagiura et al., 1999].

Local Search Methods: Applications and Engineering 28