Subsections


3 Short Tutorials

Go through these tutorials if you are using the simulator for the first time, they help you to quickly get a simulation designed and running. For professional studies the advanced topics in Sec. 4 are highly recommended.

Start up iTS MAITin GUI mode (GUI= Graphical user interface) by typing python its.py behind the terminal prompt or by double clicking on the its-snake in your file browser. Then you should see the empty main window as shown in Fig. 2. Now you can continue with one of the short tutorials below.

Figure: iTS MAITMain window
\begin{figure}\begin{center}
\psfig{figure=fig_mainwin.ps}
\end{center}\end{figure}


3.1 Opening, starting and viewing simulation files

Choose from the main menu File / Open. You will always be asked whether you want to save the present simulation. Press ``NO'' if there is no simulation or if you have just saved it. Select the simulation file fiera_users.its and press the ``OK'' button. After the transportation network has appeared in the main window (similar to Fig. 3), choose from the main menu Simulation / Start. The vehicles and users should now start moving. Stop the simulation with menu Simulation / Stop. You can continue the simulation with Simulation / Continue. If you select again Simulation / Start the simulation will apparently continue, but time and all statistical data will be set to zero.

There is also a step-by-step simulation option: click somewhere in the canvas and press the return key. For each return-key hit, the simulator will advance 500ms. Before continuing the simulation in normal mode, you need to set the End of simulation time to a desired value by selecting Simulation / Parameters.

Figure 3: The simulation fiera_users.its. The brown dots beside the off-line stop are people (users) who will have a ride. The vehicles are the yellow rectangles.
\begin{figure}\begin{center}
\psfig{figure=fig_test.ps}
\end{center}\end{figure}
Use the scroll-bars or cursor-keys to scroll the viewing area of the canvas. Zoom in and out with the PgDown and PgUp buttons.Attention: for large maps, enlargements are computationally intensive and require a huge amount of memory!! More zoom options are available on the View Menu. Choose View / indicate ghosts to visualize how vehicles are merged and de-merged. Attention, this option will slow down the display.

Network evaluation methods are explained in Sec. 3.2, for Network creation and editing see Sec. 3.3.


3.2 Network evaluation

Open a complete simulation file (including vehicles and users as demonstrated in Sec. 3.1) and simulate it for at least 10 minutes (see status bar below canvas). There are currently the following methods available to evaluate the current state of the simulation:

The Control-panel
is an interactive graphical user interface which displays various information about a selected module (see Fig. 4 with an example of a track element).
Figure 4: The Performance page of the control-panel of a track element.
\begin{figure}\begin{center}
\psfig{figure=fig_control-panel.ps}
\end{center}\end{figure}
The information are ordered by subjects (for example performance, costs, etc.) and presented on different pages which can be chosen on the top border of the control-panel window. Many fields and buttons are interactive, values can be changed by: There are many possibilities to open control-panels:

Export results
allows to write structured information about the state of the simulation into a file. Currently the data is written in table-form using a tab-separated text format. The resulting file can be directly imported into text processing documents or spread sheet applications.
Figure 5: Example of file with exported results, when imported in a spread sheet (here kspread from KDE e.V).
\begin{figure}\begin{center}
\psfig{figure=fig_spread.ps}
\end{center}\end{figure}

To export results, select Tools / Export results... from the main menu, insert a file name with extension (for example .txt) in the upcoming dialog-box and press OK. When imported with the spread-sheet application kspread (KDE e.V) the data looks as shown in Fig. 5.

Export canvas:
see Sec. 3.4.


3.3 Designing an automated transport network

These are step-by-step instructions on how to design a network from scratch. It is highly recommended to follow these instructions at least for the first time you create a network. Keep in mind that this is not a fully-developed commercial software with all the conveniences like undo, group, mark, copy, paste, etc. Furthermore, some parameters cannot be changed in later design steps and need to be set at the beginning. However, following the instructions below even larger networks can be rapidly and conveniently designed, see also design sequence in Fig. 6:

Figure: Example of a step-by-step network design.(a) Moving and placing background maps. (b) Placing stops and other track element. (c) Closing the gaps with ``flexible'' track elements. This design step is available in the its-0.51distribution, just open simulation file fiera_track.its. (d) Track is ``activated'' and carriers as well as users have been added to the stops. The simulation is now ready to run.
\begin{figure}\begin{center}
\begin{tabular}{cc}
\psfig{figure=fig_test_map.ps...
...,width=0.7\textwidth}
\\
(c) & (d)
\end{tabular} \end{center}
\end{figure}

  1. Create a new simulation with File / New from the main menu.
  2. Optionally, change currency in Simulation / Parameters (default is EUR). Confusing results may occur when changing the currency later.
  3. Optionally, put one or more scanned maps on the canvas: Select Edit/ Map/ Add... from the main menu, select the graphic file with the desired map in the browser-dialog window and press OK. You should see the map on the canvas, attached to the pointer. Move map to the correct position and place it with a click. The add-and-place operation can be repeated for any number of maps.

    Note that iTS MAITis a micro-simulator, showing the movement of individual people and vehicles. This means the map's resolution must be high enough to show structures such as individual houses or cars, which requires considerable memory and processing time for map images. In order to obtain realistic results using maps, please read carefully the following instructions:

  4. For your convenience: Some menus have a dashed separator on the top (for example Edit / Module). This means they can be torn-off and placed permanently anywhere on the screen as permanent window. Just select this separator to transform the menu into a window.

    Figure 7: The module browser. A selection panel for adding track-elements, vehicles and users. To see this panel go Edit/ Module/ Add...
    \begin{figure}\begin{center}
