Class SRFLPAstarMain

java.lang.Object
org.ddolib.examples.layered.srflp.SRFLPAstarMain

public class SRFLPAstarMain extends Object
The Single-Row Facility Layout Problem (SRFLP) with AsTar. Entry point for solving the Single-Row Facility Layout Problem (SRFLP) using the A* search algorithm.

Usage:


 java SRFLPAstarMain [instanceFile]
 

If no instance file is provided as an argument, a default instance located at data/SRFLP/simple will be used.

The A* model requires the following components:

  • SRFLPProblem – the problem definition (distance/cost matrix, number of facilities, etc.),
  • SRFLPFastLowerBound – a fast lower-bound estimator used for pruning during the search.

After the search is completed, the program prints:

See Also:
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Entry point of the program. Builds a SRFLPProblem instance and solves it using the A* algorithm.
      Parameters:
      args - optional command-line argument specifying the path to the SRFLP instance file
      Throws:
      IOException - if there is an error reading the instance file