|
Algorithm 2 Extraction of travel times vs. load samples. |
-
Require:
Reunified segment file, Segment-info files
-
Ensure:
Statistical learning by segment files
-
1:
for segment in Reunified segment file do
-
2:
vector that stores all edge ids connected
-
3:
for
s=0 to length() do
-
4:
Read lines in Segment-info files
-
5:
sort_by_()
-
6:
for
=0 to length() do
-
7:
number vehicles per segment in each lane
-
8:
for
to
step − 1 do
-
9:
if
and
then
-
10:
increase the number of vehicles if the condition is met
-
11:
end if
-
12:
end for
-
13:
end for
-
14:
average of the travel times for different degrees of congestion
-
15:
number of vehicles in the segment before a new vehicle enters the segment
-
16:
end for
-
17:
end for
|