Skip to content

Commit

Permalink
filling in basic skeleton of non-mandatory tour scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
fscottfoti committed Mar 3, 2015
1 parent bb43936 commit 522f35d
Show file tree
Hide file tree
Showing 5 changed files with 911 additions and 373 deletions.
1 change: 0 additions & 1 deletion example/configs/tour_departure_and_duration.csv

This file was deleted.

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

0 comments on commit 522f35d

Please sign in to comment.