java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.seqvar.TransitionTimes
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Links a
CPSeqVar with time windows, enforcing that visits happen during valid timeframes.-
Constructor Summary
ConstructorsConstructorDescriptionTransitionTimes(CPSeqVar seqVar, CPIntVar[] time, int[][] dist) TransitionTimes(CPSeqVar seqVar, CPIntVar[] time, int[][] dist, int[] serviceTime) TransitionTimes(CPSeqVar seqVar, CPIntVar[] time, int[][] dist, Optional<int[]> serviceTime) -
Method Summary
Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
TransitionTimes
Links visits of nodes within aCPSeqVarto given time windowsCPIntVar. The nodes belonging to the sequence must be visited during their time window. The triangular inequality must be satisfied.- Parameters:
seqVar- sequence visiting the nodestime- time windows of the nodesdist- distance matrix between the nodes
-
TransitionTimes
Links visits of nodes within aCPSeqVarto given time windowsCPIntVar. The nodes belonging to the sequence must be visited during their time window. The triangular inequality must be satisfied.- Parameters:
seqVar- sequence visiting the nodestime- time windows of the nodesdist- distance matrix between the nodesserviceTime- processing time of each node
-
TransitionTimes
Links visits of nodes within aCPSeqVarto given time windowsCPIntVar. The nodes belonging to the sequence must be visited during their time window. The triangular inequality must be satisfied.- Parameters:
seqVar- sequence visiting the nodestime- time windows of the nodesdist- distance matrix between the nodesserviceTime- processing time of each node
-
-
Method Details
-
post
public void post()Description copied from interface:CPConstraintInitializes the constraint when it is posted to the solver.- Specified by:
postin interfaceCPConstraint- Overrides:
postin classAbstractCPConstraint
-
propagate
public void propagate()Description copied from interface:CPConstraintPropagates the constraint.- Specified by:
propagatein interfaceCPConstraint- Overrides:
propagatein classAbstractCPConstraint
-