HS-1060: Link Variables of a Model to Output Responses of Other Models
Learn how to link variables of a model to output responses of other models.
Perform the Study Setup
- Start HyperStudy.
-
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 a Parameterized File model.
-
Add a Spreadsheet model by dragging-and-dropping Cost.xls
file from the Directory into the work area.
The Resource, Solver input file, and Solver input arguments fields become populated. The Solver input file field displays hst_input.hstp, this is the name of the solver input file HyperStudy writes during an evaluation.Note:
When you create an Excel spreadsheet model, it is important that the spreadsheet is formatted correctly. A variable's value and label can be formatted in two consecutive rows or two consecutive columns. Variable labels should only contain English characters, or a combination of English characters and numbers. If a label is not created for a variable, HyperStudy will assign one by default.
-
Click Import Variables.
The cost.xls spreadsheet opens.
-
Add input variables.
-
Add output responses.
- Go to the Define Input Variables step.
- Review the input variable's upper and lower bound ranges.
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 output responses, Mass and Displacement.
- Go to the Define Output Responses step.
-
Create the Mass output response.
The Mass output response is displayed in the work area.
-
Create the Displacement output response.
The Displacement output response is added to the work area.
- Click Evaluate to extract the response values.
Link Input Variables to Output Responses
In this step you will link Mass_Excel input variable of Model 2 to Mass output response of Model 1.
- In the Explorer, click Define Input Variables.
- Click the Links tab.
- In the Expression column of the input variable Mass_Excel, click .
- In the Expression Builder, click the Output Responses tab.
- Select the output response Mass.
-
Click Insert Varname.
The expression m_1_r_1 appears in the Evaluate Expression field.
-
Click OK.
The input variable Mass_Excel of Model 2 is now linked to the output response Mass of Model 1.
-
Perform a System Bounds Check and verify that the input variable Mass_Excel is
equal to the output response Mass.