Scilab function

salesman - solves the travelling salesman problem

Calling Sequence

cir = salesman(g,[nstac])

Parameters

Description

salesman solves the travelling salesman problem. g is a directed graph; nstac is an optional integer which is a given bound for the allowed memory size for solving this problem. Its value is 100*n*n by default where n is the number of nodes.

Examples