|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.mathprog.lp.model.ConstructableLPModel
public class ConstructableLPModel
An LP model which can be constructed by sequentially adding rows, columns etc. The purpose of the LP model is to collect the components of an LP before the LP is loaded into the solver, using an instance of LPModelSolver. Please note that the implementation of LPModelSolver may impose certain restrictions on how the components may be put together. Please refer to the documentation of the LPModelSolver that you plan to use.
Constructor Summary | |
---|---|
ConstructableLPModel()
constructor for an empty LP model. |
Method Summary | |
---|---|
void |
addConstraintSequence(LPConstraintSequence constrSeq)
Add a constraint sequence. |
void |
addVariableSequence(LPVariableSequence varSeq)
Add a variable sequence. |
void |
appendModelComponent(LPModelComponent component)
Add a model component. |
LPConstraintSequence |
getConstraintSequence(String rowOffsetId)
Get the constraint sequence for a given offset identifier. |
Iterator |
getConstraintSequences()
Get an iterator through sequences of constraints. |
Iterator |
getModelComponents()
Get an iterator through all components of the model. |
int |
getNumColumns()
The number of columns in the model. |
int |
getNumRows()
The number of rows in the model. |
LPVariableSequence |
getVariableSequence(String columnOffsetId)
Get the variable sequence for a given offset identifier. |
Iterator |
getVariableSequences()
Get an iterator through sequences of variables. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstructableLPModel()
Method Detail |
---|
public int getNumColumns()
LPModel
getNumColumns
in interface LPModel
public int getNumRows()
LPModel
getNumRows
in interface LPModel
public Iterator getConstraintSequences()
LPModel
getConstraintSequences
in interface LPModel
public Iterator getVariableSequences()
LPModel
getVariableSequences
in interface LPModel
public Iterator getModelComponents()
LPModel
getModelComponents
in interface LPModel
public LPConstraintSequence getConstraintSequence(String rowOffsetId)
LPModel
getConstraintSequence
in interface LPModel
rowOffsetId
- the offset identifier for the row.
public LPVariableSequence getVariableSequence(String columnOffsetId)
LPModel
getVariableSequence
in interface LPModel
columnOffsetId
- the offset identfier for the column.
public void addConstraintSequence(LPConstraintSequence constrSeq)
constrSeq
- the constraint sequence to be added.public void addVariableSequence(LPVariableSequence varSeq)
varSeq
- the variable sequence to be added.public void appendModelComponent(LPModelComponent component)
component
- the model component to be added.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |