OR-Tools  9.6
ScatteredIntegerVector

Detailed Description

Definition at line 72 of file linear_programming_constraint.h.

Public Member Functions

void ClearAndResize (int size)
 
bool Add (glop::ColIndex col, IntegerValue value)
 
bool AddLinearExpressionMultiple (IntegerValue multiplier, const std::vector< std::pair< glop::ColIndex, IntegerValue >> &terms)
 
void ConvertToLinearConstraint (const std::vector< IntegerVariable > &integer_variables, IntegerValue upper_bound, LinearConstraint *result)
 
std::vector< std::pair< glop::ColIndex, IntegerValue > > GetTerms ()
 
IntegerValue operator[] (glop::ColIndex col) const
 
bool IsSparse () const
 

Member Function Documentation

◆ Add()

bool Add ( glop::ColIndex  col,
IntegerValue  value 
)

Definition at line 88 of file linear_programming_constraint.cc.

◆ AddLinearExpressionMultiple()

bool AddLinearExpressionMultiple ( IntegerValue  multiplier,
const std::vector< std::pair< glop::ColIndex, IntegerValue >> &  terms 
)

Definition at line 101 of file linear_programming_constraint.cc.

◆ ClearAndResize()

void ClearAndResize ( int  size)

Definition at line 71 of file linear_programming_constraint.cc.

◆ ConvertToLinearConstraint()

void ConvertToLinearConstraint ( const std::vector< IntegerVariable > &  integer_variables,
IntegerValue  upper_bound,
LinearConstraint result 
)

Definition at line 129 of file linear_programming_constraint.cc.

◆ GetTerms()

std::vector< std::pair< glop::ColIndex, IntegerValue > > GetTerms ( )

Definition at line 156 of file linear_programming_constraint.cc.

◆ IsSparse()

bool IsSparse ( ) const
inline

Definition at line 105 of file linear_programming_constraint.h.

◆ operator[]()

IntegerValue operator[] ( glop::ColIndex  col) const
inline

Definition at line 101 of file linear_programming_constraint.h.


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