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

java.lang.Objectnet.sourceforge.combean.mathprog.lp.model.AbstractLPConstraintSequence
net.sourceforge.combean.mathprog.lp.model.DoubleLPConstraintSequence
public class DoubleLPConstraintSequence
A simple implementation of a constraint sequence, consisting of DoubleLPConstraints.
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.combean.interfaces.mathprog.lp.model.LPConstraintSequence |
|---|
OFFSET_UNDEFINED |
| Constructor Summary | |
|---|---|
DoubleLPConstraintSequence(String offsetId,
byte relation,
double[] rhs)
Constructor for a constraint sequence with a uniform relation symbol. |
|
DoubleLPConstraintSequence(String offsetId,
int length)
Constructor for a sequence of undefined constraints (all elements are initialized to null) |
|
| Method Summary | |
|---|---|
LPConstraint |
getLPConstraint(int localRow)
Get the constraint for a given (local) row index. |
int |
getNumConstrs()
Get the number of elements in the sequence. |
void |
setLPConstraint(int localRow,
LPConstraint value)
Set an individual LP constraint in the sequence. |
| Methods inherited from class net.sourceforge.combean.mathprog.lp.model.AbstractLPConstraintSequence |
|---|
getConstrOffset, getConstrOffsetId, getRowModelIndex, setConstrOffset, setConstrOffsetId, 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.LPConstraintSequence |
|---|
getConstrOffset, getConstrOffsetId, setConstrOffset, setConstrOffsetId |
| Constructor Detail |
|---|
public DoubleLPConstraintSequence(String offsetId,
int length)
length - the length of the sequence to be constructed.
public DoubleLPConstraintSequence(String offsetId,
byte relation,
double[] rhs)
relation - the uniform relation symbol.rhs - an array containing the right-hand side of all constraints
in the sequence.| Method Detail |
|---|
public LPConstraint getLPConstraint(int localRow)
LPConstraintSequence
getLPConstraint in interface LPConstraintSequencelocalRow - a local row index.
public int getNumConstrs()
LPConstraintSequence
getNumConstrs in interface LPConstraintSequence
public void setLPConstraint(int localRow,
LPConstraint value)
localRow - the index of the LP constraint to be set.value - the value to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||