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

Run models using sampling methods locally

asked 2017-04-24 16:13:15 -0500

updated 2017-08-20 14:58:07 -0500

I want to run models by PAT (OpenStudio 2.1) on my local workstation. I know that some sampling methods can be used in PAT, but I find that I can only run models on cloud if I use sampling methods. Can I run models using sampling methods locally? Or are there some methods (e.g. modify some source codes, use some tools to create a virtual cloud locally) to make it possible?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2017-04-24 16:27:20 -0500

updated 2017-04-26 16:43:18 -0500

It's technically possible to enable those algorithms to run on local computing resources, but such problems are generally too large to be accommodated on the same computer. (You'll quickly find that problems balloon to hundreds or thousands of datapoints with a few mouse clicks in PAT!) There was a design decision1 made to restrict algorithms to only run on AWS or other machines that have been provisioned with OpenStudio server. The team may re-evaluate that in the future based on feedback.


1 The local instance of OS Server provisioned when PAT starts up is lighter weight and doesn't include R and all of the same support code that is installed on remote servers. All of the code required for the full server is available in the OpenStudio-Server GitHub repository.

edit flag offensive delete link more

Comments

If I can identify the sensitive inputs (maybe 30~50), and then use sampling methods (e.g. LHS) to decide which models we will run only based on these inputs. Can this way avoid to be too large to be accommodated on the same computer?

Yunyang Ye gravatar imageYunyang Ye ( 2017-04-28 09:43:37 -0500 )edit

The sampling problem you describe is the sort of thing we typically run on one of our dedicated 40+ core servers. Unless that's the class of machine you have at your desk, then you would be unhappy with "local" performance. There are other Q&As that have cropped up on Unmet Hours in recent days that may assist you in configuring your local computer or a dedicated server.

ljbrackney gravatar imageljbrackney ( 2017-04-28 09:51:27 -0500 )edit
5

answered 2017-04-28 10:33:12 -0500

updated 2017-04-28 10:41:18 -0500

To run algorithms locally, you will need to setup your own OpenStudio Server. You have 2 options here:

  1. checkout https://github.com/NREL/OpenStudio-se... locally and build your own Docker containers.

  2. use the already built docker containers and do the following:

docker pull nrel/openstudio-server:2.1.1

docker pull nrel/openstudio-rserve:2.1.1

docker pull mongo

docker volume create --name osdata

Once the containers are spun up, use docker-compose with the .yml file located here and then from that folder run

docker-compose up

to add workers:

docker-compose scale worker=44

edit flag offensive delete link more

Comments

1

In Brian's example, worker=44 allocates 44 cores. Your mileage may vary.

ljbrackney gravatar imageljbrackney ( 2017-04-28 10:46:18 -0500 )edit
1

4 cores are needed for the basic services (DB, Web and RServe). The rest can be workers.

BrianLBall gravatar imageBrianLBall ( 2017-05-01 09:56:10 -0500 )edit

So that means it's pointless to try to run a local algorithmic analysis unless you have a machine with more than 4 cores?

Julien Marrec gravatar imageJulien Marrec ( 2017-06-21 09:52:42 -0500 )edit
1

it would probably suffer from performance issues fighting over computer resources.

BrianLBall gravatar imageBrianLBall ( 2017-06-21 09:57:22 -0500 )edit

Pretty much, which is why local mode is disabled when algorithms are selected. There's been discussion internally about packaging a full instance of OS Server for use by PAT locally. It's certainly doable, but it would only serve a tiny segment of users. The best solution is to provision a dedicated server box.

ljbrackney gravatar imageljbrackney ( 2017-06-21 09:57:44 -0500 )edit

Your Answer

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

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2017-04-24 16:13:15 -0500

Seen: 206 times

Last updated: Apr 28 '17