Package org.ddolib.examples.smic
Class SMICAcsMain
java.lang.Object
org.ddolib.examples.smic.SMICAcsMain
The Single Machine with Inventory Constraint (SMIC) with Acs.
The
SMICAcsMain class provides the entry point for solving instances of the
Single Machine with Inventory Constraint (SMIC) problem using the
Anytime Column Search (ACS) algorithm.
This main program:
- Loads an instance of the SMIC problem from a file (by default
data/SMIC/data10_2.txt); - Constructs an
AcsModelcomposed of the problem definition, a fast lower bound estimator, and a dominance checker to prune dominated states during search; - Invokes the
Solvers.minimizeAcs(AcsModel, java.util.function.BiConsumer)method to perform the optimization using ACS; - Prints the best found solution and search statistics.
Usage:
java SMICAcsMain [instanceFile]If no instance file is provided as an argument, the program defaults to
data/SMIC/data10_2.txt.
Example:
java SMICAcsMain data/SMIC/data20_3.txt
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SMICAcsMain
public SMICAcsMain()
-
-
Method Details
-
main
Entry point of the SMIC Anytime Column Search solver. Initializes the problem instance, builds the ACS model, and executes the optimization process.- Parameters:
args- command-line arguments; the first argument may specify the path to the SMIC instance file. If omitted, the default instancedata/SMIC/data10_2.txtis used.- Throws:
IOException- if the instance file cannot be read.
-