|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A set of rows in an LP with a common name and different indices. This object consists of - a set of (symbolic) index values of the rows in the set - a closure which generates the individual rows; the closure is called with the symbolic index of the row and shall return a list of arguments which will be given to the convert method of GRow. - the environment in which the index variables shall be bound This class is responsible for mapping between the simple indices of the variables in the LPConstraintSequence and the symbolic indices in the GLPModel.
Field Summary | |
---|---|
Object |
env
|
Closure |
generateRow
|
GIndexBinding |
idxBinding
|
GLPModel |
lpModel
|
Constructor Summary | |
GRows(String name, Object bindDef, GLPModel lpModel, Object env, Closure generateRow)
Constructor "name[ |
Method Summary | |
---|---|
Iterator |
getColumnOffsetIds()
|
LPConstraint |
getLPConstraint(int localRow)
|
String |
getName()
|
int |
getNumColumns()
|
int |
getNumConstrs()
|
int |
getNumRows()
|
VectorOrientation |
getOrientation()
|
GRow |
getRow(int localRow)
Return the row for a given local index |
Iterator |
getRowOffsetIds()
|
LPSparseVector |
getRowVector(int localRow)
|
void |
setName(String name)
|
String |
toString()
|
String |
toSummaryString()
|
Constructor Detail |
---|
public GRows(String name, Object bindDef, GLPModel lpModel, Object env, Closure generateRow)
Method Detail |
---|
Iterator getColumnOffsetIds()
LPConstraint getLPConstraint(int localRow)
String getName()
int getNumColumns()
int getNumConstrs()
int getNumRows()
VectorOrientation getOrientation()
GRow getRow(int localRow)
Iterator getRowOffsetIds()
LPSparseVector getRowVector(int localRow)
void setName(String name)
String toString()
String toSummaryString()