RE: Industrial ELCM error

From: Quinn Korbulic <qkorb.77_at_gmail.com>
Date: Wed, 27 Jun 2007 12:13:00 -0600

Hana,

The value for industrial_sqft_per_job in my gridcells table is 1250. So by
your explaination, if I reduce the industrial sqft per job value I should
hold off on getting this error for another couple years (during the model
run). I guess ideally we would have a different sqft_per_job value for every
employer. What seems counterintuitive to me is that I have a vacant
industrial sqft value above the minimum allowable value so there is no
industrial development (yet) and the jobs that want to go to the full
gridcells don't go to the ones with vacancy. I imagine I'm oversimplifying
this a bit. I know this is partly a function of having poor (or poorly
implemented) employment data but will development of industrial sqft help to
alleviate this problem in the future? Thanks...

-----Original Message-----
From: Hana Sevcikova [mailto:hana_at_cs.washington.edu]
Sent: Wednesday, June 27, 2007 11:38 AM
To: Quinn Korbulic
Cc: users_at_urbansim.org
Subject: RE: Industrial ELCM error

Quinn,

The vacant_industrial_job_space divides industrial sqft of a gridcell by
industrial_sqft_per_job of that gridcell and subtracts number of
industrial jobs already placed in that gridcell. Thus, the variable
indicates the number of industrial jobs that can be placed into the
gridcell.

The only reason for your error that I can think of is that the jobs that
are placed in the first round of the industrial ELCM fill up the available
space. Note also, if a gridcell has zero industrial_sqft_per_job, it is
translated to zero vacant job space. Does this attribute have reasonable
values in your gridcells table?

Hana

On Wed, 27 Jun 2007, Quinn Korbulic wrote:

> Thanks Hana,
>
> When you say 'enough space to accommodate industrial jobs', do you mean
> enough vacant industrial sqft? In that case, I do have vacant industrial
> sqft according to the log file for the year in which this error occurs. If
> 'job_space' is something other than vacant sqft then I'm not sure how to
> find out if job_space is the problem or how to increase job_space to get
the
> model to run...I've attached the log file...thanks for your help.
>
> Quinn
>
> -----Original Message-----
> From: users-bounces_at_urbansim.org [mailto:users-bounces_at_urbansim.org] On
> Behalf Of Hana Sevcikova
> Sent: Wednesday, June 27, 2007 5:41 AM
> To: Quinn Korbulic
> Cc: users_at_urbansim.org
> Subject: Re: Industrial ELCM error
>
> Quinn,
>
> Your error message suggests that you don't have enough space to
> accommodate industrial jobs. Specifically, the variable
> vacant_industrial_job_space (I suppose) produces only zeros and thus there

> are no gridcells to sample from in order to have a set of alternatives for

