Package com.opttek.optquest
Class COptQuestWeightedMultiObjective
java.lang.Object
com.opttek.optquest.COptQuestObjective
com.opttek.optquest.COptQuestMultiObjective
com.opttek.optquest.COptQuestWeightedMultiObjective
Deprecated.
This class is deprecated. Replace uses of this class with a COptQuestFrontierMultiObjective or
a COptQuestStringObjective.
The COptQuestWeightedMultiObjective allows the user to combine objectives
and treat them as a single objective for the optimization.
The COptQuestWeightedMultiObjective is defined by adding COptQuestSingleObjective objects to
the COptQuestMultipleObjective and assigning a coefficient to each objective. The
COptQuestWeightedMultiObjective is then added to the COptQuestOptimization object.
With the COptQuestWeightedMultiObjective the objectives are combined using the weights.
The COptQuestWeightedMultiObjective is evaluated as minimizing or maximizing
the expression coeff1*objective1 + coeff2*objective2 etc.
-
Constructor Summary
ConstructorDescriptionDeprecated.Default constructorDeprecated.Constructor that assigns a name to the objective -
Method Summary
Modifier and TypeMethodDescriptionvoid
AddObjective
(COptQuestSingleObjective obj, double coefficient) Deprecated.Adds the input sub-objective to the COptQuestWeightedMultiObjective and assigns a coefficient to the sub-objective.void
AddObjective
(COptQuestSingleObjective obj, double coefficient, double goal) Deprecated.Adds the input sub-objective to the COptQuestWeightedMultiObjective and assigns a coefficient to the objective and a value representing the goal of the objective.void
AddObjective
(COptQuestSingleObjective obj, double coefficient, double minObj, double maxObj) Deprecated.Adds the input sub-objective to the COptQuestMultipleObjective and assigns a coefficient to the objective and values representing the range of the objective.double
GetCoefficientAt
(int index) Deprecated.Returns the coefficient at the specified indexvoid
SetObjectiveCoefficient
(COptQuestSingleObjective obj, double coefficient) Deprecated.Assigns a new coefficient to the input objective.void
SetObjectiveGoal
(COptQuestSingleObjective obj, double minObj, double maxObj) Deprecated.Assigns a new objective range for a particular objective.Methods inherited from class com.opttek.optquest.COptQuestMultiObjective
GetObjectiveAt, GetObjectiveCount, GetOptimizationName
Methods inherited from class com.opttek.optquest.COptQuestObjective
equals, GetName, hashCode, IsLinear, IsMaximize, IsMinimize, SetMaximize, SetMinimize, SetName
-
Constructor Details
-
COptQuestWeightedMultiObjective
public COptQuestWeightedMultiObjective()Deprecated.Default constructor -
COptQuestWeightedMultiObjective
Deprecated.Constructor that assigns a name to the objective- Parameters:
name
- objective name
-
-
Method Details
-
AddObjective
Deprecated.Adds the input sub-objective to the COptQuestWeightedMultiObjective and assigns a coefficient to the sub-objective. -
SetObjectiveGoal
Deprecated.Assigns a new objective range for a particular objective. -
AddObjective
Deprecated.Adds the input sub-objective to the COptQuestWeightedMultiObjective and assigns a coefficient to the objective and a value representing the goal of the objective. -
AddObjective
public void AddObjective(COptQuestSingleObjective obj, double coefficient, double minObj, double maxObj) Deprecated.Adds the input sub-objective to the COptQuestMultipleObjective and assigns a coefficient to the objective and values representing the range of the objective. -
GetCoefficientAt
Deprecated.Returns the coefficient at the specified index- Throws:
COptQuestException
- if index does not exist
-
SetObjectiveCoefficient
public void SetObjectiveCoefficient(COptQuestSingleObjective obj, double coefficient) throws COptQuestException Deprecated.Assigns a new coefficient to the input objective. The objective value for all evaluated solutions is rechecked and a different solution may become the new best solution. You should call COptQuestOptimization.OptimizeAdditional() after changing the coefficients.- Throws:
COptQuestException
- if objective not found
-