![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Definition at line 3190 of file constraint_solveri.h.
#include <constraint_solveri.h>
Public Member Functions | |
| IntVarLocalSearchFilter (const std::vector< IntVar * > &vars) | |
| ~IntVarLocalSearchFilter () override | |
| void | Synchronize (const Assignment *assignment, const Assignment *delta) override |
| bool | FindIndex (IntVar *const var, int64_t *index) const |
| void | AddVars (const std::vector< IntVar * > &vars) |
| Add variables to "track" to the filter. | |
| int | Size () const |
| IntVar * | Var (int index) const |
| int64_t | Value (int index) const |
| bool | IsVarSynced (int index) const |
| Public Member Functions inherited from operations_research::LocalSearchFilter | |
| virtual void | Relax (const Assignment *, const Assignment *) |
| virtual void | Commit (const Assignment *, const Assignment *) |
| Dual of Relax(), lets the filter know that the delta was accepted. | |
| virtual bool | Accept (const Assignment *delta, const Assignment *deltadelta, int64_t objective_min, int64_t objective_max)=0 |
| virtual bool | IsIncremental () const |
| virtual void | Revert () |
| Cancels the changes made by the last Relax()/Accept() calls. | |
| virtual void | Reset () |
| Sets the filter to empty solution. | |
| virtual int64_t | GetSynchronizedObjectiveValue () const |
| Objective value from last time Synchronize() was called. | |
| virtual int64_t | GetAcceptedObjectiveValue () const |
| Public Member Functions inherited from operations_research::BaseObject | |
| BaseObject () | |
| BaseObject (const BaseObject &)=delete | |
| This type is neither copyable nor movable. | |
| BaseObject & | operator= (const BaseObject &)=delete |
| virtual | ~BaseObject ()=default |
| virtual std::string | DebugString () const |
Protected Member Functions | |
| virtual void | OnSynchronize (const Assignment *) |
| void | SynchronizeOnAssignment (const Assignment *assignment) |
|
explicit |
Definition at line 2565 of file local_search.cc.
|
override |
Definition at line 2585 of file local_search.cc.
| void operations_research::IntVarLocalSearchFilter::AddVars | ( | const std::vector< IntVar * > & | vars | ) |
Add variables to "track" to the filter.
Definition at line 2570 of file local_search.cc.
|
inline |
Definition at line 3199 of file constraint_solveri.h.
|
inline |
Definition at line 3216 of file constraint_solveri.h.
|
inlineprotectedvirtual |
Reimplemented in operations_research::BasePathFilter.
Definition at line 3219 of file constraint_solveri.h.
|
inline |
Definition at line 3210 of file constraint_solveri.h.
|
overridevirtual |
This method should not be overridden. Override OnSynchronize() instead which is called before exiting this method.
Implements operations_research::LocalSearchFilter.
Definition at line 2587 of file local_search.cc.
|
protected |
Definition at line 2598 of file local_search.cc.
|
inline |
Definition at line 3212 of file constraint_solveri.h.
|
inline |
Definition at line 3211 of file constraint_solveri.h.