drasys.or.mp
Interface ProblemI

All Known Subinterfaces:
SizableProblemI

public interface ProblemI
extends RealContainerI

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

getMetadata

public Metadata getMetadata()
Returns the metadata container for the problem.

sizeOfConstraints

public int sizeOfConstraints()
Returns the number of constraints in the problem.

sizeOfVariables

public int sizeOfVariables()
Returns the number of variable in the problem.

sizeOfCoefficients

public int sizeOfCoefficients()
Returns the number of non-null coefficients in the problem.

getVariable

public VariableI getVariable(java.lang.String name)
Returns a variable by name.

getVariable

public VariableI getVariable(int columnIndex)
Returns a variable by column index.

getConstraint

public ConstraintI getConstraint(java.lang.String name)
Returns a constraint by name.

getConstraint

public ConstraintI getConstraint(int rowIndex)
Returns a constraint by row index.

setCoefficientAt

public void setCoefficientAt(int constraintIndex,
                             int variableIndex,
                             double value)
Sets a matrix coefficient by index.

setCoefficientAt

public void setCoefficientAt(java.lang.String constraintName,
                             java.lang.String variableName,
                             double value)
                      throws NotFoundException
Sets a matrix coefficient by name.

getCoefficientAt

public double getCoefficientAt(int constraintIndex,
                               int variableIndex)
Gets a matrix coefficient by index.

getCoefficientAt

public double getCoefficientAt(java.lang.String constraintName,
                               java.lang.String variableName)
                        throws NotFoundException
Gets a matrix coefficient by name.

getCoefficientMatrix

public MatrixI getCoefficientMatrix()
Returns the matrx used to hold the coefficients.

coefficients

public java.util.Enumeration coefficients()
Returns a mutable 'Enumeration' of the sparse in the problem. The 'Enumeration' returns elements which implement 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.

variables

public java.util.Enumeration variables()
Returns an 'Enumeration' of the variables. The 'Enumeration' returns elements which implement VariableI.

constraints

public java.util.Enumeration constraints()
Returns an 'Enumeration' of the constraints. The 'Enumeration' returns elements which implement ConstraintI.

relaxInteger

public int relaxInteger()
Changes all INTEGER or BOOLEAN variables to REAL variables. When a BOOLEAN variable is changed, the lower bound is set to 0.0 and the upper bound is set to 1.0.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com