def __init__(self):
        Baseline.__init__(self)
        self["description"] = "double-capacity highway with baseline travel model"
        self["scenario_database_configuration"].database_name = "PSRC_2000_baseyear"

        travel_model_configuration = create_travel_model_configuration("baseline_travel_model_psrc_highway_x_half")
        self["travel_model_configuration"] = travel_model_configuration
Example #2
0
    def __init__(self):
        Baseline.__init__(self)
        self['description'] = 'no ugb + double-capacity highway'
        self['scenario_database_configuration'].database_name = 'PSRC_2000_scenario_A_no_ugb'

        travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_highway_x_half')
        self['travel_model_configuration'] = travel_model_configuration
Example #3
0
    def __init__(self):
        config = Baseline()
        
        config_changes = {
            'description':'baseline travel model fast (no build)',
        }
        config.replace(config_changes)
        
        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_fast_no_build', 
                                                                       emme2_batch_file='MODELUSim.BAT ..\\triptabs',
                                                                       mode='full')
        config['travel_model_configuration'] = travel_model_configuration
        config['travel_model_configuration']['locations_to_disaggregate'] = ['parcel', 'building']
        del config['travel_model_configuration'][2000]
        
        ##fast model doesn't have bank2 and bank3; disable macros using them
        del config['travel_model_configuration']['export_macros']['tazvmt2.mac']
        del config['travel_model_configuration']['export_macros']['tazvmt3.mac']

        del config['travel_model_configuration']['matrix_variable_map']['bank2']
        del config['travel_model_configuration']['matrix_variable_map']['bank3']
        
        self.merge(config)

#if __name__ == "__main__":
#    config = BaselineTravelModelFast()
Example #4
0
    def __init__(self):
        config = Baseline()
        if self.multiple_runs:
            config.sample_inputs()
        config['number_of_runs'] = 99
        config['seed'] = 1
        config_changes = {
            'description':'baseline travel model fast',
        }
        config.replace(config_changes)
        
        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_fast_hana', 
                                                                       emme2_batch_file='MODELUSim.BAT ..\\triptabs',
                                                                       mode='skims', 
                                                                       years_to_run={2005: '2005_06', 2010: '2010_06', 2015: '2010_06'})
        config['travel_model_configuration'] = travel_model_configuration
        config['travel_model_configuration']['locations_to_disaggregate'] = ['parcel', 'building']
        
        ##fast model doesn't have bank2 and bank3; disable macros using them
        del config['travel_model_configuration']['export_macros']['tazvmt2.mac']
        del config['travel_model_configuration']['export_macros']['tazvmt3.mac']

        del config['travel_model_configuration']['matrix_variable_map']['bank2']
        del config['travel_model_configuration']['matrix_variable_map']['bank3']
        
        config['travel_model_configuration']['export_macros']['get_link_attributes.mac'] = {'bank':'bank1', 'scenario':-1, 'path':'export_macros'}
        config['travel_model_configuration']['node_matrix_variable_map'] = {"bank1": {"attr_on_links.rpt": {"timau": "am_pk_travel_time", "len": "distance"},
                                                                            "tveham.rpt": {"@tveh": "vehicle_volume"}
                                                                            }}
        #config['travel_model_configuration'][2015]['models'] = list(config['travel_model_configuration'][2015].get('models'))
        #config['travel_model_configuration'][2015]['models'].append('opus_emme2.models.restore_trip_tables')
             
        self.merge(config)
Example #5
0
    def __init__(self):
        config = Baseline()

        config_changes = {
            'description': 'baseline travel model fast (no build)',
        }
        config.replace(config_changes)

        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration(
            'baseline_travel_model_psrc_fast_no_build',
            emme2_batch_file='MODELUSim.BAT ..\\triptabs',
            mode='full')
        config['travel_model_configuration'] = travel_model_configuration
        config['travel_model_configuration']['locations_to_disaggregate'] = [
            'parcel', 'building'
        ]
        del config['travel_model_configuration'][2000]

        ##fast model doesn't have bank2 and bank3; disable macros using them
        del config['travel_model_configuration']['export_macros'][
            'tazvmt2.mac']
        del config['travel_model_configuration']['export_macros'][
            'tazvmt3.mac']

        del config['travel_model_configuration']['matrix_variable_map'][
            'bank2']
        del config['travel_model_configuration']['matrix_variable_map'][
            'bank3']

        self.merge(config)


#if __name__ == "__main__":
#    config = BaselineTravelModelFast()
    def __init__(self):
        Baseline.__init__(self)
        self['description'] = 'baseline with no build travel model'

        travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_no_build')
        self['travel_model_configuration'] = travel_model_configuration
        
Example #7
0
    def __init__(self):
        Baseline.__init__(self)
        self['description'] = 'double-capacity highway with baseline travel model'
        self['scenario_database_configuration'].database_name = 'PSRC_2000_baseyear'

        travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_highway_x_half')
        self['travel_model_configuration'] = travel_model_configuration
Example #8
0
    def __init__(self):
        config = Baseline()

        config_changes = {
            'description':
            'run travel model for baseyear and then extract travel data',
            'models': [],
            'models_in_year': {
                2000: [],
            },
            'years': (2000, 2001),
        }

        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration(
            'baseline_travel_model_psrc_2008_lmwang',
            emme2_batch_file='MODEL1-0.BAT',
            mode='full',
            years_to_run={
                2000: '2000_v1.0aTG',
                2005: '2006_v1.0aTG',
                2010: '2010_v1.0aTG',
                2015: '2010_v1.0aTG_2015',
                2020: '2020_v1.0aTG'
            })
        config['travel_model_configuration'] = travel_model_configuration
        config.replace(config_changes)

        self.merge(config)
 def __init__(self):
     config = BaselineHana()
     config['number_of_runs'] = 5
     config['seed'] = 1
     from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
     travel_model_configuration = create_travel_model_configuration(self.tm_scenario, 
                                                                    emme2_batch_file='./model1-0.sh',
                                                                    mode='full', years_to_run={2020: '2020'})
     config['travel_model_configuration'] = travel_model_configuration
     
     config['travel_model_configuration']['travel_model_input_file_writer'] = 'inprocess.hana.uncertainty.travel_model_input_file_writer'
     config['travel_model_configuration']['locations_to_disaggregate'] = ['parcel', 'building']
             
     config['travel_model_configuration']['export_macros']['get_link_attributes.mac'] = {'bank':'bank1', 'scenario':-1, 'path':'export_macros'}
     config['travel_model_configuration']['node_matrix_variable_map'] = {"bank1": {"attr_on_links.rpt": {"timau": "am_pk_travel_time", "len": "distance"},
                                                                                   "tveham.rpt": {"@tveh": "vehicle_volume"}
                                                                         }}
     
     config['travel_model_configuration']['bm_distribution_file'] = \
             '/Users/hana/bm/psrc_parcel/simulation_results/0818/2005/bm_parameters'
             
     config['travel_model_configuration']['scale_to_control_totals'] = True
     config['travel_model_configuration']['control_totals'] = { # for 2020
                                 'households': 1706945,
                                 'jobs': {'manu':   186131, # sectors 3, 4, 5
                                          'wtcu':   216184, # sectors 6, 8, 9, 10
                                          'retail': 402241, # sectors 7, 14
                                          'fires': 1046052, # sectors 11, 12, 13, 16, 17
                                          'edu':    146626, # sectors 15, 19
                                          'gov':    207079,  # sector 18
                                          'constr': 189047,  # sector 2
                                          'mining':   8882  # sector 1
                                          }
                                         }
     self.merge(config)
    def __init__(self):
        Baseline.__init__(self)
        self['description'] = 'double-capacity highway with baseline travel model'
        self['scenario_database_configuration'].database_name = 'PSRC_2000_baseyear'

        travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_highway_x_2')
        self['travel_model_configuration'] = travel_model_configuration
