- 易迪拓培训,专注于微波、射频、天线设计工程师的培养
HFSS15: Optimization Setup for the SNLP Optimizer
Following is the procedure for setting up an optimization analysis using the Sequential Nonlinear Programming (SNLP) Optimizer. Once you have created a setup, you can Copy and Paste it, and then make changes to the copy, rather than redoing the whole process for minor changes.
1. Set up the variables you want to optimize in the Design Properties dialog box.
2. Click HFSS >Optimetrics Analysis>Add Optimization.
The Setup Optimization dialog box appears.
3. Under the Goals tab, select the optimizer by selecting Sequential Nonlinear Programming from the Optimizer pull-down list.
4. Type the maximum number of iterations you want Optimetrics to perform during the optimization analysis in the Max. No. of Iterations text box.
5. Under Cost Function, add a cost function by selecting the Setup Calculations button to open the Add/Edit Calculation dialog.
6. If you want to select a Cost Function Norm Type:
Check the Show Advanced Option check box.
The Cost Function Norm Type pull-down list appears.
Select L1, L2, or Maximum.
A norm is a function that assigns a positive value to the cost function.
For L1 norm the actual cost function uses the sum of absolute weighted values of the individual goal errors. For L2 norm (the default) the actual cost function uses the weighted sum of squared values of the individual goal error. For the Maximum norm the cost function uses the maximum among all the weighted goal errors, which means that it is always less than zero. (For further details, see Explanation of the L1, L2, and Max Norms in Optimization.)
The norm type doesn’t impact goal setting that use as condition the “minimize” or “maximize” scenarios.
7. In the Variables tab, specify the Min/Max values for variables included in the optimization, and the Min/Max Focus for the analysis.
You may also override the variable starting values by clicking the Override checkbox and entering the desired value in the Starting Value field.
8. In the General tab, specify whether Optimetrics should use the results of a previous Parametric analysis or perform one as part of the optimization process.
Enabling the Update design parameters’ value after optimization checkbox will cause Optimetrics to modify the variable values in the nominal design to match the final values from the optimization analysis.
9. Under the Options tab, if you want to save the field solution data for every solved design variations in the optimization analysis, select Save Fields And Mesh.
Note | Do not select this option when requesting a large number of iterations as the data generated will be very large and the system may become slow due to the large I/O requirements. |
You may also select Copy geometrically equivalent meshes to reuse the mesh when geometry changes are not required, for example when optimizing on a material property or source excitation.This will provide some speed improvement in the overall optimization process.