Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint:
com.google.ortools.constraintsolver.Constraint com.google.ortools.constraintsolver.PropagationBaseObject com.google.ortools.constraintsolver.BaseObject

Public Member Functions

 GlobalVehicleBreaksConstraint (long cPtr, boolean cMemoryOwn)
 
synchronized void delete ()
 
 GlobalVehicleBreaksConstraint (RoutingDimension dimension)
 
String toString ()
 
void post ()
 
void initialPropagate ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.Constraint
void postAndPropagate ()
 
void accept (ModelVisitor visitor)
 
boolean isCastConstraint ()
 
IntVar var ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject
 PropagationBaseObject (Solver s)
 
Solver solver ()
 
void freezeQueue ()
 
void unfreezeQueue ()
 
void enqueueDelayedDemon (Demon d)
 
void enqueueVar (Demon d)
 
void reset_action_on_fail ()
 
void set_variable_to_clean_on_fail (IntVar v)
 
String name ()
 
void setName (String name)
 
boolean hasName ()
 
String baseName ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 

Static Public Member Functions

static long getCPtr (GlobalVehicleBreaksConstraint obj)
 
static long swigRelease (GlobalVehicleBreaksConstraint obj)
 

Protected Member Functions

void finalize ()
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.Constraint
 Constraint (long cPtr, boolean cMemoryOwn)
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject
 PropagationBaseObject (long cPtr, boolean cMemoryOwn)
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject (long cPtr, boolean cMemoryOwn)
 

Additional Inherited Members

- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.Constraint
static long getCPtr (Constraint obj)
 
static long swigRelease (Constraint obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject
static long getCPtr (PropagationBaseObject obj)
 
static long swigRelease (PropagationBaseObject obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
static long getCPtr (BaseObject obj)
 
static long swigRelease (BaseObject obj)
 
- Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject
transient boolean swigCMemOwn
 

Detailed Description

GlobalVehicleBreaksConstraint ensures breaks constraints are enforced on
all vehicles in the dimension passed to its constructor.
It is intended to be used for dimensions representing time.
A break constraint ensures break intervals fit on the route of a vehicle.
For a given vehicle, it forces break intervals to be disjoint from visit
intervals, where visit intervals start at CumulVar(node) and last for
node_visit_transit[node]. Moreover, it ensures that there is enough time
between two consecutive nodes of a route to do transit and vehicle breaks,
i.e. if Next(nodeA) = nodeB, CumulVar(nodeA) = tA and CumulVar(nodeB) = tB,
then SlackVar(nodeA) >= sum_{breaks [tA, tB)} duration(break).

Definition at line 23 of file GlobalVehicleBreaksConstraint.java.

Constructor & Destructor Documentation

◆ GlobalVehicleBreaksConstraint() [1/2]

com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.GlobalVehicleBreaksConstraint ( long cPtr,
boolean cMemoryOwn )

Definition at line 26 of file GlobalVehicleBreaksConstraint.java.

◆ GlobalVehicleBreaksConstraint() [2/2]

com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.GlobalVehicleBreaksConstraint ( RoutingDimension dimension)

Definition at line 63 of file GlobalVehicleBreaksConstraint.java.

Member Function Documentation

◆ delete()

synchronized void com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.delete ( )

◆ finalize()

void com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.finalize ( )
protected

◆ getCPtr()

static long com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.getCPtr ( GlobalVehicleBreaksConstraint obj)
static

Definition at line 31 of file GlobalVehicleBreaksConstraint.java.

◆ initialPropagate()

void com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.initialPropagate ( )

This method performs the initial propagation of the
constraint. It is called just after the post.

Reimplemented from com.google.ortools.constraintsolver.Constraint.

Definition at line 75 of file GlobalVehicleBreaksConstraint.java.

◆ post()

void com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.post ( )

This method is called when the constraint is processed by the
solver. Its main usage is to attach demons to variables.

Reimplemented from com.google.ortools.constraintsolver.Constraint.

Definition at line 71 of file GlobalVehicleBreaksConstraint.java.

◆ swigRelease()

static long com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.swigRelease ( GlobalVehicleBreaksConstraint obj)
static

Definition at line 35 of file GlobalVehicleBreaksConstraint.java.

◆ toString()

String com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.toString ( )

The documentation for this class was generated from the following file: