Class SRFLPDdoMain

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

public final class SRFLPDdoMain extends Object
The Single-Row Facility Layout Problem (SRFLP) with Ddo. Entry point for solving the Single-Row Facility Layout Problem (SRFLP) using the Decision Diagram Optimization (DDO) algorithm.

Usage:


 java SRFLPDdoMain [instanceFile] [maxWidth]
 

- instanceFile (optional): Path to the SRFLP instance file. Defaults to data/SRFLP/simple. - maxWidth (optional): Maximum width of the relaxed decision diagram. Defaults to 50.

The DDO model requires the following components:

  • SRFLPProblem – the problem definition (distance/cost matrix, number of facilities, etc.),
  • SRFLPRelax – relaxation method used to merge states in the diagram,
  • SRFLPRanking – state ranking used for node prioritization,
  • FixedWidth – width control heuristic for the relaxed diagram,
  • SRFLPFastLowerBound – fast lower-bound estimator for pruning.

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 DDO algorithm.
      Parameters:
      args - optional command-line arguments: the instance file path, then the maximum decision diagram width
      Throws:
      IOException - if there is an error reading the instance file