OR-Tools  9.6
CutData

Detailed Description

Definition at line 89 of file cuts.h.

Public Member Functions

bool FillFromLinearConstraint (const LinearConstraint &base_ct, const absl::StrongVector< IntegerVariable, double > &lp_values, IntegerTrail *integer_trail)
 
bool FillFromParallelVectors (const LinearConstraint &base_ct, const std::vector< double > &lp_values, const std::vector< IntegerValue > &lower_bounds, const std::vector< IntegerValue > &upper_bounds)
 
bool AppendOneTerm (IntegerVariable var, IntegerValue coeff, double lp_value, IntegerValue lb, IntegerValue ub)
 
void Canonicalize ()
 

Public Attributes

IntegerValue rhs
 
std::vector< CutTermterms
 
IntegerValue max_magnitude
 
int num_relevant_entries
 

Member Function Documentation

◆ AppendOneTerm()

bool AppendOneTerm ( IntegerVariable  var,
IntegerValue  coeff,
double  lp_value,
IntegerValue  lb,
IntegerValue  ub 
)

Definition at line 73 of file cuts.cc.

◆ Canonicalize()

void Canonicalize ( )

Definition at line 160 of file cuts.cc.

◆ FillFromLinearConstraint()

bool FillFromLinearConstraint ( const LinearConstraint base_ct,
const absl::StrongVector< IntegerVariable, double > &  lp_values,
IntegerTrail integer_trail 
)

Definition at line 116 of file cuts.cc.

◆ FillFromParallelVectors()

bool FillFromParallelVectors ( const LinearConstraint base_ct,
const std::vector< double > &  lp_values,
const std::vector< IntegerValue > &  lower_bounds,
const std::vector< IntegerValue > &  upper_bounds 
)

Definition at line 134 of file cuts.cc.

Member Data Documentation

◆ max_magnitude

IntegerValue max_magnitude

Definition at line 110 of file cuts.h.

◆ num_relevant_entries

int num_relevant_entries

Definition at line 111 of file cuts.h.

◆ rhs

IntegerValue rhs

Definition at line 105 of file cuts.h.

◆ terms

std::vector<CutTerm> terms

Definition at line 106 of file cuts.h.


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