Example #11
0
    def __init__(self):
        config = Baseline()
        if self.multiple_runs:
            config.sample_inputs()
        config['number_of_runs'] = 99
        config['seed'] = 1
        config_changes = {
            'description': 'baseline travel model fast',
        }
        config.replace(config_changes)

        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration(
            'baseline_travel_model_psrc_fast_hana',
            emme2_batch_file='MODELUSim.BAT ..\\triptabs',
            mode='skims',
            years_to_run={
                2005: '2005_06',
                2010: '2010_06',
                2015: '2010_06'
            })
        config['travel_model_configuration'] = travel_model_configuration
        config['travel_model_configuration']['locations_to_disaggregate'] = [
            'parcel', 'building'
        ]

        ##fast model doesn't have bank2 and bank3; disable macros using them
        del config['travel_model_configuration']['export_macros'][
            'tazvmt2.mac']
        del config['travel_model_configuration']['export_macros'][
            'tazvmt3.mac']

        del config['travel_model_configuration']['matrix_variable_map'][
            'bank2']
        del config['travel_model_configuration']['matrix_variable_map'][
            'bank3']

        config['travel_model_configuration']['export_macros'][
            'get_link_attributes.mac'] = {
                'bank': 'bank1',
                'scenario': -1,
                'path': 'export_macros'
            }
        config['travel_model_configuration']['node_matrix_variable_map'] = {
            "bank1": {
                "attr_on_links.rpt": {
                    "timau": "am_pk_travel_time",
                    "len": "distance"
                },
                "tveham.rpt": {
                    "@tveh": "vehicle_volume"
                }
            }
        }
        #config['travel_model_configuration'][2015]['models'] = list(config['travel_model_configuration'][2015].get('models'))
        #config['travel_model_configuration'][2015]['models'].append('opus_emme2.models.restore_trip_tables')

        self.merge(config)
Example #12
0
    def __init__(self):
        Baseline.__init__(self)
        self['description'] = 'no ugb + double-capacity highway'
        self[
            'scenario_database_configuration'].database_name = 'PSRC_2000_scenario_A_no_ugb'

        travel_model_configuration = create_travel_model_configuration(
            'baseline_travel_model_psrc_highway_x_half')
        self['travel_model_configuration'] = travel_model_configuration
    def __init__(self):
        config = BaselineHana()
        config['number_of_runs'] = 5
        config['seed'] = 1
        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration(
            self.tm_scenario,
            emme2_batch_file='./model1-0.sh',
            mode='full',
            years_to_run={2020: '2020'})
        config['travel_model_configuration'] = travel_model_configuration

        config['travel_model_configuration'][
            'travel_model_input_file_writer'] = 'inprocess.hana.uncertainty.travel_model_input_file_writer'
        config['travel_model_configuration']['locations_to_disaggregate'] = [
            'parcel', 'building'
        ]

        config['travel_model_configuration']['export_macros'][
            'get_link_attributes.mac'] = {
                'bank': 'bank1',
                'scenario': -1,
                'path': 'export_macros'
            }
        config['travel_model_configuration']['node_matrix_variable_map'] = {
            "bank1": {
                "attr_on_links.rpt": {
                    "timau": "am_pk_travel_time",
                    "len": "distance"
                },
                "tveham.rpt": {
                    "@tveh": "vehicle_volume"
                }
            }
        }

        config['travel_model_configuration']['bm_distribution_file'] = \
                '/Users/hana/bm/psrc_parcel/simulation_results/0818/2005/bm_parameters'

        config['travel_model_configuration']['scale_to_control_totals'] = True
        config['travel_model_configuration']['control_totals'] = {  # for 2020
            'households': 1706945,
            'jobs': {
                'manu': 186131,  # sectors 3, 4, 5
                'wtcu': 216184,  # sectors 6, 8, 9, 10
                'retail': 402241,  # sectors 7, 14
                'fires': 1046052,  # sectors 11, 12, 13, 16, 17
                'edu': 146626,  # sectors 15, 19
                'gov': 207079,  # sector 18
                'constr': 189047,  # sector 2
                'mining': 8882  # sector 1
            }
        }
        self.merge(config)
Example #14
0
 def __init__(self):
     config = Baseline()
     
     config_changes = {
         'description':'baseline with skims',
     }
     config.replace(config_changes)
     
     from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
     travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc', mode='skims')
     config['travel_model_configuration'] = travel_model_configuration
     config['travel_model_configuration']['locations_to_disaggregate'] = ['parcel', 'building']
     self.merge(config)
Example #15
0
    def __init__(self):
        config = Baseline()

        config_changes = {
            'description': 'baseline with skims',
        }
        config.replace(config_changes)

        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration(
            'baseline_travel_model_psrc', mode='skims')
        config['travel_model_configuration'] = travel_model_configuration
        config['travel_model_configuration']['locations_to_disaggregate'] = [
            'parcel', 'building'
        ]
        self.merge(config)
