Class SRFLPDdoMain
java.lang.Object
org.ddolib.examples.layered.srflp.SRFLPDdoMain
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:
- Search statistics returned by
Solvers.minimizeDdo(org.ddolib.layered.modeling.DdoModel<T>), - The best solution found as an array of facility indices.
- See Also:
-
Method Summary
-
Method Details
-
main
Entry point of the program. Builds aSRFLPProbleminstance 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
-