Adding/Editing a Cost Function Calculation

Use the Add/Edit Calculation dialog box to define the mathematical equation for one or multiple cost functions. It represents the calculation to be performed on the optimization variables to compare to the goal values. To set up a calculation for a cost function:

  1. In the Context section of the dialog box:
    • Select the Report Type from the drop-down list containing the available types for this design.
    • Select the Solution from the drop-down list. This lists the available setups and sweeps. As a minimum, the LastAdaptive solution is available.
    • Select the Geometry from the drop-down list or select none (the default). This modifies the list of quantities available to the ones that apply to the specific geometry.
  2. Click Output Variables to open the Output Variables dialog box; use this dialog box to create special output variables to be used in the cost function.
  3. The Calculated Expression field in the Trace tab is used to enter the equation to be used for the cost function. To enter an expression, type it directly into the field or use the Category, Quantity, and Function lists as follows:
    • Select the Category. These depend on the Solution type and the design. This lets you specify the category of information to be used in the cost function.
    • Select a Quantity from the list. Available quantities depend upon the Solution type, as well as the Geometry and Category selection. Selecting a Quantity enters it into the Calculated Expression field.
    • Select a Function to apply to the value in the calculated expression.
    • For swept variables, the Range Function button opens the Set Range Function dialog box to apply functions to the expression that apply over the sweep range.
  4. The Calculation Range tab applies to swept variables and lets you specify the range of the sweep over which to apply the calculation.
  5. When the desired Calculated Expression is obtained, click Add Calculation to add the entry to the cost function table. Add multiple entries to the table by changing the Calculated Expression and using the Add Calculation button.
  6. To update or edit a selected cost function, enter the desired Calculated Expression and click the Update Calculation button.
  7. Click Done to apply your changes and return to the Setup Calculations dialog box.