java.lang.Object
org.maxicp.cp.examples.utils.SMICInstance
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)
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 Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal intfinal intfinal int[]final Stringfinal intfinal int[]final int[]final int[]final int[] -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
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
-