Class COptQuestPythonOptimization

java.lang.Object
com.opttek.optquest.COptQuestOptimization
com.opttek.optquest.COptQuestPythonOptimization

public class COptQuestPythonOptimization extends COptQuestOptimization
  • Constructor Details

  • Method Details

    • Evaluate

      public void Evaluate(COptQuestSolution sol)
      Description copied from class: COptQuestOptimization
      Virtual method where you provide code to evaluate the solution. The Evaluate(COptQuestSolution) method is called to calculate the value of the objective function, requirements and user controlled variables. Use the GetVariableValue(COptQuestVariable) method to retrieve the value of each decision variable. Use the COptQuestSolution.Set methods to set the calculated value for the objective function, user controlled variables and requirements. Parallel Optimization Note: The solution parameter will be null if all parallel solutions are being evaluated. You should not return from the Evaluate(COptQuestSolution) method until at least one solution has completed evaluation as the Evaluate(COptQuestSolution) method will immediately return with a null solution. Note: Use the MonitorStatus(COptQuestSolution) method to plot the progress of the best solution. The best solution is updated after the Evaluate() method has completed.
      Overrides:
      Evaluate in class COptQuestOptimization
      Parameters:
      sol - solution to be evaluated
    • MonitorStatus

      public void MonitorStatus(COptQuestSolution sol)
      Description copied from class: COptQuestOptimization
      Override this method to monitor the progress of an optimization. The MonitorStatus(COptQuestSolution) method is called when a solution has completed evaluation. When MonitorStatus(COptQuestSolution) is called, the solution has been checked for feasibility and the best solution has been identified.
      Overrides:
      MonitorStatus in class COptQuestOptimization
      Parameters:
      sol - - the solution that has completed evaluation