Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (19 sloc) 661 Bytes
#!/usr/bin/env python
## Thanks to Dr N.D. van Foreest for providing this example code. ##
The cost matrix is based on Balas and Toth, 1985, Branch and bound
# methods, in Lawler, E.L, et al., The TSP, John Wiley & Sons,
Chischester, pp 361--401.
import numpy
import LAPJV
inf = 1000
a = numpy.array( [[inf,2,11,10,8,7,6,5],
[10,10,10,10,6,3,1,inf]] )
print LAPJV.lap(a)[1]
Jump to Line
Something went wrong with that request. Please try again.