{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# %load_ext autoreload\n", "# %autoreload 2\n", "import models, utils\n", "import orca" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false, "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Running iteration 1 with iteration value 2010\n", "Running step 'rsh_simulate'\n", "Filling column non_residential_rent with value 0 (142400 values)\n", "Filling column residential_units with value 0 (0 values)\n", "Filling column year_built with value 1927.0 (3116 values)\n", "Filling column residential_sales_price with value 0 (14196 values)\n", "Filling column non_residential_sqft with value 0 (1341 values)\n", "Filling column building_type_id with value 2.0 (0 values)\n", "count 140780.000000\n", "mean 1156.971200\n", "std 41503.246343\n", "min 0.002067\n", "25% 252.727481\n", "50% 379.993499\n", "75% 554.244653\n", "max 12507033.315516\n", "dtype: float64\n", "Time to execute step 'rsh_simulate': 0.89 s\n", "Running step 'nrh_simulate'\n", "Filling column job_category with value service (331 values)\n", "count 10803.000000\n", "mean 20.729909\n", "std 6.833292\n", "min 6.258496\n", "25% 17.431477\n", "50% 20.908725\n", "75% 25.077906\n", "max 47.266957\n", "dtype: float64\n", "Time to execute step 'nrh_simulate': 0.65 s\n", "Running step 'households_relocation'\n", "Total agents: 345588\n", "Total currently unplaced: 0\n", "Assinging for relocation...\n", "Total currently unplaced: 17279\n", "Time to execute step 'households_relocation': 0.20 s\n", "Running step 'hlcm_simulate'\n", "There are 374133 total available units\n", " and 345588 total choosers\n", " but there are 42964 overfull buildings\n", " for a total of 109417 temporarily empty units\n", " in 50943 buildings total in the region\n", "Assigned 17279 choosers to new units\n", "Total currently unplaced: 0\n", " and there are now 28545 empty units\n", " and 42963 overfull buildings\n", "Time to execute step 'hlcm_simulate': 2.38 s\n", "Running step 'households_transition'\n", "345588 agents before transition\n", "362867 agents after transition\n", "Time to execute step 'households_transition': 0.12 s\n", "Running step 'jobs_relocation'\n", "Total agents: 225439\n", "Total currently unplaced: 0\n", "Assinging for relocation...\n", "Total currently unplaced: 11271\n", "Time to execute step 'jobs_relocation': 0.09 s\n", "Running step 'elcm_simulate'\n", "There are 642004 total available units\n", " and 225439 total choosers\n", " but there are 14729 overfull buildings\n", " for a total of 543899 temporarily empty units\n", " in 8508 buildings total in the region\n", "Assigned 11271 choosers to new units\n", "Total currently unplaced: 0\n", " and there are now 416565 empty units\n", " and 14728 overfull buildings\n", "Time to execute step 'elcm_simulate': 2.48 s\n", "Running step 'jobs_transition'\n", "225439 agents before transition\n", "236711 agents after transition\n", "Time to execute step 'jobs_transition': 0.09 s\n", "Running step 'feasibility'\n", "Describe of the yearly rent by use\n", " retail industrial office residential\n", "count 152205.000000 94493.000000 152259.000000 153228.000000\n", "mean 24.372495 9.162303 21.745700 19.329203\n", "std 3.542073 1.606168 2.976532 5.180867\n", "min 18.959521 6.258496 16.531243 1.168603\n", "25% 21.438446 7.684496 19.344172 16.951907\n", "50% 22.901679 9.001159 20.489489 19.036123\n", "75% 28.366444 10.239850 24.614586 21.460213\n", "max 35.701767 14.925111 31.440265 40.555074\n", "Computing feasibility for form mixedoffice\n", "Computing feasibility for form industrial\n", "Computing feasibility for form office\n", "Computing feasibility for form residential\n", "Computing feasibility for form mixedresidential\n", "Computing feasibility for form retail\n", "Time to execute step 'feasibility': 2.15 s\n", "Running step 'residential_developer'\n", "Number of agents: 362,867\n", "Number of agent spaces: 374,133\n", "Current vacancy = 0.03\n", "Target vacancy = 0.15, target of new units = 52,769\n", "25,510 feasible buildings before running developer\n", "Sum of net units that are profitable: 256,001\n", "Adding 951 buildings with 58,260 residential_units\n", "24,559 feasible buildings after running developer\n", "Time to execute step 'residential_developer': 0.37 s\n", "Running step 'non_residential_developer'\n", "Number of agents: 236,711\n", "Number of agent spaces: 642,004\n", "Current vacancy = 0.63\n", "Target vacancy = 0.15, target of new units = 0\n", "24,559 feasible buildings before running developer\n", "Sum of net units that are profitable: 424,243\n", "Adding 0 buildings with 0 job_spaces\n", "24,559 feasible buildings after running developer\n", "Time to execute step 'non_residential_developer': 0.39 s\n", "Total time to execute iteration 1 with iteration value 2010: 9.81 s\n" ] } ], "source": [ "orca.run([\n", " \"rsh_simulate\", # residential sales hedonic\n", " \"nrh_simulate\", # non-residential rent hedonic\n", "\n", " \"households_relocation\", # households relocation model\n", " \"hlcm_simulate\", # households location choice\n", " \"households_transition\", # households transition\n", "\n", " \"jobs_relocation\", # jobs relocation model\n", " \"elcm_simulate\", # employment location choice\n", " \"jobs_transition\", # jobs transition\n", "\n", " \"feasibility\", # compute development feasibility\n", " \"residential_developer\", # build residential buildings\n", " \"non_residential_developer\", # build non-residential buildings\n", "], iter_vars=[2010])" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 2", "language": "python", "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.10" } }, "nbformat": 4, "nbformat_minor": 0 }