Class COptQuestWeightedMultiObjective


@Deprecated public class COptQuestWeightedMultiObjective extends COptQuestMultiObjective
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 Details

    • COptQuestWeightedMultiObjective

      public COptQuestWeightedMultiObjective()
      Deprecated.
      Default constructor
    • COptQuestWeightedMultiObjective

      public COptQuestWeightedMultiObjective(String name)
      Deprecated.
      Constructor that assigns a name to the objective
      Parameters:
      name - objective name
  • Method Details

    • AddObjective

      public void AddObjective(COptQuestSingleObjective obj, double coefficient)
      Deprecated.
      Adds the input sub-objective to the COptQuestWeightedMultiObjective and assigns a coefficient to the sub-objective.
    • SetObjectiveGoal

      public void SetObjectiveGoal(COptQuestSingleObjective obj, double minObj, double maxObj)
      Deprecated.
      Assigns a new objective range for a particular objective.
    • AddObjective

      public 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.
    • 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

      public double GetCoefficientAt(int index) throws COptQuestException
      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