Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
TypeRegulationsConstraint (long cPtr, boolean cMemoryOwn) | |
synchronized void | delete () |
TypeRegulationsConstraint (RoutingModel model) | |
void | post () |
void | initialPropagate () |
Public Member Functions inherited from com.google.ortools.constraintsolver.Constraint | |
String | toString () |
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 (TypeRegulationsConstraint obj) |
static long | swigRelease (TypeRegulationsConstraint 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 |
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 53 of file TypeRegulationsConstraint.java.
com.google.ortools.constraintsolver.TypeRegulationsConstraint.TypeRegulationsConstraint | ( | long | cPtr, |
boolean | cMemoryOwn ) |
Definition at line 56 of file TypeRegulationsConstraint.java.
com.google.ortools.constraintsolver.TypeRegulationsConstraint.TypeRegulationsConstraint | ( | RoutingModel | model | ) |
Definition at line 93 of file TypeRegulationsConstraint.java.
synchronized void com.google.ortools.constraintsolver.TypeRegulationsConstraint.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.Constraint.
Definition at line 82 of file TypeRegulationsConstraint.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.Constraint.
Definition at line 78 of file TypeRegulationsConstraint.java.
|
static |
Definition at line 61 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 101 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 97 of file TypeRegulationsConstraint.java.
|
static |
Definition at line 65 of file TypeRegulationsConstraint.java.