java.lang.Object
org.maxicp.modeling.constraints.seqvar.TransitionTimes
- All Implemented Interfaces:
Constraint
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTransitionTimes(SeqVar seqVar, IntExpression[] time, int[][] dist) Constraint linking nodes with time windows, updating the time windows of nodes depending on when they are visited, based on a distance matrix and service time.TransitionTimes(SeqVar seqVar, IntExpression[] time, int[][] dist, int[] serviceTime) Constraint linking nodes with time windows, updating the time windows of nodes depending on when they are visited, based on a distance matrix and service time. -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends Expression> scope()Returns the scope of the constraint, preferably as an immutable, unique collection.
-
Field Details
-
seqVar
-
time
-
dist
public final int[][] dist -
serviceTime
public final int[] serviceTime
-
-
Constructor Details
-
TransitionTimes
Constraint linking nodes with time windows, updating the time windows of nodes depending on when they are visited, based on a distance matrix and service time. The sequence can await before visiting a node until its time window becomes available.- Parameters:
seqVar- sequence where the visit time of the nodes must be updatedtime- time window of each node.time[node]gives the time at which node can be visiteddist- distance matrix between nodesserviceTime- duration of each node
-
TransitionTimes
Constraint linking nodes with time windows, updating the time windows of nodes depending on when they are visited, based on a distance matrix and service time. The sequence can await before visiting a node until its time window becomes available.- Parameters:
seqVar- sequence where the visit time of the nodes must be updatedtime- time window of each node.time[node]gives the time at which node can be visiteddist- distance matrix between nodes
-
-
Method Details
-
scope
Description copied from interface:ConstraintReturns the scope of the constraint, preferably as an immutable, unique collection.- Specified by:
scopein interfaceConstraint- Returns:
- the scope of the constraint, i.e. all the Expressions it uses. The collection should be immutable.
-