com.opttek.optquest
Class COptQuestEQConstraint

java.lang.Object
  extended bycom.opttek.optquest.COptQuestConstraint
      extended bycom.opttek.optquest.COptQuestEQConstraint

public class COptQuestEQConstraint
extends COptQuestConstraint

The COptQuestEQConstraint class defines an equality linear constraint of the form 2*Var1 + 3*Var2 + 1.5*Var3 = 100


Constructor Summary
COptQuestEQConstraint()
          Default constructor
COptQuestEQConstraint(double rhs)
          Constructor that sets the right hand side value.
COptQuestEQConstraint(java.lang.String name, double rhs)
          Constructor that assigns a name to the constraint and sets the right hand side value.
 
Method Summary
 int GetType()
           
 
Methods inherited from class com.opttek.optquest.COptQuestConstraint
AddVariable, GetCoefficientAt, GetName, GetNumberOfVariables, GetRHS, GetVariableAt, SetName, SetRHS
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COptQuestEQConstraint

public COptQuestEQConstraint(java.lang.String name,
                             double rhs)
Constructor that assigns a name to the constraint and sets the right hand side value.

Parameters:
name - alphanumeric name.
rhs - value of the right hand side

COptQuestEQConstraint

public COptQuestEQConstraint(double rhs)
Constructor that sets the right hand side value.

Parameters:
rhs - value of the right hand side

COptQuestEQConstraint

public COptQuestEQConstraint()
Default constructor

Method Detail

GetType

public int GetType()
Overrides:
GetType in class COptQuestConstraint