Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::bop::BopSolution Class Reference

Detailed Description

Definition at line 39 of file bop_solution.h.

#include <bop_solution.h>

Public Member Functions

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

Constructor & Destructor Documentation

◆ BopSolution()

operations_research::bop::BopSolution::BopSolution ( const sat::LinearBooleanProblem & problem,
absl::string_view name )

Definition at line 38 of file bop_solution.cc.

Member Function Documentation

◆ begin()

util_intops::StrongVector< VariableIndex, bool >::const_iterator operations_research::bop::BopSolution::begin ( ) const
inline

Definition at line 84 of file bop_solution.h.

◆ end()

util_intops::StrongVector< VariableIndex, bool >::const_iterator operations_research::bop::BopSolution::end ( ) const
inline

Definition at line 87 of file bop_solution.h.

◆ GetCost()

int64_t operations_research::bop::BopSolution::GetCost ( ) const
inline

Definition at line 57 of file bop_solution.h.

◆ GetScaledCost()

double operations_research::bop::BopSolution::GetScaledCost ( ) const
inline

Definition at line 68 of file bop_solution.h.

◆ IsFeasible()

bool operations_research::bop::BopSolution::IsFeasible ( ) const
inline

Definition at line 76 of file bop_solution.h.

◆ name()

const std::string & operations_research::bop::BopSolution::name ( ) const
inline

Definition at line 51 of file bop_solution.h.

◆ operator<()

bool operations_research::bop::BopSolution::operator< ( const BopSolution & solution) const
inline

Definition at line 94 of file bop_solution.h.

◆ set_name()

void operations_research::bop::BopSolution::set_name ( absl::string_view name)
inline

Definition at line 52 of file bop_solution.h.

◆ SetValue()

void operations_research::bop::BopSolution::SetValue ( VariableIndex var,
bool value )
inline

Definition at line 43 of file bop_solution.h.

◆ Size()

size_t operations_research::bop::BopSolution::Size ( ) const
inline

Definition at line 49 of file bop_solution.h.

◆ Value()

bool operations_research::bop::BopSolution::Value ( VariableIndex var) const
inline

Definition at line 50 of file bop_solution.h.


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