|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opttek.optquest.COptQuestConstraint
COptQuestConstraint is a pure virtual class that defines a linear constraint.
| Constructor Summary | |
COptQuestConstraint()
Default constructor |
|
COptQuestConstraint(double rhs)
Constructor that assigns a value for the right hand side. |
|
COptQuestConstraint(java.lang.String name,
double rhs)
Constructor that assigns a name and value for the right hand side. |
|
| Method Summary | |
void |
AddVariable(COptQuestVariable variable,
double coefficient)
Adds a variable and its coefficient to the linear expression. |
double |
GetCoefficientAt(int index)
Returns the coefficient at the specified 0 based index. |
java.lang.String |
GetName()
Returns the name assigned to the constraint. |
int |
GetNumberOfVariables()
Returns the number of varaibles that were added to the constraint by calls to the AddVariable() method. |
double |
GetRHS()
Returns the right hand side value. |
int |
GetType()
|
COptQuestVariable |
GetVariableAt(int index)
Returns the COptQuestVariable at the specified 0 based index. |
void |
SetName(java.lang.String value)
Assigns a name to the constraint. |
void |
SetRHS(double val)
Sets the right hand side value of a linear constraint. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public COptQuestConstraint(java.lang.String name,
double rhs)
name - - Alpha numeric constraint name.rhs - - right hand side value for the constraint.public COptQuestConstraint(double rhs)
rhs - - right hand side value for the constraint.public COptQuestConstraint()
| Method Detail |
public void AddVariable(COptQuestVariable variable,
double coefficient)
throws COptQuestException
variable - - COptQuestVariable object that is in the linear expressioncoefficient - - coefficient of the variable
COptQuestExceptionpublic int GetNumberOfVariables()
public COptQuestVariable GetVariableAt(int index)
index - 0 based index
public double GetCoefficientAt(int index)
index - 0 based index
public int GetType()
public void SetRHS(double val)
val - - right hand side valuepublic double GetRHS()
public java.lang.String GetName()
public void SetName(java.lang.String value)
value - = name of the variable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||