drasys.or.mp
Class Variable

java.lang.Object
  |
  +--drasys.or.mp.Variable

public class Variable
extends java.lang.Object
implements VariableI, java.io.Serializable

Decision variable implementation.

See Also:
Serialized Form

Fields inherited from interface drasys.or.mp.VariableI
BOOLEAN, FREE, INTEGER, REAL
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getColumnIndex()
          Returns the column index of the variable.
 double getLowerBound()
          Returns the lower bound.
 java.lang.String getName()
          Returns the name of the variable.
 double getObjectiveCoefficient()
          Returns the objective function coefficient.
 byte getType()
          Returns the variable type.
 double getUpperBound()
          Returns the upper bound.
 VariableI setLowerBound(double scaler)
          Sets the lower bound.
 VariableI setObjectiveCoefficient(double scaler)
          Sets the objective function coefficient.
 VariableI setType(byte type)
          Sets the variable type.
 VariableI setUpperBound(double scaler)
          Sets the upper bound.
 java.lang.String toString()
          Returns a string representation of the variable.
static java.lang.String typeToString(byte type)
          Returns a String representation of a variable type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

typeToString

public static java.lang.String typeToString(byte type)
Returns a String representation of a variable type.

getName

public java.lang.String getName()
Returns the name of the variable.
Specified by:
getName in interface VariableI

getColumnIndex

public int getColumnIndex()
Returns the column index of the variable.
Specified by:
getColumnIndex in interface VariableI

setType

public VariableI setType(byte type)
Sets the variable type.
Specified by:
setType in interface VariableI

getType

public byte getType()
Returns the variable type.
Specified by:
getType in interface VariableI

setObjectiveCoefficient

public VariableI setObjectiveCoefficient(double scaler)
Sets the objective function coefficient.
Specified by:
setObjectiveCoefficient in interface VariableI

getObjectiveCoefficient

public double getObjectiveCoefficient()
Returns the objective function coefficient.
Specified by:
getObjectiveCoefficient in interface VariableI

setUpperBound

public VariableI setUpperBound(double scaler)
Sets the upper bound.
Specified by:
setUpperBound in interface VariableI

getUpperBound

public double getUpperBound()
Returns the upper bound.
Specified by:
getUpperBound in interface VariableI

setLowerBound

public VariableI setLowerBound(double scaler)
Sets the lower bound.
Specified by:
setLowerBound in interface VariableI

getLowerBound

public double getLowerBound()
Returns the lower bound.
Specified by:
getLowerBound in interface VariableI

toString

public java.lang.String toString()
Returns a string representation of the variable.
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


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