Skip to content

Commit

Permalink
Fix airport taxi/ridehail cost (use maximum instead of minimum)
Browse files Browse the repository at this point in the history
  • Loading branch information
aber-sandag committed May 20, 2024
1 parent 4de8bf3 commit 9c1403d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions src/asim/configs/common_airport/trip_mode_choice.csv
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ util_rental_time,rental car time,@rentalCarInVehicleTime,,,,,,,coef_ivt,,,,,,,,,
util_rental_walk,rental car walk time,@rentalCarWalkTime,,,,,,,coef_walk,,,,,,,,,,,,,,,,,,,,,
util_rental_wait,rental car wait time,@rentalCarWaitTime,,,,,,,coef_wait,,,,,,,,,,,,,,,,,,,,,
util_ridehail1_ivt,IVT to ridehail location 1,@df['partySizeRideHailLocation1AutoIVT'],,,,,,,,,,coef_ivt,,,,,,,,,,,,,,,,,,
util_ridehail1_cost,Driving cost to ridehail location 1,"@(np.minimum((df['partySizeRideHailLocation1AutoIVT']*ridehailCostPerMinute + df['partySizeRideHailLocation1AutoDist']*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 + df['partySizeRideHailLocation1AutoToll'])",,,,,,,,,,coef_c_cost,,,,,,,,,,,,,,,,,,
util_ridehail1_cost,Driving cost to ridehail location 1,"@(np.maximum((df['partySizeRideHailLocation1AutoIVT']*ridehailCostPerMinute + df['partySizeRideHailLocation1AutoDist']*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 + df['partySizeRideHailLocation1AutoToll'])",,,,,,,,,,coef_c_cost,,,,,,,,,,,,,,,,,,
util_ridehail2_ivt,IVT to ridehail location 2,@df['partySizeRideHailLocation2AutoIVT'],,,,,,,,,,,coef_ivt,,,,,,,,,,,,,,,,,
util_ridehail2_cost,Driving cost to ridehail location 2,"@(np.minimum((df['partySizeRideHailLocation2AutoIVT']*ridehailCostPerMinute + df['partySizeRideHailLocation2AutoDist']*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 + df['partySizeRideHailLocation2AutoToll'])",,,,,,,,,,,coef_c_cost,,,,,,,,,,,,,,,,,
util_ridehail2_cost,Driving cost to ridehail location 2,"@(np.maximum((df['partySizeRideHailLocation2AutoIVT']*ridehailCostPerMinute + df['partySizeRideHailLocation2AutoDist']*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 + df['partySizeRideHailLocation2AutoToll'])",,,,,,,,,,,coef_c_cost,,,,,,,,,,,,,,,,,
utile_ridehail_wait,ridehail wait,@ridehailWaitTime,,,,,,,,,,coef_wait,coef_wait,,,,,,,,,,,,,,,,,
util_ridehail1_access_walk,Ridehail location 1 walk access time,@ridehailLocation1AccessWalkTime,,,,,,,,,,coef_walk,,,,,,,,,,,,,,,,,,
util_ridehail2_access_walk,Ridehail location 2 walk access time,@ridehailLocation2AccessWalkTime,,,,,,,,,,,coef_walk,,,,,,,,,,,,,,,,,
util_taxi1_ivt,IVT to taxi location 1,@df['partySizeRideHailLocation1AutoIVT'],,,,,,,,,,,,coef_ivt,,,,,,,,,,,,,,,,
util_taxi1_cost,Cost to Taxi location 1,"@(np.minimum((df['partySizeRideHailLocation1AutoIVT']*taxiCostPerMinute + df['partySizeRideHailLocation1AutoDist']*taxiCostPerMile + taxiCostInitial),taxiCostMinimum) * 100 + df['partySizeRideHailLocation1AutoToll'])",,,,,,,,,,,,coef_c_cost,,,,,,,,,,,,,,,,
util_taxi1_cost,Cost to Taxi location 1,"@(np.maximum((df['partySizeRideHailLocation1AutoIVT']*taxiCostPerMinute + df['partySizeRideHailLocation1AutoDist']*taxiCostPerMile + taxiCostInitial),taxiCostMinimum) * 100 + df['partySizeRideHailLocation1AutoToll'])",,,,,,,,,,,,coef_c_cost,,,,,,,,,,,,,,,,
util_taxi2_ivt,IVT to taxi location 2,@df['partySizeRideHailLocation2AutoIVT'],,,,,,,,,,,,,coef_ivt,,,,,,,,,,,,,,,
util_taxi2_cost,Cost to Taxi location 2,"@(np.minimum((df['partySizeRideHailLocation2AutoIVT']*taxiCostPerMinute + df['partySizeRideHailLocation2AutoDist']*taxiCostPerMile + taxiCostInitial),taxiCostMinimum) * 100 + df['partySizeRideHailLocation2AutoToll'])",,,,,,,,,,,,,coef_c_cost,,,,,,,,,,,,,,,
util_taxi2_cost,Cost to Taxi location 2,"@(np.maximum((df['partySizeRideHailLocation2AutoIVT']*taxiCostPerMinute + df['partySizeRideHailLocation2AutoDist']*taxiCostPerMile + taxiCostInitial),taxiCostMinimum) * 100 + df['partySizeRideHailLocation2AutoToll'])",,,,,,,,,,,,,coef_c_cost,,,,,,,,,,,,,,,
utile_taxi_wait,Taxi wait time,@taxiWaitTime,,,,,,,,,,,,coef_wait,coef_wait,,,,,,,,,,,,,,,
util_taxi1_access_walk,Taxi location 1 access time,@taxiLocation1AccessWalkTime,,,,,,,,,,,,coef_walk,,,,,,,,,,,,,,,,
util_taxi2_access_walk,Taxi location 2 access time,@taxiLocation2AccessWalkTime,,,,,,,,,,,,,coef_walk,,,,,,,,,,,,,,,
Expand Down Expand Up @@ -243,7 +243,7 @@ util_TNC_LOC_number_of_transfers,TNC_LOC - number of transfers,"@(-23+23*np.exp(
util_TNC_LOC_Fare,TNC_MIX - Fare,@(odt_skims['TNCOUT_LOC_FARE']) * df.party_size*100*~df.outbound,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,,
util_TNC_LOC_TNC_time,TNC_LOC - TNC time,@odt_skims['TNCOUT_LOC_ACC']*~df.outbound*c_drive,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,,
util_TNC_LOC_TNC_wait_time,TNC_LOC - TNC wait time,@ridehailWaitTime,,,,,,,,,,,,,,,,,,,,,,,,,coef_wait,,,
util_TNC_LOC_TNC_fare,TNC_LOC - TNC fare,"@~df.outbound * (np.minimum((odt_skims['TNCOUT_LOC_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_LOC_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,,
util_TNC_LOC_TNC_fare,TNC_LOC - TNC fare,"@~df.outbound * (np.maximum((odt_skims['TNCOUT_LOC_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_LOC_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,,
util_TNC_LOC_Walk_egress_time_(at_attraction_end),TNC_LOC - Walk egress time (at attraction end),@df.dest_local_time *~df.outbound*c_walk,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,,
util_TNC_LOC_Walk_other_time,TNC_LOC - Walk other time,@odt_skims['TNCOUT_LOC_XFERWALK'] *~df.outbound*c_waux,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,,
util_TNCIN_LOC_Unavailable,TNCIN_LOC - Unavailable,tnc_local_available_inbound == False,,,,,,,,,,,,,,,,,,,,,,,,,-999,,,
Expand All @@ -253,7 +253,7 @@ util_TNCIN_LOC_transfer_wait_time,TNC_LOC - transfer wait time,@odt_skims['TNCIN
util_TNCIN_LOC_number_of_transfers,TNC_LOC - number of transfers,"@(-23+23*np.exp(0.414*np.clip(odt_skims['TNCIN_LOC_XFERS'], a_min=None,a_max=4))) *df.outbound* 2",,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,,
util_TNCIN_LOC_Fare,TNC_MIX - Fare,@(odt_skims['TNCIN_LOC_FARE']) * df.party_size*100*df.outbound,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,,
util_TNCIN_LOC_TNC_time,TNC_LOC - TNC time,@odt_skims['TNCIN_LOC_EGR'] *df.outbound*c_drive,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,,
util_TNCIN_LOC_TNC_fare,TNCIN_LOC - TNC fare,"@df.outbound * (np.minimum((odt_skims['TNCIN_LOC_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_LOC_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,,
util_TNCIN_LOC_TNC_fare,TNCIN_LOC - TNC fare,"@df.outbound * (np.maximum((odt_skims['TNCIN_LOC_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_LOC_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,,
util_TNCIN_LOC_Walk_egress_time_(at_attraction_end),TNC_LOC - Walk egress time (at attraction end),@df.origin_local_time *df.outbound*c_walk,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,,
util_TNCIN_LOC_Walk_other_time,TNC_LOC - Walk other time,@odt_skims['TNCIN_LOC_XFERWALK'] *df.outbound*c_waux,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,,
##,TNC_PRM,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Expand All @@ -269,7 +269,7 @@ util_TNC_PRM_number_of_transfers,TNC_PRM - number of transfers,"@(-23+23*np.exp(
util_TNC_PRM_Fare,TNC_PRM - Fare,@(odt_skims['TNCOUT_PRM_FARE']) * df.party_size*100*~df.outbound,,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,
util_TNC_PRM_TNC_time,TNC_PRM - TNC time,@(odt_skims['TNCOUT_PRM_ACC'])*~df.outbound *c_drive,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,
util_TNC_PRM_TNC_wait_time,TNC_PRM - TNC wait time,@ridehailWaitTime,,,,,,,,,,,,,,,,,,,,,,,,,,coef_wait,,
util_TNC_PRM_TNC_fare,TNC_PRM - TNC fare,"@~df.outbound * (np.minimum((odt_skims['TNCOUT_PRM_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_PRM_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,
util_TNC_PRM_TNC_fare,TNC_PRM - TNC fare,"@~df.outbound * (np.maximum((odt_skims['TNCOUT_PRM_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_PRM_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,
util_TNC_PRM_Walk_egress_time_(at_attraction_end),TNC_PRM - Walk egress time (at attraction end),@(df.dest_prm_time)*~df.outbound *c_walk,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,
util_TNC_PRM_Walk_other_time,TNC_PRM - Walk other time,@(odt_skims['TNCOUT_PRM_XFERWALK'])*~df.outbound*c_waux,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,
util_TNC_MIX_inbound_Unavailable,TNC_MIX inbound - Unavailable,tnc_premium_available_inbound == False,,,,,,,,,,,,,,,,,,,,,,,,,,-999,,
Expand All @@ -283,7 +283,7 @@ util_TNCIN_PRM_transfer_wait_time,TNCIN_PRM - transfer wait time,@(odt_skims['TN
util_TNCIN_PRM_number_of_transfers,TNCIN_PRM - number of transfers,"@(-23+23*np.exp(0.414*np.clip(odt_skims['TNCIN_PRM_XFERS'], a_min=None,a_max=4)))*df.outbound*2",,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,
util_TNCIN_PRM_Fare,TNCIN_PRM - Fare,@(odt_skims['TNCIN_PRM_FARE']) * df.party_size*100*df.outbound,,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,
util_TNCIN_PRM_TNCIN_time,TNCIN_PRM - TNC time,@odt_skims['TNCIN_PRM_EGR']*df.outbound*c_drive,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,
util_TNCIN_PRM_TNCIN_fare,TNCIN_PRM - TNC fare,"@df.outbound * (np.minimum((odt_skims['TNCIN_PRM_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_PRM_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,
util_TNCIN_PRM_TNCIN_fare,TNCIN_PRM - TNC fare,"@df.outbound * (np.maximum((odt_skims['TNCIN_PRM_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_PRM_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,,
util_TNCIN_PRM_Walk_access_time_(at_attraction_end),TNCIN_PRM - Walk access time (at attraction end),@(df.origin_prm_time)*df.outbound*c_walk ,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,
util_TNCIN_PRM_Walk_other_time,TNCIN_PRM - Walk other time,@(odt_skims['TNCOUT_PRM_XFERWALK'])*df.outbound*c_waux ,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,,
##,TNC_MIX,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Expand All @@ -299,7 +299,7 @@ util_TNC_MIX_number_of_transfers,TNC_MIX - number of transfers,"@(-23+23*np.exp(
util_TNC_MIX_TNC_time,TNC_MIX - TNC time,@(odt_skims['TNCOUT_MIX_ACC'])*~df.outbound*c_drive,,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,
util_TNC_MIX_Fare,TNC_MIX - Fare,@(odt_skims['TNCOUT_MIX_FARE']) * df.party_size*100*~df.outbound,,,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,
util_TNC_MIX_TNC_wait_time,TNC_MIX - TNC wait time,@ridehailWaitTime,,,,,,,,,,,,,,,,,,,,,,,,,,,coef_wait,
util_TNC_MIX_TNC_fare,TNC_MIX - TNC fare,"@~df.outbound * (np.minimum((odt_skims['TNCOUT_MIX_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_MIX_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,
util_TNC_MIX_TNC_fare,TNC_MIX - TNC fare,"@~df.outbound * (np.maximum((odt_skims['TNCOUT_MIX_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_MIX_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,
util_TNC_MIX_Walk_egress_time_(at_attraction_end),TNC_MIX - Walk egress time (at attraction end),@(df.dest_mix_time)*~df.outbound*c_walk ,,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,
util_TNC_MIX_Walk_other_time,TNC_MIX - Walk other time,@(odt_skims['TNCOUT_MIX_XFERWALK'])*~df.outbound*c_waux ,,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,
util_TNC_MIX_inbound_Unavailable,TNC_MIX inbound - Unavailable,tnc_mix_available_inbound == False,,,,,,,,,,,,,,,,,,,,,,,,,,,-999,
Expand All @@ -313,6 +313,6 @@ util_TNCIN_MIX_transfer_wait_time,TNCIN_MIX - transfer wait time,@(odt_skims['TN
util_TNCIN_MIX_number_of_transfers,TNCIN_MIX - number of transfers,"@(-23+23*np.exp(0.414*np.clip(odt_skims['TNCIN_MIX_XFERS'], a_min=None,a_max=4)))*df.outbound*2",,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,
util_TNCIN_MIX_Fare,TNC_MIX - Fare,@(odt_skims['TNCIN_MIX_FARE']) * df.party_size*100*df.outbound,,,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,
util_TNCIN_MIX_TNCIN_time,TNCIN_MIX - TNC time,@(odt_skims['TNCIN_MIX_EGR'])*df.outbound*c_drive,,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,
util_TNCIN_MIX_TNC_fare,TNCIN_MIX - TNC fare,"@df.outbound * (np.minimum((odt_skims['TNCIN_MIX_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_MIX_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,
util_TNCIN_MIX_TNC_fare,TNCIN_MIX - TNC fare,"@df.outbound * (np.maximum((odt_skims['TNCIN_MIX_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_MIX_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum)) * 100",,,,,,,,,,,,,,,,,,,,,,,,,,,coef_c_cost,
util_TNCIN_MIX_Walk_access_time_(at_attraction_end),TNCIN_MIX - Walk access time (at attraction end),@(df.origin_mix_time)*df.outbound*c_walk ,,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,
util_TNCIN_MIX_Walk_other_time,TNCIN_MIX - Walk other time,@(odt_skims['TNCIN_MIX_XFERWALK'])*df.outbound*c_waux,,,,,,,,,,,,,,,,,,,,,,,,,,,coef_ivt,
20 changes: 10 additions & 10 deletions src/asim/configs/common_airport/trip_mode_choice_annotate_trips.csv
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ Description,Target,Expression
,cost_parking,"_cost_parking + df.trip_mode.isin(['PARK_ESCORT']) * (parkEscortCostHour*100 / (_tour_participants + 1))"
#,,
,_cost_fare_drive,0
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['RIDEHAIL_LOC1']) * (np.minimum((df['partySizeRideHailLocation1AutoIVT']*ridehailCostPerMinute + df['partySizeRideHailLocation1AutoDist']*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100) / _tour_participants"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['RIDEHAIL_LOC2']) * (np.minimum((df['partySizeRideHailLocation2AutoIVT']*ridehailCostPerMinute + df['partySizeRideHailLocation2AutoDist']*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100) / _tour_participants"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TAXI_LOC1']) * (np.minimum((df['partySizeRideHailLocation1AutoIVT']*taxiCostPerMinute + df['partySizeRideHailLocation1AutoDist']*taxiCostPerMile + taxiCostInitial),taxiCostMinimum) * 100) / _tour_participants"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TAXI_LOC2']) * (np.minimum((df['partySizeRideHailLocation2AutoIVT']*taxiCostPerMinute + df['partySizeRideHailLocation2AutoDist']*taxiCostPerMile + taxiCostInitial),taxiCostMinimum) * 100) / _tour_participants"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_LOC']) * ~df.outbound * (np.minimum((odt_skims['TNCOUT_LOC_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_LOC_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_LOC']) * df.outbound * (np.minimum((odt_skims['TNCIN_LOC_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_LOC_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_PRM']) * ~df.outbound * (np.minimum((odt_skims['TNCOUT_PRM_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_PRM_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_PRM']) * df.outbound * (np.minimum((odt_skims['TNCIN_PRM_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_PRM_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_MIX']) * ~df.outbound * (np.minimum((odt_skims['TNCOUT_MIX_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_MIX_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_MIX']) * df.outbound * (np.minimum((odt_skims['TNCIN_MIX_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_MIX_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['RIDEHAIL_LOC1']) * (np.maximum((df['partySizeRideHailLocation1AutoIVT']*ridehailCostPerMinute + df['partySizeRideHailLocation1AutoDist']*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100) / _tour_participants"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['RIDEHAIL_LOC2']) * (np.maximum((df['partySizeRideHailLocation2AutoIVT']*ridehailCostPerMinute + df['partySizeRideHailLocation2AutoDist']*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100) / _tour_participants"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TAXI_LOC1']) * (np.maximum((df['partySizeRideHailLocation1AutoIVT']*taxiCostPerMinute + df['partySizeRideHailLocation1AutoDist']*taxiCostPerMile + taxiCostInitial),taxiCostMinimum) * 100) / _tour_participants"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TAXI_LOC2']) * (np.maximum((df['partySizeRideHailLocation2AutoIVT']*taxiCostPerMinute + df['partySizeRideHailLocation2AutoDist']*taxiCostPerMile + taxiCostInitial),taxiCostMinimum) * 100) / _tour_participants"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_LOC']) * ~df.outbound * (np.maximum((odt_skims['TNCOUT_LOC_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_LOC_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_LOC']) * df.outbound * (np.maximum((odt_skims['TNCIN_LOC_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_LOC_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_PRM']) * ~df.outbound * (np.maximum((odt_skims['TNCOUT_PRM_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_PRM_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_PRM']) * df.outbound * (np.maximum((odt_skims['TNCIN_PRM_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_PRM_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,_cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_MIX']) * ~df.outbound * (np.maximum((odt_skims['TNCOUT_MIX_ACC']*ridehailCostPerMinute + (odt_skims['TNCOUT_MIX_ACC']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
,cost_fare_drive,"_cost_fare_drive + df.trip_mode.isin(['TNC_MIX']) * df.outbound * (np.maximum((odt_skims['TNCIN_MIX_EGR']*ridehailCostPerMinute + (odt_skims['TNCIN_MIX_EGR']/60 * driveSpeed)*ridehailCostPerMile + ridehailCostInitial),ridehailCostMinimum) * 100 / _tour_participants)"
#,,
,cost_rental,"df.trip_mode.isin(['RENTAL']) * ((df['nights']*rentalCostPerDay + rentalCarAccessCost + rentalCostPerDay)*100) / _tour_participants"
#,,
Expand Down

0 comments on commit 9c1403d

Please sign in to comment.