OR-Tools  9.6
LinearConstraintManager

Detailed Description

Definition at line 50 of file linear_constraint_manager.h.

Classes

struct  ConstraintInfo
 

Public Member Functions

 LinearConstraintManager (Model *model)
 
 ~LinearConstraintManager ()
 
 DEFINE_STRONG_INDEX_TYPE (ConstraintIndex)
 
ConstraintIndex Add (LinearConstraint ct, bool *added=nullptr)
 
bool AddCut (const LinearConstraint &ct, std::string type_name, const absl::StrongVector< IntegerVariable, double > &lp_solution, std::string extra_info="")
 
void SetObjectiveCoefficient (IntegerVariable var, IntegerValue coeff)
 
bool ChangeLp (const absl::StrongVector< IntegerVariable, double > &lp_solution, glop::BasisState *solution_state, int *num_new_constraints=nullptr)
 
void AddAllConstraintsToLp ()
 
const absl::StrongVector< ConstraintIndex, ConstraintInfo > & AllConstraints () const
 
const std::vector< ConstraintIndex > & LpConstraints () const
 
int64_t num_cuts () const
 
int64_t num_shortened_constraints () const
 
int64_t num_coeff_strenghtening () const
 
bool DebugCheckConstraint (const LinearConstraint &cut)
 
std::string Statistics () const
 

Constructor & Destructor Documentation

◆ LinearConstraintManager()

LinearConstraintManager ( Model model)
inlineexplicit

Definition at line 75 of file linear_constraint_manager.h.

◆ ~LinearConstraintManager()

Definition at line 94 of file linear_constraint_manager.cc.

Member Function Documentation

◆ Add()

LinearConstraintManager::ConstraintIndex Add ( LinearConstraint  ct,
bool *  added = nullptr 
)

Definition at line 159 of file linear_constraint_manager.cc.

◆ AddAllConstraintsToLp()

void AddAllConstraintsToLp ( )

Definition at line 757 of file linear_constraint_manager.cc.

◆ AddCut()

bool AddCut ( const LinearConstraint ct,
std::string  type_name,
const absl::StrongVector< IntegerVariable, double > &  lp_solution,
std::string  extra_info = "" 
)

Definition at line 235 of file linear_constraint_manager.cc.

◆ AllConstraints()

const absl::StrongVector<ConstraintIndex, ConstraintInfo>& AllConstraints ( ) const
inline

Definition at line 125 of file linear_constraint_manager.h.

◆ ChangeLp()

bool ChangeLp ( const absl::StrongVector< IntegerVariable, double > &  lp_solution,
glop::BasisState solution_state,
int *  num_new_constraints = nullptr 
)

Definition at line 512 of file linear_constraint_manager.cc.

◆ DebugCheckConstraint()

bool DebugCheckConstraint ( const LinearConstraint cut)

Definition at line 765 of file linear_constraint_manager.cc.

◆ DEFINE_STRONG_INDEX_TYPE()

DEFINE_STRONG_INDEX_TYPE ( ConstraintIndex  )

◆ LpConstraints()

const std::vector<ConstraintIndex>& LpConstraints ( ) const
inline

Definition at line 132 of file linear_constraint_manager.h.

◆ num_coeff_strenghtening()

int64_t num_coeff_strenghtening ( ) const
inline

Definition at line 140 of file linear_constraint_manager.h.

◆ num_cuts()

int64_t num_cuts ( ) const
inline

Definition at line 136 of file linear_constraint_manager.h.

◆ num_shortened_constraints()

int64_t num_shortened_constraints ( ) const
inline

Definition at line 137 of file linear_constraint_manager.h.

◆ SetObjectiveCoefficient()

void SetObjectiveCoefficient ( IntegerVariable  var,
IntegerValue  coeff 
)

Definition at line 337 of file linear_constraint_manager.cc.

◆ Statistics()

std::string Statistics ( ) const

Definition at line 60 of file linear_constraint_manager.cc.


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