Skip to content

Commit

Permalink
Merge pull request #11 from RSGInc/SeaCastDevelopmentFromSharedModel
Browse files Browse the repository at this point in the history
Sea cast development from shared model
  • Loading branch information
goreaditya authored Sep 17, 2024
2 parents b0da6e3 + a6169d8 commit 038961d
Show file tree
Hide file tree
Showing 222 changed files with 1,406,657 additions and 44,621 deletions.
Binary file added daysim/BKR.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/BKR.dll.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
Binary file modified daysim/BKR.pdb
Binary file not shown.
Binary file added daysim/Copenhagen.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/Copenhagen.dll.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
Binary file modified daysim/Copenhagen.pdb
Binary file not shown.
Binary file modified daysim/DVRPC.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/DVRPC.dll.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
Binary file modified daysim/DVRPC.pdb
Binary file not shown.
Binary file modified daysim/DaySim.Framework.dll
Binary file not shown.
Binary file modified daysim/DaySim.Framework.pdb
Binary file not shown.
Binary file modified daysim/DaySim.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/DaySim.exe.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup>
<runtime>
<gcAllowVeryLargeObjects enabled="true"/>
<gcServer enabled="true"/>
Expand Down
Binary file modified daysim/DaySim.pdb
Binary file not shown.
Binary file modified daysim/DaySimController.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/DaySimController.exe.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup>
<runtime>
<gcServer enabled="true"/>
<gcConcurrent enabled="false"/>
Expand Down
Binary file modified daysim/DaySimController.pdb
Binary file not shown.
Binary file added daysim/Fresno.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/Fresno.dll.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
Binary file modified daysim/Fresno.pdb
Binary file not shown.
Binary file modified daysim/JAX.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/JAX.dll.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
Binary file modified daysim/JAX.pdb
Binary file not shown.
Binary file modified daysim/Nashville.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/Nashville.dll.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
Binary file modified daysim/Nashville.pdb
Binary file not shown.
Binary file modified daysim/PSRC.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/PSRC.dll.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
Binary file modified daysim/PSRC.pdb
Binary file not shown.
Binary file modified daysim/SFCTA.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion daysim/SFCTA.dll.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
Binary file modified daysim/SFCTA.pdb
Binary file not shown.
10 changes: 5 additions & 5 deletions daysim/daysim_configuration.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NBatches = 96

# PSRC and HDF5
ShouldRunInputTester = false
HDF5Filename = ..\..\scenario\landuse\hh_and_persons.h5
HDF5Filename = hh_and_persons_sampled.h5
HDF5Path = daysim_outputs.h5
ReadHDF5 = true
WriteTripsToHDF5 = true
Expand Down Expand Up @@ -261,7 +261,7 @@ PathImpedance_AutoTolledPathConstant = 0.0
PathImpedance_AvailablePathUpperTimeLimit = 200.0
PathImpedance_TransitLocalBusPathConstant = 0.00
PathImpedance_TransitPremiumBusPathConstant = 0.0
PathImpedance_TransitLightRailPathConstant = 0.0
PathImpedance_TransitLightRailPathConstant = 0.035
PathImpedance_TransitCommuterRailPathConstant = 0.0
PathImpedance_TransitFerryPathConstant = 0.0
PathImpedance_TransitUsePathTypeSpecificTime = true
Expand Down Expand Up @@ -429,9 +429,9 @@ WriteResidentialBufferDensityToOwnOrRent = true
PaidRideshare_UseEstimatedInsteadOfAssertedCoefficients = true

# Telecommute
UseDiaryVsSmartphoneBiasVariables = true
UseProxyBiasVariables = true
UseWorkAtHomeModelAndVariables = true
UseDiaryVsSmartphoneBiasVariables = false
UseProxyBiasVariables = false
UseWorkAtHomeModelAndVariables = false
WorkAtHome_DurationThreshold = 2.5
WorkAtHome_AlternativeSpecificConstant = -1.918
WorkAtHome_PartTimeWorkerCoefficient = -0.038
Expand Down
4 changes: 2 additions & 2 deletions daysim_configuration_template.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NBatches = 96

# PSRC and HDF5
ShouldRunInputTester = false
HDF5Filename = ..\..\scenario\landuse\hh_and_persons.h5
HDF5Filename = hh_and_persons_sampled.h5
HDF5Path = daysim_outputs.h5
ReadHDF5 = true
WriteTripsToHDF5 = true
Expand Down Expand Up @@ -261,7 +261,7 @@ PathImpedance_AutoTolledPathConstant = 0.0
PathImpedance_AvailablePathUpperTimeLimit = 200.0
PathImpedance_TransitLocalBusPathConstant = 0.00
PathImpedance_TransitPremiumBusPathConstant = 0.0
PathImpedance_TransitLightRailPathConstant = 0.0
PathImpedance_TransitLightRailPathConstant = 0.035
PathImpedance_TransitCommuterRailPathConstant = 0.0
PathImpedance_TransitFerryPathConstant = 0.0
PathImpedance_TransitUsePathTypeSpecificTime = true
Expand Down
229 changes: 229 additions & 0 deletions emme_configuration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
from input_configuration import *

###################################
# Assignment Criteria
###################################
log_file_name = 'outputs/logs/skims_log.txt'
STOP_THRESHOLD = 0.026 # Global convergence criteria
parallel_instances = 12 # Number of simultaneous parallel processes. Must be a factor of 12.
max_iter = 50 # Max number of iterations for assignment
relative_gap = 0.0001 # Assignment Convergence Criteria
best_relative_gap = 0.00 # Set to zero, only using relative gap as criteria
normalized_gap = 0.00 # See above

pop_sample = [1, 1, 1, 1, 1, 1, 1, 1]
# Assignment Iterations (must be same length as pop_sample:
max_iterations_list = [10, 100, 100, 100, 100, 100, 100, 100]
min_pop_sample_convergence_test = 10
shadow_work = [2, 1, 1, 1]
shadow_con = 30 #%RMSE for shadow pricing to consider being converged

###################################
# Zone Defintions
###################################
MIN_EXTERNAL = 3733 #zone of externals (subtract 1 because numpy is zero-based)
MAX_EXTERNAL = 3750 #zone of externals (subtract 1 because numpy is zero-based)
HIGH_TAZ = 2970
LOW_PNR = 3751
HIGH_PNR = 4000
SEATAC = 1 # Zone number for airport terminal
AIPORT_EMP_PARKING_LOT = 28 # Zone number for airport employee parking lot
EXTERNALS_DONT_GROW=[3733]

#################################
# DaySim Airport Trip
#################################
PARKING_SAMPLE_SEED = 1212
PARKING_ZONE_SAMPLE_RATE = 0.7

#################################
# Airport Model Settings
#################################

airport_output_dir = 'outputs/airport'

#####################################
# Network Import Settings
####################################
master_project = 'LoadTripTables'
project = 'Projects/LoadTripTables/LoadTripTables.emp'
network_summary_project = 'Projects/LoadTripTables/LoadTripTables.emp'
tod_networks = ['am', 'md', 'pm', 'ev', 'ni']
sound_cast_net_dict = {'5to6' : 'am', '6to7' : 'am', '7to8' : 'am', '8to9' : 'am',
'9to10' : 'md', '10to14' : 'md', '14to15' : 'md',
'15to16' : 'pm', '16to17' : 'pm', '17to18' : 'pm',
'18to20' : 'ev', '20to5' : 'ni'}

transit_tod_list = ['5to6', '6to7', '7to8', '8to9', '9to10', '10to14', '14to15', '15to16', '16to17', '17to18', '18to20']
extra_attributes_dict = {'@tveh' : 'total vehicles',
'@mveh' : 'medium trucks',
'@hveh' : 'heavy trucks',
'@dveh' : 'delivery trucks',
'@vmt' : 'vmt',
'@vht' : 'vht',
'@trnv' : 'buses in auto equivalents',
'@ovol' : 'observed volume',
'@bveh' : 'number of buses'}

