|
|||||||||
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.ConcatenatedLPModelColumns
public class ConcatenatedLPModelColumns
A columnwise LP model component which consists of a set of columnwise LP model components which are joined rowwise. This means that the first column of the first subcomponent is concatenated with the first column of the second subcomponent etc. to make up the first column of the joint component). The concatenated components must have distinct row offset ids. These will be retained by the composite object. The column offset ids are taken from the component with the highest number of columns and the mapping to the model index for a given local id must be indentical for all internal components.
Constructor Summary | |
---|---|
ConcatenatedLPModelColumns()
Constructor. |
Method Summary | |
---|---|
void |
concatenateColumns(LPModelColumns newComponent)
Concatenate further columns to the component. |
LPModelIndex |
getColumnModelIndex(int localColumn)
Convert a local index into a model index. |
Iterator |
getColumnOffsetIds()
Get an iterator through all column offset ids used by the component. |
LPSparseVector |
getColumnVector(int localColumn)
|
int |
getNumColumns()
Return the number of columns of the model component. |
int |
getNumRows()
Return the number of rows of the model component. |
Iterator |
getRowOffsetIds()
Get an iterator through all row offset ids used by the component. |
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 ConcatenatedLPModelColumns()
Method Detail |
---|
public LPModelIndex getColumnModelIndex(int localColumn)
LPModelColumns
getColumnModelIndex
in interface LPModelColumns
localColumn
- the local column.
public Iterator getRowOffsetIds()
LPModelComponent
getRowOffsetIds
in interface LPModelComponent
public Iterator getColumnOffsetIds()
LPModelComponent
getColumnOffsetIds
in interface LPModelComponent
public LPSparseVector getColumnVector(int localColumn)
getColumnVector
in interface LPModelColumns
public int getNumColumns()
AbstractMatrix
getNumColumns
in interface AbstractMatrix
public int getNumRows()
AbstractMatrix
getNumRows
in interface AbstractMatrix
public void concatenateColumns(LPModelColumns newComponent)
newComponent
- new columnwise component to be concatenated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |