|
|||||||||
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.AbstractLPModelComponent net.sourceforge.combean.mathprog.lp.model.ConcatenatedLPModelRows
public class ConcatenatedLPModelRows
A rowwise LP model component which consists of a set of rowwise LP model components which are joined rowwise. This means that the first row of the first subcomponent is concatenated with the first row of the second subcomponent etc. to make up the first row of the joint component). The concatenated components must have distinct row offset ids. These will be retained by the composite object. The row offset ids are taken from the component with the highest number of rows and the mapping to the model index for a given local id must be indentical for all internal components.
Constructor Summary | |
---|---|
ConcatenatedLPModelRows()
Constructor. |
Method Summary | |
---|---|
void |
concatenateRows(LPModelRows newComponent)
Concatenate further rows to the component. |
Iterator |
getColumnOffsetIds()
Get an iterator through all column offset ids used by the component. |
int |
getNumColumns()
Return the number of columns of the model component. |
int |
getNumRows()
Return the number of rows of the model component. |
LPModelIndex |
getRowModelIndex(int localRow)
Convert a local index into a model index. |
Iterator |
getRowOffsetIds()
Get an iterator through all row offset ids used by the component. |
LPSparseVector |
getRowVector(int localRow)
|
Methods inherited from class net.sourceforge.combean.mathprog.lp.model.AbstractLPModelComponent |
---|
getOrientation, setOrientation, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.combean.interfaces.mathprog.lp.model.LPModelComponent |
---|
getOrientation |
Constructor Detail |
---|
public ConcatenatedLPModelRows()
Method Detail |
---|
public LPModelIndex getRowModelIndex(int localRow)
LPModelRows
getRowModelIndex
in interface LPModelRows
localRow
- the local row.
public Iterator getRowOffsetIds()
LPModelComponent
getRowOffsetIds
in interface LPModelComponent
public Iterator getColumnOffsetIds()
LPModelComponent
getColumnOffsetIds
in interface LPModelComponent
public LPSparseVector getRowVector(int localRow)
getRowVector
in interface LPModelRows
public int getNumRows()
AbstractMatrix
getNumRows
in interface AbstractMatrix
public int getNumColumns()
AbstractMatrix
getNumColumns
in interface AbstractMatrix
public void concatenateRows(LPModelRows newComponent)
newComponent
- new rowwise component to be concatenated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |