Running Modules
You can run modules in three ways:
- By running the model that contains the module (by choosing Run from the Model menu). When you run a model, all of its modules automatically run.
- By choosing to run selected modules within the model. To do this, open the Properties panel on the model in order to perform a Partial Simulation Setup, and select the modules you want to run. When you run a module this way, the module uses the model's run specifications (as defined in the Model Settings Properties Panel). When you run one or more selected modules (without running the entire model), module inputs are held constant using
the same rules as those used when Running Sectors.
- If you've saved the module as a separate file, by opening the module (.ITMX or .STMX) file and running the module in isolation (maybe in order to test it, or to use it as a stand-alone model), then when you run the module in isolation, the module uses its own run specifications (as defined in the Model Settings Properties Panel for that model).
Note: A model that contains modules won't run until all inputs in each of its modules have been assigned to variables in the model. If the model is marked invalid, check all connections for the modules and make sure that all inputs are assigned and that there are no unused connectors. For more information, see Testing and Troubleshooting Modules.
The following procedure describes how to run selected modules within a model.
To Run One or More Modules in a Model
-
Navigate to the Root module for the model using the Model Window Mode Toolbar.
-
In Edit mode, open the Model Settings Properties Panel by clicking an empty area in the diagram (slide the panel out by clicking on the at the right of the window if you've closed the panel).
-
Select the Partial Simulation tab.
-
Select the modules that you want to run:
- To run the entire model, including all modules,
select Run Everything.
- To run one or more modules within the model, select
Run Selected Modules, and then
select the check boxes for the modules that you want to run.
Note: Modules whose names are
grayed out can't run because they're not fully defined (don't have
all variables defined), or have errors.
- When you've finished making your selections, click on the button at the bottom right of the panel.
-
Run the model from the Menu or the Run Toolbar.
See Also