Example #16
0
    def __init__(self):
        config = Baseline()

        config_changes = {
            'description':
            'assigning jobs to workers',
            'models': [
                #"process_pipeline_events",
                "real_estate_price_model",
                "expected_sale_price_model",
                "development_proposal_choice_model",
                "building_construction_model",
                "household_transition_model",
                "employment_transition_model",
                "household_relocation_model",
                "household_location_choice_model",
                "employment_relocation_model",
                {
                    "employment_location_choice_model": {
                        'group_members': '_all_'
                    }
                },
                "work_at_home_choice_model",
                "workplace_choice_model_for_resident",
                'distribute_unplaced_jobs_model'
            ],
            #                {2001:[ "work_at_home_choice_model",],
            #                              2002:[ "workplace_choice_model_for_resident" ] },
            'years': (2001, 2006),
            #            'datasets_to_cache_after_each_model':['person'],
        }

        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration(
            'baseline_travel_model_psrc_2008_lmwang',
            emme2_batch_file='MODEL1-0.BAT',
            mode='full',
            years_to_run={
                2005: '2006_v1.0aTG',
                2010: '2010_v1.0aTG',
                2015: '2010_v1.0aTG_2015',
                2020: '2020_v1.0aTG'
            })
        config['travel_model_configuration'] = travel_model_configuration
        config.replace(config_changes)

        self.merge(config)
    def __init__(
            self,
            cache_directory,
            year,
            travel_model_data_directory='baseline_travel_model_psrc_baseline'):

        config = AbstractUrbansimConfiguration()

        config_changes = {
            'description':
            'baseline with travel model',
            'cache_directory':
            cache_directory,
            'creating_baseyear_cache_configuration':
            CreatingBaseyearCacheConfiguration(
                cache_scenario_database=
                'urbansim.model_coordinators.cache_scenario_database',
                unroll_gridcells=False,
                tables_to_cache=[],
                tables_to_copy_to_previous_years={},
            ),
            'models': [],  # run no urbansim models
            'scenario_database_configuration':
            ScenarioDatabaseConfiguration(
                database_name='PSRC_2000_baseyear', ),
            'base_year':
            year,
            'years': (year, year),
        }
        config.merge(config_changes)

        years_to_run = {
            2005: '2000_06',
            2010: '2010_06',
            2015: '2010_06',
            2020: '2020_06',
            2025: '2020_06',
            2030: '2030_06',
        }
        year_to_run = {year: years_to_run[year]}
        travel_model_config = create_travel_model_configuration(
            travel_model_data_directory,
            mode='get_emme2_data_after_run',
            years_to_run=year_to_run,
            emme2_batch_file='QUICKRUN.BAT')
        config['travel_model_configuration'] = travel_model_config
        self.merge(config)
    def __init__(self):
        config = Baseline()
        config['number_of_runs'] = 1
        config['seed'] = 1
        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration(
            self.tm_scenario,
            emme2_batch_file='./model1-0.sh',
            mode='full',
            years_to_run={
                2005: '2006',
                2010: '2010',
                2015: '2010_2015',
                2020: '2020'
            })
        config['travel_model_configuration'] = travel_model_configuration

        config['travel_model_configuration'][
            'travel_model_input_file_writer'] = 'psrc_parcel.travel_model_input_file_writer'
        config['travel_model_configuration']['system_command'] = ''
        config['travel_model_configuration'][
            'emme_command'] = 'emme-run -ng --set-iks 192.168.1.236'
        config['travel_model_configuration']['locations_to_disaggregate'] = [
            'parcel', 'building'
        ]

        config['travel_model_configuration']['export_macros'][
            'get_link_attributes.mac'] = {
                'bank': 'bank1',
                'scenario': -1,
                'path': 'export_macros'
            }
        config['travel_model_configuration']['node_matrix_variable_map'] = {
            "bank1": {
                "attr_on_links.rpt": {
                    "timau": "am_pk_travel_time",
                    "len": "distance"
                },
                "tveham.rpt": {
                    "@tveh": "vehicle_volume"
                }
            }
        }
        self.merge(config)
Example #19
0
    def __init__(self):
        config = Baseline()
        config_changes = {
            'description': 'baseline land use + baseline travel model',
        }
        config.replace(config_changes)

        config['number_of_runs'] = 1
        config['seed'] = 1
        config[
            'creating_baseyear_cache_configuration'].cache_directory_root = r'/urbansim_cache/psrc_parcel/runs'

        #config['creating_baseyear_cache_configuration'].cache_from_database = True
        config[
            'creating_baseyear_cache_configuration'].baseyear_cache.existing_cache_to_copy = r'/urbansim_cache/psrc_parcel/base_year_data/baseline'

        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration(
            self.tm_scenario,
            emme2_batch_file='model1-0.sh',
            mode='full',
            years_to_run={
                2005: '2006_v1.0bb',
                2010: '2010_v1.0bb',
                #2015: '2010_v1.0bb',
                2020: '2020_v1.0bb',
                #2025: '2020_v1.0bb',
                2030: '2030_v1.0bb'
            })
        config['travel_model_configuration'] = travel_model_configuration

        #config['travel_model_configuration']['travel_model_input_file_writer'] = 'psrc_parcel.travel_model_input_file_writer'
        config['travel_model_configuration']['system_command'] = ''
        config['travel_model_configuration'][
            'emme_command'] = 'emme-run -ng --set-iks 127.0.0.1'
        config['travel_model_configuration']['locations_to_disaggregate'] = [
            'parcel', 'building'
        ]

        #config['travel_model_configuration']['export_macros']['get_link_attributes.mac'] = {'bank':'bank1', 'scenario':-1, 'path':'export_macros'}
        #config['travel_model_configuration']['node_matrix_variable_map'] = {"bank1": {"attr_on_links.rpt": {"timau": "am_pk_travel_time", "len": "distance"},
        #                                                                              "tveham.rpt": {"@tveh": "vehicle_volume"}
        #                                                                    }}
        self.merge(config)
Example #20
0
 def __init__(self):
     config = Baseline()
     config['number_of_runs'] = 1
     config['seed'] = 1
     from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
     travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_2008', 
                                                                    emme2_batch_file='MODEL1-0.BAT',
                                                                    mode='full', years_to_run={2005: '2006_v1.0aTG',
                                                                                               2020: '2020_06'})
     config['travel_model_configuration'] = travel_model_configuration
     config['travel_model_configuration']['travel_model_input_file_writer'] = 'psrc_parcel.travel_model_input_file_writer'
     config['travel_model_configuration']['locations_to_disaggregate'] = ['parcel', 'building']
     
     config['travel_model_configuration']['export_macros']['get_link_attributes.mac'] = {'bank':'bank1', 'scenario':-1, 'path':'export_macros'}
     config['travel_model_configuration']['node_matrix_variable_map'] = {"bank1": {"attr_on_links.rpt": {"timau": "am_pk_travel_time", "len": "distance"},
                                                                                   "tveham.rpt": {"@tveh": "vehicle_volume"}
                                                                         }}
             
     self.merge(config)
Example #21
0
 def __init__(self):
     config = Baseline()
     config['number_of_runs'] = 1
     config['seed'] = 1
     from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
     travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_2008', 
                                                                    emme2_batch_file='MODEL1-0.BAT',
                                                                    mode='full', years_to_run={2005: '2006_v1.0aTG',
                                                                                               2020: '2020_06'})
     config['travel_model_configuration'] = travel_model_configuration
     config['travel_model_configuration']['travel_model_input_file_writer'] = 'psrc_parcel.travel_model_input_file_writer'
     config['travel_model_configuration']['locations_to_disaggregate'] = ['parcel', 'building']
     
     config['travel_model_configuration']['export_macros']['get_link_attributes.mac'] = {'bank':'bank1', 'scenario':-1, 'path':'export_macros'}
     config['travel_model_configuration']['node_matrix_variable_map'] = {"bank1": {"attr_on_links.rpt": {"timau": "am_pk_travel_time", "len": "distance"},
                                                                                   "tveham.rpt": {"@tveh": "vehicle_volume"}
                                                                         }}
             
     self.merge(config)
