-
Notifications
You must be signed in to change notification settings - Fork 1
/
i_Test2.txt
129 lines (124 loc) · 6.18 KB
/
i_Test2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
% Test input file of Green Signal
% Draft Version
% Feb 28, 2008
%
% Format of the input file:
% 1. The input file has ordinary ".txt" file name extension and its file name begins with "i_", e.g. the file you are reading is named "i_Test.txt".
% 2. "%" is the comment symbol in this input file. The program should ignore any line beginning with a percentage symbol.
% 3. Any expression begins with a keyword, e.g. setting, time, initoccp.
% 4. Every section (see below) begins with a expression only containing a keyword (e.g. setting) and ends with keyword "end".
% 5. The sequence of expressions within section is insensitive, i.e. changes of sequence of expressions in a section make no difference.
%
% Sections of the input file:
% 1. Setting parameters. In this part, the general simulation information is included.
% 2. Geometry structure. The scale and topology of the traffic network are presented here.
% 3. Control scheme. The scheme consist of the location of intersection, approaching arcs, maximum (minimum) green time, phase, etc.
% 4. Traffic flow. Traffic demand, diverging and merging are presented here.
% 5. Event information. This section describes any event that changes the capacity and jam density of particular arc.
setting
% Section I - Setting parameters.
time 08:00:00 08:05:00
% The beginning and end time of the simulation run
clock 1
% The discrete time interval between clock ticks. The unit of time is second.
epsilon 0.01
% Any quantities smaller than epsilon will be ignored.
initoccp 0
% The initial cell occupation percentage.
initctrl 0
% The initial control strategy:
% 0 - every phase length is assigned the minimum green time and the cycle length is minimum green time multiplied by number of phase.
% 1 - both phase length and cycle length are fixed according to Webster's formula.
end
geometry
% Section II - Geometry structure
%
% Node information as follows:
% (1) (2) (3) (4)
% No. type x y
node 1 1 100 100
node 2 0 200 100
node 3 2 300 200
node 4 2 300 0
% There are 4 columns above:
% 1. Column (1) numbers every node.
% 2. Column (2) specifies types of nodes:
% a) Type 0 indicates an ordinary node.
% b) Type 1 indicates an origin node.
% c) Type 2 indicates a destination node.
% 3. The last two columns (3)(4) are the coordinates of nodes.
%
% Arc information as follows:
% (1) (2) (3) (4) (5) (6) (7)
% up down free max jam
% No. node node speed flow density delta
arc 1 1 2 15.0 5.0 3.0 0.6
arc 2 2 3 15.0 3.0 3.0 0.6
arc 3 2 4 15.0 2.0 3.5 0.6
% There are 7 columns above:
% 1. Column (1) numbers every arc.
% 2. Columns (2)(3) are upstream node and downstream node of arc respectively.
% 3. Columns (4)(5)(6) are the free flow speed, maximum flow and jam density of arc.
% 4. Column (7) is the ratio of the backward wave speed to the free flow speed.
end
traffic
% Section IV - Traffic flow
%
% Traffic demands as follow:
% (1) (2) (3)
% start origin traffic
% time node demand
demand 08:00:00 1 3.0
% Traffic demand at origin node (2) equals (3) from time (1) on.
%
% Traffic diverges as follow:
% (1) (2) (3) (4)
% from to diverge
% arc arc coeff type
diverge 1 2 0.3 1
diverge 1 3 0.7 0
% Percentage (3) of traffic flow enters arc (2) from arc (1).
% There are three types of diverge:
% 1. Type 0 indicates traffic flow goes through straight.
% 2. Type 1 indicates traffic flow turns right.
% 3. Type 2 indicates traffic flow turns left.
%
% Traffic merges as follow:
% (1) (2)
% from to
% arc arc
% Traffic flow enters arc (3) from arc (1).
end
control
% Section III - Control scheme
% (1) (2) (3) (4) (5) (6) (7) (8) (9)
% min green max green right number connected
% No. type x y time time turning of phase nodes
%intersection 1 1 456 550 20 60 1 4 1 2 3 4 5 6 7 8
% There are 9 columns above:
% 1. Column (1) numbers intersection.
% 2. Column (2) specifies the type of intersection:
% a) Type 0 indicates nonsignalized intersection.
% b) Type 1 indicates signalized intersection.
% 2. Columns (3)(4) are the coordinates of intersection.
% 3. Columns (5)(6) are the minimum and maximum green time respectively.
% 4. Columns (7) is 1 if right turning traffic flow is allowed in any phase, otherwise 0.
% 5. Columns (8) is the number of phase at the intersection.
% 6. Column (9) contains all the nodes connected at the intersection.
% 7. A nonsignalized intersection do not have columns (5)(6)(7)(8) and the phases as follow.
%
% The followings are the phases of the intersection:
% (1) (2) (3) (4)
% intersection phase from to
% No. No. arc arc
% Phase (2) of intersection (1) allows traffic flow coming from arc (3) and going to arc (4).
end
event
% Section V - Event information
% (1) (2) (3) (4) (5)
% arc start end max
% No. distance time time flow
%incident 7 200 08:01:00 08:03:00 0.5
%incident 6 300 08:02:00 08:04:00 1.0
% From time (3) to time (4), an incident occurs at the place with distance (2) from the beginning of arc (1). The maximum flow is reduced to (5).
end