Module org.maxicp

Class SMICInstance

java.lang.Object
org.maxicp.cp.examples.utils.SMICInstance

public class SMICInstance extends Object
A Single Machine with Inventory Constraints (SMIC) instance.

A SMIC problem consists of scheduling a set J of n jobs split into two:

  • the loading jobs J+ (type = 1, inventory delta > 0)
  • the unloading jobs J- (type = 0, inventory delta < 0)
Each job has a release date, a processing time and an inventory modification delta. An initial inventory and the capacity of the inventory storage are given.

Two file formats are supported:

  • txt — whitespace-separated, one job per line: type processing weight release inventory
  • dzn — MiniZinc data format with named keys
  • Field Details

    • name

      public final String name
    • nbJob

      public final int nbJob
    • initInventory

      public final int initInventory
    • capaInventory

      public final int capaInventory
    • type

      public final int[] type
    • processing

      public final int[] processing
    • weight

      public final int[] weight
    • release

      public final int[] release
    • inventory

      public final int[] inventory
    • horizon

      public final int horizon
  • Constructor Details

    • SMICInstance

      public SMICInstance(String filename) throws FileNotFoundException
      Reads a SMIC instance from a file.
      Parameters:
      filename - path to the instance file (txt or dzn format)
      Throws:
      FileNotFoundException - if the file does not exist