> the choice model.
>
> Let me know if you find out that this is a wrong hypothesis.
>
> Hana
>
>
> On Tue, 26 Jun 2007, Quinn Korbulic wrote:
>
> > Hello,
> >
> > I'm running into this error when running urbanism on our El Paso pilot
> > dataset. The error is the same with the milestone release and with
> > yesterday's release. I'm not sure why it is failing as this model runs
> fine
> > in previous years.? The error is below.any help is appreciated, thanks.
> >
> > Simulate ...
> > Number of unplaced agents: 38 (in 3 iterations)
> > Number of unplaced agents: 8 (in 3 iterations)
> > Number of unplaced agents: 5 (in 3 iterations)
> > Industrial ELCM chunk 1 out of 1.: completed...3.6 sec,
> > total 25396 KB, up 180 KB
> > urbansim.gridcell.number_of_industrial_jobs....0.0 sec,
> > total 25260 KB, up -136 KB
> > Total number of individuals: 90
> > Industrial ELCM chunk 1 out of 1.: started on Tue Jun 26
> > 20:47:01 2007
> > Number of agents in this chunk: 90
> > urbansim.gridcell.vacant_industrial_job_space
> >
urbansim.gridcell.number_of_industrial_jobs....0.0
> > sec, total 25004 KB, up -256 KB
> > WARNING: Negative values detected in
> function/method
> > 'vacant_industrial_job_space'
> > WARNING: Minimum: -153. Negative values clipped
to
> > zero.
> > urbansim.gridcell.vacant_industrial_job_space:
> > completed...0.1 sec, total 25036 KB, up -224 KB
> > Choice set size: 30
> > Sampling locations ...
> > WARNING: weight_array sums to 0 or less
> > WARNING: weight array dosen't have enough non-zero
> > counts, use sample with replacement
> > WARNING: prob_array doesn't sum up to 1, and is
> > normalized. Sum: 0
> > Industrial ELCM chunk 1 out of 1.: completed...0.2 sec,
> > total 25132 KB, up -128 KB
> > Running Industrial Employment Location Choice Model (from
> > urbansim.models.employment_location_choice_model): co
> > p 2048 KB
> > Simulate year 2003: completed......47.9 sec, total 25132 KB, up
> > 11060 KB
> > Closing log file:
> > c:/urbansim_cache\run_188.2007_06_26_20_40\year_2003_log.txt
> > Starting simulation for year 2003: completed...48.0 sec, total 25132
> KB,
> > up 11064 KB
> > Start simulation run: completed............48.0 sec, total 25132 KB, up
> > 11068 KB
> > Closing log file:
> > c:/urbansim_cache\run_188.2007_06_26_20_40\run_multiprocess.log
> > Traceback (most recent call last):
> > File "C:\workspace\urbansim\model_coordinators\model_system.py", line
> 572,
> > in ?
> > s.run(resources)
> > File "C:\workspace\urbansim\model_coordinators\model_system.py", line
> 137,
> > in run
> >
> >
>
write_datasets_to_cache_at_end_of_year=write_datasets_to_cache_at_end_of_yea
> > r)
> > File "C:\workspace\urbansim\model_coordinators\model_system.py", line
> 363,
> > in _run_year
> > self.vardict[outputvar] = self.do_process(locals())
> > File "C:\workspace\urbansim\model_coordinators\model_system.py", line
> 441,
> > in do_process
> > return eval(ev)
> > File "<string>", line 0, in ?
> > File "C:\workspace\opus_core\model.py", line 48, in logged_run_method
> > results = run_method(*req_args, **opt_args)
> > File "C:\workspace\opus_core\configurable.py", line 38, in
> > config_run_method
> > results = run_method(*req_args, **opt_args)
> > File
> "C:\workspace\urbansim\models\agent_location_choice_model_member.py",
> > line 46, in run
> > agents_index=agents_index[new_agents_index], **kwargs)
> > File "C:\workspace\urbansim\models\agent_location_choice_model.py",
line
> > 75, in run
> > agents_index[unplaced], chunk_specification, run_config=run_config,
> > debuglevel=debuglevel)
> > File "C:\workspace\urbansim\models\location_choice_model.py", line
121,
> in
> > run
> > debuglevel=debuglevel)
> > File "C:\workspace\opus_core\choice_model.py", line 141, in run
> > specification=specification, coefficients=coefficients)
> > File "C:\workspace\opus_core\chunk_model.py", line 72, in run
> > dataset, **kwargs).astype(result_array_type)
> > File "C:\workspace\urbansim\models\agent_location_choice_model.py",
line
> > 89, in run_chunk
> > result = LocationChoiceModel.run_chunk(self, agents_index,
agent_set,
> > specification, coefficients)
> > File "C:\workspace\urbansim\models\location_choice_model.py", line
140,
> in
> > run_chunk
> > choices = ChoiceModel.run_chunk(self,agents_index, agent_set,
> > specification, coefficients)
> > File "C:\workspace\opus_core\choice_model.py", line 153, in run_chunk
> > index = self.get_choice_index(nchoices, agent_set, agents_index,
> > agentsubset)
> > File "C:\workspace\urbansim\models\location_choice_model.py", line
265,
> in
> > get_choice_index
> > weight=self.weights, resources=self.run_config)
> > File "C:\workspace\opus_core\configurable.py", line 38, in
> > config_run_method
> > results = run_method(*req_args, **opt_args)
> > File "C:\workspace\opus_core\samplers\weighted_sampler.py", line 103,
in
> > run
> > replace=replace, return_indices=True )
> > File "C:\workspace\opus_core\sampling_toolbox.py", line 278, in
> > prob2dsample
> > cum_prob = ncumsum(p_array)
> > File "C:\workspace\opus_core\misc.py", line 497, in ncumsum
> > raise ValueError, "The probability array must sum up to 1. It is " +
\
> > ValueError: The probability array must sum up to 1. It is 0.0
> > Running UrbanSim for year 2003 in new process:
> completed................49.4
> > sec
> > Traceback (most recent call last):
> > File "start_run.py", line 75, in ?
> > run_manager.run_run(config)
> > File "C:\workspace\opus_core\services\run_server\run_manager.py", line
> > 160, in run_run
> > model_system.run_multiprocess(run_resources)
> > File "C:\workspace\urbansim\model_coordinators\model_system.py", line
> 479,
> > in run_multiprocess
> > ForkProcess().fork_new_process(
> > File "C:\workspace\opus_core\fork_process.py", line 53, in
> > fork_new_process
> > raise StandardError("Problem with %s" % module_name)
> > StandardError: Problem with urbansim.model_coordinators.model_system
> >
> > Quinn Korbulic
> > GIS Coordinator
> > Spatial Applications and Research Center
> > New Mexico State University
> > Geography Department
> > Box 30001, Dept. MAP
> > Las Cruces, NM 88003-0001
> > VOICE (505) 646-5755
> > FAX (505) 646-7430
> >
> >
> >
> _______________________________________________
> Users mailing list
> Users_at_urbansim.org
> http://www.urbansim.org/mailman/listinfo/users
>
Received on Wed Jun 27 2007 - 11:13:07 PDT

This archive was generated by hypermail 2.2.0 : Wed Jun 27 2007 - 11:13:08 PDT