Example #22
0
 def __init__(self):
     config = Baseline()
     config['number_of_runs'] = 1
     config['seed'] = 1
     from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
     travel_model_configuration = create_travel_model_configuration(self.tm_scenario, 
                                                                    emme2_batch_file='./model1-0.sh',
                                                                    mode='full', years_to_run={2005: '2006', 2010: '2010', 2015: '2010_2015', 2020: '2020'})
     config['travel_model_configuration'] = travel_model_configuration
     
     config['travel_model_configuration']['travel_model_input_file_writer'] = 'psrc_parcel.travel_model_input_file_writer'
     config['travel_model_configuration']['system_command'] = ''
     config['travel_model_configuration']['emme_command'] = 'emme-run -ng --set-iks 192.168.1.236'
     config['travel_model_configuration']['locations_to_disaggregate'] = ['parcel', 'building']
     
     config['travel_model_configuration']['export_macros']['get_link_attributes.mac'] = {'bank':'bank1', 'scenario':-1, 'path':'export_macros'}
     config['travel_model_configuration']['node_matrix_variable_map'] = {"bank1": {"attr_on_links.rpt": {"timau": "am_pk_travel_time", "len": "distance"},
                                                                                   "tveham.rpt": {"@tveh": "vehicle_volume"}
                                                                         }}                
     self.merge(config)
Example #23
0
    def __init__(self):
        config = Baseline()
        config_changes = {"description": "baseline land use + baseline travel model"}
        config.replace(config_changes)

        config["number_of_runs"] = 1
        config["seed"] = 1
        config["creating_baseyear_cache_configuration"].cache_directory_root = r"/urbansim_cache/psrc_parcel/runs"

        # config['creating_baseyear_cache_configuration'].cache_from_database = True
        config[
            "creating_baseyear_cache_configuration"
        ].baseyear_cache.existing_cache_to_copy = r"/urbansim_cache/psrc_parcel/base_year_data/baseline"

        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration

        travel_model_configuration = create_travel_model_configuration(
            self.tm_scenario,
            emme2_batch_file="model1-0.sh",
            mode="full",
            years_to_run={
                2005: "2006_v1.0bb",
                2010: "2010_v1.0bb",
                # 2015: '2010_v1.0bb',
                2020: "2020_v1.0bb",
                # 2025: '2020_v1.0bb',
                2030: "2030_v1.0bb",
            },
        )
        config["travel_model_configuration"] = travel_model_configuration

        # config['travel_model_configuration']['travel_model_input_file_writer'] = 'psrc_parcel.travel_model_input_file_writer'
        config["travel_model_configuration"]["system_command"] = ""
        config["travel_model_configuration"]["emme_command"] = "emme-run -ng --set-iks 127.0.0.1"
        config["travel_model_configuration"]["locations_to_disaggregate"] = ["parcel", "building"]

        # config['travel_model_configuration']['export_macros']['get_link_attributes.mac'] = {'bank':'bank1', 'scenario':-1, 'path':'export_macros'}
        # config['travel_model_configuration']['node_matrix_variable_map'] = {"bank1": {"attr_on_links.rpt": {"timau": "am_pk_travel_time", "len": "distance"},
        #                                                                              "tveham.rpt": {"@tveh": "vehicle_volume"}
        #                                                                    }}
        self.merge(config)
Example #24
0
    def __init__(self):
        config = Baseline()

        config_changes = {
            'description':'extract travel data from travel model',
            'models':[],
            'models_in_year': {2000:[],},
            'years': (2005,2005),
        }
        
        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_2008_lmwang', 
                                                                       emme2_batch_file='MODEL1-0.BAT',
                                                                       mode='skims', years_to_run={2000: '2000_v1.0aTG',
                                                                                                  2005: '2006_v1.0aTG',
                                                                                                  2010: '2010_v1.0aTG', 
                                                                                                  2015: '2010_v1.0aTG_2015', 
                                                                                                  2020: '2020_v1.0aTG'})
        config['travel_model_configuration'] = travel_model_configuration
        config.replace(config_changes)
        
        self.merge(config)
Example #25
0
    def __init__(self, cache_directory, year, 
                 travel_model_data_directory='baseline_travel_model_psrc_baseline'):
        
        config = AbstractUrbansimConfiguration()
        
        config_changes = {
            'description':'baseline with travel model',

            'cache_directory':cache_directory,
            'creating_baseyear_cache_configuration':CreatingBaseyearCacheConfiguration(
                cache_mysql_data = 'urbansim.model_coordinators.cache_mysql_data',
                unroll_gridcells = False,
                tables_to_cache = [],
                tables_to_copy_to_previous_years = {},
                ),
            'models':[],  # run no urbansim models
            'scenario_database_configuration': ScenarioDatabaseConfiguration(
                database_name = 'PSRC_2000_baseyear',
                ),
            'base_year':year,
            'years':(year, year),
            }
        config.merge(config_changes)
        
        years_to_run = {
            2005:'2000_06',
            2010:'2010_06',
            2015:'2010_06',
            2020:'2020_06',
            2025:'2020_06',
            2030:'2030_06',
            }
        year_to_run = {year:years_to_run[year]}
        travel_model_config = create_travel_model_configuration(travel_model_data_directory, 
                                                                mode='get_emme2_data',
                                                                years_to_run = year_to_run,
                                                                emme2_batch_file='QUICKRUN.BAT')
        config['travel_model_configuration'] = travel_model_config
        self.merge(config)
Example #26
0
    def __init__(self):
        config = Baseline()

        config_changes = {
            'description':'assigning jobs to workers',
            'models':[
                #"process_pipeline_events",
                "real_estate_price_model",
                "expected_sale_price_model",
                "development_proposal_choice_model",
                "building_construction_model",
                "household_transition_model",
                "employment_transition_model",
                "household_relocation_model",
                "household_location_choice_model",
                "employment_relocation_model",
                {"employment_location_choice_model":{'group_members': '_all_'}},
                "work_at_home_choice_model",                
                "workplace_choice_model_for_resident",
                'distribute_unplaced_jobs_model'
                ],
#                {2001:[ "work_at_home_choice_model",],
#                              2002:[ "workplace_choice_model_for_resident" ] },
            'years': (2001,2006),
#            'datasets_to_cache_after_each_model':['person'],
        }
        
        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_2008_lmwang', 
                                                                       emme2_batch_file='MODEL1-0.BAT',
                                                                       mode='full', years_to_run={2005: '2006_v1.0aTG',
                                                                                                  2010: '2010_v1.0aTG', 
                                                                                                  2015: '2010_v1.0aTG_2015', 
                                                                                                  2020: '2020_v1.0aTG'})
        config['travel_model_configuration'] = travel_model_configuration
        config.replace(config_changes)
        
        self.merge(config)
