Local Search and the Traveling Salesman Problem: A Feature-Based - - PowerPoint PPT Presentation

local search and the traveling salesman problem a feature
SMART_READER_LITE
LIVE PREVIEW

Local Search and the Traveling Salesman Problem: A Feature-Based - - PowerPoint PPT Presentation

O. Mersmann et.al LION 6 Paris, France Local Search and the Traveling Salesman Problem: A Feature-Based Characterization of Problem Hardness Olaf Mersmann, Bernd Bischl, Jakob Bossek and Heike Trautmann Department of Statistics, TU


slide-1
SLIDE 1
  • O. Mersmann et.al

LION 6 – Paris, France

Local Search and the Traveling Salesman Problem: A Feature-Based Characterization of Problem Hardness

Olaf Mersmann, Bernd Bischl, Jakob Bossek and Heike Trautmann

Department of Statistics, TU Dortmund University, Germany

Markus Wagner and Frank Neumann

School of Computer Science, The University of Adelaide, Australia

slide-2
SLIDE 2
  • O. Mersmann et.al

LION 6 – Paris, France

The Traveling Salesman Problem (TSP)

CC BY-NC 2.5 http://www.xkcb.com

slide-3
SLIDE 3
  • O. Mersmann et.al

LION 6 – Paris, France

Aim: Predict Hardness of TSP instances

slide-4
SLIDE 4
  • O. Mersmann et.al

LION 6 – Paris, France

Problem Hardness: Two options

Number of swaps/iterations/...

Used in Smith-Miles et al. (2010)

Approximation quality

= Expected solution tour length Optimal tour length

slide-5
SLIDE 5
  • O. Mersmann et.al

LION 6 – Paris, France

Characterize TSP instances

Requirement

All features can be computed without knowledge of the optimal tour. Eliminates some (interesting) features.

Challenges

Normalization, dependence on # of nodes / edges

slide-6
SLIDE 6
  • O. Mersmann et.al

LION 6 – Paris, France

Characterize TSP instances

Taken from literature

Literature used

Smith-Miles et al. (2010), Kanda et al. (2011) and Smith-Miles and van Hemert (2011)

Classes of features

▷ Nearest Neighbor Distance (NNDs) ▷ Clustering ▷ Edge Costs / Distance Matrix

slide-7
SLIDE 7
  • O. Mersmann et.al

LION 6 – Paris, France

Focus on 2-opt (Croes, 1958) algorithm.

Reasons

▷ Historically fjrst successful local search method for TSP ▷ Easy to understand ▷ Some progress on theoretical analysis (Chandra et al., 1999 and Englert et al., 2007)

slide-8
SLIDE 8
  • O. Mersmann et.al

LION 6 – Paris, France

Where do the TSP instances come from?

slide-9
SLIDE 9
  • O. Mersmann et.al

LION 6 – Paris, France

Instance Generator: EA

function tsp_generator(popSize=30, instSize=100, poolSize=50, digits=2, repetitions=500): pop = randomInstances(popSize, instSize) while not done: fitness = computeFitness(pop, repetitions) matingPool = tournamentSelection(pop, poolSize, fitness) nextPop[1] = pop[whichBest(fitness)] for k = 2 to popSize: parent1, parent2 = randomElements(2, matingPool)

  • ffspring = uniformCrossover(parent1, parent2)

nextPop[k] = round( uniformMutation(normalMutation(offspring)), digits) pop = nextPop

slide-10
SLIDE 10
  • O. Mersmann et.al

LION 6 – Paris, France

Use EA to generate 100 easy and hard instances

Problems

▷ Fitness function expensive ▷ Lots of manual tuning of EA ▷ Some runs hung

slide-11
SLIDE 11
  • O. Mersmann et.al

LION 6 – Paris, France

Hardness

1.05 1.10 1.15

  • easy

hard

slide-12
SLIDE 12
  • O. Mersmann et.al

LION 6 – Paris, France

x y

0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 easy_inst_1

  • hard_inst_1
  • ●● ●● ● ●
  • ● ●●
  • 0.0

0.2 0.4 0.6 0.8 1.0 easy_inst_2

  • ● ●
  • hard_inst_2
  • ● ● ● ●
  • ● ●

0.0 0.2 0.4 0.6 0.8 1.0 easy_inst_3

  • hard_inst_3
  • ● ● ●
  • ●●
  • ● ●
  • ●●
  • ● ●
  • 0.0

