Viewing Element Dependencies Within a SubModel

In complex models, it is often useful to explore the interdependencies of the various elements (i.e., who affects who). GoldSim provides two very powerful utilities for doing this: the Function Of View A special browser view in GoldSim that allows you to see all the elements that affect the selected element., and the Affects View A special browser view in GoldSim that allows you to see all the elements the selected element affects.. If you right-click on an element in either the graphics pane The primary portion of the GoldSim interface, where the graphical depiction of the model is shown. or the browser An alternative view of a GoldSim model, in which elements are displayed in a tree, and organized either hierarchically, or by type. (to access the context menu) and select Function Of... or Affects..., a floating browser window is displayed that shows the element dependencies in the form of a tree:

If the tree includes a SubModel A specialized element that allows you embed one complete GoldSim model within another GoldSim model. This facilitates, among other things, probabilistic optimization, explicit separation of uncertainty from variability, and manipulation of Monte Carlo statistics., the SubModel is effectively treated as an element (this is in contrast to a Container An element that acts like a "box" or a "folder" into which other elements can be placed. It can be used to create hierarchical models., which generally would not show up in the tree at all). That is, the SubModel is treated as any other element with inputs and outputs would be treated. With regard to the dependency tree, it is simply a "custom" element. In the example below, the Expression A is shown to be a function of Y and the SubModel:

In many instances, however, you may be interested in looking inside the SubModel to view the dependencies. That is, it may not be enough to know that A is a function of SubModel1; you may want to explore exactly what A is a function of within the SubModel.

To facilitate this, GoldSim allows you to expand SubModels within a Function Of or Affects tree:

When GoldSim displays items inside a SubModel in this way, it always does the following: