Open topic with navigation
Hierarchical Modeling and Scenario Management
When defining scenario parameters, a list of possible parameters for
the parent model is listed in
the Scenario Parameters dialog. If
you would like to define a scenario parameter for a submodel, you must
first define a global variable in both the parent model and submodel,
then use the global variable in a field in the submodel where you would
like to apply the scenario parameter, and finally set the global variable
as a scenario parameter in the parent model.
For example, if we would like our submodel to use a scenario parameter
for one of its activity's (Op31) capacity, we would do the following:
- Define the global variable in the parent model,
and set its initial value to 1. For
this example we will call the global variable Op31Cap.
- Define the same global variable in the submodel.
Set the initial value of the variable to 1. This must be done so the submodel
accepts the variable in the capacity field, which requires a whole number
or variable.
- Open the Properties dialog for activity Op31 in
the submodel, and enter the global variable in the Activity Capacity field.
- Open the Scenario Manager
in the parent model and click the Add Parameter(s) button.
- Expand the Variables
Initial Value node, and double click on the Op31Cap variable to add it
as a scenario parameter.
- The global variable
can now be used as a scenario parameter to control capacity in the submodel's
Op31Cap activity.
© 2014 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com