Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Protected Member Functions | |
SearchLimit (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
Protected Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor | |
SearchMonitor (long cPtr, boolean cMemoryOwn) | |
void | swigDirectorDisconnect () |
Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
BaseObject (long cPtr, boolean cMemoryOwn) | |
Static Protected Member Functions | |
static long | getCPtr (SearchLimit obj) |
static long | swigRelease (SearchLimit obj) |
Static Protected Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor | |
static long | getCPtr (SearchMonitor obj) |
static long | swigRelease (SearchMonitor obj) |
Static Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
static long | getCPtr (BaseObject obj) |
static long | swigRelease (BaseObject obj) |
Additional Inherited Members | |
Static Public Attributes inherited from com.google.ortools.constraintsolver.SearchMonitor | |
static final int | kNoProgress = mainJNI.SearchMonitor_kNoProgress_get() |
Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject | |
transient boolean | swigCMemOwn |
Base class of all search limits.
Definition at line 14 of file SearchLimit.java.
|
protected |
Definition at line 17 of file SearchLimit.java.
void com.google.ortools.constraintsolver.SearchLimit.beginNextDecision | ( | DecisionBuilder | b | ) |
Before calling DecisionBuilder::Next.
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 111 of file SearchLimit.java.
boolean com.google.ortools.constraintsolver.SearchLimit.check | ( | ) |
This method is called to check the status of the limit. A return
value of true indicates that we have indeed crossed the limit. In
that case, this method will not be called again and the remaining
search will be discarded.
Definition at line 69 of file SearchLimit.java.
boolean com.google.ortools.constraintsolver.SearchLimit.CheckWithOffset | ( | SWIGTYPE_p_absl__Duration | offset | ) |
Same as Check() but adds the 'offset' value to the current time when time
is considered in the limit.
Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.
Definition at line 77 of file SearchLimit.java.
void com.google.ortools.constraintsolver.SearchLimit.copy | ( | SearchLimit | limit | ) |
Copy a limit. Warning: leads to a direct (no check) downcasting of 'limit'
so one needs to be sure both SearchLimits are of the same type.
Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.
Definition at line 92 of file SearchLimit.java.
boolean com.google.ortools.constraintsolver.SearchLimit.crossed | ( | ) |
Returns true if the limit has been crossed.
Definition at line 59 of file SearchLimit.java.
synchronized void com.google.ortools.constraintsolver.SearchLimit.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.
Definition at line 43 of file SearchLimit.java.
void com.google.ortools.constraintsolver.SearchLimit.enterSearch | ( | ) |
Internal methods.
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 107 of file SearchLimit.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.
Definition at line 39 of file SearchLimit.java.
|
staticprotected |
Definition at line 22 of file SearchLimit.java.
void com.google.ortools.constraintsolver.SearchLimit.init | ( | ) |
This method is called when the search limit is initialized.
Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.
Definition at line 84 of file SearchLimit.java.
void com.google.ortools.constraintsolver.SearchLimit.install | ( | ) |
Registers itself on the solver such that it gets notified of the search
and propagation events. Override to incrementally install listeners for
specific events.
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.
Definition at line 131 of file SearchLimit.java.
void com.google.ortools.constraintsolver.SearchLimit.keepAliveDecisionBuilder | ( | DecisionBuilder | db | ) |
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 54 of file SearchLimit.java.
SearchLimit com.google.ortools.constraintsolver.SearchLimit.makeClone | ( | ) |
Allocates a clone of the limit.
Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.
Definition at line 99 of file SearchLimit.java.
void com.google.ortools.constraintsolver.SearchLimit.periodicCheck | ( | ) |
Periodic call to check limits in long running methods.
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 119 of file SearchLimit.java.
void com.google.ortools.constraintsolver.SearchLimit.refuteDecision | ( | Decision | d | ) |
Before refuting the decision.
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 123 of file SearchLimit.java.
|
staticprotected |
Definition at line 26 of file SearchLimit.java.
String com.google.ortools.constraintsolver.SearchLimit.toString | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Reimplemented in com.google.ortools.constraintsolver.RegularLimit.
Definition at line 127 of file SearchLimit.java.