drasys.or.mp
Interface ConstraintI

All Known Implementing Classes:
Constraint

public interface ConstraintI

Abstract interface to constraints.


Field Summary
static byte EQUAL
          The row must be equal to the right hand side.
static byte FREE
          The constraint is free.
static byte GREATER
          The row must be greater than or equal to the right hand side.
static byte LESS
          The row must be less than or equal to the right hand side.
static byte RANGE
          The constraint must fall within a range.
 
Method Summary
 double getLowerRange()
          Returns the lower range.
 java.lang.String getName()
          Returns the name of the constraint.
 double getRightHandSide()
          Returns the right-hand-side.
 int getRowIndex()
          Returns the row index of the constraint.
 byte getType()
          Returns the constraint type.
 double getUpperRange()
          Returns the upper range.
 ConstraintI setLowerRange(double scaler)
          Sets the lower range.
 ConstraintI setRightHandSide(double scaler)
          Sets the right-hand-side.
 ConstraintI setType(byte type)
          Sets the constraint type.
 ConstraintI setUpperRange(double scaler)
          Sets the upper range.
 

Field Detail

FREE

public static final byte FREE
The constraint is free.

LESS

public static final byte LESS
The row must be less than or equal to the right hand side.

GREATER

public static final byte GREATER
The row must be greater than or equal to the right hand side.

EQUAL

public static final byte EQUAL
The row must be equal to the right hand side.

RANGE

public static final byte RANGE
The constraint must fall within a range.
Method Detail

getName

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

getRowIndex

public int getRowIndex()
Returns the row index of the constraint.

setType

public ConstraintI setType(byte type)
Sets the constraint type.

getType

public byte getType()
Returns the constraint type.

setRightHandSide

public ConstraintI setRightHandSide(double scaler)
Sets the right-hand-side.

getRightHandSide

public double getRightHandSide()
Returns the right-hand-side.

setUpperRange

public ConstraintI setUpperRange(double scaler)
Sets the upper range.

getUpperRange

public double getUpperRange()
Returns the upper range.

setLowerRange

public ConstraintI setLowerRange(double scaler)
Sets the lower range.

getLowerRange

public double getLowerRange()
Returns the lower range.


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