KrisLibrary
1.0.0
|
An interface to the GLPK linear program solver. Activated with the HAVE_GLPK preprocessor define. More...
#include <GLPKInterface.h>
Public Member Functions | |
void | Set (const LinearProgram &LP) |
void | Set (const LinearProgram_Sparse &LP) |
LinearProgram::Result | Solve (Vector &xopt) |
void | Create (int m, int n) |
void | Clear () |
void | SetObjective (const Vector &c, bool minimize=true) |
void | SetRow (int i, const Vector &Ai) |
void | SetRowBounds (int i, Real low, Real high) |
void | SetVariableBounds (int j, Real low, Real high) |
void | SetRowBasic (int i) |
void | SetRowNonBasic (int i, bool upper=false) |
void | SetVariableBasic (int i) |
void | SetVariableNonBasic (int i, bool upper=false) |
bool | GetRowBasic (int i) |
bool | GetVariableBasic (int i) |
double | GetRowDual (int i) |
double | GetVariableDual (int j) |
Static Public Member Functions | |
static bool | Enabled () |
static void | SelfTest () |
Public Attributes | |
glp_prob * | lp |
An interface to the GLPK linear program solver. Activated with the HAVE_GLPK preprocessor define.