HS-3005: Export Fit Models to Excel
Learn how to run a DOE, build a Fit to approximate the output responses, export the Fit model to an Excel report, andd then use Excel to predict output response values.
Perform the Study Setup
-
Start a new study in the following ways:
- From the menu bar, click .
- On the ribbon, click .
- In the Add Study dialog, enter a study name, select a location for the study, and click OK.
- Go to the Define Models step.
-
Add an Internal Math model.
- Click Add Model.
- In the Add dialog, select Internal Math and click OK.
- Go to the Define Input Variables step.
- Click Add Input Variable to add two input variables.
-
Change the input variables' Lower Bounds,
Initial, and Upper Bounds to
the values shown in Figure 1.
Perform Nominal Run
- Go to the Test Models step.
-
Click Run Definition.
An approaches/setup_1-def/ directory is created inside the study directory. The approaches/setup_1-def/run__00001/m_1 directory contains the input file, which is the result of the nominal run.
Create and Evaluate Output Responses
In this step you will create the output responses.
- Go to the Define Output Responses step.
- Click Add Output Responses.
-
In the Expression column of Response 1, enter
sin(var_1)*cos(var_2).
- Click Evaluate to extract the response values.
Run a Hammersley DOE
-
Add a DOE.
- Go to the step.
- In the work area, set the Mode to Hammersley.
-
In the Settings tab, change the Number of Runs to
50.
Note: The large number of runs relative to the number of input variables is chosen to capture the highly non-linear nature of the output response function. This model is simple to evaluate, therefore the computational cost of the evaluation is not an important consideration in this example.
- Click Apply.
- Go to the step.
- Click Evaluate Tasks.
Run Radial Basis Function Fit
In this step, you will run a Radial Basis Function (RBF) fit.
-
Add a Fit.
- In the Explorer, right-click and select Add from the context menu.
- In the Add dialog, select Fit Existing Data and Setup, and click OK.
-
Import matrix.
- Go to the step.
- Click Add Matrix.
- In the work area, set Matrix Source to Doe 1 (doe_1).
- Click Apply.
-
Define specifications.
- In the work area, Fit Type column, select Radial Basis Function.
- Click Apply.
-
Evaluate tasks.
- Go to the step.
- Click Evaluate Tasks.
- Go to the step.
-
Visualize the response surface as a function of two input variables.
-
In the Trade-Off tab, interactively predict output response values as a
function of the input variables.
-
Export Excel report for Fit.