pycatia.knowledge_interfaces.optimization¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.knowledge_interfaces.optimization.Optimization(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectKnowledgeInterfaces.KnowledgeObjectOptimizationRepresents an Optimization object.- property algorithm_type: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property AlgorithmType() As CatAlgorithmTypeReturns or sets the algorithm type. Currently available algorithms aregradient and simulatedAnnealingSee also:CatAlgorithmType
- Returns:
enum cat_algorithm_type
- Return type:
int
- property constraints: OptimizationConstraints¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Constraints() As OptimizationConstraints (ReadOnly)Returns the collection of optimization constraints.
- Return type:
- property conv_speed: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ConvSpeed() As longReturns or sets the convergence speed for some gradients and the simulatedannealing.
- Return type:
int
- property free_parameters: FreeParameters¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property FreeParameters() As FreeParameters (Read Only)Returns the collection of the free parameters.
- Return type:
- property max_evals_nb: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property MaxEvalsNb() As longReturns or sets the maximum number of model updates allowed during one runof the optimization.
- Return type:
int
- property max_evals_wo_improvement: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property MaxEvalsWoImprovement() As longReturns or sets the maximum number of model updates without improvement ofthe problem solution during one run of the optimization.
- Return type:
int
- property max_time: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property MaxTime() As longReturns or sets the maximum time allowed for one run of the optimization(in minutes).
- Return type:
int
- property objective_parameter: RealParam¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ObjectiveParameter() As RealParamReturns or sets the objective parameter of the optimization. This parametercan not exist (in this case the get method returns E_FAIL) when theoptimization contains only constraints and uses Simulated Annealing, or if theoptimization feature doesn’t contain all information necessary to be run.
- Return type:
- property optimization_type: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property OptimizationType() As CatOptimizationTypeReturns or sets the type of the optimization: minimum, maximum or targetvalue searched on the objective parameter.See also:CatOptimizationType
- Returns:
enum cat_optimization_type
- Return type:
int
- run(i_with_stop_dialog: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub Run(boolean iWithStopDialog)Runs the optimization as it is defined. The stop dialog appears if argumentis TRUEBefore running, a check is made to ensure that the optimization featurecontains enough information to run the optimization. In the case where someinformation is missing, this method returns E_FAILWARNING : if argument is TRUE, the optimization is launched asynchronously, and you can not runseveral optimizations in this mode.
- Parameters:
i_with_stop_dialog (bool) –
- Return type:
None
- property target_value: RealParam¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property TargetValue() As RealParam (Read Only)Returns the objective parameter target value. (used only if theoptimization type is a target value search)
- Return type:
- property use_max_evals_wo_improvement: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property UseMaxEvalsWoImprovement() As booleanReturns or sets if the number of updates without improvement of thesolution has to be used as a termination criterion.
- Return type:
bool
- property use_max_time: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property UseMaxTime() As booleanReturns or sets if max time has to be used as a termination criterion.
- Return type:
bool