OR-Tools  8.2
BopSolution

Detailed Description

Definition at line 34 of file bop_solution.h.

Public Member Functions

 BopSolution (const sat::LinearBooleanProblem &problem, const std::string &name)
 
void SetValue (VariableIndex var, bool value)
 
size_t Size () const
 
bool Value (VariableIndex var) const
 
const std::string & name () const
 
void set_name (const std::string &name)
 
int64_t GetCost () const
 
double GetScaledCost () const
 
bool IsFeasible () const
 
absl::StrongVector< VariableIndex, bool >::const_iterator begin () const
 
absl::StrongVector< VariableIndex, bool >::const_iterator end () const
 
bool operator< (const BopSolution &solution) const
 

Constructor & Destructor Documentation

◆ BopSolution()

BopSolution ( const sat::LinearBooleanProblem &  problem,
const std::string &  name 
)

Definition at line 28 of file bop_solution.cc.

Member Function Documentation

◆ begin()

absl::StrongVector< VariableIndex, bool >::const_iterator begin ( ) const
inline

Definition at line 80 of file bop_solution.h.

◆ end()

absl::StrongVector< VariableIndex, bool >::const_iterator end ( ) const
inline

Definition at line 83 of file bop_solution.h.

◆ GetCost()

int64_t GetCost ( ) const
inline

Definition at line 53 of file bop_solution.h.

◆ GetScaledCost()

double GetScaledCost ( ) const
inline

Definition at line 64 of file bop_solution.h.

◆ IsFeasible()

bool IsFeasible ( ) const
inline

Definition at line 72 of file bop_solution.h.

◆ name()

const std::string & name ( ) const
inline

Definition at line 47 of file bop_solution.h.

◆ operator<()

bool operator< ( const BopSolution solution) const
inline

Definition at line 90 of file bop_solution.h.

◆ set_name()

void set_name ( const std::string &  name)
inline

Definition at line 48 of file bop_solution.h.

◆ SetValue()

void SetValue ( VariableIndex  var,
bool  value 
)
inline

Definition at line 39 of file bop_solution.h.

◆ Size()

size_t Size ( ) const
inline

Definition at line 45 of file bop_solution.h.

◆ Value()

bool Value ( VariableIndex  var) const
inline

Definition at line 46 of file bop_solution.h.


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