OR-Tools  8.2
LinearConstraintManager

Detailed Description

Definition at line 41 of file linear_constraint_manager.h.

Classes

struct  ConstraintInfo
 

Public Member Functions

 LinearConstraintManager (Model *model)
 
 ~LinearConstraintManager ()
 
 DEFINE_INT_TYPE (ConstraintIndex, int32)
 
ConstraintIndex Add (LinearConstraint ct, bool *added=nullptr)
 
bool AddCut (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)
 
void AddAllConstraintsToLp ()
 
const absl::StrongVector< ConstraintIndex, ConstraintInfo > & AllConstraints () const
 
const std::vector< ConstraintIndex > & LpConstraints () const
 
int64 num_cuts () const
 
int64 num_shortened_constraints () const
 
int64 num_coeff_strenghtening () const
 
bool DebugCheckConstraint (const LinearConstraint &cut)
 

Constructor & Destructor Documentation

◆ LinearConstraintManager()

LinearConstraintManager ( Model model)
inlineexplicit

Definition at line 66 of file linear_constraint_manager.h.

◆ ~LinearConstraintManager()

Definition at line 46 of file linear_constraint_manager.cc.

Member Function Documentation

◆ Add()

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

Definition at line 129 of file linear_constraint_manager.cc.

◆ AddAllConstraintsToLp()

void AddAllConstraintsToLp ( )

Definition at line 682 of file linear_constraint_manager.cc.

◆ AddCut()

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

Definition at line 205 of file linear_constraint_manager.cc.

◆ AllConstraints()

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

Definition at line 114 of file linear_constraint_manager.h.

◆ ChangeLp()

bool ChangeLp ( const absl::StrongVector< IntegerVariable, double > &  lp_solution,
glop::BasisState solution_state 
)

Definition at line 440 of file linear_constraint_manager.cc.

◆ DebugCheckConstraint()

bool DebugCheckConstraint ( const LinearConstraint cut)

Definition at line 690 of file linear_constraint_manager.cc.

◆ DEFINE_INT_TYPE()

DEFINE_INT_TYPE ( ConstraintIndex  ,
int32   
)

◆ LpConstraints()

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

Definition at line 121 of file linear_constraint_manager.h.

◆ num_coeff_strenghtening()

int64 num_coeff_strenghtening ( ) const
inline

Definition at line 127 of file linear_constraint_manager.h.

◆ num_cuts()

int64 num_cuts ( ) const
inline

Definition at line 125 of file linear_constraint_manager.h.

◆ num_shortened_constraints()

int64 num_shortened_constraints ( ) const
inline

Definition at line 126 of file linear_constraint_manager.h.

◆ SetObjectiveCoefficient()

void SetObjectiveCoefficient ( IntegerVariable  var,
IntegerValue  coeff 
)

Definition at line 300 of file linear_constraint_manager.cc.


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