Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

ResStock building model generation

asked 2025-11-25 16:59:16 -0600

Gio_GG's avatar

updated 2025-11-26 12:47:33 -0600

Hi,

I understand that the ResStock library generates building energy models based on statistical distributions, and then applies upgrades (i.e., modifications to the base building model to create variants). Is this correct?

I have two questions:

Generating models for a specific state : Is it possible to generate a specific number of building energy models only for New York State? If so, should I modify the distribution assigned in the RunSampling object (in run_sampling_lib.rb) to achieve this?

Generating specific building configurations : For example, if I want to generate 25 buildings with PVs and batteries and 50 buildings without PVs and batteries, how should I proceed?

Should I adjust the distributions in RunSampling to reflect these proportions? If yes, do I need to run the generation process repeatedly until I obtain the desired number of buildings matching my criteria?

Thanks for your help! :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2025-12-01 11:03:25 -0600

I believe you want to use the Residential Quota Downselect Sampler in your project yml file. It gives you the ability to specify Parameter|Option logic statements, as well as control over resampling.

(Note that at this time the residential_quota_downselect sampler with resample is not supported when running a project using run_analysis.rb.)

edit flag offensive delete link more

Comments

Thank you ! Yes, this is exactly what I was asking for. I tried it for generating houses with EVs like this :

sampler: type: residential_quota_downselect args: n_datapoints: 1 logic: - Electric Vehicle Ownership|Yes - Electric Vehicle Charger|Level 1 charger resample: false

However, it generates one .idf file of size 19Ko which doesn't include all the caracteristics. I execute it with this command :

openstudio path_to_run_analysis.rb -y path_to_sdr_upgrades_tmy3.yml -m -o -k -u "Baseline"

Is this the correct way ? Which options should I precise ?

Thank you !

Gio_GG's avatar Gio_GG  ( 2025-12-01 13:29:37 -0600 )edit
1

It shouldn't have produced an IDF, I filed a bug report here. You basically asked for one datapoint, which did not meet the downselect logic, so you should have ended up with zero IDFs. Since you are not using resample, you will have to greatly increase the number of datapoints such that at least one of them exactly matches your requirements. The percentage of homes in the baseline with both EVs & chargers is quite small.

shorowit's avatar shorowit  ( 2025-12-02 10:46:09 -0600 )edit

Thanks ! I avoided this by selecting myself the correct options in the .tsv file (while trying to match the generation logic :)) )

Gio_GG's avatar Gio_GG  ( 2025-12-04 13:45:00 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Question Tools

1 follower

Stats

Asked: 2025-11-25 16:59:16 -0600

Seen: 109 times

Last updated: Dec 04