Class SMICLnsMain

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

public class SMICLnsMain extends Object
Entry point for solving the Single Machine with Inventory Constraint (SMIC) problem using a Large Neighborhood Search (LNS) approach.

This class reads an instance file describing an SMIC problem, constructs an LNS model, and attempts to find an optimal or near-optimal solution within a time limit. The solution is printed along with runtime statistics.

Usage:

 java SMICLnsMain [instanceFilePath]
 
  • If no instanceFilePath is provided, a default instance located at data/SMIC/data10_1.txt is used.
  • The program runs a time-limited LNS search (1 second) and prints the best solution found along with statistics.

The LNS model is configured with:

The final solution and statistics are printed to System.out.

Version:
1.0
Author:
  • Constructor Details

    • SMICLnsMain

      public SMICLnsMain()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Main method to run the SMIC LNS solver.
      Parameters:
      args - optional command-line argument specifying the path to the SMIC instance file. If omitted, the default instance data/SMIC/data10_1.txt is used.
      Throws:
      IOException - if there is an error reading the instance file.