Package org.ddolib.examples.tsp
Class TSPAcsMain
java.lang.Object
org.ddolib.examples.tsp.TSPAcsMain
The Traveling Salesman Problem (TSP) with Acs.
Main class to solve a Traveling Salesman Problem (TSP) instance using the ACS (Anytime Column Search) algorithm.
This class reads a problem instance from a file (XML format), initializes a TSPProblem and an
AcsModel with a fast lower bound (TSPFastLowerBound), and then solves the problem using
the ACS solver. The solution and search statistics are printed to the console.
Usage:
java TSPAcsMain [instanceFile]If no
instanceFile argument is provided, a default instance
("data/TSP/instance_18_0.xml") is used.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TSPAcsMain
public TSPAcsMain()
-
-
Method Details
-
main
- Throws:
IOException
-