Package org.ddolib.examples.smic
Class SMICDdoMain
java.lang.Object
org.ddolib.examples.smic.SMICDdoMain
The Single Machine with Inventory Constraint (SMIC) with Ddo.
The
SMICDdoMain class provides the entry point for solving instances of the
Single Machine with Inventory Constraint (SMIC) problem using the
Decision Diagram Optimization (DDO) approach.
This main program performs the following steps:
- Loads a SMIC instance from a data file (default:
data/SMIC/data10_2.txt); - Builds a
DdoModelthat defines the problem, relaxation operator, ranking function, lower bound estimator, and dominance relations between states; - Specifies a frontier management policy (
SimpleFrontier) with aCutSetType.Frontierstrategy; - Executes the optimization via
Solvers.minimizeDdo(DdoModel, java.util.function.BiConsumer); - Prints the resulting solution and search statistics.
Usage:
java SMICDdoMain [instanceFile]If no file is provided as an argument, the program defaults to
data/SMIC/data10_2.txt.
Example:
java SMICDdoMain data/SMIC/data20_3.txt
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SMICDdoMain
public SMICDdoMain()
-
-
Method Details
-
main
Entry point of the SMIC solver using the Dynamic Decision Diagram Optimization (DDO) algorithm. Initializes the problem instance, builds the DDO model, and executes the optimization.- 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 an error occurs while reading the instance file.
-