|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LPModel
A linear programming model consisting of variables, constraints and components of the constraint matrix. A model shall provide the possibility to define a linear model in a problem oriented way, i.e., more comfortably than through the low level interface of an LPSolver. The components of the model are composed into one global model by using strings as symbolic offset for the position within the global model. Constraints and variables are grouped in sequences which are positioned in consecutive rows resp. columns in the global model. Every such sequence has an offset identifer. By querying for that identifer, the sequence and its position in the global model can be retrieved.
Method Summary | |
---|---|
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. |
Method Detail |
---|
int getNumRows()
int getNumColumns()
Iterator getConstraintSequences()
LPConstraintSequence getConstraintSequence(String rowOffsetId)
rowOffsetId
- the offset identifier for the row.
Iterator getVariableSequences()
LPVariableSequence getVariableSequence(String columnOffsetId)
columnOffsetId
- the offset identfier for the column.
Iterator getModelComponents()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |