public class ImprovementSearchLimit extends SearchLimit
kNoProgressswigCMemOwn| Modifier | Constructor and Description |
|---|---|
protected |
ImprovementSearchLimit(long cPtr,
boolean cMemoryOwn) |
|
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) |
|
ImprovementSearchLimit(Solver solver,
IntVar objective_var,
boolean maximize,
double objective_scaling_factor,
double objective_offset,
double improvement_rate_coefficient,
int improvement_rate_solutions_distance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
atSolution()
This method is called when a valid solution is found.
|
boolean |
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. |
void |
copy(SearchLimit limit)
Copy a limit.
|
void |
delete() |
protected void |
finalize() |
protected static long |
getCPtr(ImprovementSearchLimit obj) |
void |
init()
This method is called when the search limit is initialized.
|
void |
install()
Registers itself on the solver such that it gets notified of the search
and propagation events. |
SearchLimit |
makeClone()
Allocates a clone of the limit.
|
protected static long |
swigRelease(ImprovementSearchLimit obj) |
beginNextDecision, check, crossed, enterSearch, getCPtr, keepAliveDecisionBuilder, periodicCheck, refuteDecision, swigRelease, toStringaccept, acceptDelta, acceptNeighbor, acceptSolution, AcceptUncheckedNeighbor, afterDecision, applyDecision, beginFail, beginInitialPropagation, endFail, endInitialPropagation, endNextDecision, exitSearch, getCPtr, IsUncheckedSolutionLimitReached, localOptimum, noMoreSolutions, progressPercent, restartSearch, solver, swigDirectorDisconnect, swigRelease, swigReleaseOwnership, swigTakeOwnershipgetCPtr, swigReleaseprotected ImprovementSearchLimit(long cPtr,
boolean cMemoryOwn)
public ImprovementSearchLimit(Solver solver, IntVar objective_var, boolean maximize, double objective_scaling_factor, double objective_offset, double improvement_rate_coefficient, int improvement_rate_solutions_distance)
public 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)
protected static long getCPtr(ImprovementSearchLimit obj)
protected static long swigRelease(ImprovementSearchLimit obj)
protected void finalize()
finalize in class SearchLimitpublic void delete()
delete in class SearchLimitpublic void copy(SearchLimit limit)
SearchLimitcopy in class SearchLimitpublic SearchLimit makeClone()
SearchLimitmakeClone in class SearchLimitpublic boolean CheckWithOffset(SWIGTYPE_p_absl__Duration offset)
SearchLimitCheckWithOffset in class SearchLimitpublic boolean atSolution()
SearchMonitoratSolution in class SearchMonitorpublic void init()
SearchLimitinit in class SearchLimitpublic void install()
SearchMonitorinstall in class SearchLimitCopyright © 2024. All rights reserved.