|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.sourceforge.combean.mathprog.lp.model.AbstractLPModelComponent
net.sourceforge.combean.mathprog.lp.model.AbstractSimpleIndexLPModelComponent
net.sourceforge.combean.mathprog.lp.model.MatrixAsLPModelMatrix
public class MatrixAsLPModelMatrix
Use a simple matrix as matrix in an LP-model. The matrix is placed in the model by using one column offset and one row offset.
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.combean.mathprog.lp.model.AbstractSimpleIndexLPModelComponent |
|---|
columnOffsetId, rowOffsetId |
| Constructor Summary | |
|---|---|
MatrixAsLPModelMatrix(VectorOrientation orientation,
String rowOffsetId,
String columnOffsetId,
Matrix wrappedMatrix)
Constructor. |
|
| Method Summary | |
|---|---|
LPModelIndex |
getColumnModelIndex(int localColumn)
Convert a local index into a model index. |
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. |
LPModelIndex |
getRowModelIndex(int localRow)
Convert a local index into a model index. |
LPSparseVector |
getRowVector(int localRow)
|
void |
setOrientation(VectorOrientation newOrientation)
Only to be used by subclasses: Set the orientation. |
String |
toString()
|
| Methods inherited from class net.sourceforge.combean.mathprog.lp.model.AbstractSimpleIndexLPModelComponent |
|---|
getColumnOffsetId, getColumnOffsetIds, getRowOffsetId, getRowOffsetIds, setColumnOffsetId, setRowOffsetId |
| Methods inherited from class net.sourceforge.combean.mathprog.lp.model.AbstractLPModelComponent |
|---|
getOrientation |
| 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 |
|---|
getColumnOffsetIds, getOrientation, getRowOffsetIds |
| Constructor Detail |
|---|
public MatrixAsLPModelMatrix(VectorOrientation orientation,
String rowOffsetId,
String columnOffsetId,
Matrix wrappedMatrix)
wrappedMatrix - the Matrix to be wrapped.| Method Detail |
|---|
public LPModelIndex getRowModelIndex(int localRow)
LPModelRows
getRowModelIndex in interface LPModelRowsgetRowModelIndex in class AbstractSimpleIndexLPModelComponentlocalRow - the local row.
public LPModelIndex getColumnModelIndex(int localColumn)
LPModelColumns
getColumnModelIndex in interface LPModelColumnsgetColumnModelIndex in class AbstractSimpleIndexLPModelComponentlocalColumn - the local column.
public LPSparseVector getRowVector(int localRow)
getRowVector in interface LPModelRowspublic LPSparseVector getColumnVector(int localColumn)
getColumnVector in interface LPModelColumnspublic int getNumColumns()
AbstractMatrix
getNumColumns in interface AbstractMatrixpublic int getNumRows()
AbstractMatrix
getNumRows in interface AbstractMatrixpublic void setOrientation(VectorOrientation newOrientation)
AbstractLPModelComponent
setOrientation in interface LPModelMatrixsetOrientation in class AbstractLPModelComponentnewOrientation - The orientation to set.public String toString()
toString in class AbstractLPModelComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||