|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a mathematical programming problem container.
Method Summary | |
java.util.Enumeration |
coefficients()
Returns a mutable 'Enumeration' of the sparse in the problem. |
java.util.Enumeration |
constraints()
Returns an 'Enumeration' of the constraints. |
double |
getCoefficientAt(int constraintIndex,
int variableIndex)
Gets a matrix coefficient by index. |
double |
getCoefficientAt(java.lang.String constraintName,
java.lang.String variableName)
Gets a matrix coefficient by name. |
MatrixI |
getCoefficientMatrix()
Returns the matrx used to hold the coefficients. |
ConstraintI |
getConstraint(int rowIndex)
Returns a constraint by row index. |
ConstraintI |
getConstraint(java.lang.String name)
Returns a constraint by name. |
Metadata |
getMetadata()
Returns the metadata container for the problem. |
VariableI |
getVariable(int columnIndex)
Returns a variable by column index. |
VariableI |
getVariable(java.lang.String name)
Returns a variable by name. |
int |
relaxInteger()
Changes all INTEGER or BOOLEAN variables to REAL variables. |
void |
setCoefficientAt(int constraintIndex,
int variableIndex,
double value)
Sets a matrix coefficient by index. |
void |
setCoefficientAt(java.lang.String constraintName,
java.lang.String variableName,
double value)
Sets a matrix coefficient by name. |
int |
sizeOfCoefficients()
Returns the number of non-null coefficients in the problem. |
int |
sizeOfConstraints()
Returns the number of constraints in the problem. |
int |
sizeOfVariables()
Returns the number of variable in the problem. |
java.util.Enumeration |
variables()
Returns an 'Enumeration' of the variables. |
Methods inherited from interface drasys.or.matrix.RealContainerI |
equals,
getEpsilon,
setEpsilon |
Method Detail |
public Metadata getMetadata()
public int sizeOfConstraints()
public int sizeOfVariables()
public int sizeOfCoefficients()
public VariableI getVariable(java.lang.String name)
public VariableI getVariable(int columnIndex)
public ConstraintI getConstraint(java.lang.String name)
public ConstraintI getConstraint(int rowIndex)
public void setCoefficientAt(int constraintIndex, int variableIndex, double value)
public void setCoefficientAt(java.lang.String constraintName, java.lang.String variableName, double value) throws NotFoundException
public double getCoefficientAt(int constraintIndex, int variableIndex)
public double getCoefficientAt(java.lang.String constraintName, java.lang.String variableName) throws NotFoundException
public MatrixI getCoefficientMatrix()
public java.util.Enumeration coefficients()
MatrixElementI
.
The contents of a returned element must be used before getting the next element
because the same object is modified and reused for each 'nextElement' call.public java.util.Enumeration variables()
VariableI
.public java.util.Enumeration constraints()
ConstraintI
.public int relaxInteger()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |