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

java.lang.Objectnet.sourceforge.combean.mathprog.lp.model.AbstractLPVariableSequence
net.sourceforge.combean.mathprog.lp.model.DoubleLPVariableSequence
public class DoubleLPVariableSequence
A variable sequence of DoubleLPVariable objects.
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.combean.interfaces.mathprog.lp.model.LPVariableSequence |
|---|
OFFSET_UNDEFINED |
| Constructor Summary | |
|---|---|
DoubleLPVariableSequence(String offsetId,
double[] coeffs)
Construct a variable sequence of unbounded variables. |
|
DoubleLPVariableSequence(String offsetId,
double[] coeffs,
double uniformLower,
double uniformUpper)
Construct a variable sequence of uniformly bounded variables |
|
DoubleLPVariableSequence(String offsetId,
int length)
Construct an uninitialized variable sequence (all elements are null) |
|
| 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. |
void |
setLPVariable(int localColumn,
LPVariable value)
Change a variable in the sequence. |
| Methods inherited from class net.sourceforge.combean.mathprog.lp.model.AbstractLPVariableSequence |
|---|
getColumnModelIndex, getVarOffset, getVarOffsetId, isInteger, setIntegerFlag, setVarOffset, setVarOffsetId, 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.LPVariableSequence |
|---|
getVarOffset, getVarOffsetId, isInteger, setVarOffset, setVarOffsetId |
| Constructor Detail |
|---|
public DoubleLPVariableSequence(String offsetId,
int length)
length - the number of elements
public DoubleLPVariableSequence(String offsetId,
double[] coeffs)
coeffs - the coefficients of the variables in the sequence.
public DoubleLPVariableSequence(String offsetId,
double[] coeffs,
double uniformLower,
double uniformUpper)
coeffs - the coefficients of the variables in the sequence.uniformLower - the lower bound for all variables.uniformUpper - the upper bound for all variables.| Method Detail |
|---|
public LPVariable getLPVariable(int localColumn)
LPVariableSequence
getLPVariable in interface LPVariableSequencelocalColumn - the local column index.
public int getNumVars()
LPVariableSequence
getNumVars in interface LPVariableSequence
public void setLPVariable(int localColumn,
LPVariable value)
localColumn - the local column index of the variable to be changed.value - the new variable to set for the given column.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||