![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
-------— Objective Management -------— More...
Public Member Functions | |
RoundRobinCompoundObjectiveMonitor (std::vector< BaseObjectiveMonitor * > monitors, int num_max_local_optima_before_metaheuristic_switch) | |
void | EnterSearch () override |
Beginning of the search. | |
void | ApplyDecision (Decision *d) override |
Before applying the decision. | |
void | AcceptNeighbor () override |
After accepting a neighbor during local search. | |
bool | AtSolution () override |
bool | AcceptDelta (Assignment *delta, Assignment *deltadelta) override |
void | BeginNextDecision (DecisionBuilder *db) override |
Before calling DecisionBuilder::Next. | |
void | RefuteDecision (Decision *d) override |
Before refuting the decision. | |
bool | AcceptSolution () override |
bool | LocalOptimum () override |
IntVar * | ObjectiveVar (int index) const override |
IntVar * | MinimizationVar (int index) const override |
int64_t | Step (int index) const override |
bool | Maximize (int index) const override |
int64_t | BestValue (int index) const override |
int | Size () const override |
std::string | DebugString () const override |
void | Accept (ModelVisitor *visitor) const override |
Accepts the given model visitor. | |
![]() | |
BaseObjectiveMonitor (Solver *solver) | |
~BaseObjectiveMonitor () override | |
BaseObjectiveMonitor (const BaseObjectiveMonitor &)=delete | |
BaseObjectiveMonitor & | operator= (const BaseObjectiveMonitor &)=delete |
bool | is_active () const |
void | set_active (bool is_active) |
![]() | |
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 | ExitSearch () |
End of the search. | |
virtual void | EndNextDecision (DecisionBuilder *b, Decision *d) |
After calling DecisionBuilder::Next, along with the returned 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 void | NoMoreSolutions () |
When the search tree is finished. | |
virtual void | AcceptUncheckedNeighbor () |
After accepting an unchecked neighbor during local search. | |
virtual bool | IsUncheckedSolutionLimitReached () |
virtual void | PeriodicCheck () |
Periodic call to check limits in long running methods. | |
virtual int | ProgressPercent () |
virtual void | Install () |
A search monitors adds itself on the active search. | |
Solver * | solver () const |
![]() | |
BaseObject () | |
BaseObject (const BaseObject &)=delete | |
This type is neither copyable nor movable. | |
BaseObject & | operator= (const BaseObject &)=delete |
virtual | ~BaseObject () |
Additional Inherited Members | |
![]() | |
static constexpr int | kNoProgress = -1 |
![]() | |
void | ListenToEvent (Solver::MonitorEvent event) |
|
inline |
|
inlineoverridevirtual |
Accepts the given model visitor.
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
After accepting a neighbor during local search.
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
This method is called when a solution is found. It asserts whether the solution is valid. A value of false indicates that the solution should be discarded.
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
Before applying the decision.
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
This method is called when a valid solution is found. If the return value is true, then search will resume after. If the result is false, then search will stop there.
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
Before calling DecisionBuilder::Next.
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
Implements operations_research::BaseObjectiveMonitor.
|
inlineoverridevirtual |
Reimplemented from operations_research::BaseObject.
|
inlineoverridevirtual |
Beginning of the search.
-------— Search Monitor -------—
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
When a local optimum is reached. If 'true' is returned, the last solution is discarded and the search proceeds with the next one.
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
Implements operations_research::BaseObjectiveMonitor.
|
inlineoverridevirtual |
Implements operations_research::BaseObjectiveMonitor.
|
inlineoverridevirtual |
Implements operations_research::BaseObjectiveMonitor.
|
inlineoverridevirtual |
Before refuting the decision.
Reimplemented from operations_research::SearchMonitor.
|
inlineoverridevirtual |
Implements operations_research::BaseObjectiveMonitor.
|
inlineoverridevirtual |
Implements operations_research::BaseObjectiveMonitor.