drasys.or.mp
Interface VariableI

All Known Implementing Classes:
Variable

public interface VariableI

Abstract interface to decision variables.


Field Summary
static byte BOOLEAN
          The variable is boolean valued.
static byte FREE
          The variable is free.
static byte INTEGER
          The variable is integer valued.
static byte REAL
          The variable is real valued.
 
Method Summary
 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.
 

Field Detail

FREE

public static final byte FREE
The variable is free.

REAL

public static final byte REAL
The variable is real valued.

INTEGER

public static final byte INTEGER
The variable is integer valued.

BOOLEAN

public static final byte BOOLEAN
The variable is boolean valued.
Method Detail

getName

public java.lang.String getName()
Returns the name of the variable.

getColumnIndex

public int getColumnIndex()
Returns the column index of the variable.

setType

public VariableI setType(byte type)
Sets the variable type.

getType

public byte getType()
Returns the variable type.

setObjectiveCoefficient

public VariableI setObjectiveCoefficient(double scaler)
Sets the objective function coefficient.

getObjectiveCoefficient

public double getObjectiveCoefficient()
Returns the objective function coefficient.

setUpperBound

public VariableI setUpperBound(double scaler)
Sets the upper bound.

getUpperBound

public double getUpperBound()
Returns the upper bound.

setLowerBound

public VariableI setLowerBound(double scaler)
Sets the lower bound.

getLowerBound

public double getLowerBound()
Returns the lower bound.


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