public class RegularLimit extends SearchLimit
kNoProgressswigCMemOwn| Modifier | Constructor and Description |
|---|---|
protected |
RegularLimit(long cPtr,
boolean cMemoryOwn) |
|
RegularLimit(Solver s,
SWIGTYPE_p_absl__Duration time,
long branches,
long failures,
long solutions,
boolean smart_time_check,
boolean cumulative) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ModelVisitor visitor)
Accepts the given model visitor.
|
long |
branches() |
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() |
void |
exitSearch()
End of the search.
|
long |
failures() |
protected void |
finalize() |
protected static long |
getCPtr(RegularLimit 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. |
boolean |
IsUncheckedSolutionLimitReached()
Returns true if the limit of solutions has been reached including
unchecked solutions. |
SearchLimit |
makeClone()
Allocates a clone of the limit.
|
RegularLimit |
MakeIdenticalClone() |
int |
progressPercent()
Returns a percentage representing the propress of the search before
reaching limits. |
long |
solutions() |
protected static long |
swigRelease(RegularLimit obj) |
java.lang.String |
toString() |
void |
UpdateLimits(SWIGTYPE_p_absl__Duration time,
long branches,
long failures,
long solutions) |
long |
wall_time() |
beginNextDecision, check, crossed, enterSearch, getCPtr, keepAliveDecisionBuilder, periodicCheck, refuteDecision, swigReleaseacceptDelta, acceptNeighbor, acceptSolution, AcceptUncheckedNeighbor, afterDecision, applyDecision, atSolution, beginFail, beginInitialPropagation, endFail, endInitialPropagation, endNextDecision, getCPtr, localOptimum, noMoreSolutions, restartSearch, solver, swigDirectorDisconnect, swigRelease, swigReleaseOwnership, swigTakeOwnershipgetCPtr, swigReleaseprotected RegularLimit(long cPtr,
boolean cMemoryOwn)
public RegularLimit(Solver s, SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions, boolean smart_time_check, boolean cumulative)
protected static long getCPtr(RegularLimit obj)
protected static long swigRelease(RegularLimit 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 RegularLimit MakeIdenticalClone()
public boolean CheckWithOffset(SWIGTYPE_p_absl__Duration offset)
SearchLimitCheckWithOffset in class SearchLimitpublic void init()
SearchLimitinit in class SearchLimitpublic void exitSearch()
SearchMonitorexitSearch in class SearchMonitorpublic void UpdateLimits(SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions)
public long wall_time()
public long branches()
public long failures()
public long solutions()
public boolean IsUncheckedSolutionLimitReached()
SearchMonitorIsUncheckedSolutionLimitReached in class SearchMonitorpublic int progressPercent()
SearchMonitorprogressPercent in class SearchMonitorpublic java.lang.String toString()
toString in class SearchLimitpublic void install()
SearchMonitorinstall in class SearchLimitpublic void accept(ModelVisitor visitor)
SearchMonitoraccept in class SearchMonitorCopyright © 2024. All rights reserved.