Example #27
0
    def __init__(self):
        config = Baseline()
        config_changes = {
                        'description':'Aggressive land use + pricing & transit travel model',
        }
        config.replace(config_changes)

        config['number_of_runs'] = 1
        config['seed'] = 1
        config['creating_baseyear_cache_configuration'].cache_directory_root = r'/urbansim_cache/psrc_parcel/runs'

        #config['creating_baseyear_cache_configuration'].cache_from_database = True
        config['creating_baseyear_cache_configuration'].baseyear_cache.existing_cache_to_copy = r'/urbansim_cache/psrc_parcel/base_year_data/aggressive'

        from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
        travel_model_configuration = create_travel_model_configuration(self.tm_scenario, 
                                                                       emme2_batch_file='model1-0.sh',
                                                                       mode='full', 
                                                                       years_to_run={
                                                                                     2005: '2006_v1.0bb', 
                                                                                     2010: '2010_v1.0bb', 
                                                                                    #2015: '2010_v1.0bb', 
                                                                                     2020: '2020_v1.0bb', 
                                                                                    #2025: '2020_v1.0bb', 
                                                                                     2030: '2030_v1.0bb'})
        config['travel_model_configuration'] = travel_model_configuration
        
        #config['travel_model_configuration']['travel_model_input_file_writer'] = 'psrc_parcel.travel_model_input_file_writer'
        config['travel_model_configuration']['system_command'] = ''
        config['travel_model_configuration']['emme_command'] = 'emme-run -ng --set-iks 127.0.0.1'
        config['travel_model_configuration']['locations_to_disaggregate'] = ['parcel', 'building']
        
        #config['travel_model_configuration']['export_macros']['get_link_attributes.mac'] = {'bank':'bank1', 'scenario':-1, 'path':'export_macros'}
        #config['travel_model_configuration']['node_matrix_variable_map'] = {"bank1": {"attr_on_links.rpt": {"timau": "am_pk_travel_time", "len": "distance"},
        #                                                                              "tveham.rpt": {"@tveh": "vehicle_volume"}
        #                                                                    }}                
        self.merge(config)
Example #28
0
 def __init__(self):
     config = AbstractUrbansimConfiguration()
     
     config_changes = {
         'project_name':'psrc',
         'description':'baseline with travel model',
         'cache_directory':None, ### TODO: Set this cache_directory to something useful.
         'creating_baseyear_cache_configuration':CreatingBaseyearCacheConfiguration(
             cache_directory_root = 'd:/urbansim_cache',
             cache_from_database = True,
             cache_scenario_database = 'urbansim.model_coordinators.cache_scenario_database',
             tables_to_cache = [
                 'annual_employment_control_totals',
                 'annual_household_control_totals',
                 'buildings',
                 'building_types',
                 'development_event_history',
                 'gridcells',
                 'households',
                 'job_building_types',
                 'jobs',
                 'travel_data',
                 'zones',
                 'counties',
                 'commercial_development_location_choice_model_coefficients',
                 'commercial_development_location_choice_model_specification',
                 'commercial_employment_location_choice_model_coefficients',
                 'commercial_employment_location_choice_model_specification',
                 'home_based_employment_location_choice_model_specification',
                 'home_based_employment_location_choice_model_coefficients',
                 'industrial_employment_location_choice_model_coefficients',
                 'industrial_employment_location_choice_model_specification',
                 'industrial_development_location_choice_model_coefficients',
                 'industrial_development_location_choice_model_specification',
                 'residential_development_location_choice_model_coefficients',
                 'residential_development_location_choice_model_specification',
                 'fazes',
                 'urbansim_constants',
                 'household_location_choice_model_coefficients',
                 'household_location_choice_model_specification',
                 'land_price_model_coefficients',
                 'land_price_model_specification',
                 'residential_land_share_model_coefficients',
                 'residential_land_share_model_specification',
                 'plan_type_group_definitions',
                 'plan_type_groups',
                 'large_areas',
                 'household_characteristics_for_ht',
                 'development_types',
                 'development_type_group_definitions',
                 'development_constraints',
                 'annual_relocation_rates_for_households',
                 'annual_relocation_rates_for_jobs',
                 'base_year',
                 'cities',
                 'development_events',
                 'development_type_groups',
                 'employment_adhoc_sector_group_definitions',
                 'employment_adhoc_sector_groups',
                 'employment_events',
                 'employment_sectors',
                 'land_use_events',
                 'plan_types',
                 'race_names',
                 'target_vacancies',
                 'jobs_for_estimation',
                 'households_for_estimation',
                 'development_events_exogenous',
                 'job_building_types',
                 'persons',
                 'persons_for_estimation',
                 'constant_taz_columns'
                 ],
             tables_to_cache_nchunks = {'gridcells': 4},
             tables_to_copy_to_previous_years = {
                 'development_type_groups': 1995,
                 'development_types': 1995,
                 'development_type_group_definitions': 1995,
                 'development_constraints': 1995,
                 'urbansim_constants': 1995,
                 },
             ),
         'scenario_database_configuration': ScenarioDatabaseConfiguration(
             database_name = 'PSRC_2000_baseyear',
             ),
         'dataset_pool_configuration': DatasetPoolConfiguration(
             package_order=['psrc', 'urbansim', 'opus_core'],
             ),
         'base_year':2000,
         'years':(2001, 2030),
         }
     config.merge(config_changes)
     
     travel_model_config = create_travel_model_configuration('baseline_travel_model_psrc')
     config['travel_model_configuration'] = travel_model_config
     self.merge(config)
            'development_type_group_definitions', 'development_constraints',
            'annual_relocation_rates_for_households',
            'annual_relocation_rates_for_jobs', 'base_year', 'cities',
            'development_events', 'development_type_groups',
            'employment_adhoc_sector_group_definitions',
            'employment_adhoc_sector_groups', 'employment_events',
            'employment_sectors', 'land_use_events', 'plan_types',
            'race_names', 'target_vacancies', 'jobs_for_estimation',
            'households_for_estimation', 'development_events_exogenous',
            'job_building_types'
        ],
        tables_to_cache_nchunks={'gridcells': 1},
        tables_to_copy_to_previous_years={},
    ),
    'scenario_database_configuration':
    ScenarioDatabaseConfiguration(
        database_name='PSRC_2000_scenario_E_constrained_king_county', ),
    'estimation_database_configuration':
    EstimationDatabaseConfiguration(
        database_name='PSRC_2000_scenario_E_constrained_king_county_output', ),
    'base_year':
    2000,
    'years': (2001, 2030),
}
run_configuration = config.copy()
run_configuration.merge(config_changes)

from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
travel_model_configuration = create_travel_model_configuration(
    'baseline_travel_model_psrc')
