Skip to content

Commit 72fa077

Browse files
committed
Merge pull request #27 from synthicity/mandatory-tour-schedule
Mandatory tour schedule
2 parents 03df26a + bb43936 commit 72fa077

5 files changed

Lines changed: 1231 additions & 299 deletions

File tree

example/configs/settings.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ store: mtc_asim.h5
22

33
# area_types less than this are considered urban
44
urban_threshold: 4
5+
cbd_threshold: 2
6+
rural_threshold: 6
57

68
households_sample_size: 1000
79

example/configs/tour_departure_and_duration.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Description,Expression,workFree-flow round trip auto time shift effects - departure,roundtrip_auto_time_to_work * start,0.00114Free-flow round trip auto time shift effects - duration,roundtrip_auto_time_to_work * duration,0.00221Part-time worker departure shift effects,(ptype == 2) * start,0.06736Non-working adult duration shift effects,(ptype == 4) * duration,0.1207University student departure shift effects,(ptype == 3) * start,0.05747Household income departure shift effects,income_in_thousands * start,0.00021Destination in CBD departure shift effects,workplace_in_cbd * start,0.04717Destination in CBD duration shift effects,workplace_in_cbd * duration,0.08679subsequent tour must start after previous tour ends,(start < end_of_previous_tour) & (tour_num == 2),-999First of 2+ work tours departure shift effects,(tour_num == 1) * start,0.3033First of 2+ work tours duration shift effects,(tour_num == 1) * duration,0.1861Subsequent 2+ work departure tours shift effects,(tour_num == 2) * start,0.5381Subsequent 2+ work duration tours shift effects,(tour_num == 2) * duration,0.3174Household income -- Early departure interaction,(income_in_thousands > 100) & (start < 6),0.4854Household income -- Late arrival interaction,(income_in_thousands > 100) & (end > 22),0.3839Destination in CBD -- Early departure interaction,workplace_in_cbd & (start < 6),0.4566Destination in CBD -- Late arrival interaction,workplace_in_cbd & (end > 22),0.2334Rural household -- Early departure interaction,home_is_rural & (start < 6),0.4039Rural household -- Late arrival interaction,home_is_rural & (end > 22),0.3451Full-time worker -- duration < 9 hours interaction,(ptype == 1) & (duration < 9),1.257Full-time worker -- 10 to 12 departure interaction,(ptype == 1) & (start > 9) & (start < 13),0.5182Part-time worker -- 13 to 15 arrival interaction,(ptype == 2) & (end > 12) & (end < 16),0.5433First of 2+ work tours- duration<8 hrs,(tour_num == 1) & (duration < 8),1.98Subsequent of 2+ work tours- duration<8 hrs,(tour_num == 2) & (duration < 8),2.582Work+school tours by worker- duration<8 hrs,(mandatory_tour_frequency == 'work_and_school') & is_worker & (duration < 8),0.9126School+work tours by student- duration<8 hrs,(mandatory_tour_frequency == 'work_and_school') & is_student & (duration < 8),2.582Mode Choice Logsum,mode_choice_logsum,1.027Previously-scheduled tour ends in this departure hour,prev_tour_end == start,0.8935Previously-scheduled tour begins in this arrival hour,prev_tour_begin == end,1.334Adjacent window exists before this departure hour - first tour interaction,@@adjWindowBeforeThisHourAlt,0.1771Adjacent window exists afetr this arrival hour - first tour interaction,@@adjWindowAfterThisHourAlt,0.3627Adjacent window exists before this departure hour - second+ tour interaction,@@adjWindowBeforeThisHourAlt,0.2123Adjacent window exists after this arrival hour - second+ tour interaction,@@adjWindowAfterThisHourAlt,0.1012Remaining work/school tours to be scheduled / number of unscheduled hours,1 / @@remainingHoursAvailableAlt,18.68Departure Constants -- Early (up to 5),start < 6,0.95273Departure Constants -- AM peak 1 (6),start == 6,0.61618Departure Constants -- AM peak 2 (7),start == 7,0Departure Constants -- AM peak 3 (8),start == 8,0.25471Departure Constants -- AM peak 4 (9),start == 9,1.25135Departure Constants -- Midday 1 (10 to 12),(start > 9) & (start < 13),1.70587Departure Constants -- Midday 2 (13 to 15),(start > 12) & (start < 16),1.69357Departure Constants -- PM peak (16 to 18),(start > 15) & (start < 19),1.43999Departure Constants -- Evening (19 to 21),(start > 18) & (start < 22),1.61051Departure Constants -- Late (22 and later),start > 21,2.88342Arrival Constants -- Early (up to 6),end < 7,0Arrival Constants -- AM peak (7 to 9),(end > 6) & (end < 10),1.85452Arrival Constants -- Midday 1 (10 to 12),(end > 9) & (end < 13),0.49597Arrival Constants -- Midday 2 (13 to 14),(end > 12) & (end < 15),0.37855Arrival Constants -- PM peak 1 (15),end == 15,0Arrival Constants -- PM peak 2 (16),end == 16,0.27608Arrival Constants -- PM peak 3 (17),end == 17,0.69959Arrival Constants -- PM peak 4 (18),end == 18,0.79929Arrival Constants -- Evening (19 to 21),(end > 18) & (end < 22),0.10357Arrival Constants -- Late (22 and later),end > 21,0.96596Duration Constants -- 0 to 2 hours,duration < 3,2.52827Duration Constants -- 3 to 4 hours,(duration > 2) & (duration < 5),0.91897Duration Constants -- 5 to 6 hours,(duration > 4) & (duration < 7),0.71855Duration Constants -- 7 to 8 hours,(duration > 6) & (duration < 9),0.13962Duration Constants -- 9 hours,duration == 9,0.05571Duration Constants -- 10 hours,duration == 10,0Duration Constants -- 11 hours,duration == 11,0.3478Duration Constants -- 12 to 13 hours,(duration > 11) & (duration < 14),1.00822Duration Constants -- 14 to 18 hours,(duration > 13) & (duration < 19),1.70186
Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
start,end
2+
5,5
3+
5,6
4+
5,7
5+
5,8
6+
5,9
7+
5,10
8+
5,11
9+
5,12
10+
5,13
11+
5,14
12+
5,15
13+
5,16
14+
5,17
15+
5,18
16+
5,19
17+
5,20
18+
5,21
19+
5,22
20+
5,23
21+
6,6
22+
6,7
23+
6,8
24+
6,9
25+
6,10
26+
6,11
27+
6,12
28+
6,13
29+
6,14
30+
6,15
31+
6,16
32+
6,17
33+
6,18
34+
6,19
35+
6,20
36+
6,21
37+
6,22
38+
6,23
39+
7,7
40+
7,8
41+
7,9
42+
7,10
43+
7,11
44+
7,12
45+
7,13
46+
7,14
47+
7,15
48+
7,16
49+
7,17
50+
7,18
51+
7,19
52+
7,20
53+
7,21
54+
7,22
55+
7,23
56+
8,8
57+
8,9
58+
8,10
59+
8,11
60+
8,12
61+
8,13
62+
8,14
63+
8,15
64+
8,16
65+
8,17
66+
8,18
67+
8,19
68+
8,20
69+
8,21
70+
8,22
71+
8,23
72+
9,9
73+
9,10
74+
9,11
75+
9,12
76+
9,13
77+
9,14
78+
9,15
79+
9,16
80+
9,17
81+
9,18
82+
9,19
83+
9,20
84+
9,21
85+
9,22
86+
9,23
87+
10,10
88+
10,11
89+
10,12
90+
10,13
91+
10,14
92+
10,15
93+
10,16
94+
10,17
95+
10,18
96+
10,19
97+
10,20
98+
10,21
99+
10,22
100+
10,23
101+
11,11
102+
11,12
103+
11,13
104+
11,14
105+
11,15
106+
11,16
107+
11,17
108+
11,18
109+
11,19
110+
11,20
111+
11,21
112+
11,22
113+
11,23
114+
12,12
115+
12,13
116+
12,14
117+
12,15
118+
12,16
119+
12,17
120+
12,18
121+
12,19
122+
12,20
123+
12,21
124+
12,22
125+
12,23
126+
13,13
127+
13,14
128+
13,15
129+
13,16
130+
13,17
131+
13,18
132+
13,19
133+
13,20
134+
13,21
135+
13,22
136+
13,23
137+
14,14
138+
14,15
139+
14,16
140+
14,17
141+
14,18
142+
14,19
143+
14,20
144+
14,21
145+
14,22
146+
14,23
147+
15,15
148+
15,16
149+
15,17
150+
15,18
151+
15,19
152+
15,20
153+
15,21
154+
15,22
155+
15,23
156+
16,16
157+
16,17
158+
16,18
159+
16,19
160+
16,20
161+
16,21
162+
16,22
163+
16,23
164+
17,17
165+
17,18
166+
17,19
167+
17,20
168+
17,21
169+
17,22
170+
17,23
171+
18,18
172+
18,19
173+
18,20
174+
18,21
175+
18,22
176+
18,23
177+
19,19
178+
19,20
179+
19,21
180+
19,22
181+
19,23
182+
20,20
183+
20,21
184+
20,22
185+
20,23
186+
21,21
187+
21,22
188+
21,23
189+
22,22
190+
22,23
191+
23,23

0 commit comments

Comments
 (0)