OR-Tools  8.0
ProblemState

Detailed Description

Definition at line 111 of file bop_base.h.

Public Member Functions

 ProblemState (const sat::LinearBooleanProblem &problem)
 
void SetParameters (const BopParameters &parameters)
 
const BopParameters & GetParameters () const
 
void set_assignment_preference (const std::vector< bool > &a)
 
const std::vector< bool > assignment_preference () const
 
bool MergeLearnedInfo (const LearnedInfo &learned_info, BopOptimizerBase::Status optimization_status)
 
LearnedInfo GetLearnedInfo () const
 
int64 update_stamp () const
 
void MarkAsOptimal ()
 
void MarkAsInfeasible ()
 
bool IsOptimal () const
 
bool IsInfeasible () const
 
bool IsVariableFixed (VariableIndex var) const
 
const gtl::ITIVector< VariableIndex, bool > & is_fixed () const
 
bool GetVariableFixedValue (VariableIndex var) const
 
const gtl::ITIVector< VariableIndex, bool > & fixed_values () const
 
const glop::DenseRowlp_values () const
 
const BopSolutionsolution () const
 
const sat::LinearBooleanProblem & original_problem () const
 
int64 lower_bound () const
 
int64 upper_bound () const
 
double GetScaledLowerBound () const
 
const std::vector< sat::BinaryClause > & NewlyAddedBinaryClauses () const
 
void SynchronizationDone ()
 

Static Public Attributes

static const int64 kInitialStampValue
 

Constructor & Destructor Documentation

◆ ProblemState()

ProblemState ( const sat::LinearBooleanProblem &  problem)
explicit

Definition at line 66 of file bop_base.cc.

Member Function Documentation

◆ assignment_preference()

const std::vector<bool> assignment_preference ( ) const
inline

Definition at line 127 of file bop_base.h.

◆ fixed_values()

const gtl::ITIVector<VariableIndex, bool>& fixed_values ( ) const
inline

Definition at line 182 of file bop_base.h.

◆ GetLearnedInfo()

LearnedInfo GetLearnedInfo ( ) const

Definition at line 213 of file bop_base.cc.

◆ GetParameters()

const BopParameters& GetParameters ( ) const
inline

Definition at line 120 of file bop_base.h.

◆ GetScaledLowerBound()

double GetScaledLowerBound ( ) const
inline

Definition at line 210 of file bop_base.h.

◆ GetVariableFixedValue()

bool GetVariableFixedValue ( VariableIndex  var) const
inline

Definition at line 179 of file bop_base.h.

◆ is_fixed()

const gtl::ITIVector<VariableIndex, bool>& is_fixed ( ) const
inline

Definition at line 173 of file bop_base.h.

◆ IsInfeasible()

bool IsInfeasible ( ) const
inline

Definition at line 168 of file bop_base.h.

◆ IsOptimal()

bool IsOptimal ( ) const
inline

Definition at line 163 of file bop_base.h.

◆ IsVariableFixed()

bool IsVariableFixed ( VariableIndex  var) const
inline

Definition at line 172 of file bop_base.h.

◆ lower_bound()

int64 lower_bound ( ) const
inline

Definition at line 206 of file bop_base.h.

◆ lp_values()

const glop::DenseRow& lp_values ( ) const
inline

Definition at line 188 of file bop_base.h.

◆ MarkAsInfeasible()

void MarkAsInfeasible ( )

Definition at line 235 of file bop_base.cc.

◆ MarkAsOptimal()

void MarkAsOptimal ( )

Definition at line 229 of file bop_base.cc.

◆ MergeLearnedInfo()

bool MergeLearnedInfo ( const LearnedInfo learned_info,
BopOptimizerBase::Status  optimization_status 
)

Definition at line 90 of file bop_base.cc.

◆ NewlyAddedBinaryClauses()

const std::vector< sat::BinaryClause > & NewlyAddedBinaryClauses ( ) const

Definition at line 247 of file bop_base.cc.

◆ original_problem()

const sat::LinearBooleanProblem& original_problem ( ) const
inline

Definition at line 198 of file bop_base.h.

◆ set_assignment_preference()

void set_assignment_preference ( const std::vector< bool > &  a)
inline

Definition at line 124 of file bop_base.h.

◆ SetParameters()

void SetParameters ( const BopParameters &  parameters)
inline

Definition at line 116 of file bop_base.h.

◆ solution()

const BopSolution& solution ( ) const
inline

Definition at line 193 of file bop_base.h.

◆ SynchronizationDone()

void SynchronizationDone ( )

Definition at line 252 of file bop_base.cc.

◆ update_stamp()

int64 update_stamp ( ) const
inline

Definition at line 153 of file bop_base.h.

◆ upper_bound()

int64 upper_bound ( ) const
inline

Definition at line 207 of file bop_base.h.

Member Data Documentation

◆ kInitialStampValue

const int64 kInitialStampValue
static

Definition at line 152 of file bop_base.h.


The documentation for this class was generated from the following files: