![]() |
OR-Tools
9.6
|
Filter manager: when a move is made, filters are executed to decide whether the solution is feasible and compute parts of the new cost.
This class schedules filter execution and composes costs as a sum.
Definition at line 1768 of file constraint_solveri.h.
Classes | |
| struct | FilterEvent |
Public Types | |
| enum | FilterEventType { kAccept , kRelax } |
Public Member Functions | |
| std::string | DebugString () const override |
| LocalSearchFilterManager (std::vector< FilterEvent > filter_events) | |
| LocalSearchFilterManager (std::vector< LocalSearchFilter * > filters) | |
| void | Revert () |
| bool | Accept (LocalSearchMonitor *const monitor, const Assignment *delta, const Assignment *deltadelta, int64_t objective_min, int64_t objective_max) |
| Returns true iff all filters return true, and the sum of their accepted objectives is between objective_min and objective_max. More... | |
| void | Synchronize (const Assignment *assignment, const Assignment *delta) |
| Synchronizes all filters to assignment. More... | |
| int64_t | GetSynchronizedObjectiveValue () const |
| int64_t | GetAcceptedObjectiveValue () const |
| enum FilterEventType |
| Enumerator | |
|---|---|
| kAccept | |
| kRelax | |
Definition at line 1772 of file constraint_solveri.h.
|
explicit |
Definition at line 4160 of file local_search.cc.
|
explicit |
Definition at line 4145 of file local_search.cc.
| bool Accept | ( | LocalSearchMonitor *const | monitor, |
| const Assignment * | delta, | ||
| const Assignment * | deltadelta, | ||
| int64_t | objective_min, | ||
| int64_t | objective_max | ||
| ) |
Returns true iff all filters return true, and the sum of their accepted objectives is between objective_min and objective_max.
The monitor has its Begin/EndFiltering events triggered.
Definition at line 4185 of file local_search.cc.
|
inlineoverridevirtual |
Reimplemented from BaseObject.
Definition at line 1779 of file constraint_solveri.h.
|
inline |
Definition at line 1801 of file constraint_solveri.h.
|
inline |
Definition at line 1800 of file constraint_solveri.h.
| void Revert | ( | ) |
Definition at line 4174 of file local_search.cc.
| void Synchronize | ( | const Assignment * | assignment, |
| const Assignment * | delta | ||
| ) |
Synchronizes all filters to assignment.
Definition at line 4241 of file local_search.cc.