Java Reference
Java Reference
RegularLimit.java
Go to the documentation of this file.
43 public RegularLimit(Solver s, SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions, boolean smart_time_check, boolean cumulative) {
44 this(mainJNI.new_RegularLimit(Solver.getCPtr(s), s, SWIGTYPE_p_absl__Duration.getCPtr(time), branches, failures, solutions, smart_time_check, cumulative), true);
73 public void UpdateLimits(SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions) {
74 mainJNI.RegularLimit_UpdateLimits(swigCPtr, this, SWIGTYPE_p_absl__Duration.getCPtr(time), branches, failures, solutions);
Usual limit based on wall_time, number of explored branches and number of failures in the search tre...
Definition: RegularLimit.java:15
void init()
This method is called when the search limit is initialized.
Definition: RegularLimit.java:65
synchronized void delete()
Definition: RegularLimit.java:32
long branches()
Definition: RegularLimit.java:81
void UpdateLimits(SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions)
Definition: RegularLimit.java:73
boolean check()
This method is called to check the status of the limit.
Definition: RegularLimit.java:61
long wall_time()
Definition: RegularLimit.java:77
long solutions()
Definition: RegularLimit.java:89
int progressPercent()
Returns a percentage representing the propress of the search before reaching limits.
Definition: RegularLimit.java:97
RegularLimit(Solver s, SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions, boolean smart_time_check, boolean cumulative)
Definition: RegularLimit.java:43
RegularLimit MakeIdenticalClone()
Definition: RegularLimit.java:56
boolean IsUncheckedSolutionLimitReached()
Returns true if the limit of solutions has been reached including unchecked solutions.
Definition: RegularLimit.java:93
String toString()
Definition: RegularLimit.java:101
long failures()
Definition: RegularLimit.java:85
RegularLimit(long cPtr, boolean cMemoryOwn)
Definition: RegularLimit.java:18
Base class of all search limits.
Definition: SearchLimit.java:14
SearchLimit(long cPtr, boolean cMemoryOwn)
Definition: SearchLimit.java:17
Solver Class A solver represents the main computation engine.
Definition: Solver.java:76