Class COptQuestUserControlledObjective


public class COptQuestUserControlledObjective extends COptQuestSingleObjective
The COptQuestUserControlledObjective allows you to compute a value for the optimization objective. Your evaluation may utilize a formula specific to your application or involve running a simulation and using a simulation output as the objective. You need to create an instance of the COptQuestUserControlledObjective and add it using the AddObjective(COptQuestObjective). You override the Evaluate(COptQuestSolution) method and compute a value for the objective. You set the value of the objective using the method SetObjectiveValue(COptQuestSingleObjective, double).
  • Constructor Details

    • COptQuestUserControlledObjective

      public COptQuestUserControlledObjective()
      Default constructor.
    • COptQuestUserControlledObjective

      public COptQuestUserControlledObjective(String name)
      Constructor that assigns a name to the objective