unit_of_length = 'mi' # units of miles in Emme
rdly_factor = .5
coord_unit_length = 0.0001894 # network links measured in feet, converted to miles (1/5280)
main_log_file = 'seacast_log.txt'

link_extra_attributes = ['@facilitytype', '@countyid', '@countid', '@corridorid', '@is_managed','@bkfac','@upslp', '@toll1', '@toll2', '@toll3', '@trkc1', '@trkc2', '@trkc3', '@fgts', '@ttf', '@subarea_flag', '@concurrency', '@truck_route']
node_extra_attributes = ['@lr_walk','@hdwfr','@wait','@invt']
transit_line_extra_attributes = ['@transittype']

# VOT ranges for assignment classes
vot_1_max = 14.32 # VOT for User Class 1 < vot_1_max
vot_2_max = 26.64 # vot_1_max < VOT for User Class 2 < vot_2_max

# TNC fraction to assign
# Based on survey data from SANDAG for now
tnc_occupancy = {
11: 1, # non-AV, 1 passenger (+ driver)
12: 0.5, # non-AV, 2 passengers
13: 0.3, # non-AV 3.33 passengers on average
21: 1, # AV, 1 passenger
22: 0.5, # AV, 2 passenger
23: 0.4 # AV, 3+ passengers
}

feedback_list = ['Banks/7to8/emmebank','Banks/17to18/emmebank']

# Time of day periods
tods = ['5to6', '6to7', '7to8', '8to9', '9to10', '10to14', '14to15', '15to16', '16to17', '17to18', '18to20', '20to5' ]
project_list = ['Projects/' + tod + '/' + tod + '.emp' for tod in tods]

emme_matrix_subgroups = ['Highway', 'Walk', 'Bike', 'Transit', 'LightRail','Ferry','CommuterRail','PassengerFerry']

# Skim for time, cost
skim_matrix_designation_all_tods = ['t','c'] # Time (t) and direct cost (c) skims
skim_matrix_designation_limited = ['d'] # Distance skim

# Skim for distance for only these time periods
distance_skim_tod = ['5to6', '7to8', '10to14', '17to18', '18to20']
generalized_cost_tod = ['5to6', '7to8', '10to14', '17to18', '18to20']
gc_skims = {'medium_trucks' : 'metrk', 'heavy_trucks' : 'hvtrk', 'sov' : 'sov_inc2', 'delivery_trucks': 'deltrk'}
truck_trips_h5_filename = 'outputs/trucks/truck_trips.h5'

# Bike/Walk Skims
bike_walk_skim_tod = ['5to6']

# Transit Inputs:
transit_skim_tod = ['5to6', '6to7', '7to8', '8to9', '9to10', '10to14', '14to15', '15to16', '16to17', '17to18', '18to20']
transit_submodes = ['b', 'c', 'f', 'p', 'r']

transit_node_attributes = {'headway_fraction' : {'name' : '@hdwfr', 'init_value': .5},
'wait_time_perception' : {'name' : '@wait', 'init_value': 2},
'in_vehicle_time' : {'name' : '@invt', 'init_value': 1}}

transit_tod = {'5to6' : {'4k_tp' : 'am', 'num_of_hours' : 1},
'6to7' : {'4k_tp' : 'am', 'num_of_hours' : 1},
'7to8' : {'4k_tp' : 'am', 'num_of_hours' : 1},
'8to9' : {'4k_tp' : 'am', 'num_of_hours' : 1},
'9to10' : {'4k_tp' : 'md', 'num_of_hours' : 1},
'10to14' : {'4k_tp' : 'md', 'num_of_hours' : 4},
'14to15' : {'4k_tp' : 'md', 'num_of_hours' : 1},
'15to16' : {'4k_tp' : 'pm', 'num_of_hours' : 1},
'16to17' : {'4k_tp' : 'pm', 'num_of_hours' : 1},
'17to18' : {'4k_tp' : 'pm', 'num_of_hours' : 1},
'18to20' : {'4k_tp' : 'ev', 'num_of_hours' : 2}}

