net.sourceforge.combean.mathprog.grooml
Class GLPModel

The LP model used internally by the expression builder A convenient front-end to the ConstructableLPModel

Field Summary
 List allRows
           
 List allVars
           
 
Constructor Summary
GLPModel()
           
 
Method Summary
void addConstraints(LPConstraintSequence constrs)
           Add new constraints to the model.
void addRows(GRows rows)
           Add new rows to the model by adding both the constraints (i.e. the rhs of the rows) and the expressions on the lhs.
void addVariables(GVariables vars)
           Add new variables to the LP model Throws an exception if variables with the given name already exist in the model.
GVariables getVariables(String offsetId)
           Return variables in the model by name.
String toSummaryString()
          
 

Constructor Detail

GLPModel

public GLPModel()


Method Detail

addConstraints

void addConstraints(LPConstraintSequence constrs)
Add new constraints to the model. Throws an exception if constraints with the given name already exist in the model.
params:
constrs the constraints to be added


addRows

public void addRows(GRows rows)
Add new rows to the model by adding both the constraints (i.e. the rhs of the rows) and the expressions on the lhs. Throws an exception if rows with the given name already exist in the model.
params:
rows the rows to be added


addVariables

public void addVariables(GVariables vars)
Add new variables to the LP model Throws an exception if variables with the given name already exist in the model. Please note that only GVariables may be added to the GLPModel.
params:
vars the variables to be added


getVariables

public GVariables getVariables(String offsetId)
Return variables in the model by name. Refines the return type of the access function getVariableSequence.


toSummaryString

public String toSummaryString()