![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Static Public Member Functions | |
static long | getCPtr (TypeRegulationsConstraint obj) |
static long | swigRelease (TypeRegulationsConstraint obj) |
![]() | |
static long | getCPtr (Constraint obj) |
static long | swigRelease (Constraint obj) |
![]() | |
static long | getCPtr (PropagationBaseObject obj) |
static long | swigRelease (PropagationBaseObject obj) |
![]() | |
static long | getCPtr (BaseObject obj) |
static long | swigRelease (BaseObject obj) |
Protected Member Functions | |
void | finalize () |
Additional Inherited Members | |
![]() | |
transient boolean | swigCMemOwn |
The following constraint ensures that incompatibilities and requirements
between types are respected.
It verifies both "hard" and "temporal" incompatibilities.
Two nodes with hard incompatible types cannot be served by the same vehicle
at all, while with a temporal incompatibility they can't be on the same
route at the same time.
The VisitTypePolicy of a node determines how visiting it impacts the type
count on the route.
For example, for
Definition at line 56 of file TypeRegulationsConstraint.java.
com.google.ortools.constraintsolver.TypeRegulationsConstraint.TypeRegulationsConstraint | ( | long | cPtr, |
boolean | cMemoryOwn ) |
Definition at line 59 of file TypeRegulationsConstraint.java.
com.google.ortools.constraintsolver.TypeRegulationsConstraint.TypeRegulationsConstraint | ( | RoutingModel | model | ) |
Definition at line 96 of file TypeRegulationsConstraint.java.
synchronized void com.google.ortools.constraintsolver.TypeRegulationsConstraint.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.Constraint.
Definition at line 85 of file TypeRegulationsConstraint.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.Constraint.
Definition at line 81 of file TypeRegulationsConstraint.java.
|
static |
Definition at line 64 of file TypeRegulationsConstraint.java.
void com.google.ortools.constraintsolver.TypeRegulationsConstraint.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 104 of file TypeRegulationsConstraint.java.
void com.google.ortools.constraintsolver.TypeRegulationsConstraint.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 100 of file TypeRegulationsConstraint.java.
|
static |
Definition at line 68 of file TypeRegulationsConstraint.java.