OR-Tools  8.2
CanonicalBooleanLinearProblem

Detailed Description

Definition at line 141 of file pb_constraint.h.

Public Member Functions

 CanonicalBooleanLinearProblem ()
 
bool AddLinearConstraint (bool use_lower_bound, Coefficient lower_bound, bool use_upper_bound, Coefficient upper_bound, std::vector< LiteralWithCoeff > *cst)
 
int NumConstraints () const
 
const Coefficient Rhs (int i) const
 
const std::vector< LiteralWithCoeff > & Constraint (int i) const
 

Constructor & Destructor Documentation

◆ CanonicalBooleanLinearProblem()

Definition at line 143 of file pb_constraint.h.

Member Function Documentation

◆ AddLinearConstraint()

bool AddLinearConstraint ( bool  use_lower_bound,
Coefficient  lower_bound,
bool  use_upper_bound,
Coefficient  upper_bound,
std::vector< LiteralWithCoeff > *  cst 
)

Definition at line 201 of file pb_constraint.cc.

◆ Constraint()

const std::vector< LiteralWithCoeff > & Constraint ( int  i) const
inline

Definition at line 157 of file pb_constraint.h.

◆ NumConstraints()

int NumConstraints ( ) const
inline

Definition at line 155 of file pb_constraint.h.

◆ Rhs()

const Coefficient Rhs ( int  i) const
inline

Definition at line 156 of file pb_constraint.h.


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