|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LPConstraintSequence
A contiguous sequence of LP constraints. This class represents a set of constraints that shall occur in contiguous rows in the resulting LP. The location of the constraint sequence is defined by setting an offset id. When the constraint 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 row of the constraint sequence in the final complete model.
Field Summary | |
---|---|
static int |
OFFSET_UNDEFINED
|
Method Summary | |
---|---|
int |
getConstrOffset()
Get the global index of the first element of the sequence. |
String |
getConstrOffsetId()
Return the identifier for the offset in the global LP model. |
LPConstraint |
getLPConstraint(int localRow)
Get the constraint for a given (local) row index. |
int |
getNumConstrs()
Get the number of elements in the sequence. |
void |
setConstrOffset(int globalIndex)
Set the offset, i.e., the index of the first row resp. column of the sequence in the global model. |
void |
setConstrOffsetId(String offsetId)
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 getNumConstrs()
void setConstrOffsetId(String offsetId)
offsetId
- the offset identifier.String getConstrOffsetId()
void setConstrOffset(int globalIndex)
globalIndex
- the global index of the first element of the sequence.int getConstrOffset()
LPConstraint getLPConstraint(int localRow)
localRow
- a local row index.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |