public class ImprovementSearchLimit extends SearchLimit
kNoProgress
swigCMemOwn
Constructor and Description |
---|
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() |
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.
|
static long |
swigRelease(ImprovementSearchLimit obj) |
beginNextDecision, check, crossed, enterSearch, getCPtr, keepAliveDecisionBuilder, periodicCheck, refuteDecision, swigRelease, toString
accept, acceptDelta, acceptNeighbor, acceptSolution, AcceptUncheckedNeighbor, afterDecision, applyDecision, beginFail, beginInitialPropagation, endFail, endInitialPropagation, endNextDecision, exitSearch, getCPtr, IsUncheckedSolutionLimitReached, localOptimum, noMoreSolutions, progressPercent, restartSearch, solver, swigDirectorDisconnect, swigRelease, swigReleaseOwnership, swigTakeOwnership
getCPtr, swigRelease
public 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)
public static long getCPtr(ImprovementSearchLimit obj)
public static long swigRelease(ImprovementSearchLimit obj)
protected void finalize()
finalize
in class SearchLimit
public void delete()
delete
in class SearchLimit
public void copy(SearchLimit limit)
SearchLimit
copy
in class SearchLimit
public SearchLimit makeClone()
SearchLimit
makeClone
in class SearchLimit
public boolean CheckWithOffset(SWIGTYPE_p_absl__Duration offset)
SearchLimit
CheckWithOffset
in class SearchLimit
public boolean atSolution()
SearchMonitor
atSolution
in class SearchMonitor
public void init()
SearchLimit
init
in class SearchLimit
public void install()
SearchMonitor
install
in class SearchLimit
Copyright © 2025. All rights reserved.