Usual limit based on wall_time, number of explored branches and number of failures in the search tree
Definition at line 4763 of file constraint_solver.h.
|
| | RegularLimit (Solver *s, absl::Duration time, int64_t branches, int64_t failures, int64_t solutions, bool smart_time_check, bool cumulative) |
| | --— Regular Limit --—
|
| | ~RegularLimit () override |
| void | Copy (const SearchLimit *limit) override |
| SearchLimit * | MakeClone () const override |
| | Allocates a clone of the limit.
|
| RegularLimit * | MakeIdenticalClone () const |
| bool | CheckWithOffset (absl::Duration offset) override |
| void | Init () override |
| | This method is called when the search limit is initialized.
|
| void | ExitSearch () override |
| | End of the search.
|
| void | UpdateLimits (absl::Duration time, int64_t branches, int64_t failures, int64_t solutions) |
| absl::Duration | duration_limit () const |
| int64_t | wall_time () const |
| int64_t | branches () const |
| int64_t | failures () const |
| int64_t | solutions () const |
| bool | IsUncheckedSolutionLimitReached () override |
| int | ProgressPercent () override |
| std::string | DebugString () const override |
| void | Install () override |
| | A search monitors adds itself on the active search.
|
| absl::Time | AbsoluteSolverDeadline () const |
| void | Accept (ModelVisitor *visitor) const override |
| | Accepts the given model visitor.
|
| | SearchLimit (Solver *const s) |
| | SearchLimit (const SearchLimit &)=delete |
| | This type is neither copyable nor movable.
|
| SearchLimit & | operator= (const SearchLimit &)=delete |
| | ~SearchLimit () override |
| | -------— Search Limits -------—
|
| bool | crossed () const |
| | Returns true if the limit has been crossed.
|
| bool | Check () |
| void | EnterSearch () override |
| | Internal methods.
|
| void | BeginNextDecision (DecisionBuilder *b) override |
| | Before calling DecisionBuilder::Next.
|
| void | PeriodicCheck () override |
| | Periodic call to check limits in long running methods.
|
| void | RefuteDecision (Decision *d) override |
| | Before refuting the decision.
|
| std::string | DebugString () const override |
| void | Install () override |
| | A search monitors adds itself on the active search.
|
| | SearchMonitor (Solver *const s) |
| | SearchMonitor (const SearchMonitor &)=delete |
| | This type is neither copyable nor movable.
|
| SearchMonitor & | operator= (const SearchMonitor &)=delete |
| | ~SearchMonitor () override |
| virtual void | RestartSearch () |
| | Restart the search.
|
| virtual void | EndNextDecision (DecisionBuilder *b, Decision *d) |
| | After calling DecisionBuilder::Next, along with the returned decision.
|
| virtual void | ApplyDecision (Decision *d) |
| | Before applying the decision.
|
| virtual void | AfterDecision (Decision *d, bool apply) |
| virtual void | BeginFail () |
| | Just when the failure occurs.
|
| virtual void | EndFail () |
| | After completing the backtrack.
|
| virtual void | BeginInitialPropagation () |
| | Before the initial propagation.
|
| virtual void | EndInitialPropagation () |
| | After the initial propagation.
|
| virtual bool | AcceptSolution () |
| virtual bool | AtSolution () |
| virtual void | NoMoreSolutions () |
| | When the search tree is finished.
|
| virtual bool | LocalOptimum () |
| virtual bool | AcceptDelta (Assignment *delta, Assignment *deltadelta) |
| virtual void | AcceptNeighbor () |
| | After accepting a neighbor during local search.
|
| virtual void | AcceptUncheckedNeighbor () |
| | After accepting an unchecked neighbor during local search.
|
| Solver * | solver () const |
| | BaseObject () |
| | BaseObject (const BaseObject &)=delete |
| | This type is neither copyable nor movable.
|
| BaseObject & | operator= (const BaseObject &)=delete |
| virtual | ~BaseObject ()=default |