You can use the
Maximization Optimization type. In this example, the algorithm searches for the parameter
values corresponding to a maximum value for Function2.
The Simulated Annealing method is used. Lower and upper
bounds (-10 and +10) are specified for the x argument.
Create a Representation and add the parameters
and formulas shown below.
From the
Compass, click
3D Modeling
Apps
and select Product Engineering
Optimizer.
Click Optimization.
Define the data required to run the optimization
algorithm as follows:
Optimization Type
Maximization
Optimized Parameter
Function2
Free Parameters
x - Inf. Range: -10 ; Sup.
Range: +10
Algorithm
Simulated Annealing Algorithm
Convergence speed
Fast
Maximum number of updates
200
Consecutive updates without
improvements
50
Maximum time (minutes)
5 minutes
Check the Save optimization data
box, otherwise your optimization data will not be saved
and you will not be able to display the optimization curves.
Click Run optimization.
Type the name of the new representation
and click OK.
A steady value of 500 is reached
very early for Function2. The free parameters as well as
the Function2 value are updated in the tree.
Important:
Note that Real type parameters are displayed with nine
decimal places (trailing zeros if any are not displayed).
If you perform an optimization with other parameter
types, the values are displayed according to the
options specified in the Units tab of the Me > Preferences dialog box (General > Parameters
and Measure).
Replay the same scenario with a maximum
number of updates of 50, then 20.
Click OK or Cancel
to exit the Optimization dialog box.