public class RegularLimit extends SearchLimit
kNoProgress
swigCMemOwn
Constructor and Description |
---|
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() |
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() |
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, swigRelease
acceptDelta, acceptNeighbor, acceptSolution, AcceptUncheckedNeighbor, afterDecision, applyDecision, atSolution, beginFail, beginInitialPropagation, endFail, endInitialPropagation, endNextDecision, getCPtr, localOptimum, noMoreSolutions, restartSearch, solver, swigDirectorDisconnect, swigRelease, swigReleaseOwnership, swigTakeOwnership
getCPtr, swigRelease
public 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)
public static long getCPtr(RegularLimit obj)
public static long swigRelease(RegularLimit 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 RegularLimit MakeIdenticalClone()
public boolean CheckWithOffset(SWIGTYPE_p_absl__Duration offset)
SearchLimit
CheckWithOffset
in class SearchLimit
public void init()
SearchLimit
init
in class SearchLimit
public void exitSearch()
SearchMonitor
exitSearch
in class SearchMonitor
public 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()
SearchMonitor
IsUncheckedSolutionLimitReached
in class SearchMonitor
public int progressPercent()
SearchMonitor
progressPercent
in class SearchMonitor
public java.lang.String toString()
toString
in class SearchLimit
public void install()
SearchMonitor
install
in class SearchLimit
public void accept(ModelVisitor visitor)
SearchMonitor
accept
in class SearchMonitor
Copyright © 2025. All rights reserved.