Module org.maxicp

Class TransitionTimes

java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.seqvar.TransitionTimes
All Implemented Interfaces:
CPConstraint, ConcreteConstraint<ConcreteCPModel>

public class TransitionTimes extends AbstractCPConstraint
Links a CPSeqVar with time windows, enforcing that visits happen during valid timeframes.
  • Constructor Details

    • TransitionTimes

      public TransitionTimes(CPSeqVar seqVar, CPIntVar[] time, int[][] dist)
      Links visits of nodes within a CPSeqVar to given time windows CPIntVar. The nodes belonging to the sequence must be visited during their time window. The triangular inequality must be satisfied.
      Parameters:
      seqVar - sequence visiting the nodes
      time - time windows of the nodes
      dist - distance matrix between the nodes
    • TransitionTimes

      public TransitionTimes(CPSeqVar seqVar, CPIntVar[] time, int[][] dist, int[] serviceTime)
      Links visits of nodes within a CPSeqVar to given time windows CPIntVar. The nodes belonging to the sequence must be visited during their time window. The triangular inequality must be satisfied.
      Parameters:
      seqVar - sequence visiting the nodes
      time - time windows of the nodes
      dist - distance matrix between the nodes
      serviceTime - processing time of each node
    • TransitionTimes

      public TransitionTimes(CPSeqVar seqVar, CPIntVar[] time, int[][] dist, Optional<int[]> serviceTime)
      Links visits of nodes within a CPSeqVar to given time windows CPIntVar. The nodes belonging to the sequence must be visited during their time window. The triangular inequality must be satisfied.
      Parameters:
      seqVar - sequence visiting the nodes
      time - time windows of the nodes
      dist - distance matrix between the nodes
      serviceTime - processing time of each node
  • Method Details