Skip to content

Commit 522f35d

Browse files
committed
filling in basic skeleton of non-mandatory tour scheduling
1 parent bb43936 commit 522f35d

File tree

5 files changed

+911
-373
lines changed

5 files changed

+911
-373
lines changed

example/configs/tour_departure_and_duration.csv

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
Description,Expression,Coefficient
2+
Free-flow round trip auto time shift effects - departure,roundtrip_auto_time_to_work * start,0.00114
3+
Free-flow round trip auto time shift effects - duration,roundtrip_auto_time_to_work * duration,0.00221
4+
Part-time worker departure shift effects,(ptype == 2) * start,0.06736
5+
Non-working adult duration shift effects,(ptype == 4) * duration,0.1207
6+
University student departure shift effects,(ptype == 3) * start,0.05747
7+
Household income departure shift effects,income_in_thousands * start,0.00021
8+
Destination in CBD departure shift effects,workplace_in_cbd * start,0.04717
9+
Destination in CBD duration shift effects,workplace_in_cbd * duration,0.08679
10+
subsequent tour must start after previous tour ends,(start < end_of_previous_tour) & (tour_num == 2),-999
11+
First of 2+ work tours departure shift effects,(tour_num == 1) * start,0.3033
12+
First of 2+ work tours duration shift effects,(tour_num == 1) * duration,0.1861
13+
Subsequent 2+ work departure tours shift effects,(tour_num == 2) * start,0.5381
14+
Subsequent 2+ work duration tours shift effects,(tour_num == 2) * duration,0.3174
15+
Household income -- Early departure interaction,(income_in_thousands > 100) & (start < 6),0.4854
16+
Household income -- Late arrival interaction,(income_in_thousands > 100) & (end > 22),0.3839
17+
Destination in CBD -- Early departure interaction,workplace_in_cbd & (start < 6),0.4566
18+
Destination in CBD -- Late arrival interaction,workplace_in_cbd & (end > 22),0.2334
19+
Rural household -- Early departure interaction,home_is_rural & (start < 6),0.4039
20+
Rural household -- Late arrival interaction,home_is_rural & (end > 22),0.3451
21+
Full-time worker -- duration < 9 hours interaction,(ptype == 1) & (duration < 9),1.257
22+
Full-time worker -- 10 to 12 departure interaction,(ptype == 1) & (start > 9) & (start < 13),0.5182
23+
Part-time worker -- 13 to 15 arrival interaction,(ptype == 2) & (end > 12) & (end < 16),0.5433
24+
First of 2+ work tours- duration<8 hrs,(tour_num == 1) & (duration < 8),1.98
25+
Subsequent of 2+ work tours- duration<8 hrs,(tour_num == 2) & (duration < 8),2.582
26+
Work+school tours by worker- duration<8 hrs,(mandatory_tour_frequency == 'work_and_school') & is_worker & (duration < 8),0.9126
27+
School+work tours by student- duration<8 hrs,(mandatory_tour_frequency == 'work_and_school') & is_student & (duration < 8),2.582
28+
Mode Choice Logsum,mode_choice_logsum,1.027
29+
Previously-scheduled tour ends in this departure hour,prev_tour_end == start,0.8935
30+
Previously-scheduled tour begins in this arrival hour,prev_tour_begin == end,1.334
31+
Adjacent window exists before this departure hour - first tour interaction,@@adjWindowBeforeThisHourAlt,0.1771
32+
Adjacent window exists afetr this arrival hour - first tour interaction,@@adjWindowAfterThisHourAlt,0.3627
33+
Adjacent window exists before this departure hour - second+ tour interaction,@@adjWindowBeforeThisHourAlt,0.2123
34+
Adjacent window exists after this arrival hour - second+ tour interaction,@@adjWindowAfterThisHourAlt,0.1012
35+
Remaining work/school tours to be scheduled / number of unscheduled hours,1 / @@remainingHoursAvailableAlt,18.68
36+
Departure Constants -- Early (up to 5),start < 6,0.95273
37+
Departure Constants -- AM peak 1 (6),start == 6,0.61618
38+
Departure Constants -- AM peak 2 (7),start == 7,0
39+
Departure Constants -- AM peak 3 (8),start == 8,0.25471
40+
Departure Constants -- AM peak 4 (9),start == 9,1.25135
41+
Departure Constants -- Midday 1 (10 to 12),(start > 9) & (start < 13),1.70587
42+
Departure Constants -- Midday 2 (13 to 15),(start > 12) & (start < 16),1.69357
43+
Departure Constants -- PM peak (16 to 18),(start > 15) & (start < 19),1.43999
44+
Departure Constants -- Evening (19 to 21),(start > 18) & (start < 22),1.61051
45+
Departure Constants -- Late (22 and later),start > 21,2.88342
46+
Arrival Constants -- Early (up to 6),end < 7,0
47+
Arrival Constants -- AM peak (7 to 9),(end > 6) & (end < 10),1.85452
48+
Arrival Constants -- Midday 1 (10 to 12),(end > 9) & (end < 13),0.49597
49+
Arrival Constants -- Midday 2 (13 to 14),(end > 12) & (end < 15),0.37855
50+
Arrival Constants -- PM peak 1 (15),end == 15,0
51+
Arrival Constants -- PM peak 2 (16),end == 16,0.27608
52+
Arrival Constants -- PM peak 3 (17),end == 17,0.69959
53+
Arrival Constants -- PM peak 4 (18),end == 18,0.79929
54+
Arrival Constants -- Evening (19 to 21),(end > 18) & (end < 22),0.10357
55+
Arrival Constants -- Late (22 and later),end > 21,0.96596
56+
Duration Constants -- 0 to 2 hours,duration < 3,2.52827
57+
Duration Constants -- 3 to 4 hours,(duration > 2) & (duration < 5),0.91897
58+
Duration Constants -- 5 to 6 hours,(duration > 4) & (duration < 7),0.71855
59+
Duration Constants -- 7 to 8 hours,(duration > 6) & (duration < 9),0.13962
60+
Duration Constants -- 9 hours,duration == 9,0.05571
61+
Duration Constants -- 10 hours,duration == 10,0
62+
Duration Constants -- 11 hours,duration == 11,0.3478
63+
Duration Constants -- 12 to 13 hours,(duration > 11) & (duration < 14),1.00822
64+
Duration Constants -- 14 to 18 hours,(duration > 13) & (duration < 19),1.70186
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
Description,,Expression,Coefficient
2+
subsequet tour must start after previous tour ends,subsequentTour,start < end_of_previous_tour,999
3+
Free-flow round trip auto time shift effects - duration,,roundtrip_auto_time_to_work * duration,0.00474
4+
Shopping tour - departure shift effects,tourPurposeIsShopping,"(tour_type == ""shopping"") * start",0.06015
5+
Shopping tour - duration shift effects,tourPurposeIsShopping,"(tour_type == ""shopping"") * duration",0.1208
6+
Maintenance tour - departure shift effects,tourPurposeIsMaint,"(tour_type == ""oth_maint"") * start",0.1489
7+
Maintenance tour - departure shift effects,tourPurposeIsMaint,"(tour_type == ""oth_maint"") * duration",0.08372
8+
Visit tour - departure shift effects,tourPurposeIsVisit,"(tour_type == ""social"") * start",0.09688
9+
Visit tour - departure shift effects,tourPurposeIsVisit,"(tour_type == ""social"") * duration",0.1638
10+
Eat Out tour - departure shift effects,tourPurposeIsEatOut,"(tour_type == ""eatout"") * start",0.07549
11+
School child age 16+ - departure shift effects,studentDrivingAge,(ptype == 6) * start,0.07266
12+
School child age 16+ - duration shift effects,studentDrivingAge,(ptype == 6) * duration,0.2095
13+
School child age under 16 - departure shift effects,studentNonDrivingAge,(ptype == 7) * start,0.04657
14+
School child age under 16 - duration shift effects,studentNonDrivingAge,(ptype == 7) * duration,0.3272
15+
Destination in CBD - duration shift effects,destinationInCBD,duration,0.1067
16+
Number of mandatory tours - departure shift effects,,personMandatoryTotal * start,0.04673
17+
Number of joint tours - departure shift effects,,personJointTotal * start,0.05208
18+
Number of escort tours - departure shift effects,,personEscortTotal * start,0.02013
19+
Number of idividual non-mandatory tours (excluding escort) - departure shift effects,,personNonMandatoryTotalNoEscort * start,0.03896
20+
First of 2+ tours for same purpose - departure shift effect,firstTour,start,0.2364
21+
subsequent of 2+ tours for same purpose - duration shift effect,subsequentTour,duration,0.1731
22+
Maintenance tour - depart before 7,tourPurposeIsMaint,"(tour_type == ""oth_maint"") & (start < 7)",0.8826
23+
Shopping tour - depart before 8,tourPurposeIsShopping,"(tour_type == ""shopping"" & (start < 8)",1.037
24+
Shopping tour - arrive after 22,,"(tour_type == ""shopping"" & (end > 22)",0.6027
25+
School child under 16 - arrive after 22,studentNonDrivingAge,(ptype == 7) & (end > 22),1.18
26+
University student - arrive after 22,universityStudent,(ptype == 3) & (end > 22),0.5466
27+
Shopping tour - duration < 2 hours,tourPurposeIsShopping,"(tour_type == ""shopping"") & (duration < 2)",0.5168
28+
Discretionary tour - duration < 2 hours,tourPurposeIsDiscr,"(tour_type == ""othdisc"") & (duration < 2)",0.6974
29+
Adult with children in HH - arrive 19 - 21,personIsAdult * ( numChildrenInHH > 0 ),( end > 18 ) * ( end < 22 ),0.336
30+
Mode Choice Logsum,0,mode_choice_logsum,0
31+
Some previously-scheduled tour ends in this departure hour,,prev_tour_end == start,0.4562
32+
Some previously-scheduled tour begins in this arrival hour,,prev_tour_begin == end,0.3992
33+
Adjacent window exists before this departure hour - first tour interaction,firstTour,@@adjWindowBeforeThisHourAlt,0.00844
34+
Adjacent window exists afetr this arrival hour - first tour interaction,firstTour,@@adjWindowAfterThisHourAlt,0.0257
35+
Adjacent window exists before this departure hour - second+ tour interaction,subsequentTour,@@adjWindowBeforeThisHourAlt,0.0593
36+
Adjacent window exists after this arrival hour - second+ tour interaction,subsequentTour,@@adjWindowAfterThisHourAlt,0.02734
37+
Remaining individual non-mandatory tours to be scheduled / number of unscheduled hours,,@@remainingInmToursToAvailableHoursRatioAlt,13.63
38+
Departure Constants -- Early (up to 5),escortTour==0,"(tour_type != ""escort"") & (start < 6)",1.74014
39+
Departure Constants -- AM peak 1 (6),escortTour==0,"(tour_type != ""escort"") & (start == 6)",0.65416
40+
Departure Constants -- AM peak 2 (7),escortTour==0,"(tour_type != ""escort"") & (start == 7)",0.55428
41+
Departure Constants -- AM peak 3 (8),escortTour==0,"(tour_type != ""escort"") & (start == 8)",1.05056
42+
Departure Constants -- AM peak 4 (9),escortTour==0,"(tour_type != ""escort"") & (start == 9)",0.97157
43+
Departure Constants -- Midday 1 (10 to 12),escortTour==0,"(tour_type != ""escort"") & (start > 9) & (start < 13)",0.88199
44+
Departure Constants -- Midday 2 (13 to 15),escortTour==0,"(tour_type != ""escort"") & (start > 12) & (start < 16)",0.4111
45+
Departure Constants -- PM peak (16 to 18),escortTour==0,"(tour_type != ""escort"") & (start > 15) & (start < 19)",0
46+
Departure Constants -- Evening (19 to 21),escortTour==0,"(tour_type != ""escort"") & (start > 18) & (start < 22)",1.85648
47+
Departure Constants -- Late (22 and later),escortTour==0,"(tour_type != ""escort"") & (start > 21)",8.22888
48+
Arrival Constants -- Early (up to 6),escortTour==0,"(tour_type != ""escort"") & (end < 7)",0.05199
49+
Arrival Constants -- AM peak (7 to 9),escortTour==0,"(tour_type != ""escort"") & (end > 6) & (end < 10)",1.81482
50+
Arrival Constants -- Midday 1 (10 to 12),escortTour==0,"(tour_type != ""escort"") & (end > 9) & (end < 13)",0.00037
51+
Arrival Constants -- Midday 2 (13 to 14),escortTour==0,"(tour_type != ""escort"") & (end > 12) & (end < 15)",0.53212
52+
Arrival Constants -- PM peak 1 (15),escortTour==0,"(tour_type != ""escort"") & (end == 15)",0.62848
53+
Arrival Constants -- PM peak 2 (16),escortTour==0,"(tour_type != ""escort"") & (end == 16)",0.65052
54+
Arrival Constants -- PM peak 3 (17),escortTour==0,"(tour_type != ""escort"") & (end == 17)",0.40289
55+
Arrival Constants -- PM peak 4 (18),escortTour==0,"(tour_type != ""escort"") & (end == 18)",0.15421
56+
Arrival Constants -- Evening (19 to 21),escortTour==0,"(tour_type != ""escort"") & (end > 18) & (end < 22)",0
57+
Arrival Constants -- Late (22 and later),escortTour==0,"(tour_type != ""escort"") & (end > 21)",0.86667
58+
Duration Constants -- 0 to 1 hours,escortTour==0,"(tour_type != ""escort"") & (duration < 2)",0
59+
Duration Constants -- 2 to 3 hours,escortTour==0,"(tour_type != ""escort"") & (duration > 1) & (duration < 4)",0.05139
60+
Duration Constants -- 4 to 5 hours,escortTour==0,"(tour_type != ""escort"") & (duration > 3) & (duration < 6)",0.59395
61+
Duration Constants -- 6 to 7 hours,escortTour==0,"(tour_type != ""escort"") & (duration > 5) & (duration < 8)",0.95116
62+
Duration Constants -- 8 to 10 hours,escortTour==0,"(tour_type != ""escort"") & (duration > 7) & (duration < 11)",0.82811
63+
Duration Constants -- 11 to 13 hours,escortTour==0,"(tour_type != ""escort"") & (duration > 10) & (duration < 14)",0.95564
64+
Duration Constants -- 14 to 18 hours,escortTour==0,"(tour_type != ""escort"") & (duration > 13) & (duration < 19)",1.04258
65+
Escort Tour Departure Constants -- Early (up to 5),escortTour==1,"(tour_type == ""escort"") & (start < 6)",1.74014
66+
Escort Tour Departure Constants -- AM peak 1 (6),escortTour==1,"(tour_type == ""escort"") & (start == 6)",1.11236
67+
Escort Tour Departure Constants -- AM peak 2 (7),escortTour==1,"(tour_type == ""escort"") & (start == 7)",0.69879
68+
Escort Tour Departure Constants -- AM peak 3 (8),escortTour==1,"(tour_type == ""escort"") & (start == 8)",1.19627
69+
Escort Tour Departure Constants -- AM peak 4 (9),escortTour==1,"(tour_type == ""escort"") & (start == 9)",0.22526
70+
Escort Tour Departure Constants -- Midday 1 (10 to 12),escortTour==1,"(tour_type == ""escort"") & (start > 9) & (start < 13)",0.02866
71+
Escort Tour Departure Constants -- Midday 2 (13 to 15),escortTour==1,"(tour_type == ""escort"") & (start > 12) & (start < 16)",0
72+
Escort Tour Departure Constants -- PM peak (16 to 18),escortTour==1,"(tour_type == ""escort"") & (start > 15) & (start < 19)",1.18014
73+
Escort Tour Departure Constants -- Evening (19 to 21),escortTour==1,"(tour_type == ""escort"") & (start > 18) & (start < 22)",3.94873
74+
Escort Tour Departure Constants -- Late (22 and later),escortTour==1,"(tour_type == ""escort"") & (start > 21)",8.22888
75+
Escort Tour Arrival Constants -- Early (up to 6),escortTour==1,"(tour_type == ""escort"") & (end < 7)",0
76+
Escort Tour Arrival Constants -- AM peak (7 to 9),escortTour==1,"(tour_type == ""escort"") & (end > 6) & (end < 10)",0
77+
Escort Tour Arrival Constants -- Midday 1 (10 to 12),escortTour==1,"(tour_type == ""escort"") & (end > 9) & (end < 13)",0
78+
Escort Tour Arrival Constants -- Midday 2 (13 to 14),escortTour==1,"(tour_type == ""escort"") & (end > 12) & (end < 15)",0
79+
Escort Tour Arrival Constants -- PM peak 1 (15),escortTour==1,"(tour_type == ""escort"") & (end == 15)",0
80+
Escort Tour Arrival Constants -- PM peak 2 (16),escortTour==1,"(tour_type == ""escort"") & (end == 16)",0
81+
Escort Tour Arrival Constants -- PM peak 3 (17),escortTour==1,"(tour_type == ""escort"") & (end == 17)",0
82+
Escort Tour Arrival Constants -- PM peak 4 (18),escortTour==1,"(tour_type == ""escort"") & (end == 18)",0
83+
Escort Tour Arrival Constants -- Evening (19 to 21),escortTour==1,"(tour_type == ""escort"") & (end > 18) & (end < 22)",0.53692
84+
Escort Tour Arrival Constants -- Late (22 and later),escortTour==1,"(tour_type == ""escort"") & (end > 21)",1.00829
85+
Escort Tour Duration Constants -- 0 to 1 hours,escortTour==1,"(tour_type == ""escort"") & (duration < 2)",0
86+
Escort Tour Duration Constants -- 2 to 3 hours,escortTour==1,"(tour_type == ""escort"") & (duration > 1) & (duration < 4)",2.04201
87+
Escort Tour Duration Constants -- 4 to 5 hours,escortTour==1,"(tour_type == ""escort"") & (duration > 3) & (duration < 6)",2.88029
88+
Escort Tour Duration Constants -- 6 to 7 hours,escortTour==1,"(tour_type == ""escort"") & (duration > 5) & (duration < 8)",2.97353
89+
Escort Tour Duration Constants -- 8 to 10 hours,escortTour==1,"(tour_type == ""escort"") & (duration > 7) & (duration < 11)",3.02021
90+
Escort Tour Duration Constants -- 11 to 13 hours,escortTour==1,"(tour_type == ""escort"") & (duration > 10) & (duration < 14)",2.97436
91+
Escort Tour Duration Constants -- 14 to 18 hours,escortTour==1,"(tour_type == ""escort"") & (duration > 13) & (duration < 19)",2.50745

0 commit comments

Comments
 (0)