1 #ifndef OPTIMIZATION_GLPK_INTERFACE_H 2 #define OPTIMIZATION_GLPK_INTERFACE_H 4 #include "LinearProgram.h" 26 LinearProgram::Result Solve(
Vector& xopt);
28 void Create(
int m,
int n);
30 void SetObjective(
const Vector& c,
bool minimize=
true);
31 void SetRow(
int i,
const Vector& Ai);
32 void SetRowBounds(
int i,Real low,Real high);
33 void SetVariableBounds(
int j,Real low,Real high);
36 void SetRowBasic(
int i);
37 void SetRowNonBasic(
int i,
bool upper=
false);
38 void SetVariableBasic(
int i);
39 void SetVariableNonBasic(
int i,
bool upper=
false);
40 bool GetRowBasic(
int i);
41 bool GetVariableBasic(
int i);
42 double GetRowDual(
int i);
43 double GetVariableDual(
int j);
45 static bool Enabled();
46 static void SelfTest();
An interface to the GLPK linear program solver. Activated with the HAVE_GLPK preprocessor define...
Definition: GLPKInterface.h:19
Namespace for classes and functions in the Optimization package.
Definition: CSet.h:7
Linear program definition with sparse matrix A.
Definition: LinearProgram.h:158
Linear program definition.Represents the LP min/max c.x subject to qi <= ai.x <= pi lj <= xj <= u...
Definition: LinearProgram.h:139