|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opttek.optquest.COptQuestObjective
com.opttek.optquest.COptQuestObjectiveFunction
The COptQuestObjectiveFunction class is used to define a linear objective of the form coeff1 * var1 + coeff2 * var2 + ... + coeffn * varN.
| Constructor Summary | |
COptQuestObjectiveFunction()
Default constructor |
|
COptQuestObjectiveFunction(java.lang.String name)
Constructor that assigns a name to the objective |
|
| Method Summary | |
void |
AddVariable(COptQuestVariable variable,
double coefficient)
Adds a variable and its coefficient to the linear objective which has the form coeff1 * var1 + coeff2 + var2 + coeffn * varN. |
void |
EvaluateObjectiveValue(int pID,
com.opttek.optquest.Solution sol)
|
double |
GetCoefficientAt(int index)
Returns the coefficient at the specified index. |
long |
GetNumberOfVariables()
Returns the number of variable/coefficient pairs that were added to the linear objective. |
int |
GetNumCoefficients()
Returns the number of variable/coefficient pairs that were added to the linear objective. |
COptQuestVariable |
GetVariableAt(int index)
Returns the variable at the specified index. |
boolean |
IsLinear()
Returns true. |
| Methods inherited from class com.opttek.optquest.COptQuestObjective |
GetBestFeasible, GetBestValue, GetCurrentFeasible, GetCurrentFeasible, GetCurrentValue, GetCurrentValue, GetNthBestFeasible, GetNthBestValue, IsMaximize, IsMinimize, SetCurrentValue, SetCurrentValue, SetMaximize, SetMinimize |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public COptQuestObjectiveFunction(java.lang.String name)
name - alphanumeric namepublic COptQuestObjectiveFunction()
| Method Detail |
public void AddVariable(COptQuestVariable variable,
double coefficient)
variable - coefficient - public long GetNumberOfVariables()
public COptQuestVariable GetVariableAt(int index)
index - value between 0 and the number of variables added to the linear objective
public double GetCoefficientAt(int index)
index - value between 0 and the number of variables added to the linear objective
public boolean IsLinear()
IsLinear in class COptQuestObjectivepublic int GetNumCoefficients()
public void EvaluateObjectiveValue(int pID,
com.opttek.optquest.Solution sol)
throws COptQuestException
COptQuestException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||