OR-Tools  8.2
ZeroHalfCutHelper

Detailed Description

Definition at line 38 of file zero_half_cuts.h.

Classes

struct  CombinationOfRows
 

Public Member Functions

void ProcessVariables (const std::vector< double > &lp_values, const std::vector< IntegerValue > &lower_bounds, const std::vector< IntegerValue > &upper_bounds)
 
void AddOneConstraint (glop::RowIndex, const std::vector< std::pair< glop::ColIndex, IntegerValue > > &terms, IntegerValue lb, IntegerValue ub)
 
std::vector< std::vector< std::pair< glop::RowIndex, IntegerValue > > > InterestingCandidates (ModelRandomGenerator *random)
 
void Reset (int size)
 
void AddBinaryRow (const CombinationOfRows &binary_row)
 
const CombinationOfRowsMatrixRow (int row) const
 
const std::vector< int > & MatrixCol (int col) const
 
void EliminateVarUsingRow (int col, int row)
 
void SymmetricDifference (std::function< bool(int)> extra_condition, const std::vector< int > &a, std::vector< int > *b)
 

Member Function Documentation

◆ AddBinaryRow()

void AddBinaryRow ( const CombinationOfRows binary_row)

Definition at line 49 of file zero_half_cuts.cc.

◆ AddOneConstraint()

void AddOneConstraint ( glop::RowIndex  row,
const std::vector< std::pair< glop::ColIndex, IntegerValue > > &  terms,
IntegerValue  lb,
IntegerValue  ub 
)

Definition at line 58 of file zero_half_cuts.cc.

◆ EliminateVarUsingRow()

void EliminateVarUsingRow ( int  col,
int  row 
)

Definition at line 159 of file zero_half_cuts.cc.

◆ InterestingCandidates()

std::vector< std::vector< std::pair< glop::RowIndex, IntegerValue > > > InterestingCandidates ( ModelRandomGenerator random)

Definition at line 227 of file zero_half_cuts.cc.

◆ MatrixCol()

const std::vector< int > & MatrixCol ( int  col) const
inline

Definition at line 79 of file zero_half_cuts.h.

◆ MatrixRow()

const CombinationOfRows & MatrixRow ( int  row) const
inline

Definition at line 78 of file zero_half_cuts.h.

◆ ProcessVariables()

void ProcessVariables ( const std::vector< double > &  lp_values,
const std::vector< IntegerValue > &  lower_bounds,
const std::vector< IntegerValue > &  upper_bounds 
)

Definition at line 28 of file zero_half_cuts.cc.

◆ Reset()

void Reset ( int  size)

Definition at line 19 of file zero_half_cuts.cc.

◆ SymmetricDifference()

void SymmetricDifference ( std::function< bool(int)>  extra_condition,
const std::vector< int > &  a,
std::vector< int > *  b 
)

Definition at line 111 of file zero_half_cuts.cc.


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