\psfig{figure=fig_add_module.ps}
\end{center}
\end{figure}

  5. Add, adjust and connect track elements: Open first the Module browser with Edit/ Module/ Add.... The module browser, as shown in Fig. 7, has a group-pull down menu and module selection dialog box. Choose track-elements at the group pull down menu. Select a particular track element from the Modules selection box that you want to add to the simulation. An example of a selected type is shown in the preview window together with some additional text information. Note the little circles on each extremity of track elements. An empty circle indicates an input node (where vehicles enter), whereas a filled box marks an output node (where vehicles leave).

    Press the Select of the module-browser bottom and move pointer over canvas (alternatively, double click on the module type). The selected track element should now be attached to the pointer. As long as the track element is attached to the pointer with one of its nodes, the following operations can be used:

    When creating the network, it is recommended to minimize the number of track elements. This will considerably improve simulation speed. This means: use few track elements and connect them by stretching their extremities. This step requires a bit of experience. However, with the following hints one can rapidly build up a network:

  6. Optionally, configure track-elements: The above parameters can be changed at any design step, but it is recommended to do it before starting the simulation. Otherwise the obtained simulation results are produced with a changing set of system parameters.

  7. Save track layout! You will definitely want to change your track later on. For this reason it is a good idea to save this intermediate result now because after the next steps it becomes increasingly difficult (and sometimes impossible) to remove vehicles and users from the simulation in order to get back to the plain track. Therefore, Select File / Save as... on the main menu and insert the name of the simulation. The suggested name is mycity_track.its, to indicate that this simulation file contains track information only.

  8. Activation of track elements: The activation of track elements is somehow similar to switching on the real track after installation. To activate the track go to menu item Edit/ Module/ Activate. Then click on the track element that you want to switch on. Alternatively you can activate the entire network at once with Edit/ Module/ Activate all.

    Note: Only track elements that are connected on all nodes can be activated. However, single section of a track element can be activated if both ends are connected. Furthermore, only inactive track elements can be moved, stretched or deleted. For inactivation go Edit/ Module/ Inactivate and click on the track elements to inactivate.

  9. Add vehicles: click on module-browser and select Carriers (carrier is MAIT terminology). You could double-click on a carrier type (currently only experim is available), drag it over a stop on the canvas and click to place it into a berth. However, a more effective method is to select a carrier and press the Add multiple bottom. A dialog box will appear with the following options: You can repeat this operation to place any amount of vehicles to stops in different zones.

  10. Optionally, edit costs of carriers: Select Edit / Browse..., and test.car.experim in the simulation objects list. Click on any particular carrier in the Modules list and press the Show control-panel-button. Click on the Costs page of the control-panel. You will see a lists of costs plus life-time and some other relevant quantities: Press the Apply-button to apply costs to the present carrier or the ``Apply costs to all modules of this type''-button to copy the costs to all carriers of the same type that exist in the entire network.

  11. It is recommended to save the state of the simulation file after adding vehicles with the name mycity_cars.its

  12. Add users: click on module-browser window and select Users. For this exercise we will select the user `` test_driver''. Double-click on test_driver, drag him/her close to a stop on the canvas and click to place. However, a more effective method is to select the test_driver in the browser window with a single click and press the Add multiple bottom. A dialog box will appear with the following options: You can repeat this operation to place any amount of test drivers to stops in different zones.

  13. Optionally, change End of simulation time in Simulation / Parameters (default is $ 3600s=1h$ ).

  14. It is recommended to save the state of the simulation file after adding users with the name mycity_users.its

  15. Run simulation with Simulation / Start.


3.4 Graphics export and printing of canvas

Unfortunately there is currently no platform-independent printing scheme for graphics implemented. However, there are two methods to export the transport-network in a printable graphics format: Postscript snapshot and screen-shots.

3.4.1 Postscript(R) Export

Postscript(R), is the Adobe(R) file-format for printers. You may be able to drag and drop a postscript file directly into a postscript compatible printer symbol, on almost all Unix systems you simply type at the prompt: lp postscriptfile.ps and the file will be printed directly to the postscript line printer or automatically converted to a proprietary format and then printed.

Postscript files can also be viewed and edited. There is commercial software, such as Adobe Acrobat Distiller/Reader and Photoshop. The most widespread free software is Ghostview and the Gimp. Windows users can download the free software at

\begin{verb}
http://www.cs.wisc.edu/ ghost/gsview/index.htm
\end{verb}

3.4.2 Postscript(R) snapshot

To make postscript snapshots, simple select Tools / Make PS snapshots. If you now run the simulation, a snapshot will be made every $ 500ms$ by default. The files will be saved in the current directory under the name(s): mysimfile_shot001.ps, mysimfile_shot002.ps, mysimfile_shot003.ps, $ \ldots$

Note: the PS snapshots cover only the area of the canvas that you actually see in the window on the screen (but without window borders). If you want the whole network, you may want to zoom out first.

3.4.3 Screen-shots

Screen-shots are probably the quickest and simples way to export graphics:
MS windows:
  1. Maximize window with canvas.
  2. Press the ``Print Screen''-key
  3. Open MS Paint or other MS text/graphics applications
  4. Select Edit / Paste, or in MS word Edit / Paste Special....
  5. Optionally, edit graphics (cut off windows frame and menu, resize, compress, etc.)
Linux:
  1. Maximize window with canvas.
  2. Take a snapshot using your favorite snap-shooter (for example ksnapshot that comes with the KDE desktop) and save window as graphics file.
  3. Optionally, edit graphics with gimp (cut off windows frame and menu, resize, compress, etc.)

Joerg Schweizer 2007-07-17