run_configuration['travel_model_configuration'] = travel_model_configuration
Example #30
0
    def __init__(self):
        config = AbstractUrbansimConfiguration()

        config_changes = {
            'project_name':
            'psrc',
            'description':
            'baseline with travel model',
            'cache_directory':
            None,  ### TODO: Set this cache_directory to something useful.
            'creating_baseyear_cache_configuration':
            CreatingBaseyearCacheConfiguration(
                cache_directory_root='d:/urbansim_cache',
                cache_from_database=True,
                cache_scenario_database=
                'urbansim.model_coordinators.cache_scenario_database',
                tables_to_cache=[
                    'annual_employment_control_totals',
                    'annual_household_control_totals', 'buildings',
                    'building_types', 'development_event_history', 'gridcells',
                    'households', 'job_building_types', 'jobs', 'travel_data',
                    'zones', 'counties',
                    'commercial_development_location_choice_model_coefficients',
                    'commercial_development_location_choice_model_specification',
                    'commercial_employment_location_choice_model_coefficients',
                    'commercial_employment_location_choice_model_specification',
                    'home_based_employment_location_choice_model_specification',
                    'home_based_employment_location_choice_model_coefficients',
                    'industrial_employment_location_choice_model_coefficients',
                    'industrial_employment_location_choice_model_specification',
                    'industrial_development_location_choice_model_coefficients',
                    'industrial_development_location_choice_model_specification',
                    'residential_development_location_choice_model_coefficients',
                    'residential_development_location_choice_model_specification',
                    'fazes', 'urbansim_constants',
                    'household_location_choice_model_coefficients',
                    'household_location_choice_model_specification',
                    'land_price_model_coefficients',
                    'land_price_model_specification',
                    'residential_land_share_model_coefficients',
                    'residential_land_share_model_specification',
                    'plan_type_group_definitions', 'plan_type_groups',
                    'large_areas', 'household_characteristics_for_ht',
                    'development_types', 'development_type_group_definitions',
                    'development_constraints',
                    'annual_relocation_rates_for_households',
                    'annual_relocation_rates_for_jobs', 'base_year', 'cities',
                    'development_events', 'development_type_groups',
                    'employment_adhoc_sector_group_definitions',
                    'employment_adhoc_sector_groups', 'employment_events',
                    'employment_sectors', 'land_use_events', 'plan_types',
                    'race_names', 'target_vacancies', 'jobs_for_estimation',
                    'households_for_estimation',
                    'development_events_exogenous', 'job_building_types',
                    'persons', 'persons_for_estimation', 'constant_taz_columns'
                ],
                tables_to_cache_nchunks={'gridcells': 4},
                tables_to_copy_to_previous_years={
                    'development_type_groups': 1995,
                    'development_types': 1995,
                    'development_type_group_definitions': 1995,
                    'development_constraints': 1995,
                    'urbansim_constants': 1995,
                },
            ),
            'scenario_database_configuration':
            ScenarioDatabaseConfiguration(
                database_name='PSRC_2000_baseyear', ),
            'dataset_pool_configuration':
            DatasetPoolConfiguration(
                package_order=['psrc', 'urbansim', 'opus_core'], ),
            'base_year':
            2000,
            'years': (2001, 2030),
        }
        config.merge(config_changes)

        travel_model_config = create_travel_model_configuration(
            'baseline_travel_model_psrc')
        config['travel_model_configuration'] = travel_model_config
        self.merge(config)
Example #31
0
            'cities',
            'development_events',
            'development_type_groups',
            'employment_adhoc_sector_group_definitions',
            'employment_adhoc_sector_groups',
            'employment_events',
            'employment_sectors',
            'land_use_events',
            'plan_types',
            'race_names',
            'target_vacancies',
            'jobs_for_estimation',
            'households_for_estimation',
            'development_events_exogenous',
            'job_building_types'
            ],
        tables_to_cache_nchunks = {'gridcells': 1},
        tables_to_copy_to_previous_years = {},
        ),
    'scenario_database_configuration': ScenarioDatabaseConfiguration(
        database_name = 'PSRC_2000_baseyear_old_elcm_coeff',
        ),
    'base_year':2000,
    'years':(2001, 2030),
    }
run_configuration = config.copy()    
run_configuration.merge(config_changes)

from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc', mode='skims')
run_configuration['travel_model_configuration'] = travel_model_configuration
            'household_characteristics_for_ht', 'development_types',
            'development_type_group_definitions', 'development_constraints',
            'annual_relocation_rates_for_households',
            'annual_relocation_rates_for_jobs', 'base_year', 'cities',
            'development_events', 'development_type_groups',
            'employment_adhoc_sector_group_definitions',
            'employment_adhoc_sector_groups', 'employment_events',
            'employment_sectors', 'land_use_events', 'plan_types',
            'race_names', 'target_vacancies', 'jobs_for_estimation',
            'households_for_estimation', 'development_events_exogenous',
            'job_building_types'
        ],
        tables_to_cache_nchunks={'gridcells': 1},
        tables_to_copy_to_previous_years={},
    ),
    'scenario_database_configuration':
    ScenarioDatabaseConfiguration(database_name='PSRC_2000_baseyear', ),
    'base_year':
    2000,
    'years': (2000, 2000),
    'models': [],
}
run_configuration = config.copy()
run_configuration.merge(config_changes)

from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
travel_model_configuration = create_travel_model_configuration(
    'baseline_travel_model_psrc_mini',
    mode='skims',
    years_to_run={2000: '2000_06'})
run_configuration['travel_model_configuration'] = travel_model_configuration
Example #33
0
            'employment_adhoc_sector_group_definitions',
            'employment_adhoc_sector_groups',
            'employment_events',
            'employment_sectors',
            'land_use_events',
            'plan_types',
            'race_names',
            'target_vacancies',
            'jobs_for_estimation',
            'households_for_estimation',
            'development_events_exogenous',
            'job_building_types'
            ],
        tables_to_cache_nchunks = {'gridcells':1},
        tables_to_copy_to_previous_years = {},
        ),
    'scenario_database_configuration': ScenarioDatabaseConfiguration(
        database_name = 'PSRC_2000_scenario_E_constrained_king_county',
        ),
    'estimation_database_configuration': EstimationDatabaseConfiguration(
        database_name = 'PSRC_2000_scenario_E_constrained_king_county_output',
        ),
    'base_year':2000,
    'years':(2001, 2030),
    }
run_configuration = config.copy()    
run_configuration.merge(config_changes)

from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc')
run_configuration['travel_model_configuration'] = travel_model_configuration
            "cities",
            "development_events",
            "development_type_groups",
            "employment_adhoc_sector_group_definitions",
            "employment_adhoc_sector_groups",
            "employment_events",
            "employment_sectors",
            "land_use_events",
            "plan_types",
            "race_names",
            "target_vacancies",
            "jobs_for_estimation",
            "households_for_estimation",
            "development_events_exogenous",
            "job_building_types",
        ],
        tables_to_cache_nchunks={"gridcells": 1},
        tables_to_copy_to_previous_years={},
    ),
    "scenario_database_configuration": ScenarioDatabaseConfiguration(database_name="PSRC_2000_baseyear"),
    "base_year": 2000,
    "years": (2001, 2030),
}
run_configuration = config.copy()
run_configuration.merge(config_changes)

