HS-1015: Work with an Internal Math Model

Learn how to set up a study on simple functions defined using an Internal Math model.

In this tutorial you will set up a beverage can design of experiments to see how design variables effect the responses. The beverage has the following design variables and output responses:
Design variables
Diameter
Height
Output responses
Material Cost
Volume

Perform the Study Setup

  1. Start HyperStudy.
  2. Start a new study in the following ways:
    • From the menu bar, click File > New.
    • On the ribbon, click .
  3. In the Add Study dialog, enter a study name, select a location for the study, and click OK.
  4. Go to the Define Models step.
  5. Add an Internal Math model.
    1. Click Add Model.
    2. In the Add dialog, select Internal Math and click OK.
  6. Go to the Define Input Variables step.
  7. Create two input variables.
    1. Click Add Input Variables twice.
    2. In the work area, Label column, change the labels for the two input variables to Diameter and Height.
    3. Change both input variable's lower, nominal, and upper bounds to the values indicated in Figure 1.


      Figure 1.

Perform Nominal Run

  1. Go to the Test Models step.
  2. 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, Cost and Volume.

  1. Go to the Define Output Responses step.
  2. Create two output responses.
    1. Click Add Output Responses two times.
    2. In the work area, Label column, change the labels for the output responses to Cost and Volume.
  3. In the Expression column, enter the following:
    1. For Cost, enter 2*(pi*var_1^2/4)+var_2*pi*var_1.
    2. For volume, enter (pi*var_1^2/4)*var_2.


    Figure 2.
  4. Click Evaluate to extract the response values.

Run DOE

  1. Add a DOE.
    1. In the Explorer, right-click and select Add from the context menu.
    2. In the Add dialog, select DOE and click OK.
  2. Go to the DOE 1 > Specifications step.
  3. In the work area, set the Mode to Full Factorial.
  4. Click Apply.
  5. Go to the DOE 1 > Evaluate step.
  6. Click Evaluate Tasks.
  7. Go to the DOE 1 > Post-Processing step.
  8. Click the Summary tab.
    Notice that there are two input variables with lower and upper bounds which result in 22 = 4 runs.


    Figure 3.
  9. Click the Linear Effects tab.
    The data collected in the Summary tab is used to calculate the linear effects of the Diameter and Height input variables on the Cost and Volume output responses. A line is drawn between the average value of the output response when the input variable is at its lower bound and the average value of the output response when the input variable is at its upper bound.


    Figure 4. Effects Computation of Diameter on Cost and Volume
    The effects of the input variable Height on the output responses Cost and Volume are computed in the same manner. By displaying both input variables and output responses in the same plot, you can compare the effects.


    Figure 5.
    The slope of the lines could be positive or negative. In this example, both effects have a positive slope which indicates that increasing the input variable's values will also increase the output responses.