at.dms.kjc.linprog
Class GLPKSolve
java.lang.Object
at.dms.kjc.linprog.SimpleLinearProgram
at.dms.kjc.linprog.MPSWriter
at.dms.kjc.linprog.GLPKSolve
- All Implemented Interfaces:
- LinearProgram, LinearProgramSolver, Serializable
public class GLPKSolve
- extends MPSWriter
- implements LinearProgramSolver
This is an integer linear program solver based on GLPK.
- See Also:
- Serialized Form
Constructor Summary |
GLPKSolve(int numVars)
Construct an LP with variables. |
Method Summary |
double[] |
solve()
Solve the program and return the value of the the variables
(indices 0...numVars-1) in the optimum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLPKSolve
public GLPKSolve(int numVars)
- Construct an LP with variables.
solve
public double[] solve()
- Solve the program and return the value of the the variables
(indices 0...numVars-1) in the optimum.
- Specified by:
solve
in interface LinearProgramSolver