Class TSAstarMain
java.lang.Object
org.ddolib.examples.layered.talentscheduling.TSAstarMain
The talent scheduling problem (tsp) with AsTar. Entry point for solving instances of the Talent
Scheduling Problem (TSP) using an A* search algorithm.
This class reads a TSP instance from a file, initializes the corresponding TSProblem,
and creates a Model for TSState. It then runs the A* solver to find a
(near-)optimal schedule and prints both the solution and search statistics.
Usage:
java TSAstarMain [instanceFile]
If no instanceFile argument is provided, the default instance
data/TalentScheduling/film-12 will be used.
-
Method Summary
-
Method Details
-
main
Entry point of the program. Builds aTSProbleminstance and solves it using the A* algorithm.- Parameters:
args- optional command-line argument specifying the path to the instance file- Throws:
IOException- if there is an error reading the instance file
-