Class SRFLPAcsMain
java.lang.Object
org.ddolib.examples.layered.srflp.SRFLPAcsMain
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:
- Search statistics returned by
Solvers.minimizeAstar(org.ddolib.layered.modeling.Model<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 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
-