OR-Tools  9.6
FeasibilityPump

Detailed Description

Definition at line 42 of file feasibility_pump.h.

Public Types

typedef glop::RowIndex ConstraintIndex
 

Public Member Functions

 FeasibilityPump (Model *model)
 
 ~FeasibilityPump ()
 
void SetMaxFPIterations (int max_iter)
 
void AddLinearConstraint (const LinearConstraint &ct)
 
void SetObjectiveCoefficient (IntegerVariable ivar, IntegerValue coeff)
 
bool HasLPSolution () const
 
double LPSolutionObjectiveValue () const
 
double GetLPSolutionValue (IntegerVariable variable) const
 
bool LPSolutionIsInteger () const
 
double LPSolutionFractionality () const
 
bool HasIntegerSolution () const
 
int64_t IntegerSolutionObjectiveValue () const
 
bool IntegerSolutionIsFeasible () const
 
int64_t GetIntegerSolutionValue (IntegerVariable variable) const
 
bool Solve ()
 

Member Typedef Documentation

◆ ConstraintIndex

typedef glop::RowIndex ConstraintIndex

Definition at line 47 of file feasibility_pump.h.

Constructor & Destructor Documentation

◆ FeasibilityPump()

FeasibilityPump ( Model model)
explicit

Definition at line 58 of file feasibility_pump.cc.

◆ ~FeasibilityPump()

Definition at line 80 of file feasibility_pump.cc.

Member Function Documentation

◆ AddLinearConstraint()

void AddLinearConstraint ( const LinearConstraint ct)

Definition at line 85 of file feasibility_pump.cc.

◆ GetIntegerSolutionValue()

int64_t GetIntegerSolutionValue ( IntegerVariable  variable) const

Definition at line 449 of file feasibility_pump.cc.

◆ GetLPSolutionValue()

double GetLPSolutionValue ( IntegerVariable  variable) const

Definition at line 437 of file feasibility_pump.cc.

◆ HasIntegerSolution()

bool HasIntegerSolution ( ) const
inline

Definition at line 73 of file feasibility_pump.h.

◆ HasLPSolution()

bool HasLPSolution ( ) const
inline

Definition at line 64 of file feasibility_pump.h.

◆ IntegerSolutionIsFeasible()

bool IntegerSolutionIsFeasible ( ) const
inline

Definition at line 77 of file feasibility_pump.h.

◆ IntegerSolutionObjectiveValue()

int64_t IntegerSolutionObjectiveValue ( ) const
inline

Definition at line 74 of file feasibility_pump.h.

◆ LPSolutionFractionality()

double LPSolutionFractionality ( ) const
inline

Definition at line 68 of file feasibility_pump.h.

◆ LPSolutionIsInteger()

bool LPSolutionIsInteger ( ) const
inline

Definition at line 67 of file feasibility_pump.h.

◆ LPSolutionObjectiveValue()

double LPSolutionObjectiveValue ( ) const
inline

Definition at line 65 of file feasibility_pump.h.

◆ SetMaxFPIterations()

void SetMaxFPIterations ( int  max_iter)
inline

Definition at line 49 of file feasibility_pump.h.

◆ SetObjectiveCoefficient()

void SetObjectiveCoefficient ( IntegerVariable  ivar,
IntegerValue  coeff 
)

Definition at line 111 of file feasibility_pump.cc.

◆ Solve()

bool Solve ( )

Definition at line 164 of file feasibility_pump.cc.


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