at.dms.kjc.linprog
Class MPSWriter

java.lang.Object
  extended by at.dms.kjc.linprog.SimpleLinearProgram
      extended by at.dms.kjc.linprog.MPSWriter
All Implemented Interfaces:
LinearProgram, Serializable
Direct Known Subclasses:
GLPKSolve

public class MPSWriter
extends SimpleLinearProgram

Writes an MPS representation of a linear program. Intended to be extended by LinearProgramSolver's that call printMPSToFile before processing the MPS file with a 3rd-party package.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class at.dms.kjc.linprog.SimpleLinearProgram
boolVar, constraints, numVars, obj
 
Constructor Summary
MPSWriter(int numVars)
          Create one of these with variables.
 
Method Summary
protected  void printMPSToFile(String filename)
          Dumps a representation of this to in MPS format.
 
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
 

Constructor Detail

MPSWriter

public MPSWriter(int numVars)
Create one of these with variables.

Method Detail

printMPSToFile

protected void printMPSToFile(String filename)
Dumps a representation of this to in MPS format.