![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
ImprovementSearchLimit (long cPtr, boolean cMemoryOwn) | |
synchronized void | delete () |
ImprovementSearchLimit (Solver solver, IntVar objective_var, boolean maximize, double objective_scaling_factor, double objective_offset, double improvement_rate_coefficient, int improvement_rate_solutions_distance) | |
ImprovementSearchLimit (Solver solver, IntVar[] objective_vars, SWIGTYPE_p_std__vectorT_bool_t maximize, double[] objective_scaling_factors, double[] objective_offsets, double improvement_rate_coefficient, int improvement_rate_solutions_distance) | |
void | copy (SearchLimit limit) |
SearchLimit | makeClone () |
boolean | CheckWithOffset (SWIGTYPE_p_absl__Duration offset) |
boolean | atSolution () |
void | init () |
void | install () |
![]() | |
SearchLimit (long cPtr, boolean cMemoryOwn) | |
void | keepAliveDecisionBuilder (DecisionBuilder db) |
boolean | crossed () |
boolean | check () |
void | enterSearch () |
void | beginNextDecision (DecisionBuilder b) |
void | periodicCheck () |
void | refuteDecision (Decision d) |
String | toString () |
![]() | |
SearchMonitor (long cPtr, boolean cMemoryOwn) | |
void | swigReleaseOwnership () |
void | swigTakeOwnership () |
SearchMonitor (Solver s) | |
void | restartSearch () |
void | exitSearch () |
void | endNextDecision (DecisionBuilder b, Decision d) |
void | applyDecision (Decision d) |
void | afterDecision (Decision d, boolean apply) |
void | beginFail () |
void | endFail () |
void | beginInitialPropagation () |
void | endInitialPropagation () |
boolean | acceptSolution () |
void | noMoreSolutions () |
boolean | localOptimum () |
boolean | acceptDelta (Assignment delta, Assignment deltadelta) |
void | acceptNeighbor () |
void | AcceptUncheckedNeighbor () |
boolean | IsUncheckedSolutionLimitReached () |
int | progressPercent () |
void | accept (ModelVisitor visitor) |
Solver | solver () |
![]() | |
BaseObject (long cPtr, boolean cMemoryOwn) | |
BaseObject () | |
Static Public Member Functions | |
static long | getCPtr (ImprovementSearchLimit obj) |
static long | swigRelease (ImprovementSearchLimit obj) |
![]() | |
static long | getCPtr (SearchLimit obj) |
static long | swigRelease (SearchLimit obj) |
![]() | |
static long | getCPtr (SearchMonitor obj) |
static long | swigRelease (SearchMonitor obj) |
![]() | |
static long | getCPtr (BaseObject obj) |
static long | swigRelease (BaseObject obj) |
Protected Member Functions | |
void | finalize () |
![]() | |
void | swigDirectorDisconnect () |
Additional Inherited Members | |
![]() | |
static final int | kNoProgress = mainJNI.SearchMonitor_kNoProgress_get() |
![]() | |
transient boolean | swigCMemOwn |
Definition at line 11 of file ImprovementSearchLimit.java.
com.google.ortools.constraintsolver.ImprovementSearchLimit.ImprovementSearchLimit | ( | long | cPtr, |
boolean | cMemoryOwn ) |
Definition at line 14 of file ImprovementSearchLimit.java.
com.google.ortools.constraintsolver.ImprovementSearchLimit.ImprovementSearchLimit | ( | Solver | solver, |
IntVar | objective_var, | ||
boolean | maximize, | ||
double | objective_scaling_factor, | ||
double | objective_offset, | ||
double | improvement_rate_coefficient, | ||
int | improvement_rate_solutions_distance ) |
Definition at line 51 of file ImprovementSearchLimit.java.
com.google.ortools.constraintsolver.ImprovementSearchLimit.ImprovementSearchLimit | ( | Solver | solver, |
IntVar[] | objective_vars, | ||
SWIGTYPE_p_std__vectorT_bool_t | maximize, | ||
double[] | objective_scaling_factors, | ||
double[] | objective_offsets, | ||
double | improvement_rate_coefficient, | ||
int | improvement_rate_solutions_distance ) |
Definition at line 55 of file ImprovementSearchLimit.java.
boolean com.google.ortools.constraintsolver.ImprovementSearchLimit.atSolution | ( | ) |
This method is called when a valid solution is found. If the
return value is true, then search will resume after. If the result
is false, then search will stop there.
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 72 of file ImprovementSearchLimit.java.
boolean com.google.ortools.constraintsolver.ImprovementSearchLimit.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 from com.google.ortools.constraintsolver.SearchLimit.
Definition at line 68 of file ImprovementSearchLimit.java.
void com.google.ortools.constraintsolver.ImprovementSearchLimit.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 from com.google.ortools.constraintsolver.SearchLimit.
Definition at line 59 of file ImprovementSearchLimit.java.
synchronized void com.google.ortools.constraintsolver.ImprovementSearchLimit.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.SearchLimit.
Definition at line 40 of file ImprovementSearchLimit.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.SearchLimit.
Definition at line 36 of file ImprovementSearchLimit.java.
|
static |
Definition at line 19 of file ImprovementSearchLimit.java.
void com.google.ortools.constraintsolver.ImprovementSearchLimit.init | ( | ) |
This method is called when the search limit is initialized.
Reimplemented from com.google.ortools.constraintsolver.SearchLimit.
Definition at line 76 of file ImprovementSearchLimit.java.
void com.google.ortools.constraintsolver.ImprovementSearchLimit.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.SearchLimit.
Definition at line 80 of file ImprovementSearchLimit.java.
SearchLimit com.google.ortools.constraintsolver.ImprovementSearchLimit.makeClone | ( | ) |
Allocates a clone of the limit.
Reimplemented from com.google.ortools.constraintsolver.SearchLimit.
Definition at line 63 of file ImprovementSearchLimit.java.
|
static |
Definition at line 23 of file ImprovementSearchLimit.java.