at.dms.kjc.linprog
Class GLPKSolve

java.lang.Object
  extended by at.dms.kjc.linprog.SimpleLinearProgram
      extended by at.dms.kjc.linprog.MPSWriter
          extended by 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

Field Summary
 
Fields inherited from class at.dms.kjc.linprog.SimpleLinearProgram
boolVar, constraints, numVars, obj
 
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 at.dms.kjc.linprog.MPSWriter
printMPSToFile
 
Methods inherited from class at.dms.kjc.linprog.SimpleLinearProgram
addConstraintEQ, addConstraintGE, getEmptyConstraint, setBoolVar, setObjective
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface at.dms.kjc.linprog.LinearProgram
addConstraintEQ, addConstraintGE, getEmptyConstraint, setBoolVar, setObjective
 

Constructor Detail

GLPKSolve

public GLPKSolve(int numVars)
Construct an LP with variables.

Method Detail

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