Aimsun Users Manual v8
Aimsun Users Manual v8
Aimsun Users Manual v8
May 2014
2005-2014 TSS-Transport Simulation Systems
Copyright
Copyright 1992-2014 TSS-Transport Simulation Systems, S.L.
All rights reserved. TSS-Transport Simulation Systems products
contain certain trade secrets and confidential and proprietary
information of TSS-Transport Simulation Systems. Use of this
copyright notice is precautionary and does not imply publication or
disclosure.
Trademark
Aimsun is trademark of TSS-Transport Simulation Systems. S.L.
Other brand or product names are trademarks or registered
trademarks of their respective holders.
Draft
INTRODUCTION ........................................................................................ 12
1.1
THE AIMSUN ENVIRONMENT......................................................................... 12
1.2
AIMSUN EXTENSION AND THE SOFTWARE DEVELOPMENT KIT ........................................ 13
1.2.1 Example ....................................................................................... 13
AIMSUN 8........................................................................................... 15
AIMSUN CUSTOMIZATION............................................................................ 26
5.1
MODELS ............................................................................................ 26
5.2
PREFERENCES....................................................................................... 26
5.2.1 Preferences Editor .......................................................................... 26
5.3
TEMPLATES ......................................................................................... 30
5.4
AIMSUN PROJECT ................................................................................... 31
5.4.1 Aimsun Project properties ................................................................ 31
5.5
COMMAND LINE OPTIONS ............................................................................ 35
Draft
6.9
6.10
6.11
6.12
6.13
6.14
6.15
6.16
6.17
6.18
6.19
6.20
6.21
6.22
7
Draft
9.3
9.4
9.5
9.6
9.7
10
11
12
13
Draft
14
15
16
19
20
21
22
Draft
BASIC COST FUNCTIONS / COST FUNCTIONS USING VEHICLE TYPES ................................. 190
K-INITIALS COST FUNCTIONS / K-INITIALS COST FUNCTIONS USING VEHICLE TYPES ............... 191
ROUTE CHOICE FUNCTIONS ........................................................................ 192
MACRO VOLUME DELAY FUNCTIONS ............................................................... 193
MACRO TURN PENALTY FUNCTIONS ................................................................ 195
MACRO JUNCTION DELAY FUNCTIONS.............................................................. 196
MACRO FUNCTION COMPONENTS .................................................................. 197
22.8
22.9
22.10
22.11
22.12
22.13
22.14
22.15
23
24
25
26
27
28
29
30
31
32
Draft
32.3
EXAMPLES ......................................................................................... 233
32.4
WIZARDS .......................................................................................... 238
32.4.1 View Style Wizard ......................................................................... 238
32.4.2 View Mode Wizard ......................................................................... 239
33
34
35
36
37
38
39
40
Draft
42
43
Draft
43.2
SHAPEFILE INTRODUCTION ......................................................................... 307
43.3
GIS FILE UNITS.................................................................................... 307
43.4
DATA REQUIREMENTS .............................................................................. 308
43.5
NETWORK CREATION .............................................................................. 308
43.5.1 Customization Services ................................................................... 308
43.6
IMPORTING A GIS FILE............................................................................. 308
43.7
NETWORK IMPORTER .............................................................................. 310
43.7.1 Road Types .................................................................................. 310
43.8
HOW THE NETWORK IMPORTER WORKS ............................................................ 311
43.8.1 Section Creation ........................................................................... 312
43.8.2 Node Creation .............................................................................. 314
43.8.3 Centroid Creation .......................................................................... 317
43.9
NAVTEQ IMPORTER ................................................................................ 317
43.10 CENTROID, VMS, DETECTOR AND BUILDING IMPORTER ............................................ 318
43.11 EXPORTING AN AIMSUN NETWORK TO SHAPEFILES .................................................. 318
43.11.1 Sections file ................................................................................. 319
43.11.1.1
Sections geo file ..................................................................... 319
43.11.2 Nodes file.................................................................................... 320
43.11.3 Turns file .................................................................................... 320
43.11.4 VMSs file ..................................................................................... 321
43.11.5 Meterings file ............................................................................... 321
43.11.6 Detectors file ............................................................................... 321
43.11.7 Centroids file ............................................................................... 321
43.11.8 Centroid connections file................................................................. 322
43.11.9 Public transport stops file ............................................................... 322
43.11.10
Labels file ............................................................................ 323
43.11.11
Polygons file.......................................................................... 323
43.12 TYPES AND OBJECTS IN AIMSUN ................................................................... 323
43.12.1 Incompatible Types ........................................................................ 324
44
45
46
47
48
Draft
10
48.2.2
48.2.3
48.2.4
48.2.5
48.2.6
48.2.7
48.2.8
49
50
51
52
54
53
Draft
11
1 Introduction
The actual Aimsun manual conducted by TSS transportation
environment includes parts of Aimsun dynamic traffic simulators,
Microscopic, Mesoscopic and Hybrid, Aimsun Macroscopic modelling
tools and Aimsun travel demand modelling tools.
However, there is a variety of Aimsun manuals, each one, solid and
thorough explaining every detail of Aimsun. The manual of Aimsun
Dynamic Simulators provides the user with more detailed
information on the microscopic, mesoscopic and hybrid simulators,
the Aimsun Macroscopic Modelling Manual on the static model and
its operation in Aimsun, and furthermore the Aimsun Travel
Demand Modelling Manual on the four-step transportation planning
process.
12
1.2.1 Example
A company called FLCL wants to incorporate an application to
locate, in case of a traffic accident, the most appropriate hospital.
It has to be nearby and with capacity enough to attend the injured
people.
This new application will need two new elements to be added to
Aimsun: Hospital and Traffic Accident. The developer, using the
platformSDK, will write a plug-in in C++ that incorporates these
elements.
Draft
13
The developer will also add some editors to these new elements
(classes in C++) to edit some parameters (as the specialties of the
hospital and the type of injures of the people involved in the
accident). A hospital-icon to represent its location on the map will
also be added. Then, the user will be allowed to connect the
hospital to several sections in the network to indicate the hospitals
entries (using an editing process similar to that of a centroid).
The developer will create the two users tools for the creation of
hospitals and traffic accidents in the tool bar.
The last addition will be a context menu in the traffic incident to
find the most appropriate hospital based on the kind of injures and
the distance.
1.2.1.1
Synergy
Developers can also offer functionalities based on other
components. For example, if the ALMO Content component (from
Momatec GmbH, http://www.momatec.de/) is present, then the
developer can allow the user to select a day of the week and search
for the nearest hospital based on travel time, and not on distance,
using the traffic conditions of that day.
Developers can also use the Aimsun Microsimulator to simulate the
movement of the ambulance from the hospital and back, possibly
applying some traffic management actions to facilitate the access
to the accident position.
Draft
14
2 New Features
2.1 Aimsun 8
Please refer to the Aimsun 8 New Features document. There you
will find information about the main new features added to Aimsun.
The highlights are:
Draft
Four-step modelling
Control plan outputs in dynamic simulations
Traffic management outputs in dynamic simulations
Improved 3D visualization
15
3 Aimsun Files
By structuring a model in Aimsun, a main file with extension ANG
will be created. Example: network.ang
Furthermore, several backup files will be created. The extensions
of these files are mentioned below:
ANG.OLD File: It is a backup copy of the model without the last
modifications. Once the model is saved, firstly the information
saved from the last time that is located in the *.ang file will be
written into the *.ang.old file and then the current model
information will be saved into the *.ang file.
ANG.AUTO File: By selecting the Auto Save option in the
Preferences, the model will be saved in every defined number
of minutes in this file. Note that the *.ang file is only
overwritten when the Save option has been explicitly selected.
ANG.LCK File: Aimsun file (*.ANG File) is used to lock the
current saved file as well as to inform any other user that the
existing file may be used or it is currently used by a different
user. It will also show the identity of the actual user. Hereafter
Aimsun will provide the second user with the information either
to open the Aimsun model as read-only or to break the lock that
was created by the initial user.
SANG File: This file contains the model information at the
beginning of a session. When the user will save the network for
the first time after its loading, the actual file *.sang will be
created. The information saved is the one contained in the *.ang
file before saving for the first time. Note, that the *.sang file is
not able to keep in memory any of the modifications done
during the last session.
ANG.TMP File: When an Aimsun model is about to be saved, this
file extension would be temporarily created during the process.
If the process of saving is successful, this file will be deleted
automatically. If the saving process fails, this file may be stored
in the memory. However, its contents would be unpredictable.
Lack of disk space, loss of network connection to the disk where
the file is about to be saved etc. are some obstacles that can
make the process of saving fail.
Draft
16
Draft
17
Draft
18
Find Box: In this field you can search for any graphical or
non-graphical elements anywhere inside the project.
Draft
19
4.2.4 Windows
Aimsun shows information not only in views but also in other
windows that can be opened at the same time as the views. These
windows are:
Layers Window (shortcut key L): Includes all layers of a network.
Project Window (shortcut key P): Contains all the non-graphical
elements organized in a hierarchical list.
Types Window: Used to view and edit Aimsun types (or classes)
and their columns (or attributes). This is predominantly for
scripting operations.
Legend Window (shortcut key E): If the network elements are
drawn or coloured using a Drawing Mode, information about the
mode appears here.
Log Window (shortcut key O): Contains free text comments
related to elements in the Project Window. Various message
types appear here.
3D Info Window: A library of available textures and 3D models
available for the network. Refer to the Advanced Aimsun 3D
section for more information.
Table View Window (shortcut key T): Used to access and modify
attributes of Aimsun objects displayed in a table.
Inspector (shortcut key I): Used to quickly access and modify
attributes of the selected objects, and visualize their Time
Series.
Any of these windows can be opened by activating it from the
Windows submenu located in the Window menu, or pressing the
relevant shortcut key while no other windows is in focus.
Draft
20
Once they are opened, they can be located wherever inside the
application window. Organized in tab folders: just drop any open
window over another to add the dropped one into a new tab.
An open window can be closed by pressing the relevant shortcut
key, or by deactivating it from the Windows submenu located in the
Window menu.
By pressing [SHIFT] plus the relevant shortcut key, all other nonview windows will be closed, and the relevant window will be open
alone. By pressing the [F11] key all active windows will be hidden.
Pressing [F11] again will reveal these windows. By pressing
[Ctrl+F11] the Aimsun application will fill the whole screen and by
pressing [Ctrl+F11] again it will recover its original dimensions.
When an editor has the focus, by pressing [F11] the active editor
will become more and more translucent as the [F11] is being
pressed and more and more opaque as the [F12] key is being
pressed.
Remember that the mouses right button will activate a context
menu in these windows when it is relevant.
4.2.4.1
Common Windows Functionality
Some Windows (Project, Legend, Types, 3D...) offer a tool bar with
options to filter the data, create new elements and select view
modes. The tool bar changes from Window to Window offering the
relevant options. The filter is a text area labelled as Filter (see
below). To create new elements there is an add button (labelled
with the plus symbol).
4.2.4.2
Filter Object in Project Window
Aimsun can filter the objects shown in the Project Window by
name, which is set in the Filter line edit, and by type, where any
type of object shown in the Project Window is listed. Filtering by
name is case insensitive, so it will not distinguish capital letters
from lower case letters, as Figure 7 depicts. It is also possible to
filter by ID or by external ID setting ID: and eid: respectively before
the value.
Draft
21
4.2.4.3
Filter Objects in Types Window
Aimsun allows the user to filter Aimsun types using the name shown
in the Types Window. Matching types will be expanded
automatically, as shows Figure 8.
4.2.4.4
Filter Objects in Layers Window
Aimsun allows the user to filter Aimsun layers using the layers name
and also depending on the objects they contain, if they are internal
or external, active or even visible. Refer to the Filtering layers in
the Layers window section for more details.
22
The shown menu will depend on the current selection. The context
menu of a section is different from the context menu of a node.
When the user chooses a command, Aimsun will apply this
command to all the selected objects and not only to the object
that the menu shows. This allows us, for example, to change the
speed of more than one section at the same time.
If any of the objects of a multiple selection does not accept the
command (for example sections Change Direction command cannot
be applied to a node), no change will take place on this object.
Draft
23
Draft
24
4.7.4 Group/Ungroup
Often it is convenient to group objects together to be copied and
pasted within the 2D view. By selecting several objects, then
selecting Group from the Arrange menu on the menu bar or in the
context menu, simple items (e.g. 2D shapes) can be combined into
more complex items to be copied elsewhere within the view.
Draft
25
5 Aimsun Customization
Aimsun can be customized in three ways: selecting the models to
work with and using preferences and templates. Preferences
change settings and the behaviour of the application. Templates
are files used as an initial state when a new project is created.
Furthermore, Aimsun can be launched using several commands to
define some properties.
5.1 Models
When working with an Aimsun Advanced or Aimsun Expert Edition,
Aimsun allows the user to hide, from the Edit menu, information
for anyone of the available models (Static, Meso and Micro). Untick
a model when the model is not going to be used in your project to
hide its parameters in the editors.
5.2 Preferences
Preferences are stored at two levels: system and document.
Preferences at system level are common to all the documents that
Aimsun will create and open. Preferences at document level are
only valid for the document in which they are set.
Some preferences only make sense at system level, as they are not
related to any particular document, for example, the number of
last opened files to be remembered and shown in the File menu.
Other preferences should be set in every particular document, for
example, the road side of vehicle movement. Different documents
can have different values for the same preference.
Both levels are accessible from the Preferences command in the
Edit menu. When no document has been opened, this command will
be used to edit the preferences at system level. When a document
has been loaded, the command will edit the model preferences.
Draft
General Preferences
o Use Auto Save: when checked, the current document will
be saved periodically. The time interval between saves is
defined in the Auto Save Time (in minutes) option.
o Ask for a new name after creating non graphical objects:
whenever a new object is added to the project window, a
dialog will pop up to rename the object.
o Files in Open History. System preference to define the
number of documents previously open to be shown in the
26
Draft
28
Draft
CAD Preferences
29
5.3 Templates
There are two ways of creating a new project:
Using the New command in the File menu, a new project without
any object defined will be created
Selecting a template from the list of templates in the 'Welcome
window (see image below).
Draft
30
Draft
31
Draft
32
5.4.1.2
Projection
The UTM Zone as well as whether the network is in the northern or
southern hemisphere can be specified there.
5.4.1.3
Project Outputs database
The available options are:
Automatic Databases (Access and SQLite)
Custom
The supported Databases are:
Windows 32 bits: Access, SQLite, ODBC and Postgres 8.
Windows 64 bits: SQLite and ODBC.
Linux: SQLite, MySQL, ODBC and Postgres 8.
Mac OS X: SQLite, MySQL, ODBC and Postgres 8.
Draft
Automatic Databases
33
Custom
Draft
34
35
-target YYYY
-testplugins
-server
-proxy XXXX
-script XXXX
-locale XXXX
-translation XXXX
-stop_at H:MM:SS
-home XXXX
-instance XXXX
-dongleid XXXX
-version
-v
-log
-force_th XXXX
Examples:
Draft
36
6 Network Elements
For the purpose of defining the network network geometry,
movements and so onAimsun uses certain basic objects that
provide the foundations upon which more elaborate concepts
control plans, O/D matrices, traffic states and so onare built.
These basic objects are texts, polygons, lines, sections, nodes,
centroids, controllers, detectors, ramp meters, Variable Message
Signs (VMS), public transport stops, public transport lines, vehicle
types, cameras and 3D images.
6.1 Sections
A section is a group of contiguous lanes where vehicles move in the
same direction. The partition of the traffic network into sections is
usually governed by the physical boundaries of the area and the
existence of turn movements. In an urban network, a section
corresponds closely to the road from one intersection to the next.
In a freeway area, a section can be the part of the road between
two ramps.
Entrance, exit, and right and left sides of a section are defined
according to the vehicles movement, as shown in Figure 13.
le ft
e n tra n c e
e xit
rig h t
section
section
Draft
37
6.2 Detectors
Many types of detectors exist: pressure, magnetic, loop, video, and
others, but all of them are characterized by their measuring
capabilities. Measuring capabilities include vehicle count, presence,
speed, occupancy, density, headway and, as a special one, whether
the detected vehicle is an equipped one. The detector will always
distinguish between different vehicle types.
A detector can be positioned at any point in a section, and its width
can extend to more than one lane. A section can have no, one, or
multiple detectors. The only restriction is that a detector cannot be
shared by more than one section.
Figure 15 shows examples of detector positioning in a section. In
Section A, detector b is used to detect right-turn vehicles. Multiple
detectors as in (B) are possible using video detection.
Draft
38
length
distance
distance
length
ma in lin e d e te c to r
ra mp
me te rin g
me rg e d e te c to r
c h e c k -o u t d e te c to r
q u e u e d e te c to r
c h e c k -in d e te c to r
6.3 Meterings
Ramp meter takes place on entrance ramps to a freeway in order to
limit the flow of vehicles entering, thus ensuring a non-congested
flow on the freeway itself. Figure 18 shows an example in a singlelane section.
Draft
39
ramp meter
Figure 18 Ramp meter in a lane
policies
for
meterings:
Draft
40
join
2
ramp
metering
g
4
3
Vehicle classdependent turning %s
Figure 19 Modelling a selective meter
6.5 Nodes
A node is a point or an area in the network where vehicles change
their direction and/or disperse. Hence, a node has one or more
origin sections and one or more destination sections.
Nodes can be distinguished in two types: join nodes (joins) and
junction nodes. The main difference of these is that, while in a
junction there is a space between the origin and destination
sections, in the join node there is no space between these two
sections. In a join node, the number of origin lanes equals the
number of destination lanes. Junction nodes are often found on
arterials and streets; join nodes, on roads and highways.
Aimsun automatically identifies join and junction nodes and applies
the more suitable simulation model when running Aimsun Micro.
Draft
41
B
join
join
D
Figure 21 Examples of joins
6.5.2 Junctions
Turns occur within a junction. The user can specify give-ways and
stop signs between them that can solve conflicts between turns
arising in junctions without signals. In signalised junctions, a
sequence of stages is designed to avoid conflicts, but give-ways and
stops can also be specified. RTOR (right turn allowed on red) in
signalised intersections can also be defined.
Signal lights at a junction can be connected to a controller that
sends signal light changes according to a Pre-timed (fixed
controlled), Actuated or Adaptive strategy. Controllers are
explained in the Controllers section.
6.5.3 Turns
Turns are the allowed movements in a node between origin sections
and destination sections. Not all the lanes in both sections have to
be involved in a turn, as shown in Figure 22.
Draft
42
d e stin a tio n
se c tio n
o rig in la n e s
d e stin a tio n
se c tio n
d e stin a tio n
se c tio n
43
6.7 Controllers
Controllers are entities designed to group network equipment:
signal groups, VMS's, metering devices and detectors together.
Their purpose is to represent the equivalent real world devices
used by traffic control systems or traffic management software
such as SCATS, for example.
Draft
44
6.12 Cameras
This object both models real life cameras and/or sets the main
perspectives for the later 3D visualization of the simulation
animation. Cameras can be translated, rotated in the 3D
environment, they can also zoom the image and a route can be set
for a given camera so that it automatically guides us through the
network during the animation.
6.14 Centroids
A centroid is a source and/or a sink of vehicles. They are used to
define O/D matrices, as origin and destination points of the trips.
45
46
6.20 Subpaths
A subpath is a set of consecutive sections that can be used for
different purposes such as gathering statistics from the simulators
or be considered in a rerouting traffic management action as part
of the vehicle's path.
47
6.22 Subnetworks
A subnetwork is a subarea of the global network that can be
analysed individually.
Usually, subnetworks are used in combination with the Aimsun
Macroscopic modelling component as it generates O/D matrices for
a sub-area. Hereafter, the O/D matrices can be introduced into the
submodels traffic demand in order to perform the Meso or the
Microscopic simulator of Aimsun.
If the demand information is known, the O/D matrices or Traffic
states can be also input manually as it is normally done with the
whole network.
Draft
48
7 Network Editing
Aimsun includes a graphical editor (this means that all the graphical
properties of the elements can be edited using the mouse) for the
main traffic components: sections, nodes and centroids. It also adds
decorative elements as labels, lines, curves and polygons.
This chapter will explain the common operations for all the
graphical objects and how they are organized. The following
chapters will describe in detail the editing of each object type.
7.1.1 Bookmarks
A bookmark is a useful way to move fast to an important area of a
network (static bookmarks) or to cover different areas of the
network automatically, showing one after the other (dynamic
bookmarks). The user can create as many bookmarks as required.
Draft
49
created with the current view position and zoom (on 2D views) or
the camera placement and settings (on 3D Views).
Draft
50
7.1.1.2
Editing Dynamic Bookmarks
A dynamic bookmark consists of a set of positions along the network
that are followed one after the other. Add as many positions as
desired by using the Add button at the Dynamic Bookmark Settings
box, and set the time to change to the next position for each of
them. Positions will be added with a default value of 10 seconds.
For every dynamic bookmark, there are two options to move from
one position to the next one. When the Move Camera option is
checked, the view will move continuously in the specified number
of seconds from one position to the next, by linear interpolation of
the settings. If this option is not checked, then the view will move
from one position to the next after the specified number of
seconds.
Draft
51
Draft
52
Draft
53
Tool
Selection
Pan
Zoom
Rotation
Connection
54
selected objects and not just to the object that showed the context
menu.
A double click on an object will make its editor appear (and if the
object is already edited the editor will be sent to front).
Selected objects will be renamed pressing the Rename key (F2 key
by default).
When the user wants to show the object identifier for an object in
a 2D view, the Show Label command found in its context menu can
be used. For example, to show the identifiers of all the sections in
a 2D view, just select all the sections, open the context menu of
any section and select the Show Label option. The label will be the
sections identifier followed by the sections name, if any. When
the objects labels are shown, they can be hidden again by
selecting the Hide Label option.
Colour
7.6 Layers
Aimsun organizes objects in layers. The use of layers has a dual
role: to determine the drawing order (what is drawn over what) and
Draft
55
Draft
56
Draft
57
58
Draft
Name: when a name is written in the filter part on the top of the
layers window, only the layers whose name contains the one
specified, will be displayed among the layers in one of the following
groups:
All: All the layers.
Non empty: The layers that contain any object.
Empty: The layers without objects.
Internal: the internal layers.
External: the external layers:
Active: the active layer.
Visible: the visible layers.
59
A click on an object will select it and any other selected object will
be deselected. If the user clicks on no object, the previously
selected objects will be deselected.
If the Shift button is pressed during a selection, the process will be
modified as:
If the object is not selected, it will be selected and the rest of
the selected objects will remain selected.
If the object was selected it will be unselected, keeping the rest
of the selected objects selected.
Another possibility is to select all the objects inside an area. Press
on the drawing area and, without releasing the button, move the
mouse to define a selection rectangle. Release the mouses button
to select all the objects placed totally inside this rectangle.
When more than one object lie at the same point, if the Alt key is
pressed while the left mouse button is clicked, then a list with all
the objects laying at that point will appear to be able to select the
desired one. For example, in Figure 32 two sections and a polygon
are located where the mouse has been clicked.
Draft
60
Figure 32 Object selection when several ones lie at the same point
7.7.3 Translation
The selection tool can also be used to translate all the selected
objects to a new position. Press on a selected object and, without
releasing the button, move the mouse to translate the current
selection to a new position. Release the button to end the
translation operation.
This operation, as all the direct manipulation operations, is
undoable.
Draft
61
Draft
62
Press and translate the rotation centre (that appears as a big cross)
to a new placement using the mouse. By default, the rotation
centre is the centre of the current selection.
The rotation tool can be used as a selection tool to select or
unselect elements using the click and Shift + click operations.
The Pan tool is also available using the middle mouse button when
another tool is being used. This allows the user to move around
even when another tool is selected and in use (for example, during
the section creation, it is possible to move the view).
The Zoom tool is used to change the 2D view scale. This tool is also
available using the wheel mouse.
The view scale determines not only how close the objects will
appear but also which objects are visible (using the layer visibility
setting).
When two 2D views are available, using the Zoom to select an area
while pressing the Alt key in one view will make the other view
show this area.
Another useful feature to move around the network methodically is
available when the Pan or the Zoom tools are selected. When any
of these tools is active, the arrow keys and the extended keyboard
number keys with the Num Lock deactivated will produce the
corresponding views:
Draft
When any of the four arrow keys is pressed while pressing the
Control key, a whole view and not only half of it is moved.
Draft
64
8 Network Backgrounds
The user can place images and vectorial drawings in Aimsun as
blueprints to draw the network on them. At this moment the
accepted formats are:
Vector formats: CAD files in DXF, DWG and DGN formats, and GIS
files in Shapefile format.
Raster Images, manual geolocation: JPEG, GIF, PNG, BMP.
Raster Images, automatic geolocation: JPEG 2000, ECW, MrSID.
Normally any file to be used as a background will be in one of these
formats or can be converted easily to one of them.
8.1 Importing
The import process starts using the Import command from the File
menu. Select the file type to import and, from a file browser
dialog, the file to be imported. Depending on the file type, a
second dialog will ask for additional information.
The imported file will not be stored in the Aimsun database, only
the location of the file will be saved, minimizing the database size.
It is possible then that the user changes the location of the Aimsun
network to another computer or any of these external files to a
new folder. In the case that it is not possible to find the imported
file in the original location, when the user opens again the
network, the application will try to locate automatically the
missing files looking in the same folder where the Aimsun network
Draft
65
is. If the file cannot be found, then the application will ask for its
new location. However, a network can be opened again even if
none of its external files can be located.
To be able to import any file an existing network must be open or a
new one must be created first.
8.1.1.1
CAD Files
CAD files, such as DWG, DXF or DGN files, are imported in a layer
with the same name as the imported file and each CAD layer is
imported as a sublayer. The CAD objects cannot be translated or
scaled but the user can hide any individual layer and change how
Aimsun draws each layer content.
Individual objects in a CAD file can neither be edited nor selected.
When importing a CAD file, the dialog in Figure 38 will be shown.
The geo units in which the CAD file is codified, either meters, feet
or user defined must be specified, and also the type of text
encoding of the CAD file. User defined units let the user supply a
multiplication factor used to scale the coordinates. If System
encoding is chosen, the settings of the Operating System will be
used.
8.1.1.2
GIS Files
They will be placed, as CAD files, in their own layer. Objects
imported from a GIS file, unlike the CAD ones, can be selected and,
by doing a double click, an information window will be opened
where all the non-graphical information will be shown.
For more information about importing GIS files, see the GIS
Importer/Exporter.
Draft
66
8.1.1.3
Raster Files
Each image will be placed in a layer as a graphical object, as a
sublayer of the Images layer. An image can be selected, translated
and scaled.
The automatic creation and distribution on layers of the network
backgrounds has the aim of simplifying the task of choosing which
background layers are shown and which are not.
8.2 Retrieving
When a network is loaded, the user can manually select which
external files will be read automatically and which ones will be
read later on. Reading all the external files automatically saves the
user the operation of selecting what to load but increases the load
time and the memory usage. It is therefore advisable to select for
automatic load only those files that will be useful for the current
task.
67
8.3.1 Placement
Select the image (CAD files cannot be moved) by clicking on it and
use the mouse to drag it to its final position. When selected, the
image will not be shown; only its position will be pointed out. To
make the image visible while selected, double click on it to show
its editor and check the option Show contents while selected.
8.3.2 Scale
An image scale can be modified using its editor. From there, the
user can select two different scale methods: pixel factor or image
scale. Ask your image provider about the method to be used and
values.
Draft
68
The DPIs method sets the image scale (as for example 1:5000) and
its resolution in DPIs (Dots per Inch).
The pixel factor is used to specify the size of each pixel in either
meters or feet. For example, an image of 1000 horizontal pixels
with a pixel size of 1 meter will have a total width of 1000 metres;
if the pixel size is 0.5 then the width will be 500 metres.
Draft
69
Draft
70
With all points set, clicking Scale and Translate (Figure 46)
positions and scales the image according to the chosen points
(Figure 47).
Draft
71
Draft
72
A curve line can be created using the Bezier Curve tool. To do it,
follow the same instructions as for the straight polyline creation.
Once a line is created, new vertexes can be added (using the New
Vertex Tool), new control points can be added to curve lines (using
the New Curve Vertex Tool) and it can also be broken into two
lines, using the Cut tool. See the Line Tools section for details.
Furthermore, whenever a vertex is dragged, the total line length
will be shown.
The context menu of both types of lines allows converting them to
sections. Use the Convert to section option to do it. First, select
the line, then right-click on it with the mouse to access its context
menu and finally select the Convert to section option. A new
section, with the selected line as centerline, will be created.
Draft
73
To add a new vertex, first select the polyline, and then click on the
New Vertex Tool and finally left-click with the mouse on the view
where the polyline was selected and without releasing the mouse
button draw a line that intersects with the point in the line where
the vertex is to be added. Release the mouse button and a new
vertex will appear in the line.
Selecting a vertex and dragging it will change the shape of the line
in both segments to which the vertex belongs.
To do it, first select the curve, and then click on the New Curve
Vertex Tool and finally left-click with the mouse on the view where
the curve was selected and without releasing the mouse button
draw a line that intersects with the point in the curve where the
Draft
74
To do it, first select the line to be converted into two, and then
click on the Cut Tool and finally left-click with the mouse on the
view where the line was selected and without releasing the mouse
button draw a line that intersects with the selected line where the
cut is to be performed. Release the mouse button. Two new
vertexes will be created, one for each of the new lines. Only one of
the resulting lines will remain selected.
Draft
75
Draft
76
All the properties that can be defined in the polyline editor can
also be defined in the extruded polyline editor. Furthermore, the
Brush Colour can be also defined in the Main folder of the editor.
In the 3D folder, shown in the next figure, the parameters that can
be defined are the height of the extruded polyline and textures
used in 3D views.
Draft
77
78
Once a polygon has been created, new vertexes can be added using
the New Vertex Tool. See the New Straight Vertex Tool section for
details.
The context menu of a polygon allows it to be extruded to convert
it into a 3D block, a polyhedron with the initial polygon as base.
Use the Extrude polygon option in its context menu to do it.
Draft
79
There are several folders in this editor. In the Main folder, shown in
the previous figure, the following parameters can be defined:
Altitude: distance to the Z = 0 plane at which the polygon
will be located.
Line Colour and Line Style for 2D views.
Brush Colour and Brush Style for 2D views.
Line width, in either pixels, meters or feet.
In the 3D folder, shown in the next figure, the parameters that can
be defined are the top and bottom textures used in 3D views.
80
in the 3D Info window (see the section 3D Info Window for more
details) and dragging it over the polygon either in a 2D or 3D view.
When dragging a texture without any other key pressed, the
texture will be applied to the top face. If it is dragged with the Ctrl
key pressed then it will be applied to the bottom face.
In the OSM tab we have the Open Street Map information if we are
working from a file opened or created with the Open Street Map
importer. It is simply informative and we can assign the object a
group and a type name.
Note that this tab does not appear if we are not using a file created
with OSM data.
Draft
81
As in the Polygon editor, there are two folders in this editor. All the
properties that can be defined in the polygon editor can be defined
in the extruded polygon editor. Furthermore, in this editor new
properties can be defined in the 3D folder:
The block height, that is, the height of the lateral faces or
the distance between the bottom and top faces.
Whether to set different textures for each lateral face or
one for all lateral faces.
All the textures for the lateral faces, which can be defined
in the same way as the bottom and top ones (see the Polygon
Editor section for details). When the user has set to have
different textures in the lateral faces, a line for each face
appears and when selecting one of these lines in the editor,
the two vertexes that define the face will be drawn in red in
the 2D views.
Draft
82
As explained for the bottom and top faces in the Polygon Editor
section, the textures in the lateral faces can also be defined
without using the editor. That is, selecting the desired texture in
the 3D Info window (see the section 3D Info Window for more
details) and dragging it over the desired face either in a 2D or 3D
view. When dragging it into a 2D view, the point to release the
mouse is any point in the lines faces. When dragging a texture
without any other key pressed, the texture will be applied to all
the lateral faces. If it is dragged with the Ctrl key pressed then it
will only be applied to the face where the mouse button has been
released.
Draft
83
10 Section Editing
The section geometry is specified by a collection of points that
define straight segments and curves. Each point can be edited and
removed individually.
When a section is selected, the center line and the update points
appear. Use the center line update points to modify the length and
shape of the section. Use the lateral update points to create or
remove side lanes. In a section without any side lane, by moving a
lateral update point from the section center line outwards, a new
lane is created as a side lane. On the other hand, moving it inwards
converts a full lane into a side lane. Use the angle section points to
change the entry and exit angles of the section.
Figure 71 shows a selected section showing its center line in red.
The points to modify the shape and length are circled in red. The
points to create side lanes are circled in green. Finally, the points
to modify the entrance or exit angle are circled in blue.
84
10.1.1
Section Segments
A section is formed by several segments. Each segment can be
either a straight segment (defined by the origin and the end points)
or a curve segment (defined by an origin point, an end point and
one or two control points).
Figure 71 shows a section with one segment, the middle point on
the red line is a control point for that segment.
Aimsun allows the user to apply some settings (for example the
speed or a reserved lane) to all the segments (that is, to all the
section) or to some segments of the section only.
Draft
85
The next image shows the options that will appear when the three
models (micro, meso and macro) are selected.
Draft
86
10.2.1
Draft
87
10.2.2
10.2.2.1
Capacity and Number of Lanes
The section capacity is presented and edited in this dialog. This
capacity, however, will be altered automatically if the user
changes the number of lanes of a section. In this case, the old
capacity will be used to calculate the lane capacity (before the
change) and the new capacity will be calculated using the lane
capacity and the new number of lanes. Side lanes will not be
considered to calculate the capacity per lane or the new section
capacity.
Examples:
The number of lanes of a section with two main lanes and a
capacity of 2000 veh/h is changed to three. The new capacity
will be 3000 veh/h ( 3 * 2000 / 2)
A section with a main lane and a side lane has a section capacity
of 1000 veh/h. The user removes the side lane. The capacity is
still 1000 veh/h.
The three user defined costs are available to contain any data the
user may need to store, for example they may be used as a cost
expressed in terms of time representing an economic value
associated with the section that can be used in any VDF function.
10.2.3
Altitude
The editor allows the modification of the altitude of both the initial
and end points. If the section has intermediate points and the
Calculate Intermediates option is checked, then the altitude of
these points will be calculated using linear interpolation.
Draft
88
The altitude of the initial, ending and intermediate points can also
be edited using direct manipulation. See Advanced Section Editing
below.
10.2.4
10.2.4.1
Aimsun Microscopic simulator data
Attributes only used by Aimsun Micro can also be set in this editor.
The meaning of these attributes and how they are used is
documented in detail in the Aimsun Dynamic Simulators Users
Manual.
These parameters are:
Distance On-Ramp: distance, in seconds, before getting to
the end of a side lane considered as an on-ramp lane. By
default it is set to the Whole Ramp but a smaller distance
can be set.
Yellow Box Speed: A vehicle approaching a Yellow Box
junction will avoid entering the junction area whenever the
preceding vehicle is moving at a speed below this parameter
(in km/h or miles/h depending on the units set in
Preferences).
Visibility distance: distance to the end of a section, where
the gap-acceptance model will start to be applied.
Reaction Time Variation: Parameter that changes locally the
reaction time of the vehicles
Lane changing cooperation: Percentage of upstream vehicle
cooperation to create a gap for the vehicle that tries to
change lanes. It is used in Aimsun 7 dynamic simulators
behavioural core models.
For compatibility with Aimsun 6.1 and previous versions
networks two other parameters can be set:
Distance to Zone 1: distance, in seconds, from the end of
zone 1 to the next turn point, which is equal to the end of
the current section.
Draft
89
10.2.4.2
Aimsun Mesoscopic simulator data
Aimsun Mesoscopic simulator data has the following parameters:
Jam Density: denotes the capacity of the link.
Reaction Time Factor: it is a local parameter for the global
vehicle reaction time.
Lane Selection Model:
o Penalise shared lanes: Sets the lane selection model
to penalise lanes with shared turns.
o Penalise slow lanes: Sets the lane selection model to
penalise slow lanes.
All parameters are explained in the Aimsun Dynamic Simulators
Users Manual.
10.2.5
10.2.6
Lanes
This tab folder allows the editing of lane types (used to reserve a
lane for a particular vehicle class), to set speed by lane and/or by
segment and to modify the lane width for all the lanes in the
section.
Draft
90
10.2.6.1
Lane Width
The lane width is a value shared by all the lanes in the section.
10.2.6.2
Reserved Lanes Visibility Distance:
The visibility distance of the reserved lanes that will be used in the
target lanes model of the dynamic simulators. Refer to the Aimsun
Dynamic Simulators Users Manual for details.
10.2.6.3
Lane Types
Use the combo box to select the lane type of the lanes, if they are
reserved. See Lane Types and Reserved Lanes for more information.
10.2.6.4
Unreserving the First and/or Last Segment
It is possible to unreserve the first and/or the last segment of a
section lane, by unchecking the corresponding options (Reserve the
First Lane Segment and Reserve the Last Lane Segment).
Unreserving the first lane segment makes sense where the reserved
lane is introduced some distance into the section. Unreserving the
last lane segment makes sense where any traffic is allowed to enter
Draft
91
Note that it is also possible to split the section in two (using the
Cut Tool) but it is better to use the reservation options to keep the
model as simple as possible (and as close to the physical model as
possible).
10.2.6.5
Detailed Speed
The speed can be set by lane and/or segment. If no speed is
specified, the sections maximum speed will be used by default and
the field will appear empty.
Use the Add button to create a new detailed speed. Select the
segment and the lane where the speed will be used and edit the
new speed limit. It is possible to select all the segments of a
particular lane (put Any in the segment column) or all the lanes of
a particular segment (put Any in the lane column). If both the
segment and the lane are set to Any, the speed defined will be
ignored, as it is equivalent to defining the section speed.
To remove detailed speed information, select it and press the
Remove button.
Draft
92
10.2.6.6
Shoulder
Defines the width of a decorative shoulder that can be drawn at
each side of the section.
On top of the dotted line that separates two lanes. In this case
vehicles will not be allowed to change lanes from left to right
neither from right to left.
Draft
93
On the left of the dotted line that separates two lanes in the sense
of vehicle circulation. In this case vehicles will not be allowed to
change lanes from left to right but they will be allowed to change
lanes from right to left.
On the right of the dotted line that separates two lanes in the
sense of vehicle circulation. In this case vehicles will not be
allowed to change lanes from right to left right but they will be
allowed to change lanes from left to right.
Draft
94
10.4.1
Lane Reservation
The process to reserve a lane for a particular vehicle type is:
Create a Vehicle Class (using New Vehicle Class command from
the Project menu, or the context menu of the Vehicles folder in
the Project window) inside the Demand Data main folder.
For each vehicle type to be associated to this class, open the
vehicle type (double click on it), go to the Classes page and
mark the class.
Create a Lane Type (using New Lane Type command from the
Project menu or the Lane Types folders context menu located
inside the Infrastructure main folder).
Open the newly created Lane Type and assign to the class the
type of reserved use (select the class and change the type value
using the combo box).
Select the section, activate the context menu with the mouse
over the lane that will be changed, and choose the created Lane
Type from the list.
To change the type of a lane or to remove any lane type for a lane,
use the context menu.
Note that more than one section can be edited at the same time.
Just open the context menu with more than one section selected to
change the lane type for all the lanes selected.
Aimsun supports two types of reserved lanes: optional and
compulsory. Compulsory means that vehicles allowed in the
reserved lane are forced to use it and optional means that vehicles
allowed in the reserved lane may use it or not depending on the
traffic conditions (e.g., bus lanes and high-occupancy vehicle
lanes).
Draft
95
10.5.1
Draft
96
97
Draft
98
10.5.2
99
10.6.1
Altitude Editing
Section Cutting
Section Joining
10.6.2
Draft
100
As the cut will divide each section into two, a new section with the
same characteristics as the original one will be created for the
second part of the cutting while the original section will change its
geometry to fit in the first part.
When a section is cut into two, a node is created between both
sections. If the user cuts while pressing the Control key no node
will be created.
10.6.3
Joining Sections
The Join command, available from the Section context menu, can
be used for joining two sections into one or to create a node (and
the related turns) used by the selected sections.
10.6.3.1
Joining Two Sections
Select two close sections (the end of one section must be close to
the beginning of another) and select the Join command. Both
sections will be joined into one or, more precisely, the section from
which the command has been executed will be expanded to
accommodate the other one. The other section will be removed.
Only sections that have the same number of lanes at the join point
can be joined.
10.6.3.2
Joining More Than Two Sections
Select the sections that will participate in the join node and select
the Join command. A node will be created with the corresponding
turns.
The current implementation works only for N to 1 and 1 to N
combinations. It is useful for the creation of merging and diverging
nodes as seen in Figure 88. As in the previous case, the number of
lanes at the end of the origin sections must be the same as the
number of lanes at the start of the destination sections.
Draft
101
Draft
102
Draft
103
Using this editor the detector can be renamed. Note that this
option is also available opening the detectors context menu,
Rename command.
All the detectors measuring capabilities are specified here. Refer
to the Aimsun Dynamic Simulators Users Manual for details on the
measuring capabilities.
Draft
104
Using this editor the metering can be renamed. Note that this
option is also available opening the meterings context menu,
Rename command.
The five types of meterings that can be defined are:
Green-time metering. Usually implemented as a traffic light, this
metering is characterized by a cycle time and a green time
duration.
Draft
105
Finally, in the main folder the way the metering will be drawn in 3D
views can be selected among as drawing it as a traffic light, as a
barrier or as a bollard.
The time a barrier will take to move from the stop (horizontal)
position to the completely open (vertical) position is specified in the
3D Preferences. The same preference applies to bollards.
To edit the control information associated with a metering please
see Control Plan Editor for Meterings.
106
If all the VMSs labels (ID and name) should be shown in a 2D View,
select the Show Label option found in the VMSs context menu of
any VMS.
Once the VMS is located on a section it can be translated to any
position along the section selecting and dragging it using the
mouse. If it wants to be moved to a different section, the Ctrl key
must be pressed when selecting and dragging it using the mouse to
the destination section.
A VMS occupies all the section lanes always.
VMS can be renamed using the editor. Note that this option is also
available opening the VMSs context menu, Rename command.
Draft
107
There are two different types of VMS, namely Gantry signs and
Boom poles. This differentiation is included for the sake of
completeness; it has no effect on simulations with Aimsun Micro.
In the Messages window, a list of all the existing messages for the
VMS is shown. Messages are created when defining actions. See the
Aimsun Dynamic Simulators Users Manual (Actions section) for
details.
When simulating using the Aimsun Simulator, the VMS active
message at each simulation step will be shown in the Current
Message label.
If all the public transport stops labels (ID and name) should be
shown in a 2D View, select the Show Label option found in the
public transport stops context menu of any public transport stop.
Once the public transport stop is located on a section it can be
translated to any position along the section by selecting and
dragging it using the mouse. If it wants to be moved to a different
section, the Ctrl key must be pressed when selecting and dragging
it using the mouse to the destination section.
A public transport stop occupies a single section lane. To change
the lane it occupies, select it and drag it to the desired lane.
To change the length of a public transport stop, select it, click on
the front or back point and drag the point to adapt the public
transport stops length to the desired one.
Figure 98 Public Transport Stop selected: points circled in red change Stop length
Draft
108
Using this editor the public transport stop can be renamed. Note
that this option is also available opening the public transport stops
context menu, Rename command.
Public Transport stops are common within road networks and they
can influence the behaviour of traffic nearby. A critical element in
the efficiency of public transport operations is also the behaviour of
passengers boarding and alighting at stops. For that reason, Aimsun
Micro, Meso and Hybrid are able to model various types of PT stops
that can be found in road networks throughout the world.
Three types of PT stops are considered in Aimsun: Normal, Bus Bay
and Terminal.
11.8.1.1
Normal Stop
Normal public transport stops are those that occupy a certain lane
length. These are the simplest types of PT Stops. They are just
Draft
109
11.8.1.2
Bus Bay Stop
Bays are those public transport stops located at one side of the
section so that public transport vehicles stopped within the bay do
not cause an obstruction within the section. The Bus Bay stop
provides a space for a public transport vehicle to pull in at the stop
and thus allows following traffic to pass the public transport vehicle
while it stops. The capacity of the bus bay stop depends on the
length of the bay (the lane aside) and on the length of the public
transport vehicles that stop there. Figure 101 illustrates a bus bay
stop.
Terminal Stop
Finally, the Terminal Stops are used to model public transport
stations or bus parking. They have room for a limited number of
public transport vehicles, which is a capacity defined as an
attribute of the stop. A picture of what is considered as a Bus
Terminal is shown in Figure 102.
11.8.1.3
Draft
110
Bus Station
Figure 102 Terminal Stop
Draft
111
A list of all the Public Transport Lines using the public transport
stop is also shown in the editor. Refer to the Public Transport
section for information on defining public transport lines and more
detailed information on public transport stops.
The Visibility Distance parameter is used by the Aimsun
Microsimulator, and is described in the public transport modelling
section of the Aimsun Dynamic Simulators Users Manual.
To change the length, select it, click on the front or back point and
drag the point to adapt the length to the desired one.
Draft
112
Figure 106 Pedestrian Crossing with the points to change its length circled in red
Draft
113
12 Node Editing
A node is a point or an area in the network where vehicles change
their direction and/or disperse.
12.2.1
Main Folder
The editor allows the renaming of the node and defining its
external ID. It is also possible to mark the node as a yellow box (no
vehicles are allowed to stop on it).
Draft
114
12.2.2
Turns
The Node editor Main folder (see Figure 109) shows all the turns in
a node.
12.2.2.1
Turn Data Editing
Select a turn to list and/or edit its data. To remove a turn, select it
and press the Delete button. In the turn table, theThe signs that
can be associated to a turn are: None, Give Way sign, Stop or RTOR
(right turn on red allowed). The turn will be drawn using the
primary mark colour in the active 2D view.
Its information is distributed in four different folders:
Turn: (ID number): For each turn it lists the turn name, turn
external ID, length of the turn, the turn speed, whether this speed
is calculated automatically or not and whether it has a warning sign
(either a Stop, a Give Way or a RTOR (Right turn on red allowed) )
or not. If the node is a Yellow box it lists the Yellow Box Speed of
the turn and whether to use the Yellow Box Speed of the origin
section as the turn Yellow Box Speed or not.
The speed can be either manually inputtedmanual, that is, set by
the user, or automatic, then it is calculated by Aimsun. If it is set
to automatic, the speed will be evaluated whenever the origin
section, destination section or the turn geometry change.are
Draft
115
Draft
116
12.2.2.2
Turn Creation
Turns are created pressing the New button in the editor. Then press
over the origin section. The lane pressed will be used as the origin
lane. If more origin lanes should be added, the user must click on
them while pressing the Shift key. End the editing by pressing on
the destination section.
In the destination section it is also possible to specify which lanes
will be used in the turns if the preference value Distinguish
Destination Lanes in Turns is true (see section Preferences Editor).
If not, all the lanes will be selected by default. To specify the
destination lanes, use the Shift key as explained for the origin lanes
of the turn.
Draft
117
12.2.2.3
Curve Turns
As with sections, new points can be added using the New Vertex
tool (either for straight or curve segments). See the New Straight
Vertex Tool and New Curve Vertex Tool sections for more details.
An entry in the turn context menu allows also the creation of
vertex in the selected sections and turns. If more than one section
or turn is selected then the vertex of the target one (the one that
shows the menu) will be created on the selected location, in the
rest of sections or turns the vertex will be created in the middle.
12.2.2.4
Automatic Curve Turns
An easy way to curve all the turns in a node is to use the automatic
curve option. Select the desired node to curve its turns. Press the
right mouse button and select Curve Turns (Figure 114).
Draft
118
Draft
119
12.2.2.5
Automatic turn speed
In curved turns, the speed is calculated as the maximum speed a
vehicle can take without sliding off the road. The formula used is:
V=sqrt(g*Rmean*ft)
where g is the gravitational acceleration (g=127 for V in km/h and
Rmean in meters), Rmean the average radius found along the turn
and ft the friction coefficient (taken as 0.9). Rmean is obtained
from the equations of the first and second derivatives of the Bezier
Curve representing the turn. Rmean is computed as the average of
R(t)=||C(t)||^3/|C(t)C(t)| over the 20 points that define the
turn movement. To deal with the infinite values taken by the radius
in straight portions, we take its inverse to compute the mean and
invert it back to obtain the final result. Note that this method
favours small radius values. We apply a lower bound of 15 km/h to
the result.
To avoid unrealistic low speed values caused by rough editing, we
filter the result for small turn length (less than 5 meters) and small
angle between preceding and following sections (less than 30
degrees). In those cases a maximum speed variation with respect to
the mean speed of the turn Vmean, obtained by the mean of the
speed limit of the preceding and following section, is applied: for
short turns, a lower bound speed of Vmean - 5.0 * turn length is
applied whereas for small angle the lower bound speed is Vmean *
cosinus (3.*section angle).
Draft
120
12.2.3
Draft
121
2
7
6
3
12.2.4
122
To define a signal group, click on the New button and check the
turns belonging to the signal group. Note that a turn can belong to
one signal group only.
Additionally, when a microsimulation that includes Legion
pedestrians is going to be defined, it is possible to assign pedestrian
crossings to Signal Groups in order to define phases for pedestrians.
Refer to Aimsun Dynamic Simulators Users Manual section 13.3.1
for a detailed description.
To define different stop lines for different vehicle types select the
desired vehicle class and its distance from the end of the section.
In the following figure an example showing different stoplines for 2wheelers and the rest of vehicles has been defined.
12.2.5
Draft
123
Draft
124
Once the sections are created, select all the participant sections
and press on the roundabout creation tool (Figure 122 Roundabout
tool).
Then, left click without releasing the mouse button to define the
centre of the roundabout. Drag the mouse to obtain the desired
radius and then release the mouse button.
Draft
125
12.3.1
12.4 Supernodes
Supernodes are only considered in macroscopic procedures. They
are used to represent situations in which it is not possible to model
the cost of traversing the sections and turns by the sum of the
individual components. The cost of traversing these set of sections
and turnings is rather dependent on the movement (e.g.
roundabout, coordinated junctions).
A Supernode can be created selecting one or more nodes, right
clicking on one of the nodes and selecting Create Supernode in the
context menu.
Draft
126
Draft
127
Draft
128
13.1.1
grey
. A Centroids Configuration can be activated by right
clicking on it in the Project window and choosing the Activate
option. The previously active Centroids Configuration will
automatically be deactivated.
Draft
129
13.1.2
130
The shape of the Polygon can be edited by the user, or the menu
option Tools -> Centroid Tessellator can be used to calculate an
automatic partition of the network:
Draft
131
Draft
132
Press the Show All Connections to come back to the original view.
13.3.1
Connection Editing
Press the New button and then press on the section or node that
will be connected to the centroid.
A connection has the following attributes:
Type: To define if the vehicles will be generated to the
object or attracted from the object where this centroid is
connected to.
Percentage (Dynamic simulators): Whenever the Use Origin
Percentage or Use Destination Percentage options are ticked,
this parameter defines the percentage of vehicles to use this
connection.
Vehicle Class (Dynamic simulators): A centroid connection
can be used by specific vehicle types only. If that is the case,
a vehicle class with the allowed vehicle types must be
defined and selected here.
VDF (Macro): The Volume Delay Function that corresponds to
this connection.
Select the connection in the editor to change any of the above
parameters.
Draft
133
13.3.2
Trips
In the Trips folder, the summarised information about the number
of O/D pair trips defined in each matrix, where the edited centroid
is origin or destination of the O/D pair, is shown.
When an information line is clicked, the other centroid in the O/D
pair is marked in the primary colour in the active 2D view.
The total generation and attraction capacity of the centroid for
every matrix is also shown.
13.3.3
O/D Routes
In the O/D Routes folder, all the routes that start or end in the
edited centroid are shown.
Draft
134
Draft
135
Draft
136
Draft
137
15 Subnetwork Editing
A subnetwork is a subarea of the global network that can be
analysed individually.
Once the geometry for the area that needs to be analysed (without
taking into account the rest of the network) has been created, the
subnetwork can be defined. To do this, first create a polygon that
encloses the area. Refer to the Polygon Graphical Editing section
for details on creating a polygon.
Once the polygon has been created, it can be converted to a
Subnetwork right clicking on the polygon and selecting Convert To /
Subnetwork. This can be shown in Figure 137.
Draft
138
139
Draft
140
Draft
141
Figure 143 Right click on a project folder to access its context menu
From the Project Browser the user can edit (double click), rename
(context menu), duplicate (drag and drop) and delete (context
menu) this data.
The Project Browser organizes related data into folders. The
current version does not allow the free organization of the data
into user-defined folders. The only possible customization is to
change the name of these predefined folders.
Draft
142
There are several main folders where all the objects are organised.
These folders and the objects that they contain are:
Draft
143
Figure 144 User Classes, Vehicles, Transportation Modes and Trip Purposes folders
Draft
To edit any of these values, click on the desired cell and type the
new value. These three parameters are defined using a mean value,
deviation, minimum and maximum value. When generating a
vehicle belonging to this vehicle type, the value for this parameter
will follow a normal distribution based on the values edited. Please
refer to the Aimsun Dynamic Simulators manual for more
information about it.
The Maximum Capacity denotes the maximum number of passengers
that can travel inside a vehicle of this vehicle type. This value can
be set either as a multiplying factor of vehicle length or as a total
value. This parameter is used by the Legion for Aimsun module
when loading pedestrians into public transport vehicles and also in
the Public Transport Assignment. Please refer to the Aimsun
Dynamic Simulators manual or the Aimsun Travel Demand Modelling
Manual for more information about it.
To set the vehicle as articulated and to define the articulated
parts, the Articulated folder must be used. Check the Articulated
button to set the vehicle as articulated. Add new articulated parts
by clicking on the Add button. Remove any undesired articulated
part by selecting it on the list and clicking on the Delete button.
In this folder the doors of the vehicle are also specified. This
information will only be used in Public Transport vehicles when
simulating pedestrians with Legion. See Aimsun Dynamic Simulators
manual for details on Legion for Aimsun.
Draft
145
146
Draft
147
Each Vehicle Type can belong only to one Transportation Mode (see
Vehicle Type Editor section for more info) and consequently, a User
Class will be related with only on Transportation Mode, which is
listed in the editor (non-editable).
Draft
148
18 Traffic Demand
18.1 Editing Order
The order for editing traffic demand data is:
Create and edit the vehicle types to be used.
Create and edit the Origin/Destination matrices or the Traffic
States that will be used for each vehicle type and time interval.
Create a new Traffic Demand and assign the O/D matrices or the
Traffic States that will compose it.
Also before Aimsun Macro, Meso, Hybrid or Micro simulations are
used we have to:
Assign the traffic demand to a scenario.
If required, assign values to variables in the scenario or in the
experiments.
18.2.1
18.2.1.1
Main
In the Main folder, the user will specify the vehicle type to be used
and the time interval to which the data belongs. This information is
compulsory for later assignments/simulations. Optionally, the user
can specify the Trip Purpose and the Contents (what kind of data
the matrix contains: trips, travel times, distances, etc.). In order to
Draft
149
Also in the Main window, we can see a Summary of the matrix data,
with the number of Origins and Destinations, the Total value of the
matrix (adding all the cells up), the Minimum (different than zero)
and Maximum Value, and the number of Empty and Non Empty
cells.
Finally, the Store Location info is also available in this folder.
Regarding to the O/D matrix storage, it can be stored in the Aimsun
file, in an external text file or in the project outputs database
defined in the Project Properties.
Storing an O/D matrix in Aimsun means that the O/D matrix
information will be stored in the Aimsun file (the .ang file). For big
networks or even when working with networks where the matrix
information can be shared among different software packages,
storing the O/D matrix outside the Aimsun file can be useful.
When storing an O/D matrix in an external ASCII file, the file path,
the field separator to be used (tabulation or comma) and the
parameter used as ID for identifying the centroids in the ASCII file
must be defined (see Figure 148). For all the centroids, the stored
ID used can be the ID used in Aimsun, the External ID, or the Name.
Draft
150
The format of the ASCII file is the same one that is explained in the
Copy and Paste Matrix Options section e.g. the format can be of
Aimsun, Visum, Saturn or Emme. Only the centroids' IDs and the
trips information are stored in the ASCII file.
If the storing type chosen is the project outputs database, the
parameter used as the identifier must be defined (see Figure 149).
This ID, Name or external ID will be used to identify the centroids
and the O/D matrix itself.
The data source, the username and password (these last two
parameters may be omitted, depending as to whether the database
requires them or not) are defined in the menu Project / Properties,
in the main tab folder (see Figure 150).
Draft
151
Figure 150 Project Properties Editor Setting the Outputs Data Source
The information stored in the database will be the O/D matrix From
Time, its duration, all the trips, and the context information (that
is, weekday, season, weather and event).
When the storing type chosen is not the Aimsun file, that is, for
both external ASCII files and database, only data about the matrix
data location will be stored in the Aimsun file. When the Aimsun
file is opened again, it will automatically retrieve the matrix if the
external file is found or it will ask for the new location otherwise.
In any case, while the network is open, the matrix information can
be reread at any moment by using the Retrieve button.
The Store button is used to store the current matrix information in
the external file whenever it is pressed.
If the Store Matrix is checked then whenever the Aimsun model is
saved the O/D matrix information will also be stored in the external
file.
18.2.1.2
Cells
In the Cells tab folder, the number of trips (or any applicable data)
from each origin to each destination is listed/edited.
During the editing of a cell, if the centroid configuration to which
the matrix belongs is active, the origin (in rows) and the
destination (in columns) centroids will be marked in the active 2D
view. The primary mark colour will be used for the origin and the
secondary mark colour for the destination.
Draft
152
The combo box to the top right of the editor, entitled Headers,
allows the specification of which centroid attribute should be
shown as row/column headers for the matrix, choosing among:
ID, External ID, Name, or combinations of these. Columns
and rows are ordered automatically based on these headers.
Figure 151 O/D Matrix Editor Editing trips from one centroid to another
Draft
153
o Add: Sums the trip values but the duration of the original
matrix is not modified. The duration of the second matrix
is not taken into account
9
1
1
:
0
1
0 A: 100
:
:
0 Trips
0
0
0
0
B: 100
Trips
A + B: 200 Trips
Figure 153 Joining two O/D matrices as Sum
Draft
154
Draft
18.2.1.4
Histogram
In this folder, a histogram based on the cell values is available. The
user can choose the number of intervals, and edit the ranges. The
Units can be number of Vehicles, or PCUs or any of these two in
percentages. Also, the Empty Cells (with a zero value) can be
included or not in the plot.
By selecting a secondary matrix, the histogram will be calculated
by weighting each cell by the corresponding cell in the secondary
matrix (for example, a distance matrix weighted by the number of
trips).
Draft
156
18.2.1.5
Path Assignment
In this folder, the percentage of use of the paths previously defined
as well as the percentage for the ICSP (Initial Calculated Shortest
Path) between a pair of O/D centroids can be assigned, so that
these values are taken into account for Dynamic simulations.
To do so, select an origin and a destination centroid (or list all of
them by selecting All). Then, all the paths defined for this O/D pair
will be listed. If it does not have any user-defined path, then only
its corresponding ICSP will be shown. The percentage of use of each
path in the current matrix can be set here. The total sum of the
percentages for each O/D pair and cannot be higher than 100.
Figure 158 shows how to set 65% of cars travelling from centroid SE
to centroid NE to use a user-defined path. The remaining 35% of
cars will choose among that path or other alternative paths
according to the active route choice function.
Draft
157
In this folder, there is also a button to set the same percentage for
all the ICSP (Initial Calculated Shortest Paths). To do this, click on
the Set Common ICSP Percentage button. A new dialog will appear
in which the new ICSP percentage for all the O/D Pairs may be
defined.
Figure 159 Dialog to set the ICSP Percentage for all the O/D Pairs
18.2.1.6
Parameters
The editor has also a Parameters tab folder to define context data
to classify the O/D matrix. This context data is not used by the
simulator but can be relevant for other functionalities. The user
can store information about the day of the week, weather, season,
event and methodology used to calculate the O/D matrix.
Draft
158
18.2.1.7
Copy and Paste Matrix Options
The O/D matrix editor allows the interchange of data with other
software using the copy and paste command.
To copy an O/D matrix or a selection of the cells from Aimsun to
any other software, select the desired cells and either click the
Copy button or press CTRL+C. The selection will be copied together
with its ID context, that is, the ID heading, and the centroid ID for
each row and column. When no cell is selected, the copy operation
will copy the whole matrix.
There are two possibilities to paste information into an O/D matrix:
with or without context.
When pasting without context, the paste data will be copied
exactly starting at the currently selected cell in the O/D matrix.
Draft
159
18.2.1.8
Duplicate Matrix
The Duplicate button, in the bottom part of the matrix editor, can
be used to create a new matrix in the same centroid configuration
with the exact same data as the matrix that is being duplicated.
Draft
160
18.3.1
In the Input Flow folder, the vehicle type, the initial time and the
duration of the traffic state can be defined. In addition, the flows
entering each section can be specified. All the sections in the
network or only the ones that are entrance points to the network
Draft
161
can be shown. Note that the Aimsun Micro Simulator will not take
into account the input flows defined in the intermediate sections.
Finally, a percentage (value between 0 and 100) of flow that will be
kept in a section, that is, will enter the section but not exit it, can
also be defined. Note that the Aimsun Simulator will not take into
account this value.
When defining the input flows, there is the possibility to do it
taking into account the input turns, that is, distinguishing among
the previous sections, or not. To do this, select, in this editor, the
desired section where to select among its entrances and press the
Use Input Turns button. One line for each section entrance will
appear.
In the Turn Info folder, all the turn percentages from a section to
all the sections accessible from it can be defined. This folder can
show all the sections or only sections where the percentages are
relevant, that is, sections with more than one turn. Similar to the
previous folder, the turn percentage can take into account where
the flow into the current section came from. If the flows preceding
section must be taken into account, select the section, in the
editor, and press the Use Input Turns button, if not, select the
section and press again in the Dont Use Input Turns button.
The user can also define exit flows instead of turn percentages
when these values are available. If the exit flows are specified,
then the turn percentages can be automatically calculated using
Draft
162
the Recalculate Turn Percentage using Exit Flows button. Note that
the Aimsun Micro simulator will not take into account the turn
flows defined. It will use the turn percentages.
For example, when a traffic state is created using the flow
information of a static traffic assignment (done with the Aimsun
Macro) both the turn percentages and the turn flows are known.
The Highlight wrong definitions checkbox activates colouring on
the first column of the table. The cells will remain uncoloured
when the turn percentages are correctly defined; they will be
painted in red when the sum of the turn percentages coming from a
section is not equal to 100; and will be painted in orange when no
value is entered in the table for all the turns coming from a same
section. This orange highlighting does not necessarily mean the
definition is wrong, but it will be interpreted as if 100% of flow was
assigned to the first turn and 0% to the remaining turns.
Finally, in this editor, as in the O/D matrix editor, values can be
copied into or pasted from an external spreadsheet application
using the Copy/Paste buttons, and some parameters such as the
day of the week, weather, season, event and methodology used to
calculate the traffic state can be set.
163
18.4.1
In this editor, the user can select whether the traffic demand will
be composed of matrices or traffic states.
The time interval where this traffic demand will be applicable can
be defined modifying the Initial Time and Duration.
To add a demand item, that is, either an O/D matrix or a Traffic
State, the Add Demand Item button must be pressed. When
pressed, a list of all the O/D matrices grouped by Centroid
Configurations or all the Traffic states will be shown from which
the user can select the desired one. If the user chooses matrices,
by checking any of the Centroid Configurations all of its O/D
matrices are selected. User can also select single items or even all
of them by checking Select All.
Draft
164
Figure 167 Traffic Demand Editor Select objects of type O/D matrix
Once selected, the item will be added to the Gantt diagram. Click
on the item in the Gantt diagram to select it. Once selected, it can
be scaled and moved to fit in the desired interval.
Press the Add Demand Item and repeat all the steps as many times
as demand items must be added. As the traffic demand items are
defined for a single vehicle type, there will be a line in the Gantt
Diagram for every vehicle type selected in the added items.
To remove an item, just select it in the Gantt diagram and press
the Remove Demand Item button.
The editor also offers the possibility to modify the initial time and
duration of an item without moving or scaling it in the Gantt
diagram but by typing times in the Demand Item properties folder
once it is selected.
NOTE: when using O/D Matrices, the duration defined for each
demand item in the Traffic Demand will be the duration used to
enter all the trips defined in the O/D matrix. Therefore, if the user
has defined an O/D matrix of 6000 trips from A to B with duration
Draft
165
of 2 hours, and the demand item is defined for one hour, then
Aimsun Dynamic simulators will try to put 6000 vehicles in one
hour. The user can change the Factor to multiply any O/D matrix or
Traffic State by a factor to increase or decrease the flow or number
of trips without modifying the item itself.
There is also a global factor that affects all the traffic demand
items in a traffic demand.
These factors can be a percentage or a variable. If its a
percentage, the user can set 100 % to use all the trips, 50 % to use
half the trips, 120 % to generate 20 % more trips than the number
found in the O/D matrix or traffic state, and so on. If it is a
variable, the percentage value to be used (100 %, 120 %, 80 %,...)
will be set at the scenario or the experiment level. Look in the
Aimsun Dynamic Simulators Manual for more information about
defining variables.
When the traffic demand is based on O/D Matrices, a Traffic
Arrivals object can be also specified. This object is generated and
can be used in a dynamic simulation. Look in the Aimsun Dynamic
Simulators Manual for more information about defining and using
traffic arrivals.
The traffic demand includes also a Summary with the total number
of trips per O/D pair for each user class. Note that the summary
doesnt take into account factors defined as variables (as the final
value depends on the chosen scenario).
Figure 170 Traffic Demand summary showing trips for the car vehicle type
Draft
166
The Profile folder shows the demand profile, that is, a diagram
showing the total number of trips of each of the matrices in the
demand, for each user class.
Draft
167
19 Control Plans
A control plan specifies the control parameters applied to each
junction and metering in a network.
19.2.1
Draft
168
In this editor, the control plan can be renamed. Use also the
Rename option in the Control Plans context menu to rename it.
The Initial Time at which this control plan was designed to start at
can be defined here. It is the absolute time at which the nodes'
group of phases will be set at time 0. This parameter was known as
Offset in previous versions.
The Initial Time doesnt have to match the time at which the
Control Plan will be set to start in the Master Control Plan. The
Control Plan will be applied in any case taking into account its
Initial Time. So, for example, if the Initial Time is set to 00:00:00,
the cycle on one node is 90 seconds and the Master Control Plan
states that the Control Plan is applied from 08:00:00, then at
08:00:00 the Control Plan in that node will be at second 30 of the
cycle.
A list with all the nodes in the network and the control type
associated to each of them is shown. When the control information
has not been specified in a node, the control type is set to
Unspecified. Otherwise, the control can be uncontrolled, fixed,
external or actuated.
To specify the control information in a node, double-click on the
desired node in this editors node list or right-click on the node in
any 2D view and select Edit Control Plan and the desired control
plan. The Control Plan editor for the node will open.
A list with all the meterings in the network and the control type
associated to each of them is also shown. As it happens with nodes,
when the control information has not been specified in a metering,
the control type is set to Unspecified. Otherwise, the control can
be uncontrolled, fixed, or external.
To specify the control information in a metering double-click on the
desired metering in this editors metering list or right-click on the
metering itself in any 2D view and select Edit Control Plan and the
desired control plan.
19.2.2
Draft
169
You can also use the control plan editor, from the Project window,
to select the node to edit as previously discussed.
Draft
170
Red percentage
The yellow time defined for the node can be overwritten at the
level phase specifying a different yellow time for the desired
phase.
The Rest in Red parameter is only necessary for actuated control
and consequently it will only appear when the control type is
defined as Actuated. For further details on the Actuated and
Detectors folders please refer to Aimsun Dynamic Simulators Users
Manual.
Draft
171
Draft
172
Draft
173
Figure 176 Editing a Control Plan using Signal Start Time and Duration
19.2.2.2
Pre-emption folder
The pre-emption folder is an editing window for the different preemption strategies, which lines to attend, the nature of the service
and which detector will trigger the service.
For further details on the Pre-emption folder, please refer to the
Aimsun Dynamic Simulators Users Manual.
19.2.3
Draft
174
You can also use the control plan editor, from the Project window,
to select the metering to edit as previously discussed.
175
For green time meterings, the user must set the cycles total
time (that is, the time of green plus the time of red), the
yellow time, the offset of the first green time related to the
initial time of the control plan, the time of green and, if the
control type is external, a minimum and a maximum time of
green.
For green time by lane meterings, the user must set the
cycles total time (that is, the time of green plus the time of
red); the yellow time; the offset of the first green time
related to the initial time of the control plan: the time of
green: if the control type is external, a minimum and a
maximum time of green: and the lane offset in seconds, that
is the delay to activate the green of a lane once the lane on
its right has activated its green.
For flow meterings, the user must set the desired flow in
vehicles per hour that is to be achieved with the metering.
The platoon of vehicles specified for the metering will
indicate the maximum number of vehicles that will go
through the metering during each green.
For Flow-ALINEA meterings, the user must set an initial value
of flow to be used before the first calculation, the range
(minimum and maximum) of admissible values of flow, a
regulator parameter, the interval at which the flow is
recalculated and the target occupancy on the main road.
For delay meterings, the user must set the metering mean
delay for each vehicle and the standard deviation from the
specified mean.
Draft
176
The time interval where this master control plan will be applicable
can be defined editing the initial time and the duration of the
Master Control Plan.
To add a control plan the Add Control Plan Item button must be
pressed. When pressed, a list of all the Control Plans will be shown
from where the user can select the desired one.
Draft
177
Draft
178
20 Public Transport
The main difference between public transport vehicles and other
road traffic is that they follow fixed routes and that they also try to
adhere to a pre-defined timetable. Public Transport Modelling is
applied in Aimsun Micro, Meso, Hybrid or Macro, whenever a Public
Transport Plan is loaded in a Scenario. Refer to the Aimsun Dynamic
Simulators Manual and the Aimsun Macroscopic Modelling Manual
for details on defining Scenarios.
Also, from a macroscopic point of view, Static Public Transport
Assignments and Adjustments can be executed in Aimsun. In this
case, a Demand of Public Transport passengers use the Public
Transport infrastructure to get to their destination. Please refer to
the Aimsun Travel Demand Modelling Manual for more details.
20.1.1
20.1.2
Draft
179
20.1.3
20.1.4
Draft
180
20.2.1
Main folder
The Main folder in the Public Transport Line editor is shown in
Figure 184. It contains the Route the PT Line follows. Each section
can have a PT Stop associated in case a PT Stop has been created
on the section (refer to the Public Transport Stop Graphical Editing
section for details). Note that a section can have more than one PT
Stop defined but only one PT Stop per section can be associated to
each particular line.
Draft
181
20.2.2
Timetables folder
Timetable data is presented in the Timetables tab folder of the
Public Transport Line editor, as shown in Figure 185.
A Timetable consists of a set of Time Slices, each one indicating the
Public Transport Vehicle's Departures Schedule and the Dwell Times
(time the vehicle remains stopped) at each PT stop allocated to the
line.
Draft
182
183
184
Figure 186 Editor for the stop times in a public transport line
20.2.3
20.2.4
Draft
185
Figure 188 List of Public Transport Sections that form the PT Route
20.2.5
Draft
186
In this editor, a list of all the available Public Transport Lines along
with their timetables is shown, allowing the desired ones to be
added to the Public Transport Plan. To do this, select the desired
timetable in the list on the left, click the green single arrow button
and the line and timetable will appear in the list on the right, that
is, they will be added to the Plan. Click the green double arrow
button to add all of the lines in the list on the left to the Plan in
one go.
If a PT line and timetable has to be removed from the PT Plan,
select it in the list on the right and click the red single arrow
button. Click the red double arrow button to remove all of the lines
in the Plan at once.
Once all the PT lines and timetables have been added to the PT
Plan, the OK button must be clicked to accept the changes.
The list of available PT Lines and Timetables contains a filter to
display only the desired line by its IDs, names,
20.4.1
Graphical Timetable
The graphical timetable shows the space-time graphic for Public
Transport vehicles. For more information, check the Aimsun
Dynamic Simulators Users Manual.
Draft
187
21 Subpaths
A subpath is a set of consecutive sections that can have any length
and can be located anywhere on the model.
Subpaths have two main uses:
To gather statistics for a stream.
To be used in rerouting traffic management actions as part
of the new vehicle's route.
A network can contain as many subpaths as desired. All the existing
subpaths are listed in the Project Window in the Subpaths folder
inside the Infrastructure main folder.
To create a new subpath, select the New/ Infrastructure /
Subpath option either in the Project Menu or in the Project Window
Infrastructure folders context menu. Once done, the new will be
added inside the Subpaths folder in the Project Window inside the
Infrastructure main folder.
Draft
188
21.1.1
Editing a Subpath
To add sections to the subpath simply click on them in the 2D view.
Sections are added after the currently highlighted section in the
subpath list. If no section is selected the new section will be added
as the last one.
When the Autoconnect option is ticked, the editor automatically
connects two unconnected sections using the shortest path (in
distance) between the two (so it is not necessary to select each
section individually, instead it is possible to select a section several
sections ahead.
If new sections must be added in the middle a route just select in
the editor the preceding section and the start to click on the view
for each new section.
Pressing the [Ctrl] key while clicking on a section will add this
section before the one selected in the list. If no section is selected
the section will be added as the first one.
The Clear button will completely erase the route, while the
Delete button will just erase the selected section. It is possible to
change the route order or a selected section using the Up and Down
buttons.
At any time and once the sections have been selected, the Check
connectivity option will detect any unconnected pair of sections
and warn accordingly.
Draft
189
22 Functions
The function editor allows the user to define cost functions using
the Python language. Several types of functions can be defined:
Basic Cost Functions for the dynamic simulators
Cost Functions for the dynamic simulators using Vehicle Types
K-Initials Cost Functions for the dynamic simulators
K-Initials Cost Functions for the dynamic simulators using Vehicle
Types
Route Choice Functions for the dynamic simulators
Macro VDF (Volume Delay Functions)
Macro TPF (Turn Penalty Functions)
Macro JDF (Junction Delay Functions)
Distribution + Modal Split
Public Transport Waiting Time
Public Transport Delay
Public Transport Transfer Penalty
Public Transport Boarding Function
Stochastic Utility Function
Adjustment Weight Function
For an overview of the Python programming language and its syntax
the reader is referred to the reference manual of python which can
be found at: http://docs.python.org/reference/.
In the following descriptions, all measurements have been
expressed using the metric system. If the network has been built
using English system units, the user should read miles instead of
kilometres and feet instead of meters.
190
Draft
manager,
section,
turn,
191
where:
Draft
192
The context object contains the user class for which the Route
Choice Function is being evaluated.
The manager object contains the maximum section attractiveness,
maximum turn attractiveness, attractiveness weight and user
defined cost weight.
The path object contains variables for the path cost, travel time
and distance.
The section object contains among others the entrance section
attractiveness, speed, length and capacity.
The origin object contains variables for the entrances sections and
percentages.
The secondPath object contains variables for the path cost, travel
time and distance for a second path to evaluate the function when
needed.
Example:
def rcf(context, manager, path, section, origin, secondPath):
cost = path. getSPCurrentCost ( manager, context.userClass.getVehicle())
return cost
193
consulted, total volume, volume per vehicle type and volume per
user class. The Volumes are variable values that change during the
assignment process.
Function Body:
In the body of the VDF any other arbitrary function that has been
defined before the function declaration of the VDF can be used.
Example:
def distance(context, section, volume):
return section.length3D() / 1000.0
def tTime(context, section, volume):
t0 = 60.0 * distance(context,section,volume) / section.getSpeed()
c = section.getCapacity()
v = volume.getVolume()
t = t0 * ( 1 + 0.15 * (v/c)**4 )
return t
def vToll(context, section, volume):
t = 0.15 * distance(context,section,volume)
return t
def fToll(context, section, volume):
t = section. getUserDefinedCost()
return t
def vdf(context, section, volume):
c1 = 1.0
c2 = 0.1
purpose = context.userClass.getPurpose()
if purpose != None:
if purpose.getName() == work:
c2 = 0.15
c3 = 0.2
time = tTime(context,section,volume)
dist = distance(context,section,volume)
toll = vToll(context,section,volume)
toll = toll + fToll(context,section,volume)
cost = c1 * time + c2 * dist + c3 * toll
return cost
Connection modelling:
Signature: VDF (context, connection, volume) double
where: context, connection and volume are Python
objects
of
the
following
type:
GKFunctionCostContext, CMacroConnection and
GKFunctionVolume.
A complete overview of the methods that can be used for each
object can be found in the Aimsun Scripting Documents. In this
section the most common methods are mentioned.
The context and volume objects are the same as for the Volume
Delay Function used for sections. The connection object contains
Draft
194
Draft
195
c1 = 1.0
c2 = 0.1
purpose = context.userClass.getPurpose()
if purpose != None:
if purpose.getName() == "work":
c2 = 0.15
time = tTime(context,turn,volume)
dist = distance(context,turn,volume)
cost = c1 * time + c2 * dist
return cost
turn,
singleVolume,
ownVolume,
Draft
196
Draft
197
198
mode
is
a
Python
object
of
type
GKTransportationMode and cost is a double.
22.10
context
is
a
Python
object
of
type
GKFunctionCostContext and interval is a double.
Draft
199
return res
22.11
22.12
Draft
200
context
is
a
Python
GKFunctionCostContext.
object
of
type
22.13
22.14
Draft
201
observed is a double.
22.15
Function Editor
Using the editor, the function can be renamed; its type can be
selected among the available ones (cost, cost with vehicle type,
route choice, macro volume delay function, macro turn penalty or
junction delay function) and its definition (or function code) can be
written. In the current version, this definition is set by typing it in
the function code box. To ease the task a button that verifies if the
code is right (in terms of following the predefined function items)
or wrong is also available. When pressing the Verify button a
window informs the user if the function is well written or it
indicates where the first error is found.
Draft
202
Draft
203
23 Grouping Categories
A Grouping Category is an Aimsun object type and can keep as
many groupings as desired.
Having groupings allows to automatically obtain the mean or
average data of the objects included in the grouping. It is easy to
get the number of vehicles generated in a certain area or the mean
speed of all the sections entering a particular neighbourhood, for
example. Screen lines can also be calculated by means of groups.
To create a new Grouping Category object right click on the DATA
ANALYSIS folder in the Project window and select New/Grouping
Category.
23.1 Grouping
A Grouping is a set of objects of the same type (defined inside a
Grouping Category). It can also be linked to an area defined by a
polygon. There are two ways of creating a Grouping:
The first option is available from any Grouping Category object
New.../Grouping context menu.
The second option becomes available after building a Polygon
object. Right click on it and select Convert To/ Grouping.
After converting a Polygon into a Grouping, the following dialog
pops up to select the Grouping Category that you want to add the
new Grouping to.
Draft
204
23.1.1
Draft
205
23.1.2
Grouping Statistics
After simulating a network, the Refresh Statistics option, available
in the Grouping Category context menu, calculates for all groupings
the aggregation or mean (depending on the Time Series aggregation
type) of all available statistics in the Grouping objects. It is also
available at a Grouping level to calculate just the statistic for the
specific grouping.
Figure 201 Refresh Statistics for all the Groupings of a Grouping Category
Draft
206
To add new objects, the user has to click over, select the object
and the attribute to override, then press the Add (+) button
Once the object has been added, it is possible to change the
attribute as desired.
Draft
207
Note that the original values in the Aimsun network are always kept
and the changes defined in the overrides are only present in the
static or dynamic simulation model.
Draft
208
25 Connection Tool
The connection tool is used to create connections between two
objects. These connections can be between centroids and sections,
centroids and nodes, controllers and detectors ... But also, they
can be used between two sections to create a turn.
After that, click on the object that will be the origin of the
connection and without releasing the mouse button drag the mouse
to the destination object of the connection. Finally, release the
mouse on the destination object and a new connection will be
created.
In the case of centroids, when the Connection tool is selected if the
user clicks on the centroid and without releasing the mouse button
moves the mouse to the desired section or node and then releases
the mouse, a To connection will be created. If the mouse click
starts on a section or node and ends on the centroid then a From
connection will be created.
If the user wants to add more than one turn to the same node using
the connection tool and the sections involved in the second turn do
Draft
209
not belong to the node yet, just select the node before creating the
second turn. Remember that the tool can be used in continuous
mode (by double-clicking on it) if more than one turn is to be
added.
The behaviour of the connection tool when connecting two sections
is the following one:
If the Ctrl key is not pressed and the origin section or the
destination one have all its lanes already involved in a turn,
then the new turn will use the rightmost or leftmost lane of
the sections that have all their lanes already involved in
turns or the lanes that are still not assigned in the sections if
any. In Figure 207, an example where the origin section has
all its lanes already involved in a turn is shown.
210
26 Find
Aimsun includes a find box that allows objects to be found by any
of their attributes. For example:
Find all sections whose speed is lower than 50 km/h.
Find all centroids connected to one object.
Find all VMSs in the network displaying a message (during a
simulation).
211
It is also possible not to set a specific value in the Find field, using
the character *. A search of this symbol will produce a list of all
the objects specified in the Type field, whatever their attributes
are.
The result of a search will appear in the find dialog as a result list.
It will show the object type (section, node, centroids, O/D
matrix,), the ID, name and the value of the used attributed.
If the All attribute is used, the found value and the attribute in
which the value was found will be shown.
It the result of the search include graphical objects, they can be
selected by using the Select Results in view option.
26.1.1
Refining a Search
The Find in Results button activates a second search, based on a
different criterion, but this time only among the objects found on
the first search (to refine the search).
26.1.2
Result Selection
The Select Results selects on the view all the found graphical
objects (non-graphical objects will not be selected).
26.1.3
Draft
212
27 Table View
Aimsun provides a new way of accessing and modifying data of
Aimsun objects. It can be opened via the Window->Windows menu
or using the W quick shortcut.
Draft
213
27.3 Filtering
The Table View provides filtering options to restrict the objects
shown on the Data View. Filtering works over any or a particular
Attribute of the current Type and the user can choose six different
filtering methods over that attribute.
=: the value of the attribute of the objects the user is
looking for must be equal to the given value.
<>: the value of the attribute must be different.
Draft
214
>: the value of the attribute must be greater than the given
value.
<: the value of the attribute must be lower than the given
value.
~: the found value is matched by the given regular
expression.
[]: range, a second field appears. The value of the attribute
must be in the range.
27.5 Configurations
Configurations are predefined queries for the Table View. A
configuration stores:
The type
The visible columns
The show mode
Filtering options
The current configuration can be changed using the Configurations
option list. Configurations can be saved and deleted using the
Action Menu.
Draft
215
28 Inspector Window
The Inspector Window allows you to quickly check and modify
attributes of the selected objects, or to look at their time series, if
any. Go to Window / Windows / Inspector or use the I quick shortcut
and a window will pop up showing the attributes of the currently
selected objects as seen in the images below.
216
Draft
217
29 Dynamic Labels
Dynamic label functionality provides a method of displaying both
static and dynamic information about network elements as textual
labels.
To add a dynamic label to an element, right click on the element in
the 2D view to access its context menu, then select Dynamic Labels
/ Attribute Dynamic Label.
Check tick boxes to show attribute name, units, change the colour
or the font size if required, then select OK in the editor. The label
will appear over the element, but it can be dragged to any desired
position.
Draft
218
Draft
219
Draft
220
30 Printing
Aimsun offers tools for printing the active 2D view either in a
printer or to a PDF document for any paper size and orientation.
30.1.1
Print Preview
The Print Preview command, from the File menu, will open a dialog
allowing the user to prepare the document for printing and
reviewing the final result.
Both the Print and the Export PDF will use the settings set using the
Page Setup command. This command allows the user to select the
Draft
221
paper size, orientation, printer, colour print Finally, one can also
select the Drawing Mode to be printed.
30.1.2
Export to PDF
This command creates a new PDF document printing either the
whole network or the visible area as seem in a 2D view. It will ask
first for the name of the PDF file to be created and then for the
printing preferences as paper size and orientation.
30.2.1
Creation
To create a new Print Layout, right-click on the Data Analysis folder
in the Project Dock, and choose New/Print Layout; to edit it,
double-click on it in the Project Dock.
30.2.2
Wizard
When editing a new layout (or any empty layout), before displaying
the actual layout editor, you will be presented the Print Layout
Wizard dialog. This dialog will help you to quickly and easily fill a
Print Layout with a title, a subtitle, 1 or more maps or images, and
other common elements.
Draft
222
30.2.2.1
In the Page Settings section, you can define the page format to use
for the Print Layout: either a standard one, or a custom format.
Note about custom formats: when using a custom format, the Print
Layout will actually use a standard format, and adjust the margins
to match the custom parameters. It's most likely that your printer
won't allow you to print a custom format page, but there are no
such constraints with images: you can use custom formats to export
the Print Layout to an image of any dimension.
30.2.2.2
Clicking on Ok will create and fill the Print Layout with the chosen
elements; then you will only have to configure the specific
parameters of each element (map region and view mode, image
file, etc.) to obtain the desired Print Layout.
Draft
223
You can also click on Ignore to leave the Print Layout empty.
Figure 219 The Print Layout Wizard: setting up a Landscape A4 Print Layout
with the central spaced shared horizontally by 2 elements: a map and an
image.
30.2.3
Editor
The Print Layout editor will allow you to configure the specific
parameters of each element, add new elements or remove existing
ones, change the page format, and more importantly, print or
export the Print Layout to PDF or an image file.
At the center of the Print Layout editor, you can see a preview of
the Print Layout. Use the zoom in/out buttons in the top tool bar,
or your standard keyboard shortcuts for zooming in/out (Ctrl+Plus
and Ctrl+Minus on Windows), to zoom in/out the preview.
Draft
224
Figure 220 The Print Layout Editor showing the resulting Print Layout of the
wizard example, configured with a view mode and an image. The title
element is currently selected, for example to edit its text.
30.2.3.1
Draft
225
Draft
Legend
Scale: changes the size of the font and of the legend's
items.
Mode: defines the mode to be shown by the legend. If the
legend element is above a map element, you can leave it
to 'Automatic' and the legend will use the mode defined in
the map element.
Style: defines the style to be shown by the legend, or
shows all the mode's styles if set to 'All'. Note that by
default, the selected style is the first color style of the
mode, as it is the most likely to be the interesting one.
Scale
The scale element will display the scale used by the map
element below it. If the scale is not above a map element,
it will show the scale of the closest map element.
Show Scale Label: check it to show the scale value in
"1:xxxx" format.
Time Series graph
This element displays Time Series graphs in the same way
as the Time Series Viewer.
To add Time Series to the graph, select it: a widget similar
to the Time Series Viewer appears and allow you to add
Time Series to your graph and configure it.
To have more details on how to use the Time Series
Viewer, see: 35.2 Time Series for Multiple Objects.
Text
The text of the text element supports special variables,
that are automatically replaced by the corresponding
value:
- ${A_AUTHOR}: author of the document
- ${A_VERSION}: Aimsun version
- ${A_PATH}: document path (file name not included)
- ${A_FILE_NAME}: document file name
- ${A_VIEW_CONTEXT}: underneath view's context
- ${A_VIEW_CONTEXT_NO_DATE}: underneath view's
context without date
- ${A_DATE}: current date
- ${A_TIME}: current time
- ${A_DATE_ISO}: current date in ISO format
- ${A_TIME_ISO}: current time in ISO format
- ${A_TIMESERIES_GRAPH_TITLE}: underneath Time Series
graph's title
You can also change the font, font size, color and
alignment of the text.
Image
By clicking on the 'Browse' button, you can choose in your
file system the image to be shown.
226
30.2.3.2
Line
The line element draws vertical, horizontal and diagonal
lines. The color of the line is always black.
30.2.3.3
To change the page format, click on the 'Page Format' button in the
top tool bar.
If you want to use a custom format (to export an image of specific
dimensions), choose one of the standard page format, and adjust
the margins to match your needs.
30.2.3.4
Print
Export to PDF
Export to Image: creates a PNG image. The pixel size of the image
will be 4 times bigger than the defined size of the layout in points
(ex: 500 points width -> 2000 pixel width). Margins of the page are
not included in the image.
Draft
227
31 Colour Ramps
A colour ramp is a predefined group of colours used in Aimsun to
colour a group of objects when drawing in a 2D view depending on
any objects attribute. They are also used to colour the selected
object.
In Aimsun, several colour ramps are used. These colour ramps are:
MARK_COLORS: defined in the mark.xml file and used, for
example, to colour the selected objects
TIME_SERIES_WIDGET: defined in the lines.xml file and used
when drawing the time series graphics.
ASSIGNED_VOLUMES: defined in the assignedVolumes.xml file
and used in the Aimsun Macro component when showing the
static assignment results. See the Aimsun Macroscopic
Modelling manual for more details.
The colour ramps are defined in xml files that are located in the
<AIMSUN_HOME>/shared/color_ramps folder. There is an xml file
for each colour ramp.
The way to change the colours in a colour ramp is to edit directly
the xml file. The format of the colour ramps xml files is:
<color_ramp name="RAMP_NAME" type="RAMP_TYPE" coded="RAMP_CO/DED">
<color>COLOR_DATA</color>
<color>COLOR_DATA</color>
...
</color_ramp>
where:
RAMP_NAME: it is the name of the ramp.
RAMP_TYPE: it is the colour space to be used when
interpolating, either RGB or HSV.
RAMP_CO/DED: how colours are specified, either HEX or
DECIMAL
COLOR_DATA: the colour information. The format varies
according to RAMP_CO/DED:
o HEX: #RRGGBB, where:
RR is the hexadecimal red component from 00
to ff
GG is the hexadecimal green component from
00 to ff
BB is the hexadecimal blue component from 00
to ff
o DECIMAL: RRR GGG BBB (space separated), where:
RRR is the decimal red component from 0 to
255
GGG is the decimal green component from 0 to
255
Draft
228
Note that colours are specified in RGB. The RAMP_TYPE is used only
in the interpolation.
Example 1: a gray ramp using HEX
<color_ramp name="GRAY" type="RGB" coded="HEX">
<color>#000000</color>
<color>#ffffff</color>
</color_ramp>
Draft
229
Draft
Effect
Changes the colour
Changes the pen width
Changes the pen style
Changes the brush style
Draws extra information over the object
Hides the object (it will not be drawn)
Changes the opacity of the colours defined in
another style
Adds a label with the value of the specified
attribute
Draws a diagram (circles, pies, histograms...)
on each object
230
After selecting the object, the attribute, and how it will be drawn,
different values for the effect must be selected (for example
different colours) based on the values of the selected attribute.
An attribute can be either continuous or discrete. The user will
group continuous values using ranges. Discrete values cannot be
grouped. For each discrete value or each range of continuous
values, the final effect can be modified (see Figure 221).
The user can use the Calculate Ranges button to calculate
automatic ranges.
When a label is displayed, the number of decimal digits to use in
the label can also be specified.
When defining a style that displays a label or a spot, the units of
the specified size can be defined, that is, if the value specified is in
meters or pixels.
In the Conditions folder (see Figure 222), the zoom range this style
will be visible can be specified as well as if the style is going to be
applied to a subset of objects. This subset can be specified by
Draft
231
Draft
232
In the View Mode editor, the user can assign styles to the mode.
The dialog offers two lists with styles. The list above contains all
the styles that are not in the current mode. The list below contains
the styles that are already assigned to it. Use the arrows to add or
remove styles to/from the mode.
When drawing styles using spots, the user can select when these
spots are drawn: either after drawing all the objects in the layer (in
this case the spots will be over the objects) or before drawing the
objects (in this case the sport will be behind the objects). If the
style uses big spots is a good idea to draw them behind the objects
to clarify the plot.
A second option can be used to set the drawing orders of objects in
a layer (each layer will be draw in the order specify by its level)
based on the value of the attribute used in one of the styles in the
mode. The sorting will occur only when selecting the view mode.
Combined with the previous option can help to clarify a view mode
(for example when drawing isochrones).
It is also possible to set the view mode automatic activation:
Never: it will never be activated automatically.
Micro: it will be activated when a Microscopic simulation
finishes.
Meso: it will be activated when a Mesoscopic simulation
finishes.
Macro: it will be activated when a Macroscopic Traffic
assignment finishes.
Hybrid: it will be activated when a Hybrid simulation
finishes.
Dynamic: it will be activated when a dynamic simulation is
running.
Paths: it will be activated when checking the paths from any
dialog (i.e. Replication editor: Path Assignment tab folder).
32.3 Examples
The following example will create a View Mode that colours the
vehicles according to their origin centroids.
Draft
233
Draft
234
Edit the ranges if necessary. Select the new mode from the Drawing
Mode list in the current view.
Draft
235
Next example will create a View Mode where centroids are hidden.
Create a New Mode and call it Hide Centroids. Create a new Style
and add it to the new mode. Edit the new style.
In the style editor, shown in Figure 227, choose Type: Centroid, and
Attribute: ID. Set the type of the variable to Continuous, and the
Representation to Hide. Press the New button and set the range to
0.00 inf.
Draft
236
Figure 228 shows the network with the Drawing Mode set to Hide
Centroids.
Draft
237
32.4 Wizards
There are two wizards accessible via the Tools menu, Data Analysis
sub menu, to create new styles and new modes easily.
32.4.1
Draft
238
If the Next button is pressed, a list of all the existing modes will be
shown to assign the new style to the desired modes. To do it, tick
the desired modes.
32.4.2
Draft
239
Draft
240
Draft
241
242
243
After running it, the checker information will appear both in the
Log Window and in the dialog. The dialog offers the same
capabilities as the Find Dialog, that is, the possibility to select an
object and to use its context menu or open its editor, as well as
centring the view on the selected object and colouring it with the
primary mark colour.
In order to prevent huge listings of errors and warnings in big
networks, the convention to list a maximum of 100 messages per
type of error or mistake has been taken.
Draft
244
35 Time Series
Time series hold observations of a variable made over time. The
variable observations can be produced by a simulator (speed on a
road, vehicles number of stops); they can come from real world
data as detection measures or be calculated as an aggregation of
several values (level of service for nodes).
Aimsun offers a collection of tools to visualize, compare and print
this data. It is possible to show one or more time series of a single
object (a vehicle, a section) and also to show several (related)
time series of various objects.
245
In the Variables tab folder the user can select as many variables to
plot as desired, including one as the X (time by default), with the
following limitations:
Only up to two variables with different units can be shown,
either using the left and right scale (speed and capacity) or the
left and bottom (density vs. capacity)
The time series must share the same interval and a common
time period (although one time series can be large than
another).
Check Lock Variable to change all time series to the same the
variables. Check the Lock User Class to change all the vehicles
types at once. Check the Lock Originator to change all the
replications (or real data sets) to the same.
This tab folder allows the representation of the data in three
different ways:
Graph: plots the selected time series.
Area: plots the selected time series as a filled area. There are
two possibilities, to show the data as it is, or to sum the time
series to the next one before drawing it, accumulating values.
Table: shows the numeric values of the selected time series.
The Use Date must be activated when the time series date in the
time series to be compared must to be used. In this case, only time
series matching in time and date can be simultaneously plotted.
Draft
246
When this option is not checked, only the time in the time series
will need to match.
When the data is represented in Graph mode, the limits of the
graph can be adjusted (selecting the desired option in the Adjust
limits menu, inside the Action menu) either taking into account the
current object values only or all the object's values for the time
series. Taking into account all the objects' values is useful when
several objects must be compared, as the different graphs will be
in the same scale.
If the Deviation option is checked, then for time series that consist
of mean values, the deviation will be shown for each value: it will
be shown in brackets next to its value in the Table, as shown in
Figure 239, and in the Graph, the deviation is plotted.
Draft
are
two
ways
to
plot
the
time
series:
247
- Temporal graph: (this is the standard way) display the whole time
series as a curve using the time as absciss axis.
- Histogram: displays the value of the time series at just one
specific time as a histogram. The time is defined using the widget
in the top-right corner of the Time Series Viewer.
Apart from the Time defining widget, the other widget at the top of
the Time Series Viewer lets you define how the object should be
labeled: by Name, Id, External Id, ...
35.2.1
35.2.2
Draft
248
35.2.3
Available Actions
35.2.4
Available Options
Use Date: take the date information of the Time Series into
account (you can uncheck that option to compare two Time
Series that occur at the same time but at different days).
Show Value Labels: display the value of each point of the
Time Series as a text label on the graph.
Draw Scale Marks: display horizontal scale marks in the
background of the graph.
Smooth Curve: display the Time Series as smoothed curves
(instead of the default straight-lines).
Draft
249
Draft
250
36 External Data
Aimsun can read external data from text files and databases. Real
Data Sets are used to read external time series.
36.1.1
Draft
251
Add as many readers as are necessary. When using the Real Data
Simple File Reader, one reader for each file that needs to be
imported at once will be required.
36.1.2
36.1.3
Draft
252
36.1.3.1
ID Settings
Objects in Aimsun can be discriminated either by their identifier
(unique, assigned automatically to an object when it is created), by
their name or by their external identifier. The user can modify both
the name and the external identifier. We recommend editing the
external identifier in Aimsun and naming it as the real object (the
physical detector).
As neither external identifiers nor names have a uniqueness
restriction, the field Object Type can be used to avoid confusion
among several objects with the same name.
Usually the detector ID is in one of the columns but it can be coded
on the name of the file. In this case, the user must activate the Use
File Name As ID and must not include an ID when defining the
columns contents.
Draft
253
36.1.3.2
Date and Time Settings
Values on the detection files must contain the time where the data
was collected. This time can be either absolute or relative and
might contain the data about day, month and year. All the formats
allowed are listed in the Type: combo box. Time data will be used
by Aimsun to create the time series that will hold the values.
The initial date has a dual role: it sets the time when the data
collection was started and is used to calculate the interval between
measures.
Even when there is only one measure for each object, Aimsun
requires the start date to calculate the duration of the interval
during which the data was collected.
An aggregation interval can be specified to generate a Real Data
Set in Aimsun with aggregated data for an interval multiple of the
data read. For example, read data every 5 minutes and generate a
Real Data Set in Aimsun with data every 15 minutes.
36.1.3.3
Reading Settings
The data to be read in the detection files do not need to start at
the beginning of the file. A preference to skip several lines that
mights contain headers, descriptions, can be specified in the
Lines to Skip parameter.
36.1.3.4
Columns
The data in the file to be read must be specified in columns. The
separator between columns can be a space, a tabulation, a comma
or a semi-colon.
The type of contents for each input file column must be specified in
the Type column. The possibilities are: ID, Time, Vehicle, Count,
Speed, Flow, Reliability, Not Used, Count Min, Count Max, Count
Dev, Speed Min, Speed Max, Speed Dev, Flow Min, Flow Max and
Flow Dev. The Vehicle Type column can be used where specific
vehicle type data is assigned to specific columns in the same file.
The number of columns is adjusted by adding or removing rows in
this dialog.
For example, if data was for a single detector and the input file
format was:
Time
hh:mm:ss
Car Count
integer
Bus Count
integer
Draft
254
Time
hh:mm:ss
Vehicle
string
AuditInfo
string
Count
integer
Speed
float
36.1.3.5
Example: Reading turns data
Turn data can be read using the turn identifiers but also through
the IDs of the section from which the turn originates and the
section at which the turn ends. An example of text file containing
count data for turns using the second option would be as shown in
Figure 247 below:
255
36.1.4
Draft
256
37.1.1
Path Assignment
This is the editor used to get the path assignment information. The
displayed information differs a little bit depending on the
assignment approach. When the assignment approach is the
Dynamic Traffic Assignment, the information can be visualized
either during the simulation or at the end of the simulation. During
the simulation, the current path assignment is displayed while at
the end of the simulation the final state (those paths used during
the last route choice cycle) is displayed. In both cases, a table with
Draft
257
Draft
258
Once the filters have been selected there are some options that
can be defined:
Show Paths with Different Colours. This option shows every
selected path with a different colour, otherwise all paths use
the same colour.
Aggregate Paths. For Static assignments, when using a
Incremental, MSA or Frank&Wolfe assignment method Aimsun
can show full set of paths in the order they have been
obtained for each iteration or can be aggregated to show
unique paths with the final usage percentages.
Expand All. Show the detailed information for all O/D pairs.
For each path, the following information is displayed:
User Class.
Origin Centroid.
Destination Centroid.
Volume. Number of generated trips considering the traffic
demand.
Percentage. Proportion of vehicles that are using the path
during the current state.
The cost in time (seconds) from each of the sections in the
path to the destination centroid. This can be calculated as
either the sum of IniCost(a) or Cost(a, vt) of all the arcs
composing the path.
The distance (metres) from each of the sections in the path
to the destination centroid.
The travel time in seconds from each of the sections in the
path to the destination centroid. This is equal to the cost
only if the attractiveness weight and user defined cost
weight parameters are set to zero. This information will be
only available when the Provide Travel Time parameter has
been checked. Refer to the Dynamic Traffic Assignment
section for details.
For each Origin/Destination pair the total volume and the average
cost, distance and travel time (weighted using the volume) is
calculated.
For example in Figure 252 the information for the O/D pair from
South to East is depicted for two vehicle types: car and truck.
The total volume for cars is 95 and the total volume for trucks is 5.
The average cost and travel time for cars is 78.29 and 21.14
respectively.
Draft
259
260
At any time, the current percentages that are using the vehicles in
the assignment process can be displayed simultaneously. This
output permits knowledge of the evolution of the shortest paths.
Once a path has been selected, the path information can be
displayed by double clicking over the path.
Draft
261
37.1.2
Path Statistics
While the Path Assignment tool can be used to study the assignment
process and only those paths that were calculated by the route
choice process are displayed, in the Path Statistics tab all used
paths (user defined routes, user defined shortest path trees and
route choice paths) are displayed. For each path the following
information is displayed: (by checking the deviation toggle button
the deviation is shown)
Origin Centroid. This is the origin centroid identifier.
Destination Centroid. This is the destination centroid
identifier.
Type: RC (Calculated by the Route Choice process), UDR
(User Defined routes), UDSPT (User Defined Shortest Path
Tree).
Vehicles Assigned: Number of assigned vehicles to the path
during a specific time interval.
% of Vehicles Assigned. The percentage of assigned vehicles
that use the path for a selected origin/destination. Any
vehicle that enters into the networks is counted as assigned.
Vehicles Entered. Number of vehicles that were assigned to
this path at a specific time interval and were able to follow
the path completely during the simulation time. (They
finished the path.)
Travel Time (Entrance) Mean. The mean travel time path for
all vehicles that used the path and start the simulation
during a specific interval time.
Vehicles Exited. Number of vehicles that exited the path
during a specific time interval.
Draft
262
Travel Time (Exit) Mean. The mean travel time path for all
vehicles that used the path and exit the simulation during a
specific interval time.
Draft
263
The View Styles included in the Link Analysis View Mode are:
A style for the width of each section, proportional to its
volume.
A style for the colour: used sections are painted in red.
A style for the label of the assigned volumes on the sections.
Two styles to hide section objects and nodes.
37.1.3
Draft
264
Draft
265
38.1 Revisions
Network revisions arise from projects that start from an initial
situation and want to study changes or event
A revision is a network modification, which only stores those
elements that have been changed editing the network2.
38.1.1
New Revision
To create a revision of your current network (we will call it base
network) select Project/New Revision... and the following dialog
will bring up:
where,
Draft
266
Draft
267
The figure above shows that base network (leftmost image) has a
couple of reserved lanes. When these changes are applied in
revisions, those that affect to updated elements are discarded.
38.1.2
Consolidate Revision
A Revision needs the base network to load the whole network, as it
only contains the modifications. It is possible to transform a
revision into a full network by joining the base and the revision
information in the same file. This can be done from
Project/Consolidate Revision
38.2 Multi-model
Aimsun can now open two files at the same time. A separate view is
created when you open two networks, as shown below:
The Project window shows which project is active. You make the
project active simply by clicking on it.
Draft
268
39 Columns
Columns contain data related to a type of object, as for example
statistical data. Simulating a replication, reading a real data set,
and executing a static assignment are examples of processes that
generate columns. Examples of columns are: level of service of
nodes during a simulation, observed counts for detectors, assigned
volumes for sections, etc.
These columns are created automatically, but there is a tool to
manage them that allows the user to delete any undesired temporal
columns. This feature is available at menu Tools/Data
Analysis/Remove Columns.
Draft
269
40 Advanced Aimsun 3D
Presently the editing is undertaken in a 2D view, but it is updated
in real time in a 3D view.
The main 3D features have been already introduced where
applicable, but lets see some of them in more detail.
40.1.1
Vehicles folder
Any simulation can be presented in a 2D View and/or in a 3D View.
In 3D views, the simulation vehicles use a 3DS shape to be
visualized. Refer to the Vehicle Type Editor section for details on
associating 3DS shapes to vehicles.
Draft
270
The 3DS shapes that will be shown in this folder must be located in
the
<AIMSUN_HOME>/shapes/cars
or
in
the
<network
folder>/shapes/cars folder. The AIMSUN_HOME folder is the folder
where Aimsun is installed and the network folder is the folder
where the current .ang file is located.
There is a group of 3DS shapes available with the Aimsun
installation. However, the user can use its own 3DS files by just
copying them into the folders already explained.
When double-clicking on a vehicle shape in the vehicles folder, the
Vehicle's 3D Shape Editor will appear. There, all the shape
parameters can be defined. See the Vehicle's 3D Shape Editor
section for more details.
40.1.2
Shapes folder
The shapes used in 3D views as decoration objects will be shown
here. In order to use any 3DS file as shape they need to be located
either in the <AIMSUN_HOME>/shapes folder or in the <network
folder>/shapes folder.
Draft
271
As it happens with the 3DS used for vehicles, the user can use their
own 3DS files just copying them into the folders already explained.
When double-clicking on a shape in the Shapes folder, the 3D Shape
Editor will appear. There, all the shape parameters can be defined.
See the 3D Shape Editor section for more details.
40.1.3
Textures folder
The textures that can be used in 3D views will be shown here.
Image formats available to be used as textures are jpg, png, tga,
and gif files.
272
Draft
273
40.2.1
Colour definition
Any number of colour sets can be defined for a vehicle shape. The
only requirement is that the colour sets percentages must sum up
100. To define a new colour set, the Add button must be pressed.
This action will add a new line in the Set/Percentage column and a
list of random colours associated to each of the parts of the vehicle
shape in the columns <Material, Colour>. The colour associated to
each material (or part) has three components, Ambient, Diffuse
and Specular, which can be changed by clicking on the
corresponding coloured square. A colour editor will appear.
To remove any undesired colour set, select it and press the Remove
button.
To change the name of the colour set, double-click on the current
name and, when it becomes editable, type the new name.
To change the percentage assigned to the colour set, double-click
on the current percentage and, when it becomes editable, type the
new percentage.
While defining the colour sets for a vehicle shape, the Automatic
Percentages button can be checked to equally distribute all the
colour sets percentages.
Figure 270 displays three different colours for the same vehicle
shape.
Figure 270 Definition of different colours for the same vehicle shape
40.2.2
Draft
274
These rotations are expressed in degrees and they can be set using
the Shape rotations part of the dialog
40.2.3
40.2.4
Camera displacement
During the simulation, if the user clicks on a vehicle, a camera is
placed inside it to allow the user to follow its movement along the
network as the vehicles driver. The values defined here are used
to locate the camera inside the vehicle. The origin point (with
coordinates (0.0, 0.0, 0.0)) is the middle upper front point (see
Figure 272). The x coordinate is the distance the camera will move
from the origin point towards the back of the vehicle. The y
coordinate is the distance the camera will move towards the left of
the vehicle (the left supposing that the user is inside it). The z
coordinate is the distance the camera will move from the upper
part of the vehicle towards the bottom.
Draft
275
40.2.5
Shape animation
A 3DS shape can have more than one frame to represent
movement. If a shape has frames to animate, these can be used in
the simulation. The properties found in this group define the shape
animation (see Figure 273).
A 3DS shape may have one frame that represents the stop position,
another one that represents the starting movement and several
more that make the movement loop. Our convention is that the
stop frame, if any, is the first frame; the start frame, if any, is the
following frame; and finally the rest of frames define the
movement.
Then, the properties that can be defined are:
Use animation: when selected, all the frames will be used in
loops during the simulation and when not selected, only the
first one will be used.
: when this button is pressed, the animation can be seen
in the bottom right section of the Shapes Dialog. In this
case, its shape changes to
. When the
button is
pressed, the animation is stopped.
Draft
276
Draft
277
40.3.1
Non-articulated vehicles
In the case of a vehicle type called car, whose minimum and
maximum lengths are 3 and 6 meters, the user could, for example,
press the Add button six times to generate six different cases.
Each row in the list defines a 3DS shape that will be used in a subinterval of the vehicles minimum and maximum length in a certain
percentage. The intervals initial length (called from), the
intervals final length (called to) and the percentage parameters
can be changed by clicking on any of them and typing the new
value. The 3DS shape can be changed by selecting the desired one
in the list of available shapes that appears when clicking on the
current shape. The percentage must be a value between 0 and 100.
The following image shows that vehicles between 3 and 4 meters
will use the shapes s3 and sei with a probability of 50% each. Those
between 4 and 5 meters will use the shapes 4x4, bora and pickup
with probabilities 33%, 33%, 34% respectively, and all vehicles
between 5 and 6 meters will all use the shape espace_2909.
40.3.2
Articulated vehicles
An articulated vehicle is a vehicle that has a set of shapes
connected one after the other (see the example in Figure 276). To
define a vehicle as articulated, please refer to Vehicle Type Editor
section.
Draft
278
Draft
279
In this editor, the length, width and height defined in the 3DS file
are shown. The user can decide whether to use these dimensions
when adding a shape to the model or to define new ones. To do it,
the Use Original Dimensions option must be checked or unchecked.
When unchecked, a new length, width and height can be defined.
These last values will be the initial dimensions of the shape when
added to any model.
Note that, once added, any shape can be rescaled using its own
editor. Refer to the 3D Shape Object Editor section for more
details.
Draft
280
Once the 3D Shape has been dropped, the 3D Shape object will be
created. A 2D wireframe projection of the shape will appear in the
2D views and the realistic representation of the 3D Shape will
appear in the 3D Views (see Figure 280).
The 3D Shape object created will have the dimensions defined for
the 3D Shape used. Refer to the section for details.
To define new dimensions for this 3D Shape object different from
the initial ones the 3D Shape Object editor can be opened by
Draft
281
In this editor, the length, width and height of the 3D Shape object
can be defined. When clicking on the OK button, the 3D Shape
object will be rescaled in all views. A checkbox allows defining
whether rendering in 2D will be a box or the 2D wireframe
projection of the shape. There is also a slider that overrides the
original brightness of the 3D model by adjusting its materials
properties. This is useful when your imported models, due to
differences in lighting between different programs, appear darker
or brighter than expected.
Draft
282
Using this editor, a width and height for the texture can be
defined.
When a texture has a width and height defined and the Use
Texture's Width and Height option is checked, then the texture will
be scaled following these dimensions whenever applied into any
object and it will be automatically replicated. If the Use Texture's
Width and Height option is not checked then the texture will be
scaled following the number of horizontal and vertical repetitions
defined. Refer to the Polygon Editor and the Extruded Polygon
Editor sections for more details.
40.8 3D Images
3D images are used to add objects, such as trees and traffic lights,
to make the 3D views more realistic.
To add a 3D Image, select the 3D Image tool and click on a 2D view.
In a 2D View a 3D image is represented using a 2-point segment and
a circle on it that indicates the face where the texture will be
applied. This segment is going to become the support of the 3D
image.
Note that the 3D Image tool can be used in continuous mode (by
double-clicking on the icon) to add as many 3D images as desired
efficiently.
A 3D Image is like a wall but without depth. These images have two
main uses:
To add trees to the network. This option is very useful
because the tga files can have a transparent area and then
the trees are drawn efficiently (using a single polygon
Draft
283
40.8.1
3D Image Editor
When double-clicking on a 3D Image the 3D image Editor appears.
284
A 3D image has an altitude, that is, the Z at which the base of the
image will be located. This altitude can be modified by selecting
the image in a 2D View and with the Control key pressed dragging
the mouse up or down. The current altitude will be shown while
dragging.
The width of a 3D image can be changed by editing the two
segment points that represents it in 2D.
Finally, a texture can be applied without using the editor by
dragging the desired texture from the 3D Info Window to the 3D
image in either a 2D or a 3D view.
40.9 Cameras
A camera sets up a point from which it will be possible to view the
network and the 3D animation in the 3D viewer environment. The
number of cameras that the user can create is not limited.
To add a new camera, select the Camera tool and click on a 2D
view.
Draft
285
40.9.1
Camera Editor
The camera editor will show the camera parameters. The editor
pops up by double clicking on a camera in a 2D view and by pressing
the Parameters button located in a 3D view (that will open the 3D
views current camera editor).
Using the editor, the camera can be renamed and its location
parameters can be changed. To rename a camera its context menu
can also be used.
The parameters that define the camera location and where it is
pointing to are:
Position: Point at which the camera is located.
Centre: Any point in the cameras vision line.
VUp: Vector that defines the camera orientation in the plane
perpendicular to the Position-Centre line.
Draft
286
40.9.2
Camera commands
In the View menu, there are three commands that apply to
cameras:
Reset camera to place the camera in the active 3D view at its
initial position, undoing all the rotations, translations and zooms
that it may have undergone.
Set Camera parallel to floor to set the current camera in the
active 3D view parallel to the floors surface. This option is
particularly useful for fixing the cameras position from any
undesired rotations.
Set Camera perpendicular to floor to set the current camera in
the active 3D view perpendicular to the floors surface.
40.9.3
Default cameras
When a 3D view is opened for the first time, if no cameras exist
then four default cameras are created. These cameras are:
Main Camera: camera located at a default point from where
the whole network can be seen. Translations and rotations
are allowed.
Camera fixed X: fixed camera with the view line parallel to
the X-axis; only translations are allowed.
Camera fixed Y: fixed camera with the view line parallel to
the Y-axis; only translations are allowed.
Camera fixed Z: fixed camera with the view line parallel to
the Z-axis; only translations are allowed. This camera is
similar to the 2D views.
40.9.4
Camera Routes
A camera route is a group of camera positions that will be played
and animated in 3D views. Refer to the Editing Dynamic Bookmarks
for details on defining camera routes.
Draft
287
40.10
40.11
Navigation in 3D views
To navigate in 3D views, the mouse and the keyboard can be used.
If it is desired to use the mouse, then the appropriate icons in the
View Commands tool bar must be selected previously.
40.11.1
Selection tool
In 3D views, the selection tool is used to open the object editors
(by double-clicking on the desired object) and to create and locate
a camera inside a simulation vehicle during a simulation. This
camera will be updated with the vehicles position at every
simulation step. To do so, just single click on the desired vehicle.
Whenever a vehicle with a camera inside leaves the network, the
views that have the vehicles camera as the current one, change
Draft
288
back to the camera that was being used before the vehicle was
selected.
40.11.2
Pan tool
The pan tool is used in 3D views to move the 3D views active
camera to a new location.
To move it over the 2D plane perpendicular to the views
orientation, the left mouse button must pressed on any point of the
graphic area, and without releasing it, move the mouse to the
desired position (up, down, to the right or to the left).
If the desired movement is forward/backward, press the Ctrl key,
click and drag the mouse upwards/downwards to move the camera
forward/backwards.
Pressing the Shift key provides another function. Keeping the Shift
key pressed, the first mouse movement determines the direction of
movement. This means that, for instance, if the desired movement
is upwards and any other displacement due to lateral mouse drifts
is to be avoided, the way to proceed is to press the Shift key, click
on the graphic area and drag the mouse upwards. Maintaining the
Shift key pressed will also accelerate the displacement speed of the
camera. That is, if the Shift key is hold pressed and the movement
is maintained in the same direction:
40.11.3
Draft
289
40.11.4
Finally, when the shift key is pressed the arrow keys functions are:
These movements are valid for cameras that allow translations and
rotations. When a camera only allows translations, the movements
with the keyboard are only translations.
Draft
290
File Menu
41.1.2
Edit Menu
Draft
41.1.3
View Menu
Draft
292
41.1.4
Arrange Menu
41.1.5
Tools Menu
Draft
Project Menu
41.1.6
293
41.1.7
41.1.8
Help Menu
Draft
Window Menu
41.1.10
Bookmarks Menu
41.1.9
41.2.1
Polyline
Draft
41.2.2
Bezier Curve
41.2.3
Node
Draft
Section
41.2.5
Polygon
41.2.4
Edit Control Plan: All the defined control plans will be listed
to select the one to be edited.
Yellow Box: the node will be considered as a yellow box
node when checked and as a normal node otherwise.
296
41.2.6
Centroid
41.2.7
Controller
41.2.8
Curve Turns: curves all the turns in the node changing the
geometry of each one of them.
Show/Hide Turns Label: shows or hides in the 2D views the
labels identifier: name for all the turns belonging to the
node that opened the context menu.
Merge: merges the selected nodes into one.
Split: splits the selected node in several nodes, one being
each one of the polygons the original node had.
Advanced Editor: Opens the advanced node editor where to
see the connections and conflicts that will be used in the
microsimulation. Refer to the Aimsun Dynamic Simulators
Users Manual for more details.
Subnetwork
Draft
297
41.3.1
Road Type
41.3.2
Centroid Configuration
41.3.3
New:
o O/D matrix: creates a new matrix in the selected
centroid configuration.
o O/D route: creates a new route in the selected
centroid configuration.
Activate: sets the centroid configuration as the active one.
Dynamic Scenario
41.3.4
Dynamic Experiment
New
o
41.3.5
Replication
Draft
41.3.6
Average
41.3.7
New:
o Lane closure: creates a new lane closure action for
the selected policy.
o Turn closure: creates a new turn closure action for
the selected policy.
o Speed change: creates a new speed change action for
the selected policy.
o Force turn: creates a new force turn action for the
selected policy.
o Rerouting: creates a new rerouting action for the
selected policy.
o Section incident: creates a new section incident
action for the selected policy.
o Periodic Section incident: creates a new periodic
section incident action for the selected policy.
o Control plan change: creates a new control plan
change action for the selected policy.
o Meso Behavioural Parameters Change:
o Deactivate Reserved Lane:
Traffic Condition
Draft
Policy
41.3.10
Strategy
41.3.9
41.3.8
New:
o Lane closure: creates a new lane closure action for
the selected traffic condition.
299
41.3.11
Python Script
41.3.12
41.3.13
Grouping Category
Draft
300
Draft
F5 : Selection
F6 : Pan
F7 : Zoom
Control + R : Rotation
F9 : Connection
L : Layers Windows
P : Project Window
E : Legend Window
O : Log Window
T : Table View Window
I : Inspector
F2 : Rename.
F11 : Decrease current editor's opacity.
F12 : Increase current editor's opacity.
301
Draft
302
42 Aimsun scripting
42.1 Scripting
Python scripting is ideal for writing small utilities to automate some
operations that would be done manually with the GUI. Typical tasks
that might be performed with scripting are:
Modifying the model
Importing or exporting data
Performing calculations with the data of the model
Modifying the meta data model
A prerequisite to using the scripting capabilities of Aimsun is some
knowledge of how to program in Python (something not covered in
this manual), and with this background the users can introduce
themselves to classes and methods within Aimsun, and the
conventions of their use.
Theres a specific manual for scripting (Aimsun Scripting Manual)
which includes examples that will introduce the reader to the
effective use of scripting. It will also explain the conventions of
use: what is it allowed, what is it not allowed and what it is the
best way to do common tasks. The documentation of all the Aimsun
classes and methods available in scripting is provided as a
collection of browsable HTML documents (TSS-Transport Simulation
Systems\Aimsun 7.0\programming\scripting\docs\index.html).
42.1.1
Draft
303
Double click on the new python script to open its editor. The next
figure shows an example of Python Script.
42.1.2
Executing Scripts
A Python Script can be executed either from its editor or from its
context menu. Use the Execute button to do it inside the editor.
Also assign a script to an object type is possible. The script will
then appear in the context menu of any object of that type, under
the item Scripts. The selected object can be accessed within the
script using the variable target.
Use the Add Script to a Menu option to assign a script to an object
type.
Finally the script can be saved into an external file by checking the
External File checkbox and typing the path. To save the
modifications done while editing the script code into the external
file the Save button needs to be used.
Draft
304
For example, the script to print the ID of the selected object is:
print target.getId()
42.1.2.1
Automatic Initializations
The scripting environment in Aimsun is initialized executing the
script initial.py located in the folder TSS-Transport Simulation
Systems\Aimsun 7.0\shared\scripts\model\.
It imports the following Python modules that contain the
fundamental Aimsun classes required for model editing:
PyANGBasic: Qt classes
PyANGKernel: Aimsun Kernel classes
PyANGGui: Aimsun GUI classes
In order to use the capabilities offered by the plug-ins, it is
required to import the related modules. For example, to launch a
Microscopic simulation within a script the PyANGAimsun module
must be imported
from PyANGAimsun import *
Draft
305
43 GIS Importer/Exporter
The objective of this plug-in is to load GIS files (ESRI Shapefiles or
MapInfo Files) into Aimsun and to extract as much information as
possible from it to create a transportation network. Using this tool
is possible to create networks from several sources as Navteq or
TeleAtlas maps or from other transportation packages as Cube,
TransCAD or any other that can export its network data into GIS
files.
It also allows the export of certain information from the network
geometry to shapefiles.
43.1.1
43.1.2
Draft
306
Draft
http://www.uky.edu/KGS/mapping/pages/glossary.html
307
43.5.1
Customization Services
The main objective of the importer is to create a network with the
highest quality and amount of information. If the information is
coded in a format not supported by Aimsun, or if extra data can be
extracted from other sources of information then TSS offers
customization services to enhance the importer.
These services include modification of the importer logic (to add
implicit rules) and the inclusion of interfaces to other data sources
(such as Access or Excel files, spatial databases and files in custom
data formats).
Start Aimsun.
Create a new document using a template.
From the File menu, execute the Import / GIS command.
Locate the GIS file to import
The GIS Importer dialog appears:
308
309
43.7.1
Road Types
Before importing, the user can create as many road types as
desired, which will be used to initialize values in the section when
it is created.
Draft
310
311
(optional step). The last (optional) step will be the import of extra
node information from another GIS file.
43.8.1
Section Creation
Each polyline or line found in the GIS file will be converted to a
new section.
Value
312
Number of lanes
Speed
Capacity
1
Speed from Road Type
Capacity from Road Type
The road type can be set in the Network Importer dialog. If no road
type is set then the default Road Type will be set. It is possible to
add a number of lanes by road type if no attribute for number of
lanes is specified in the Section Basic area.
Note that Aimsun uses metric units internally. The imported GIS file
will create sections in metres. If the GIS file units were metres then
the geometry in the GIS file and the centre line of the sections will
be the same (unless some post processing is applied such as making
space for the nodes).
43.8.1.1
Links to Skip
Some GIS files can include links that maybe are not required, for
example a metro or train line. It is possible to skip using the Road
Type Attribute and setting a 0 as the number of lanes. In this case
it is not required to assign an Aimsun Road Type.
43.8.1.2
Single and Dual Direction
Usually the polyline in the GIS file codes a centreline of a single
section, and the order of the points in the polyline determines the
direction of flow. However, the importer also supports the
following alternatives:
Inverse sections: The direction of flow is the inverse of the point
order.
Dual directions: The polyline codes the separation line between
two sections, one in each direction.
It is possible to combine both possibilities (inverse and dual).
Use the Direction of Flow area to tell the importer how to discover
the right direction and if the polyline codes dual direction.
To do so select the attribute that has the information and put for
each possibility the number, character or text that identifies the
correct setting. Put a non-valid entry if a setting is not possible.
Example: a GIS file has an attribute named DIR with these possible
values:
1: Single Direction
-1: Inversed Direction
0: Dual Direction
So write 1, -1 and 0 for the three first possibilities. For the last
possibility (Dual Direction Inversed) put anything that is not 1, -1 or
0.
Draft
313
43.8.1.3
Number of Lanes and Dual Direction
When a single polyline generates two sections, one in each
direction, the number of lanes attribute found in the GIS file can be
considered as the sum of all the lanes in both directions or as the
number of lanes for each direction.
Activate the toggle button Share Lanes in Dual Direction to divide
the number of lanes between both sections.
43.8.1.4
Overlapped Sections
Some shapefiles contain two overlapped centrelines for each
direction of flow. Figure 301 shows two links, 1 and 2, which
connect two nodes, A and B. Aimsun can automatically move these
overlapped centrelines to ensure a more correct network geometry.
2
A
B
1
43.8.2
Node Creation
If the GIS file contains topological information (in our case how
objects are connected), it can be used to create nodes where
sections on the network are connected. The From Node and To
Node attributes are used to create such nodes.
Draft
314
Draft
315
Other
Sections
Straight
None
Right
Straight
None
Left
None
Turns
on Lanes Used
Left most
All
Half (left most)
Right most
All
Half (right most)
All
43.8.2.2
Expanding the Node
The last step will convert the node from a point to an area giving
space to the turns. It will compress the sections that are part of the
node reducing each section. The compression will make the section
shorter but neither section will be removed nor any point on it.
The compression size will depend of the number of lanes of the
sections involved. The importer will use the maximum size of the
section width (number of lanes * lane size) divided by 2 and, to the
result, it will add a 10%.
This space will ensure a correct node area for most of the cases but
it will not try to guarantee that some sections do not overlap the
node.
43.8.2.3
Adding Extra Node Information
The user can specify a second GIS file with node information. The
importer creates nodes based on the From Node and To Node
Draft
316
settings. Each node created will have as its external identifier the
value of the From Node or To Node attribute.
In order to use this second GIS file the importer must match the
nodes created when importing the network with the nodes found in
this shapefile. The importer will ask for the attribute that contains
the identifier of the node. It will also ask for the attribute that
contains the name of the node.
No geometrical information will be loaded, only the attributes and
its values.
43.8.3
Centroid Creation
Some GIS files contain centroid connections as links. In this case,
Aimsun can automatically create the centroids and connect them to
the corresponding section or node.
In the Centroid tab folder, enable the Centroid connections in Links
option and then tell the importer how it can recognize connections.
You can either differentiate from links using a range of identifiers
or the value of an attribute.
The second option allows a list of identifiers and/or a close range
of values. The IDs are separated by commas, the range by the -
symbol. In order to differentiate the minus symbol from a negative
number please add a space after the symbol, for example: - 9. If
the second value in the range is not present, then all the range
from the lower value up will be used. Example of valid inputs are:
Links 1,2 and 3: 1,2,3
From 1 to 20 (included): 1 20
From 20 (included): 20 -
Draft
317
The importer dialog allows filtering the data that will be imported
using Zip codes. When defining a range of zip codes only the
features matching them will be imported. If no zip code range is
set, the importer will import all the data.
43.10
43.11
Draft
318
43.11.1
Sections file
Sections will be placed in a shapefile with multiple arc shapes with
Z coordinate (SHPT_ARCZ). The generated files are:
sections.shp
sections.shx
sections.dbf
The attributes written in the DBF file are:
id: Aimsun Identifier.
name: Object name.
nb_lanes: Number of lanes.
speed: Section speed in km/h.
capacity: Section capacity in PCUs/h.
fnode: Origin node (using the Aimsun node identifier).
tnode: Destination node (using the Aimsun node identifier).
rd_type: Road Type identifier
319
43.11.2
Nodes file
Nodes will be placed in a shapefile with one point shape with Z
coordinate (SHPT_POINTZ). The generated files are:
nodes.shp
nodes.shx
nodes.dbf
The attributes written in the DBF file are:
id: Aimsun Identifier.
name: Object name.
intersection: a 0 if it is a simple node or a 1 if it is a complex
node.
43.11.3
Turns file
Turns will be placed in a shapefile with multiple arc shapes with Z
coordinate (SHPT_ARCZ). The generated files are:
turns.shp
turns.shx
turns.dbf
The attributes written in the DBF file are:
id: Aimsun Identifier.
id_node: Aimsun node identifier.
speed: Turn speed in km/h.
sign: Warning sign. Possible values are:
o 0: no sign
o 1: give-way
o 2: stop
fsection: origin section (using the Aimsun section identifier)
tsection: destination section (using the Aimsun section identifier)
flaneA: Origin lane, left most.
flaneB: Origin lane, right most.
tlaneA: Destination lane, left most.
tlaneB: Destination lane, right most.
Draft
320
43.11.4
VMSs file
VMSs will be placed in a shapefile with one point shape with Z
coordinate (SHPT_POINTZ). The generated files are:
vms.shp
vms.shx
vms.dbf
The attributes written in the DBF file are:
id: Aimsun Identifier.
name: Object name.
section_id: identifier of the section
position: position, in metres, from the entrance of the section
43.11.5
Meterings file
Meterings will be placed in a shapefile with one point shape with Z
coordinate (SHPT_POINTZ). The generated files are:
meterings.shp
meterings.shx
meterings.dbf
The attributes written in the DBF file are:
id: Aimsun Identifier.
name: Object name.
section_id: identifier of the section
position: position, in metres, from the entrance of the section
43.11.6
Detectors file
Detectors will be placed in a shapefile with one point shape with Z
coordinate (SHPT_POINTZ). The generated files are:
detectors.shp
detectors.shx
detectors.dbf
The attributes written in the DBF file are:
id: Aimsun Identifier.
name: Object name.
section_id: identifier of the section.
position: position, in metres, from the entrance of the section.
length: detector length in metres.
from_lane: left most lane in where the detector is (numbered
from 0 to N-1).
to_lane: right most lane in where the detector is (numbered
from 0 to N-1).
43.11.7
Centroids file
Centroids will be placed in a shapefile with one point shape with Z
coordinate (SHPT_POINTZ). The generated files are:
centroids.shp
Draft
321
centroids.shx
centroids.dbf
43.11.8
43.11.9
Draft
322
43.11.10
Labels file
43.11.11
Polygons file
43.12
Draft
323
43.12.1
Incompatible Types
When Aimsun imports a GIS file it uses the specified type name
(from the GIS Importer dialog) to create a new type or to use it if it
was already present. If the type was already present then it must
be compatible with the information found in the GIS file. That is:
1. The geometrical type must be the same. It is not possible to use
the type City for points and, later on, try to use it for polygons.
2. The attributes on the type must be the same. In this case, we
cannot first import cities creating the City type and then try to
import airports using the same type (an unusual operation) as
the attributes of the airports GIS file will not be present in the
City type.
When an incompatibility happens, the importer will present the
following error dialog:
Draft
324
Draft
325
The last option requires that you download an OSM file from,
probably,
OSM
Planet
(http://wiki.openstreetmap.org/wiki/Planet.osm). There you will
find maps by country and, sometimes, by region. When using this
option, Aimsun will filter objects outside the visible map. You can
for example use the map of Germany to import an area in Berlin.
Note that loading and filtering large OSM files will require a lot of
CPU and RAM.
The OSM Importer dialog box will then come up as shown below:
Draft
326
327
belong to. The Road Types external ID that will be used should
contain the following words:
motorway
trunk
primary
secondary
tertiary
residential
pedestrian
rail
tram
subway
unclassified
For all sections with a road type defined that is not present in the
Aimsun project the default road type will be assigned.
328
45 TransCAD Importer
Aimsun can import TransCAD geometry and TransCAD O/D matrices.
Draft
329
46 Cube Importer
Aimsun can import Cube network geometry and Cube O/D matrices.
Draft
330
47 CONTRAM Importer
Two importation features from CONTRAM to Aimsun are available
from the menu File -> Import -> CONTRAM Network (see Figure
311): to import a CONTRAM network and its CONTRAM simulation
results.
47.1.1
Draft
Only files with extension .net, .dem, .res and .rte are needed.
331
47.1.2
Draft
332
Draft
333
CONTRAM also defines turns from sections that are used as centroid
connectors. All this turns are translated as centroid connections
that can be connected to sections or to nodes depending on node
definition. In other words, if the node only contains turns from, or
to, centroid connectors, then the Aimsun centroid is connected to
all sections that start or end at this node (see example in
Figure 314), else the centroid is connected to the node as Figure
313 shows.
47.2.2
Vehicle Types
The importer creates all vehicles defined in CONTRAM .net file. It
sets Aimsun default parameters but the pcus, the Length, which is
initialised with the Headway value, the Min Distance Veh, which is
set to 0, the Max Desired Speed, which is set to 130km/h, and the
Speed Acceptance, which is initialised with Speed value.
47.2.3
47.2.4
O/D matrices
The number of O/D matrices that this interface creates depends on
how many time slices are defined. The duration of each time slice
is defined in CONTRAM network file and then assigned to each O/D
matrix.
47.2.5
Control Plans
Control Plan definition is obtained from two areas: SIGNAL_PLAN
and SIGNAL_TIMING, where every phase has its duration and cycle
time for each node with traffic lights. Also, all turn movements
that are included in each phase are specified.
47.2.6
Turn Closures
Depending on lanes restrictions, the importer will create Turn
Closures that should be be added in the simulation scenario. Note
that, it will create traffic management objects if all origin link
groups have the same vehicle class constraint and all destination
link groups have the same constraint.
The aim is to keep the less restrictive condition.
Draft
334
48 Paramics Importer
The Paramics importer has two main features. The first one is the
import of geometrical data of the network, so objects like sections,
nodes or centroids are defined. The second one is the import of
O/D matrices. This feature is available when importing geometrical
data and also afterwards, when geometrical data has already been
imported. The O/D matrix is created using the Centroid external
IDs.
Both features are available after a new network is created using
the template library. Figure 315 shows the menu path.
48.1.1
Draft
335
Draft
336
Draft
337
Draft
338
48.2.2
Links translation
To import sections, this interface obtains all data from Paramics
links so generated sections will have the same basic characteristics
as their related Paramics links. This includes road type, maximum
speed, etc.
48.2.2.1
Link Shape
Each section is limited by two nodes, origin and destination, which
give us the position where the section physically begins and ends.
To avoid section accumulations on each node, the interface
calculates a safety distance that reduces the length of every
section. This distance is calculated using the section width and the
number of sections that are connected to the node.
Also, sections are moved (depending on Rule of the Road
parameter) laterally depending on if they have any parallel section,
as Figure 321 shows. It must take into account that only sections
that join the same nodes are determined as parallel.
Draft
339
48.2.2.2
Ramps
Two situations are derived from the definition of node ramps:
The first one is showed in Figure 322 .
Draft
340
Draft
341
48.2.3
Turns definition
This interface reads nextlanes and junctions files to import turns
from Paramics. For each node that doesnt appear in these files, all
possible turns are created, avoiding U-turns.
Nextlanes
Nextlanes file defines specific turns from some lanes from origin
section to some lanes of the i-th exit section.
Figure 326 shows an example of the nextlanes import.
Next
link
lane
lane
lane
lane
link
lane
Lanes
10:445
1 next 1
2 next 2
3 next 3
4 next 4
437:445
1 next 0
0
0
0
0
5
Link 10:445 has 4 lanes at the end of the section. The white Aimsun
turn is the resultant turn of the import, where all origin lanes of
section N10_N445 join with the first 4 lanes of destination section
(N445_N108).
Draft
342
The second defined turn is the red turn, which joins section
N437_N445 with the 5th lane of destination section. Paramics
defines two possible exits in node 445, but Aimsun only has 1, this
is because Paramics also defines barred links (that are not
imported).
Exits are arranged in clockwise or counterclockwise direction,
depending on the Rule of the Road. In this example, the vehicles
drive on the right.
48.2.3.1
Junctions
The Junctions file defines, for every available exit, which are the
origin lanes to which vehicles can turn (see Figure 327).
junction 401:81
out 1 lanes 1
out 2 lanes 2 3
48.2.4
Draft
343
Paramics Priority
Minor5
Medium
Major
Aimsun Priority
Stop
Give Way
None
48.2.5
Vehicles
Paramics importer creates paramics vehicles setting the Aimsun
vehicle car default values to all attributes but Length, Width,
Maximum
Speed,
Maximum
Acceleration
and
Maximum
Deceleration, which values are adopted from Paramics Vehicles.
48.2.6
O/D matrices
All matrices are created from data obtained by processing profiles,
matrix and demand files.
The Profile file contains information about time slices of every
related O/D matrix.
Figure 328 shows an import example: In left square there is data
from a profile file that specifies the time interval of the periods
and the start time of every period. The percentage to apply to the
matrix for the time interval is also defined. This means that,
starting at 6:30 and ending at 6:45, the matrix related to period 1
represents the 100% of trips in this time.
Networks in Paramics SIAS dont have Stop priority, so they will be imported as Give
Way
6
In priorities file only the max duration parameter is defined, AIMSUN actuated control
plans need more parameters (such as recall type, time to reduce, etc.) and detectors
associated to these kinds of control plans, so it is better that the user configure actuated
control plans manually.
Draft
344
Demand Profile
Profile Count 1
Profile 1
Period Count 12
Divisor 1
Interval 15
demand period 1
matrix count 1
divisor 1.0000
In the case shown in Figure 329, this interface will generate 2 O/D
matrices. The first one starting at 6:45 and trips will be equal to
the 50% of the related Paramics matrix; the second one will start at
7:00 and will have the same trips of the first O/D matrix. Both will
have 15 minutes of duration.
Demand Profile
Profile Count 1
Profile 1
Period Count 12
Divisor 1
Interval 15
period 2 start 6:45:00
50 50
Figure 329 O/D matrix import
Draft
345
48.2.7
Draft
346
48.2.8
Draft
347
49 Vissim Importer
This importer has two main features. The first one is to import
geometrical data of the network, so objects like sections, nodes or
centroids are defined. The second one is to import O/D matrices.
This feature is available when importing geometrical data. The O/D
matrix is created using the Centroid external IDs. The Vissim
importer can import also control plan and public transport
information.
Both features are available after a new network is created using
the template library. Figure 332 shows the menu path.
Draft
348
49.1.1
49.2.1.1
Similarities
Vissim Links have a unique identifier, which is kept in Aimsun
Sections External ID.
Vissim Links can have many control points, which define the shape
of the link. Aimsun Sections try to keep the original shape but
simplifying the number of points
Aimsun Sections will keep information like number of lanes, lane
width and the length. Properties related to Road type are not
imported in this version.
Draft
349
49.2.1.2
Differences
Vissim Links can have turns at any part of the link, as Vissim
doesnt define turns as Aimsun does; so, the implemented solution
implies the following steps:
Split the Vissim Link in segments of length Segment Length
(parameter defined in Vissim Geometry file)
Read the connectors and associate them into the segments
which is at the beginning of the connector (exit turn) and the
one which is at the end of the connector (input turn)
The Aimsun section will be splitted depending on the number
of turns and the type of the turns at each link segment, as it
is shown in the following picture
49.2.2
49.2.3
Aimsun Nodes
This is, maybe, the most difficult part of the importation. Vissim
doesnt define any kind of node, so theres a process to join nodes
once all turns have been created in Aimsun; considering the
following:
Draft
350
All these constraints may generate nodes either having too many
turns, see Figure 335, or disjoining turns that should be in the same
node, see Figure 336:
Draft
351
Vissim can set different stop points for vehicles while defining a
control plan independently if the stop points correspond to any turn
defined, so as, it may imply the creation of new turns to keep the
stop points of vehicles in Vissim.
The selected turn in Figure 337 has been created to define the
control plan. Figure 338 shows that this turn belongs to the
imported signal group 9.
49.2.4
Control Plans
Vissim Control Plans can be defined at any position in a section,
thus, the importer will try to locate an existing node to define the
control plan, if it fails, it will split the section at the specified
position giving a small gap to create the a new node.
Once the node has been selected, only fixed control plans will be
imported.
Draft
352
49.2.5
49.2.6
49.2.7
Draft
353
50 Visum Importer
50.1 Importing a network from Visum
Visum importer allows the user to import Visum networks (.net
files) whose language is English, German or French. Currently
supported versions range from 2.8 up to 6.0. In order to import a
Visum network, go to File, Import menu and select Visum Network
Files:
354
Also the importer looks for all the *.mtx files located in the same
folder than the *.net file and creates an Aimsun matrix for each
*.mtx file read. These matrices will not store the trips inside the
Aimsun file but will be created as External Matrices and therefore
read the trips from the corresponding *.mtx file.
Draft
355
Draft
356
Draft
357
Draft
358
The dialog that appears allows the user to select the file to import
from and whether to import everything or just the signal
information.
Draft
359
The Importer will map Aimsun Nodes to Synchro Nodes using the
Synchro Node ID attribute and Aimsun Turns to Synchro Lane Groups
using the cardinal directions in Aimsun (Table 1).
A new Control Plan containing the phasing and timings defined in
the UTDF file will be created.
Note that the Signal Groups are not modified, so the assignment of
the Phases to the Lane Groups must be feasible with the Signal
Groups defined in Aimsun7.
Draft
360
The dialog that appears allows the user to select the file to be
created and the source of information about the geometry, the
signal plans and the turn volumes (Figure 345).
The path and filename of the output file is set in UTDF Combined
File, under Output File.
The geometry can be either taken from the whole network or from
any existing Subnetwork9 that is listed in the drop-down list under
Network. Aimsun allows to model different types of road
infrastructures (freeways, signalized roads, etc.) in the same
model, and different sizes of networks (from an isolated
intersection to a whole city), while Synchro is mainly intended for
isolated signalized intersections or corridors of signalized
intersections. The possibility to export a Subnetwork allows reusing
any existing Aimsun model, without the need to create a specific
one for the study with Synchro.
Draft
361
362
The turn volumes can be either taken from a set of Traffic States,
or from the outputs of a dynamic simulation (meso or micro). Note
that it is possible to use the turn volumes of a macro assignment by
creating the Traffic States from its results (Figure 346).
Figure 346 Creating Traffic States from the results of a macro assignment
If the selected replication has not been simulated with the calculation of
outputs for Turns and Nodes active, or it has not been retrieved from the
database, the exported volumes will be 0.
11
Note that, unlike when using Traffic State, using simulated flows there is no
limit to the number of Vehicle Types.
12
The exported flow is the average of the flows during the intervals that fall at
least partially inside the schedule of the Master Control Plan, weighted with the
proportion between the portion that falls inside the schedule and the total
duration of the interval.
10
Draft
363
Direction
EB
NEB
NB
NWB
WB
SWB
SB
SEB
Draft
364
Aimsun
Barrier, Ring, Position
Minimum Green, Maximum
Initial Green
Max-Out
Passage Time
Time Before Reduce
Time To Reduce
Passage Time
Yellow Time
Interphase Time
Recall
UTDF
BRP
MinGreen
MaxGreen
VehExt
TimeBeforeReduce
TimeToReduce
MinGap
Yellow
AllRed
Recall
Draft
365
53.2 Exporter
The 3D File Exporter allows the user to export the networks
geometry into 3rd party 3D modelling software tools, enabling the
user to create rich 3D scenes around networks created with Aimsun.
The geometry exported currently includes Nodes and Sections.
The option is found under File-> Export -> Network as 3D File.
Notice that before exporting a network in 3D format, a 3D View
should be opened in Aimsun. The following formats are supported:
Autodesk 3ds Max (.3ds filename extension)
Open Scene Graph native formats
o Binary format (.ive filename extension)
o Text format (.osg filename extension)
Draft
366
Draft
367
54 Aimsun Licensing
This chapter covers how to deal with Aimsun licenses successfully.
Draft
368
54.1.1
54.1.2
54.1.3
Draft
369
Server configuration
Client configuration
Draft
370
Draft
371
If after installing the license, Aimsun does execute but the user
cannot simulate the replications it is definitely not a license
problem:
Go to Help -> About Plugins
If there are modules marked with a red icon, please reinstall Aimsun after making sure that the previous install
directory is totally deleted.
If after installing the license, Aimsuns Legion for Aimsun cannot
simulate pedestrians:
In the Aimsun directory check if there are following Legion
library files (.dll). If not re-install Legion for Aimsun.
Draft
372