Package com.opttek.optquest
Class COptQuestPythonOptimization
java.lang.Object
com.opttek.optquest.COptQuestOptimization
com.opttek.optquest.COptQuestPythonOptimization
-
Field Summary
Fields inherited from class com.opttek.optquest.COptQuestOptimization
DEMOLICENSE, OCLP_COEFFOFSEMI1VAR, OCLP_COEFFOFSEMI2VAR, OCLP_COEFFOFVAR, OCLP_IRR, OCLP_MAX, OCLP_MEAN, OCLP_MEDIAN, OCLP_MIN, OCLP_NONE, OCLP_NPV, OCLP_PBP, OCLP_PERCENTILE, OCLP_PROBABILITY, OCLP_SEMI1STDDEV, OCLP_SEMI1VARIANCE, OCLP_SEMI2STDDEV, OCLP_SEMI2VARIANCE, OCLP_STDDEV, OCLP_SUM, OCLP_VARIANCE, REPLTERM_MAXREPLICATIONS, REPLTERM_METCONFIDENCE, REPLTERM_NEEDMORE, REPLTERM_NOTNEARBEST, REPLTERM_REMOVEBYRAS, REPLTERM_STILLINRAS, TERM_AUTOSTOP, TERM_BESTFOUND, TERM_CANNOTGENERATE, TERM_EXCEPTION, TERM_FACTORIESDONE, TERM_INFEASIBLE, TERM_LP, TERM_MAXDEMOITERATIONS, TERM_MAXITERATIONS, TERM_MAXTIME, TERM_NOTSTARTED, TERM_OPTIMALFOUND, TERM_RUNNING, TERM_USERSTOPPED
-
Constructor Summary
ConstructorDescriptionCOptQuestPythonOptimization
(COptQuestOptimizationEvaluator evaluator, COptQuestSearchParameters search) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Virtual method where you provide code to evaluate the solution.void
Override this method to monitor the progress of an optimization.Methods inherited from class com.opttek.optquest.COptQuestOptimization
AddConstraint, AddConstraint, AddConstraint, AddDiscountRate, AddObjective, AddObjectiveFunction, AddPermutationGroup, AddRequirement, AddRequirement, AddSelectionGroup, AddSuggestedSolution, AddVariable, ChangeVariableConstraint, CheckOptimization, CloseLogSetupFile, CloseSolutionLog, ContinueOptimize, CreateSolution, CreateSolutionSet, EfficientFrontier, EvaluateComplete, GetApproxSolutionSize, GetAutoStopCycles, GetAutoStopNumberSolutions, GetAutoStopPercentImprove, GetBestSolution, GetCheckDup, GetElapsedTime, GetEndingVarPrecision, GetEstimatedIterations, GetEstimatedParallelEvaluators, GetEvaluateException, GetEvaluatorCount, GetGradientAnalysis, GetHandleNonLinear, GetHeatMapMaximumReplications, GetHeatMapMinimumReplications, GetIterationSolution, GetMaximumIterations, GetMaximumReplications, GetMaximumTime, GetMinimumReplications, GetName, GetNthBestSolution, GetNthEfficientFrontier, GetNumberEfficientFrontier, GetNumberofCompletedIterations, GetNumberOfFeasibleSolutions, GetNumberOfInfeasibleSolutions, GetNumberOfRejectedSolutions, GetNumberOfStringConstraints, GetObjective, GetObjPrecision, GetPatternFrontier, GetPatternFrontier, GetRegressionAnalysis, GetRequirement, GetStartingVarPrecision, GetStringConstraint, GetTerminationReason, GetTerminationReasonString, GetUseCrossEntropy, GetUseInfeasibilityIndex, GetUserControlledStop, GetUserControlledVariableConstraint, GetUseReplications, GetVariable, GetVariables, GetVersion, IsAdditionalReplicationsMode, IsAutoStopByCycles, IsAutoStopByPercentImprovement, IsEnumerable, IsNthEfficientFrontierFeasible, IsRunRepeatableEvaluation, IsStopped, LogSetup, LogSolutions, Optimize, OptimizeAdditional, Recalculate, RemoveConstraint, RemoveConstraint, RemoveRequirement, RunRepeatableEvaluations, RunSerialReplications, SearchRestart, SetAdditionalIterations, SetAdditionalReplications, SetAdditionalReplicationsSolutions, SetAdditionalTime, SetAutoStopByCycles, SetAutoStopByPercentImprovement, SetAutoStopCycles, SetAutoStopNumberSolutions, SetAutoStopPercentImprove, SetCannotGenerateAsTermReason, SetCheckDup, SetCustomMetadata, SetDOEType, SetEndingVarPrecision, SetEvaluate, SetGenerateNewSolutions, SetGradientAnalysis, SetHandleNonLinear, SetHeatMapMaximumReplications, SetHeatMapMinimumReplications, SetLicenseID, SetMaximumIterations, SetMaximumReplications, SetMaximumTime, SetMetaHeuristic, SetMinimumReplications, SetName, SetObjPrecision, SetRandomSeed, SetRegressionAnalysis, SetReplicationBatchSize, SetStartingVarPrecision, SetUseCrossEntropy, SetUseDOE, SetUseInfeasibilityIndex, SetUseKrigSolutionGenerator, SetUseMinimizeError, SetUsePortfolioAlgorithms, SetUserControlledStop, SetUserControlledVariableConstraint, SetUseReplications, StopOnSuccessfulMILP, StopOptimization, StopSolutionGeneration, UseEnglishOnly
-
Constructor Details
-
COptQuestPythonOptimization
-
COptQuestPythonOptimization
public COptQuestPythonOptimization(COptQuestOptimizationEvaluator evaluator, COptQuestSearchParameters search)
-
-
Method Details
-
Evaluate
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 theGetVariableValue(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 theMonitorStatus(COptQuestSolution)
method to plot the progress of the best solution. The best solution is updated after the Evaluate() method has completed.- Overrides:
Evaluate
in classCOptQuestOptimization
- Parameters:
sol
- solution to be evaluated
-
MonitorStatus
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 classCOptQuestOptimization
- Parameters:
sol
- - the solution that has completed evaluation
-