Class SMICAcsMain

java.lang.Object
org.ddolib.examples.smic.SMICAcsMain

public class SMICAcsMain extends Object
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 AcsModel composed 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 Details

    • SMICAcsMain

      public SMICAcsMain()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      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 instance data/SMIC/data10_2.txt is used.
      Throws:
      IOException - if the instance file cannot be read.