Exporting Scenario Results from a Time History Result Element to a Spreadsheet

When running multiple scenarios, time histories for different scenarios can be written to a spreadsheet.

Note, however, that export of scenario A specific set of input data (and corresponding outputs) for a model. Multiple scenarios can be defined for a model. Different scenarios within a model are specifically differentiated by having different values for one or more Data elements. results to a spreadsheet must be carried out in a special way to prevent each export from simply overwriting previously exported scenarios.

In particular, when exporting scenarios, GoldSim exports all scenarios with results to a separate sheet from that defined in the dialog; it appends "-Scenarios" to the specified sheet name, and exports results to that sheet (creating it if it does not already exist). For example, if your specified sheet name was simply "Sheet1", scenario results would be exported to "Sheet1-Scenarios" (and this is indicated in the dialog):

Scenario results are exported only under the following four conditions:

  1. If the model is in Scenario Mode The state of a model when it contains scenario results, allowing multiple scenarios to be compared., pressing Export Now from the Export tab of the Result element exports results for all scenarios with results to the specified Scenarios sheet.
  2. If the model is in Scenario Mode, pressing Export Now from the Results tab of the Model Options dialog exports results for all scenarios with results from all Time History Result elements to their specified Scenarios sheet.
  3. Within Dashboards, the Button control A special control that can be added to a Dashboard that provides a mechanism for linking a wide range of actions to a button. provides a command option that is equivalent to pressing the Export Now button from the Result tab of the Options dialog. Hence, if the model is in Scenario Mode, this button command exports results for all scenarios with results from all Time History Result elements to their specified Scenarios sheet.
  4. If you press Run All in the Scenario Manager A dialog that allows you to create, define and run scenarios., any Result elements that are configured to automatically exports result will export results for all scenarios to their specified Scenarios sheet.

Several important points should be noted regarding scenario export:

When exporting scenario results to the Scenarios sheet GoldSim provides two options for how the results are exported on the Export tab of the Result element dialog:

If you select "Group Results Together", if multiple results are being exported, the columns will be grouped together by result:

In this particular example, the Result element contained two results (Flow and Cost) and three scenarios (Scenario1, Scenario2, and Scenario3) and was run for a single realization A single model run within a Monte Carlo simulation. It represents one possible path the system could follow through time.. Note that all the results for Flow are presented (for each scenario), followed by all the results for Cost.

If you select "Group Scenarios Together", if multiple results are being exported, the columns will be grouped together by scenario:

Note that in this case all the results for the first scenario are presented (for each result), followed by all the results for the second scenario, and finally all the results for the third scenario.

Note that when exporting scenario results, GoldSim writes four header rows (rather than three). The first identifies the scenario, the second the result, the third the units, and the fourth the result type. In this example, in which only a single realization was run, the result type is simply the realization number. If multiple realizations were run, the result type would be a statistic.

In addition, the first cell contains a comment with information regarding the run (e.g., version used, date/time of simulation and export, name of Result element, names of scenarios being exported, etc.).