C++ Reference: class FeasibilityPump

Note: This documentation is automatically generated.

Method
AddLinearConstraint

Return type: void

Arguments: const LinearConstraint& ct

Add a new linear constraint to this LP.

FeasibilityPump

Return type: explicit

Arguments: Model* model

~FeasibilityPump

GetIntegerSolutionValue

Return type: int64_t

Arguments: IntegerVariable variable

GetLPSolutionValue

Return type: double

Arguments: IntegerVariable variable

HasIntegerSolution

Return type: bool

Returns the Integer solution value of a variable in the current rounded solution. These functions should only be called when HasIntegerSolution() is true.

HasLPSolution

Return type: bool

Returns the LP value of a variable in the current solution. These functions should only be called when HasSolution() is true.

IntegerSolutionIsFeasible

Return type: bool

IntegerSolutionObjectiveValue

Return type: int64_t

LPSolutionFractionality

Return type: double

LPSolutionIsInteger

Return type: bool

LPSolutionObjectiveValue

Return type: double

SetMaxFPIterations

Return type: void

Arguments: int max_iter

SetObjectiveCoefficient

Return type: void

Arguments: IntegerVariable ivar, IntegerValue coeff

Set the coefficient of the variable in the objective. Calling it twice will overwrite the previous value. Note that this doesn't set the objective coefficient if the variable doesn't appear in any constraints. So this has to be called after all the constraints are added.

Solve

Return type: bool

Returns false if the model is proven to be infeasible.