Class SRFLPAcsMain

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

public class SRFLPAcsMain extends Object
The Single-Row Facility Layout Problem (SRFLP) with Acs. Entry point for solving the Single-Row Facility Layout Problem (SRFLP) using the Anytime Column Search (ACS) algorithm.

Usage:


 java SRFLPAcsMain [instanceFile]
 

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

The ACS model requires the following components:

  • SRFLPProblem – the problem definition (distance/cost matrix, number of facilities, etc.),
  • SRFLPFastLowerBound – a fast lower-bound estimator for pruning or ranking states,
  • Optional column width for solution display formatting.

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 ACS 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