from psrc.configs.create_travel_model_configuration import create_travel_model_configuration

travel_model_configuration = create_travel_model_configuration("baseline_travel_model_psrc", mode="skims")
run_configuration["travel_model_configuration"] = travel_model_configuration
    def __init__(self):
        config = AbstractUrbansimConfiguration()
        db_server = DatabaseServer(ScenarioDatabaseConfiguration())
        db = db_server.get_database("PSRC_2000_baseyear")

        config_changes = {
            "description": "baseline with travel model",
            "in_storage": StorageFactory().get_storage("sql_storage", storage_location=db),
            "cache_directory": None,  ### TODO: Set this cache_directory to something useful.
            "creating_baseyear_cache_configuration": CreatingBaseyearCacheConfiguration(
                cache_directory_root="d:/urbansim_cache",
                cache_from_database=True,
                baseyear_cache=BaseyearCacheConfiguration(r"D:\urbansim_cache\run_1417.2006_12_08_01_50"),
                cache_scenario_database="urbansim.model_coordinators.cache_scenario_database",
                tables_to_cache=[
                    "annual_employment_control_totals",
                    "annual_household_control_totals",
                    "buildings",
                    "building_types",
                    "development_event_history",
                    "gridcells",
                    "households",
                    "job_building_types",
                    "jobs",
                    "travel_data",
                    "zones",
                    "counties",
                    "commercial_development_location_choice_model_coefficients",
                    "commercial_development_location_choice_model_specification",
                    "commercial_employment_location_choice_model_coefficients",
                    "commercial_employment_location_choice_model_specification",
                    "home_based_employment_location_choice_model_specification",
                    "home_based_employment_location_choice_model_coefficients",
                    "industrial_employment_location_choice_model_coefficients",
                    "industrial_employment_location_choice_model_specification",
                    "industrial_development_location_choice_model_coefficients",
                    "industrial_development_location_choice_model_specification",
                    "residential_development_location_choice_model_coefficients",
                    "residential_development_location_choice_model_specification",
                    "fazes",
                    "urbansim_constants",
                    "household_location_choice_model_coefficients",
                    "household_location_choice_model_specification",
                    "land_price_model_coefficients",
                    "land_price_model_specification",
                    "residential_land_share_model_coefficients",
                    "residential_land_share_model_specification",
                    "plan_type_group_definitions",
                    "plan_type_groups",
                    "large_areas",
                    "household_characteristics_for_ht",
                    "development_types",
                    "development_type_group_definitions",
                    "development_constraints",
                    "annual_relocation_rates_for_households",
                    "annual_relocation_rates_for_jobs",
                    "base_year",
                    "cities",
                    "development_events",
                    "development_type_groups",
                    "employment_adhoc_sector_group_definitions",
                    "employment_adhoc_sector_groups",
                    "employment_events",
                    "employment_sectors",
                    "land_use_events",
                    "plan_types",
                    "race_names",
                    "target_vacancies",
                    "jobs_for_estimation",
                    "households_for_estimation",
                    "development_events_exogenous",
                    "job_building_types",
                ],
                tables_to_cache_nchunks={"gridcells": 4},
                tables_to_copy_to_previous_years={
                    "development_type_groups": 1995,
                    "development_types": 1995,
                    "development_type_group_definitions": 1995,
                },
            ),
            "models": [],  # run no urbansim models
            "scenario_database_configuration": ScenarioDatabaseConfiguration(database_name="PSRC_2000_baseyear"),
            "base_year": 2000,
            "years": (2001, 2001),
            "unroll_gridcells": False,
        }
        config.merge(config_changes)

        travel_model_config = create_travel_model_configuration(
            "baseline_travel_model_psrc_fresh",
            mode="get_emme2_data_after_run",
            years_to_run={2001: "2000_06"},
            emme2_batch_file="QUICKRUN.BAT",
        )
        config["travel_model_configuration"] = travel_model_config
        self.merge(config)
Example #36
0
            'development_events',
            'development_type_groups',
            'employment_adhoc_sector_group_definitions',
            'employment_adhoc_sector_groups',
            'employment_events',
            'employment_sectors',
            'land_use_events',
            'plan_types',
            'race_names',
            'target_vacancies',
            'jobs_for_estimation',
            'households_for_estimation',
            'development_events_exogenous',
            'job_building_types'
            ],
        tables_to_cache_nchunks = {'gridcells': 1},
        tables_to_copy_to_previous_years = {},
        ),
    'scenario_database_configuration': ScenarioDatabaseConfiguration(
        database_name = 'PSRC_2000_baseyear',
        ),
    'base_year':2000,
    'years':(2000, 2000),
    'models':[],
    }
run_configuration = config.copy()    
run_configuration.merge(config_changes)

