Info | ||
---|---|---|
| ||
This function is not available in Source (public version). |
Inspecting an arc-node network (advanced)
...
To enable debugging and visualisation support in Source:
- Choose Edit » Ordering Algorithm» Scenario Options » Ordering Algorithm (where the Approach selected is Iterative solution to network linear program);
- Enable Output for Debugging Output;
- Type in or select the date-range for which arc-node output is produced using the Start and End date controls in this dialog; and
- Click OK.
Next, run your model. Enabling Export iterations creates a folder on your Desktop with a name in the pattern:pattern MspNetworkOutput-yyyy-mm-dddd where the year, month and day refer to date that the simulation was run.
At the end of a run, this folder will contain three files per four files per iteration for each time-step. The files will be named in the pattern runyyyy_mm_dd_iteration_* where the year, month and day refer to the simulation time-step:.
- A visual representation (.DOT) of the arc-node network suitable for display in Graphviz;
- A textual representation of the arc-node network;
- A textual representation of the arc-node network in .csv format, and
- A textual representation of the test case for that time-step.
...
- Use the Windows Start menu to launch Gvedit, which is part of Graphviz; and
- Choose File » Open and select the .DOT file of interest. Gvedit will respond by opening a two windows. One window will contain the textual representation of the arc-node network as shown in the central window in Figure 7; and Click the Run button on the Gvedit toolbar (Figure 7)
- and on will contain the visual representation as shown in Figure 7.
Figure 7. Gvedit (opening an arc-node network)
Graphviz always generates a graphical representation of your arc-node network in two forms. One is displayed on your screen and the other is saved as a file.
GVEdit will attempt to save to a .png file initially, but the file name must be configured via the Settings button shown in Figure 7. This will open the dialog shown in Figure 8. By default, the version saved as a file is in .GIF png format but you can change this using the Output File Type popthe Output File Type pop-up menu in Figure 8. Note that Graphviz can also generate high-resolution vector-based representations such as .SVGsvg.
By default, the file is saved in the same folder as the original .DOT file. You can change this by clicking the ellipsis button (...) to the right of the Output File Name field in Figure 8.
Figure 8. Graphviz settings dialog
Once the settings have been configured to your requirements, click OK. click OK in the settings dialog. Then click on the Layout button in the main menushown in Figure 7.
Figure 9 is an excerpt from an arc-node network diagram produced by Graphviz. The elements inside the blue rectangle correspond with a Splitter node in the original Source schematic.
Figure 9. NetLP arc-node network for Splitter node