|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LPVariableSequence
A contiguous sequence of variables in an LP model. This class represents a set of variables that shall occur in contiguous columns in the resulting LP. The location of the variable sequence is defined by setting an offset id. When the variable sequence is loaded as part of a complete LP model, this model loader will assign an offset to this offset id, which represents the first column of the variable sequence in the final complete model.
Field Summary | |
---|---|
static int |
OFFSET_UNDEFINED
|
Method Summary | |
---|---|
LPVariable |
getLPVariable(int localColumn)
Return the LP variable for a given local column index. |
int |
getNumVars()
Get the number of elements in the sequence. |
int |
getVarOffset()
Get the global index of the first element of the sequence. |
String |
getVarOffsetId()
Return the identifier for the offset in the global LP model. |
boolean |
isInteger()
Flag whether the variables in the sequence are integer variables. |
void |
setVarOffset(int globalIndex)
Set the offset, i.e., the index of the first row resp. column of the sequence in the global model. |
void |
setVarOffsetId(String columnOffsetId)
Set the identifier which defines the offset of the condition sequence in a global LP model. |
Field Detail |
---|
static final int OFFSET_UNDEFINED
Method Detail |
---|
int getNumVars()
void setVarOffsetId(String columnOffsetId)
columnOffsetId
- the offset identifier.String getVarOffsetId()
void setVarOffset(int globalIndex)
globalIndex
- the global index of the first element of the sequence.int getVarOffset()
LPVariable getLPVariable(int localColumn)
localColumn
- the local column index.
boolean isInteger()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |