Module org.maxicp

Class TransitionTimes

java.lang.Object
org.maxicp.modeling.constraints.seqvar.TransitionTimes
All Implemented Interfaces:
Constraint

public class TransitionTimes extends Object implements Constraint
  • Field Details

    • seqVar

      public final SeqVar seqVar
    • time

      public final IntExpression[] time
    • dist

      public final int[][] dist
    • serviceTime

      public final int[] serviceTime
  • Constructor Details

    • TransitionTimes

      public 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. 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 updated
      time - time window of each node. time[node] gives the time at which node can be visited
      dist - distance matrix between nodes
      serviceTime - duration of each node
    • TransitionTimes

      public TransitionTimes(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. 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 updated
      time - time window of each node. time[node] gives the time at which node can be visited
      dist - distance matrix between nodes
  • Method Details

    • scope

      public Collection<? extends Expression> scope()
      Description copied from interface: Constraint
      Returns the scope of the constraint, preferably as an immutable, unique collection.
      Specified by:
      scope in interface Constraint
      Returns:
      the scope of the constraint, i.e. all the Expressions it uses. The collection should be immutable.