from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc_mini', mode='skims', years_to_run={2000:'2000_06'})
run_configuration['travel_model_configuration'] = travel_model_configuration
Example #37
0
 def __init__(self):
     config = AbstractUrbansimConfiguration()
     db_server = DatabaseServer(ScenarioDatabaseConfiguration())
     db = db_server.get_database('PSRC_2000_baseyear')        
     config_changes = {
         'description':'baseline with travel model',
         'in_storage':StorageFactory().get_storage('sql_storage',
                 storage_location = db
             ),
         'cache_directory':None, ### TODO: Set this cache_directory to something useful.
         'creating_baseyear_cache_configuration':CreatingBaseyearCacheConfiguration(
             cache_directory_root = 'd:/urbansim_cache',
             cache_from_database = True,
             baseyear_cache = BaseyearCacheConfiguration(
                              r'D:\urbansim_cache\run_1417.2006_12_08_01_50'),
             cache_scenario_database = 'urbansim.model_coordinators.cache_scenario_database',
             tables_to_cache = [
                 'annual_employment_control_totals',
                 'annual_household_control_totals',
                 'buildings',
                 'building_types',
                 'development_event_history',
                 'gridcells',
                 'households',
                 'job_building_types',
                 'jobs',
                 'travel_data',
                 'zones',
                 'counties',
                 'commercial_development_location_choice_model_coefficients',
                 'commercial_development_location_choice_model_specification',
                 'commercial_employment_location_choice_model_coefficients',
                 'commercial_employment_location_choice_model_specification',
                 'home_based_employment_location_choice_model_specification',
                 'home_based_employment_location_choice_model_coefficients',
                 'industrial_employment_location_choice_model_coefficients',
                 'industrial_employment_location_choice_model_specification',
                 'industrial_development_location_choice_model_coefficients',
                 'industrial_development_location_choice_model_specification',
                 'residential_development_location_choice_model_coefficients',
                 'residential_development_location_choice_model_specification',
                 'fazes',
                 'urbansim_constants',
                 'household_location_choice_model_coefficients',
                 'household_location_choice_model_specification',
                 'land_price_model_coefficients',
                 'land_price_model_specification',
                 'residential_land_share_model_coefficients',
                 'residential_land_share_model_specification',
                 'plan_type_group_definitions',
                 'plan_type_groups',
                 'large_areas',
                 'household_characteristics_for_ht',
                 'development_types',
                 'development_type_group_definitions',
                 'development_constraints',
                 'annual_relocation_rates_for_households',
                 'annual_relocation_rates_for_jobs',
                 'base_year',
                 'cities',
                 'development_events',
                 'development_type_groups',
                 'employment_adhoc_sector_group_definitions',
                 'employment_adhoc_sector_groups',
                 'employment_events',
                 'employment_sectors',
                 'land_use_events',
                 'plan_types',
                 'race_names',
                 'target_vacancies',
                 'jobs_for_estimation',
                 'households_for_estimation',
                 'development_events_exogenous',
                 'job_building_types'
                 ],
             tables_to_cache_nchunks = {'gridcells': 4},
             tables_to_copy_to_previous_years = {
                 'development_type_groups': 1995,
                 'development_types': 1995,
                 'development_type_group_definitions': 1995,
                 },
             ),
         'models':[],  # run no urbansim models
         'scenario_database_configuration': ScenarioDatabaseConfiguration(
             database_name = 'PSRC_2000_baseyear',
             ),
         'base_year':2000,
         'years':(2001, 2002),
         'unroll_gridcells':False
         }
     config.merge(config_changes)
     
     travel_model_config = create_travel_model_configuration('baseline_travel_model_psrc_fresh', 
                                                             mode='get_emme2_data_after_run',
                                                             years_to_run = {2001:'2000_06'},
                                                             emme2_batch_file='MODEL05.BAT')
     config['travel_model_configuration'] = travel_model_config
     self.merge(config)
Example #38
0
            'cities',
            'development_events',
            'development_type_groups',
            'employment_adhoc_sector_group_definitions',
            'employment_adhoc_sector_groups',
            'employment_events',
            'employment_sectors',
            'land_use_events',
            'plan_types',
            'race_names',
            'target_vacancies',
            'jobs_for_estimation',
            'households_for_estimation',
            'development_events_exogenous',
            'job_building_types'
            ],
        tables_to_cache_nchunks = {'gridcells': 1},
        tables_to_copy_to_previous_years = {},
        ),
    'scenario_database_configuration': ScenarioDatabaseConfiguration(
        database_name = 'PSRC_2000_baseyear_old_elcm_coeff',
        ),
    'base_year':2000,
    'years':(2001, 2030),
    }
run_configuration = config.copy()    
run_configuration.merge(config_changes)

from psrc.configs.create_travel_model_configuration import create_travel_model_configuration
travel_model_configuration = create_travel_model_configuration('baseline_travel_model_psrc', mode='skims')
run_configuration['travel_model_configuration'] = travel_model_configuration
Example #39
0
 def __init__(self):
     config = AbstractUrbansimConfiguration()
     db_server = DatabaseServer(ScenarioDatabaseConfiguration())
     db = db_server.get_database('PSRC_2000_baseyear')        
     config_changes = {
         'description':'baseline with travel model',
         'in_storage':StorageFactory().get_storage('sql_storage',
                 storage_location = db
             ),
         'cache_directory':None, ### TODO: Set this cache_directory to something useful.
         'creating_baseyear_cache_configuration':CreatingBaseyearCacheConfiguration(
             cache_directory_root = 'd:/urbansim_cache',
             cache_from_database = True,
             baseyear_cache = BaseyearCacheConfiguration(
                              r'D:\urbansim_cache\run_1417.2006_12_08_01_50'),
             cache_scenario_database = 'urbansim.model_coordinators.cache_scenario_database',
             tables_to_cache = [
                 'annual_employment_control_totals',
                 'annual_household_control_totals',
                 'buildings',
                 'building_types',
                 'development_event_history',
                 'gridcells',
                 'households',
                 'job_building_types',
                 'jobs',
                 'travel_data',
                 'zones',
                 'counties',
                 'commercial_development_location_choice_model_coefficients',
                 'commercial_development_location_choice_model_specification',
                 'commercial_employment_location_choice_model_coefficients',
                 'commercial_employment_location_choice_model_specification',
                 'home_based_employment_location_choice_model_specification',
                 'home_based_employment_location_choice_model_coefficients',
                 'industrial_employment_location_choice_model_coefficients',
                 'industrial_employment_location_choice_model_specification',
                 'industrial_development_location_choice_model_coefficients',
                 'industrial_development_location_choice_model_specification',
                 'residential_development_location_choice_model_coefficients',
                 'residential_development_location_choice_model_specification',
                 'fazes',
                 'urbansim_constants',
                 'household_location_choice_model_coefficients',
                 'household_location_choice_model_specification',
                 'land_price_model_coefficients',
                 'land_price_model_specification',
                 'residential_land_share_model_coefficients',
                 'residential_land_share_model_specification',
                 'plan_type_group_definitions',
                 'plan_type_groups',
                 'large_areas',
                 'household_characteristics_for_ht',
                 'development_types',
                 'development_type_group_definitions',
                 'development_constraints',
                 'annual_relocation_rates_for_households',
                 'annual_relocation_rates_for_jobs',
                 'base_year',
                 'cities',
                 'development_events',
                 'development_type_groups',
                 'employment_adhoc_sector_group_definitions',
                 'employment_adhoc_sector_groups',
                 'employment_events',
                 'employment_sectors',
                 'land_use_events',
                 'plan_types',
                 'race_names',
                 'target_vacancies',
                 'jobs_for_estimation',
                 'households_for_estimation',
                 'development_events_exogenous',
                 'job_building_types'
                 ],
             tables_to_cache_nchunks = {'gridcells': 4},
             tables_to_copy_to_previous_years = {
                 'development_type_groups': 1995,
                 'development_types': 1995,
                 'development_type_group_definitions': 1995,
                 },
             ),
         'models':[],  # run no urbansim models
         'scenario_database_configuration': ScenarioDatabaseConfiguration(
             database_name = 'PSRC_2000_baseyear',
             ),
         'base_year':2000,
         'years':(2001, 2002),
         'unroll_gridcells':False
         }
     config.merge(config_changes)
     
     travel_model_config = create_travel_model_configuration('baseline_travel_model_psrc_fresh', 
                                                             mode='get_emme2_data_after_run',
                                                             years_to_run = {2001:'2000_06'},
                                                             emme2_batch_file='MODEL05.BAT')
     config['travel_model_configuration'] = travel_model_config
     self.merge(config)