#include <feasibility_jump.h>
Accessing Domain can be expensive, so we maintain vector of bool for the hot spots.
Definition at line 114 of file feasibility_jump.h.
◆ VarDomainWrapper()
operations_research::sat::VarDomainWrapper::VarDomainWrapper |
( |
SharedBoundsManager * | shared_bounds | ) |
|
|
inlineexplicit |
◆ AsSpan()
absl::Span< const Domain > operations_research::sat::VarDomainWrapper::AsSpan |
( |
| ) |
const |
|
inline |
◆ FixedVariables()
absl::Span< const int > operations_research::sat::VarDomainWrapper::FixedVariables |
( |
| ) |
const |
|
inline |
◆ HasBetterObjectiveValue()
bool operations_research::sat::VarDomainWrapper::HasBetterObjectiveValue |
( |
int | var | ) |
const |
|
inline |
◆ HasTwoValues()
bool operations_research::sat::VarDomainWrapper::HasTwoValues |
( |
int | var | ) |
const |
|
inline |
◆ InitializeObjective()
void operations_research::sat::VarDomainWrapper::InitializeObjective |
( |
const CpModelProto & | cp_model_proto | ) |
|
|
inline |
◆ IsFixed()
bool operations_research::sat::VarDomainWrapper::IsFixed |
( |
int | var | ) |
const |
|
inline |
◆ OnValueChange()
void operations_research::sat::VarDomainWrapper::OnValueChange |
( |
int | var, |
|
|
int64_t | value ) |
|
inline |
Tricky: this must be called on solution value change or domains update.
Definition at line 183 of file feasibility_jump.h.
◆ operator[]()
Domain operations_research::sat::VarDomainWrapper::operator[] |
( |
int | var | ) |
const |
|
inline |
◆ resize()
void operations_research::sat::VarDomainWrapper::resize |
( |
int | num_vars | ) |
|
|
inline |
◆ Set()
void operations_research::sat::VarDomainWrapper::Set |
( |
int | var, |
|
|
Domain | d ) |
|
inline |
The code here assume that once fixed, a variable stays that way.
Definition at line 134 of file feasibility_jump.h.
◆ size()
size_t operations_research::sat::VarDomainWrapper::size |
( |
| ) |
const |
|
inline |
◆ UpdateFromSharedBounds()
bool operations_research::sat::VarDomainWrapper::UpdateFromSharedBounds |
( |
| ) |
|
|
inline |
Return false if one of the domain becomes empty (UNSAT). This might happen while we are cleaning up all workers at the end of a search.
Definition at line 148 of file feasibility_jump.h.
The documentation for this class was generated from the following file: