OR-Tools  8.2
LinearProgrammingConstraint

Detailed Description

Definition at line 128 of file linear_programming_constraint.h.

Public Types

typedef glop::RowIndex ConstraintIndex
 

Public Member Functions

 LinearProgrammingConstraint (Model *model)
 
 ~LinearProgrammingConstraint () override
 
void AddLinearConstraint (const LinearConstraint &ct)
 
void SetObjectiveCoefficient (IntegerVariable ivar, IntegerValue coeff)
 
void SetMainObjectiveVariable (IntegerVariable ivar)
 
void AddCutGenerator (CutGenerator generator)
 
bool HasSolution () const
 
double SolutionObjectiveValue () const
 
double GetSolutionValue (IntegerVariable variable) const
 
double GetSolutionReducedCost (IntegerVariable variable) const
 
bool SolutionIsInteger () const
 
bool Propagate () override
 
bool IncrementalPropagate (const std::vector< int > &watch_indices) override
 
void RegisterWith (Model *model)
 
void SetLevel (int level) override
 
int NumVariables () const
 
const std::vector< IntegerVariable > & integer_variables () const
 
std::string DimensionString () const
 
std::function< IntegerLiteral()> HeuristicLpMostInfeasibleBinary (Model *model)
 
std::function< IntegerLiteral()> HeuristicLpReducedCostBinary (Model *model)
 
std::function< IntegerLiteral()> HeuristicLpReducedCostAverageBranching ()
 
double average_degeneracy () const
 
int64 total_num_simplex_iterations () const
 

Member Typedef Documentation

◆ ConstraintIndex

typedef glop::RowIndex ConstraintIndex

Definition at line 131 of file linear_programming_constraint.h.

Constructor & Destructor Documentation

◆ LinearProgrammingConstraint()

LinearProgrammingConstraint ( Model model)
explicit

Definition at line 153 of file linear_programming_constraint.cc.

◆ ~LinearProgrammingConstraint()

Definition at line 180 of file linear_programming_constraint.cc.

Member Function Documentation

◆ AddCutGenerator()

void AddCutGenerator ( CutGenerator  generator)

Definition at line 579 of file linear_programming_constraint.cc.

◆ AddLinearConstraint()

void AddLinearConstraint ( const LinearConstraint ct)

Definition at line 190 of file linear_programming_constraint.cc.

◆ average_degeneracy()

double average_degeneracy ( ) const
inline

Definition at line 214 of file linear_programming_constraint.h.

◆ DimensionString()

std::string DimensionString ( ) const
inline

Definition at line 173 of file linear_programming_constraint.h.

◆ GetSolutionReducedCost()

double GetSolutionReducedCost ( IntegerVariable  variable) const

Definition at line 628 of file linear_programming_constraint.cc.

◆ GetSolutionValue()

double GetSolutionValue ( IntegerVariable  variable) const

Definition at line 623 of file linear_programming_constraint.cc.

◆ HasSolution()

bool HasSolution ( ) const
inline

Definition at line 155 of file linear_programming_constraint.h.

◆ HeuristicLpMostInfeasibleBinary()

std::function< IntegerLiteral()> HeuristicLpMostInfeasibleBinary ( Model model)

Definition at line 2577 of file linear_programming_constraint.cc.

◆ HeuristicLpReducedCostAverageBranching()

std::function< IntegerLiteral()> HeuristicLpReducedCostAverageBranching ( )

Definition at line 2778 of file linear_programming_constraint.cc.

◆ HeuristicLpReducedCostBinary()

std::function< IntegerLiteral()> HeuristicLpReducedCostBinary ( Model model)

Definition at line 2623 of file linear_programming_constraint.cc.

◆ IncrementalPropagate()

bool IncrementalPropagate ( const std::vector< int > &  watch_indices)
overridevirtual

Reimplemented from PropagatorInterface.

Definition at line 586 of file linear_programming_constraint.cc.

◆ integer_variables()

const std::vector< IntegerVariable > & integer_variables ( ) const
inline

Definition at line 170 of file linear_programming_constraint.h.

◆ NumVariables()

int NumVariables ( ) const
inline

Definition at line 169 of file linear_programming_constraint.h.

◆ Propagate()

bool Propagate ( )
overridevirtual

Implements PropagatorInterface.

Definition at line 1373 of file linear_programming_constraint.cc.

◆ RegisterWith()

void RegisterWith ( Model model)

Definition at line 520 of file linear_programming_constraint.cc.

◆ SetLevel()

void SetLevel ( int  level)
overridevirtual

Implements ReversibleInterface.

Definition at line 556 of file linear_programming_constraint.cc.

◆ SetMainObjectiveVariable()

void SetMainObjectiveVariable ( IntegerVariable  ivar)
inline

Definition at line 145 of file linear_programming_constraint.h.

◆ SetObjectiveCoefficient()

void SetObjectiveCoefficient ( IntegerVariable  ivar,
IntegerValue  coeff 
)

Definition at line 228 of file linear_programming_constraint.cc.

◆ SolutionIsInteger()

bool SolutionIsInteger ( ) const
inline

Definition at line 159 of file linear_programming_constraint.h.

◆ SolutionObjectiveValue()

double SolutionObjectiveValue ( ) const
inline

Definition at line 156 of file linear_programming_constraint.h.

◆ total_num_simplex_iterations()

int64 total_num_simplex_iterations ( ) const
inline

Definition at line 218 of file linear_programming_constraint.h.


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