Package org.ddolib.examples.tsp
Class TSPDdoMain
java.lang.Object
org.ddolib.examples.tsp.TSPDdoMain
Main class to solve a Traveling Salesman Problem (TSP) instance using the Decision Diagram Optimization (DDO) method.
This class reads a TSP instance from an XML file, initializes a TSPProblem and a DdoModel with:
- a relaxation strategy (
TSPRelax), - a state ranking (
TSPRanking), - a fast lower bound (
TSPFastLowerBound), - and a fixed width heuristic (
FixedWidth) for limiting the decision diagram width.
Usage:
java TSPDdoMain [instanceFile]If no
instanceFile argument is provided, the default instance
("data/TSP/instance_18_0.xml") is used. The width of the decision diagram is fixed at 500.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TSPDdoMain
public TSPDdoMain()
-
-
Method Details
-
main
- Throws:
IOException
-