#include <constraint_solveri.h>
A LocalSearchState Variable can only be created by a LocalSearchState, then it is meant to be passed by copy. If at some point the duplication of LocalSearchState pointers is too expensive, we could switch to index only, and the user would have to know the relevant state. The present setup allows to ensure that variable users will not misuse the state.
Definition at line 3024 of file constraint_solveri.h.
◆ Variable()
operations_research::LocalSearchState::Variable::Variable |
( |
| ) |
|
|
inline |
◆ Exists()
bool operations_research::LocalSearchState::Variable::Exists |
( |
| ) |
const |
|
inline |
◆ Max()
int64_t operations_research::LocalSearchState::Variable::Max |
( |
| ) |
const |
|
inline |
◆ Min()
int64_t operations_research::LocalSearchState::Variable::Min |
( |
| ) |
const |
|
inline |
◆ Relax()
void operations_research::LocalSearchState::Variable::Relax |
( |
| ) |
const |
|
inline |
◆ SetMax()
bool operations_research::LocalSearchState::Variable::SetMax |
( |
int64_t | new_max | ) |
const |
|
inline |
Sets variable's maximum to min(Max(), new_max) and propagates the change. Returns true iff the variable domain is nonempty and propagation succeeded.
Definition at line 3044 of file constraint_solveri.h.
◆ SetMin()
bool operations_research::LocalSearchState::Variable::SetMin |
( |
int64_t | new_min | ) |
const |
|
inline |
Sets variable's minimum to max(Min(), new_min) and propagates the change. Returns true iff the variable domain is nonempty and propagation succeeded.
Definition at line 3037 of file constraint_solveri.h.
◆ LocalSearchState
The documentation for this class was generated from the following file: