OR-Tools  8.2
FeasibilityPump

Detailed Description

Definition at line 32 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 IntegerSolutionObjectiveValue () const
 
bool IntegerSolutionIsFeasible () const
 
int64 GetIntegerSolutionValue (IntegerVariable variable) const
 
bool Solve ()
 

Member Typedef Documentation

◆ ConstraintIndex

typedef glop::RowIndex ConstraintIndex

Definition at line 37 of file feasibility_pump.h.

Constructor & Destructor Documentation

◆ FeasibilityPump()

FeasibilityPump ( Model model)
explicit

Definition at line 37 of file feasibility_pump.cc.

◆ ~FeasibilityPump()

Definition at line 59 of file feasibility_pump.cc.

Member Function Documentation

◆ AddLinearConstraint()

void AddLinearConstraint ( const LinearConstraint ct)

Definition at line 64 of file feasibility_pump.cc.

◆ GetIntegerSolutionValue()

int64 GetIntegerSolutionValue ( IntegerVariable  variable) const

Definition at line 428 of file feasibility_pump.cc.

◆ GetLPSolutionValue()

double GetLPSolutionValue ( IntegerVariable  variable) const

Definition at line 416 of file feasibility_pump.cc.

◆ HasIntegerSolution()

bool HasIntegerSolution ( ) const
inline

Definition at line 63 of file feasibility_pump.h.

◆ HasLPSolution()

bool HasLPSolution ( ) const
inline

Definition at line 54 of file feasibility_pump.h.

◆ IntegerSolutionIsFeasible()

bool IntegerSolutionIsFeasible ( ) const
inline

Definition at line 67 of file feasibility_pump.h.

◆ IntegerSolutionObjectiveValue()

int64 IntegerSolutionObjectiveValue ( ) const
inline

Definition at line 64 of file feasibility_pump.h.

◆ LPSolutionFractionality()

double LPSolutionFractionality ( ) const
inline

Definition at line 58 of file feasibility_pump.h.

◆ LPSolutionIsInteger()

bool LPSolutionIsInteger ( ) const
inline

Definition at line 57 of file feasibility_pump.h.

◆ LPSolutionObjectiveValue()

double LPSolutionObjectiveValue ( ) const
inline

Definition at line 55 of file feasibility_pump.h.

◆ SetMaxFPIterations()

void SetMaxFPIterations ( int  max_iter)
inline

Definition at line 39 of file feasibility_pump.h.

◆ SetObjectiveCoefficient()

void SetObjectiveCoefficient ( IntegerVariable  ivar,
IntegerValue  coeff 
)

Definition at line 90 of file feasibility_pump.cc.

◆ Solve()

bool Solve ( )

Definition at line 143 of file feasibility_pump.cc.


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