OR-Tools  8.2
ScatteredIntegerVector

Detailed Description

Definition at line 65 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
 

Member Function Documentation

◆ Add()

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

Definition at line 67 of file linear_programming_constraint.cc.

◆ AddLinearExpressionMultiple()

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

Definition at line 78 of file linear_programming_constraint.cc.

◆ ClearAndResize()

void ClearAndResize ( int  size)

Definition at line 50 of file linear_programming_constraint.cc.

◆ ConvertToLinearConstraint()

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

Definition at line 106 of file linear_programming_constraint.cc.

◆ GetTerms()

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

Definition at line 133 of file linear_programming_constraint.cc.

◆ operator[]()

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

Definition at line 94 of file linear_programming_constraint.h.


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