Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

Scenarios in Source can be connected in a number of ways including:

Each of these methods has advantages and disadvantages, discussed below.

Copying and pasting network elements

This is a simple method for joining scenarios into a larger one. Everything from one scenario can be copied and then pasted into another scenario within the same project (with the caveats listed in Copying Network Elements). Once  Once you have pasted the network components, you can work with those components as you would for any scenario. A disadvantage of this method is that the pasted scenario is not linked to the scenario from which it was copied, changes in the originating scenario will not be reflected in the scenario with pasted components. Additionally, the scenarios that you are copying and pasting between have to be within the same project. If they are not, you can import the appropriate scenario(s) into the same project, but this requires the full version of Source, see Importing Scenarioscopied scenario and the original are not linked in any way. Also, importing scenarios from other projects, thus enabling copying, is only possible in the full version of Source.

Scenario data sources

Using a scenario data source is a simple mechanism for connecting models, outputs form one scenario from one or more scenarios, the donor scenarios, are used as inputs for another scenario - the acceptor scenario. First you run the donor scenario, see Loading Scenarios.  The then you select results to be used as data sources in the acceptor scenario, see Loading scenario data sources for more information. 

The main advantage of this method is that it can improve performance on large models; you can split the model in to parts (eg. upstream and downstream) and run them sequentially, using scenario data sources to input the results from an upstream model into the downstream model. If . Furthermore, if you enable Reload on Run for  for a scenario data source, the downstream scenario will use the results from the latest run of the upstream the donor scenario will be used as input for the acceptor scenario, allowing you to pass results changes to from the upstream scenario donor to be reflected in the input to the downstream scenario. the acceptor. 

The disadvantage of this method is that information can not cannot be passed from the downstream acceptor scenario to the upstream scenario. This means that ....donor scenario, so you cannot, for example, link ordering systems.

Scenario transfer node

 

The Scenario transfer node Transfer Node (STN) handles the joining of two scenarios with is a more complicated method for connecting models together, it is used to join scenarios within the same project with linked:

  • Constituents
  • Orders, and
  • Ownership .

 

 

 

AnchorScenarioTransferNodeScenarioTransferNodeScenario Transfer Node 

The Scenario transfer node (STN) handles the joining of two scenarios and conceptually, comprises of two components (as shown in Figure 1). The node links two scenarios and runs them together. 

The STN operates in either a connected or disconnected mode:

  • When processing a connected execution, the pitcher passes all components of the pitcher scenario to the catcher, hence linking the two scenarios together; and
  • For a disconnected execution (ie. scenarios are run independent of each other), the pitcher acts like a minimum flow requirement node and the catcher models an inflow node.
Figure 1. Scenario Transfer node

Image Removed

Note the following when working with linked scenarios:

  • Constituents are passed from one scenario to another;
  • Orders are passed between linked scenarios;
  • Off allocation does not operate over scenarios. In this mode, the STN operates like an off allocation boundary - similar to the transfer ownership node;
  • Ownership is passed across boundaries.

Constituents

A model will operate even if the constituent processing methodology (lumped or marker) is different for each scenario. For example, consider the pitcher scenario is configured with lumped routing and the catcher scenario with marker routing. Constituents will be passed from the pitcher to the catcher even though the methodology is not the same.

Once constituents are defined in both the pitcher and catcher scenarios, you can map constituents between the two scenarios using the STN feature editor. Choose Connected > Constituent Mapping from the tree and click Add (as shown in Figure 2). 

Figure 2. STN, Constituent mapping

Image Removed

Ownership

Ownership can be set up in linked scenarios using Connected > Ownership in the feature editor (as shown in Figure 3). Configuration of ownership is similar to the Transfer ownership node (when set up as a boundary node). 

Figure 3. STN, Ownership

Image Removed

Image Removed
  • (only available in the licensed version of Source).

STNs can operate in both connected and disconnected modes. This allows you to develop different parts of a large model independently of each other as separate scenarios running in disconnected mode, and then you can run them together in connected mode. The disadvantage of this method is that when running in connected mode all scenarios that are connected to each other will be run, which may result in long run times. See Scenario Transfer Node for more information.