0.2 0.4 0.6 0.8 1.0 type

  • easy
  • hard
slide-13
SLIDE 13
  • O. Mersmann et.al

LION 6 – Paris, France

Observation

SD of tour leg lengths

0.025 0.030 0.035 0.040 0.045 0.050 0.055 0.060

  • hard

easy

1 Tour leg lengths differ less for hard instances.

slide-14
SLIDE 14
  • O. Mersmann et.al

LION 6 – Paris, France

Prediction

▷ Calculate all features for the 200 instances ▷ Use decision tree (CART) to predict instance type

coefficient_of_variation_of_nnds >= 0.5167739 → easy coefficient_of_variation_of_nnds < 0.5167739 highest_edge_cost >= 0.000485 → easy highest_edge_cost < 0.000485 → hard

10-fold CV error rate: 3.02%

slide-15
SLIDE 15
  • O. Mersmann et.al

LION 6 – Paris, France

CoV of nNNDs Max Edge Cost

0.00042 0.00044 0.00046 0.00048 0.00050 0.00052 0.00054

  • 0.4

0.5 0.6 0.7 Type

  • easy
  • hard
slide-16
SLIDE 16
  • O. Mersmann et.al

LION 6 – Paris, France

This was an ``easy'' task. Instances chosen to be maximally different!

slide-17
SLIDE 17
  • O. Mersmann et.al

LION 6 – Paris, France

Morphing instances

We are missing instances that are between the two classes.

Idea

Create convex combination of an easy 𝐽𝑓 and a hard instance 𝐽ℎ 𝐽𝑜 = 𝛽𝐽𝑓 + (1 − 𝛽)𝐽ℎ with 𝛽 ∈ [0,1]

slide-18
SLIDE 18
  • O. Mersmann et.al

LION 6 – Paris, France

Morphing instances

Possible Improvements

Match up points to minimize movement

Usage

▷ For every combination of instances generate morph ▷ Calculate features for different 𝛽 (0.2, 0.4, …, 0.8)

slide-19
SLIDE 19
  • O. Mersmann et.al

LION 6 – Paris, France

Problem Hardness

α

1.05 1.10 1.15 0.0 0.2 0.4 0.6 0.8 1.0

slide-20
SLIDE 20
  • O. Mersmann et.al

LION 6 – Paris, France

Max Edge Cost

α

0.00045 0.00050 0.00055 0.00060 0.0 0.2 0.4 0.6 0.8 1.0

slide-21
SLIDE 21
  • O. Mersmann et.al

LION 6 – Paris, France

CoV of nNNDs

α

0.4 0.5 0.6 0.7 0.8 0.9 0.0 0.2 0.4 0.6 0.8 1.0

slide-22
SLIDE 22
  • O. Mersmann et.al

LION 6 – Paris, France

Mean of nNNDs

α

0.2 0.3 0.4 0.5 0.0 0.2 0.4 0.6 0.8 1.0

slide-23
SLIDE 23
  • O. Mersmann et.al

LION 6 – Paris, France

Variation of Edge Cost

α

0.20 0.21 0.22 0.23 0.24 0.25 0.26 0.0 0.2 0.4 0.6 0.8 1.0

slide-24
SLIDE 24
  • O. Mersmann et.al

LION 6 – Paris, France

Ratio of Cities near Edge

α

0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.0 0.2 0.4 0.6 0.8 1.0

slide-25
SLIDE 25
  • O. Mersmann et.al

LION 6 – Paris, France

Prediction

Fit MARS model to data. ▷ Only use subset of morph results ▷ Do SFS to select subset of variables

RMSE estimated via 3-fold CV: 0.0113 Interpretation

Not a black-box model. Please see paper for plots and interpretation.

slide-26
SLIDE 26
  • O. Mersmann et.al

LION 6 – Paris, France

Conclusion

▷ Generated ``easy'' and ``hard'' instances for 2-opt heuristic ▷ Characterized the instance sets using easily calculated features ▷ Showed novel approach to generate ``medium'' instances (mor- phing) ▷ Predicted hardness of instance based on features using simple models

slide-27
SLIDE 27
  • O. Mersmann et.al

LION 6 – Paris, France

Outlook

▷ Optimize instance generation ▷ Study relation between features and theoretical properties of 2-opt ▷ Improve morphing ▷ Generate more diverse instance sets

slide-28
SLIDE 28
  • O. Mersmann et.al

LION 6 – Paris, France

CC BY-NC 2.5 http://www.xkcb.com