# Transit Fare:
zone_file = 'inputs/scenario/networks/fares/transit_fare_zones.grt'
fare_matrices_tod = ['6to7', '9to10']

# Intrazonals
intrazonal_dict = {'distance' : 'izdist', 'time auto' : 'izatim', 'time bike' : 'izbtim', 'time walk' : 'izwtim'}
taz_area_file = 'inputs/model/intrazonals/taz_acres.in'
origin_tt_file = 'inputs/model/intrazonals/origin_tt.in'
destination_tt_file = 'inputs/model/intrazonals/destination_tt.in'

#################################
# Bike Model Settings
#################################


#################################### BIKE MODEL ####################################
bike_assignment_tod = ['5to6','7to8','8to9','9to10','10to14','14to15','15to16','16to17',
'17to18']

# Distance perception penalties for link AADT from Broach et al., 2012
# 1 is AADT 10k-20k, 2 is 20k-30k, 3 is 30k+
# No penalty applied for AADT < 10k
aadt_dict = {'volume_wt': {
1: 0.368,
2: 1.40,
3: 7.157}}

# AADT segmentation breaks to apply volume penalties
aadt_bins = [0,10000,20000,30000,9999999]
aadt_labels = [0,1,2,3] # Corresponding "bucket" labels for AADT segmentation for aadt_dict

# Crosswalk of bicycle facilities from geodatabase to a 2-tier typology - premium, standard (and none)
# Associated with IJBikeFacility from modeAttributes table
# "Premium" represents trails and fully separated bike facilities
# "Standard" represents painted bike lanes only
bike_facility_crosswalk = {'@bkfac': {0:'none', # No bike lane
1:'standard', # Striped bike lane
2:'premium', # Protected bike lane
3:'none', # Paved/striped shoulder
4:'none', # Marked shared lane
5:'none', # Bike provision undefined
6:'none', # Defined bike route no provisions
8:'premium', # Shared use path
9:'standard', # Buffered bike lane (minimally coded as of 2018 BY)
10:'standard' # neighborhood greenway (minimally coded as of 2018 BY)
}}

# Perception factor values corresponding to these tiers, from Broch et al., 2012
facility_dict = {'facility_wt': { 'premium': -0.160,
'standard': -0.108,
'none': 0}}

# Perception factor values for 3-tiered measure of elevation gain per link
slope_dict = {'slope_wt': {1: .371, # between 2-4% grade
2: 1.203, # between 4-6% grade
3: 3.239}} # greater than 6% grade

# Bin definition of total elevation gain (per link)
slope_bins = [-1,0.02,0.04,0.06,1]
slope_labels = [0,1,2,3]

avg_bike_speed = 10 # miles per hour

# Multiplier for storing skim results
bike_skim_mult = 100 # divide by 100 to store as int

# Calibration factor for bike weights on ferry links
ferry_bike_factor = 1

#################################
# Supplementals Settings
#################################

trip_table_loc = 'outputs/supplemental/7_balance_trip_ends.csv'
supplemental_project = 'projects/supplementals/supplementals.emp'
supplemental_output_dir = 'outputs/supplemental'

# Define gravity model coefficients
autoop = 16.75 # Auto operation costs (in hundreds of cents per mile?)
avotda = 0.0303 # VOT

# Home delivery trips, must be > 0
total_delivery_trips = 1

#This is what you get if the model runs cleanly, but it's random:
good_thing = ["a cookie", "a run", "a puppy", "a seal sighting", "a beer", "some sunshine", "a nap"]

#################################
# Integrated Run Settings
#################################
# Only required for integrated Urbans runs; leave as default for standard runs

# Root dir for all Soundcast runs
urbansim_skims_dir = r'E:\soundcast_root'

# Urbansim outputs dir
urbansim_outputs_dir = r'E:\opusgit\urbansim_data\data\psrc_parcel\2014SoundCastData\urbansim_outputs'
Loading

0 comments on commit 038961d

Please sign in to comment.