java.lang.Object
org.ddolib.examples.layered.talentscheduling.TSAstarMain

public class TSAstarMain extends Object
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 Details

    • main

      public static void main(String[] args) throws IOException
      Entry point of the program. Builds a TSProblem instance 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