Optimization: principles and algorithms, by Michel Bierlaire
Functions
twoOpt.m File Reference

Perform a 2-opt operation of a list of cities. More...

Go to the source code of this file.

Functions

function twoOpt (in cities, in c1, in c2)
 Perform a 2-opt operation of a list of cities. More...
 

Detailed Description

Perform a 2-opt operation of a list of cities.

Note
Called by twoOptNeighborhood
Called by twoOptRandomNeighbor
Author
Michel Bierlaire
Date
Tue Apr 14 15:30:42 2015

Definition in file twoOpt.m.

Function Documentation

function twoOpt ( in  cities,
in  c1,
in  c2 
)

Perform a 2-opt operation of a list of cities.

Parameters
cities
c1index of the first city
c2index of the second city
Returns
new list of cities
Copyright 2015-2016 Michel Bierlaire