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

Binding Monthly and Hourly calibration

asked 2018-12-20 11:22:11 -0600

Vishak's avatar

updated 2018-12-20 23:19:22 -0600

This is a follow up a question to the question in link below and following conversation. https://unmethours.com/question/34380...

Currently, I am looking to bind hourly and monthly calibration together in a single PAT project. The sample project referenced in the above link had the model being calibrated to multiple objective across a wide spectrum but all were on an hourly basis.

I want to ask if a calibration at two different interval levels can be accomplished using two different instances of time series objective measure. In addition what should be the Timestamps for the .csv file that would be used for the monthly time series objective measure, will that be just an array of month start dates (MM/DD/YYYY) or dates with hour:minutes (MM/DD/YYYY hh:mm) included?

If that is not possible, can a combination of normal monthly calibration process using 'AddJSONmonthlyUtilityData' and the hourly calibration process using 'TimeSeriesObjectiveFunction' work simultaneously ?

Tagging @David Goldwasser here, he suggested the query to be started a a different question.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2018-12-21 10:49:49 -0600

updated 2018-12-27 07:02:34 -0600

@Vishak yes, you can do this. For any optimization/calibration there are a few steps.

  1. Adding runner.RegisterValue to measure: Any OpenStudio measure can add runner.registerValue objects to it, although this is mostly commonly used for reporting measures that are reporting values generated using simulation results. NREL published reporting measures already contain these objects.
  2. Adding outputs to the Analysis: In the OpenStudio Analysis you can setup specific runner.registerValuesentries as outputs. This is typically done using the Output tab of PAT in algorithmic mode. Some runner.registerValues are hard coded. If you don't see the one you need, you can add one manually and type the name, but it will only work if it matches a runner.registerValue generated by the measure.
  3. Setting up objective functions: To use outputs for any kind of optimization, you need to setup one or more outputs as objective functions. In the Outputs tab you can set "Objective Function" column to true for specific outputs, add in a target value, often but not always 0, and then if there is more than one objective function then you should also set the weighting factor between the measures.
  4. Make sure you have an algorithm type selected that supports optimization, such as RGENOUD or NSGA2.
  5. Lastly, make sure you have setup one or more arguments in the measures as variables that the algorithm can alter to minimize the objective function.

I know steps 4 and 5 are kind of obvious but just wanted to list them as something someone can do to pre-flight check the analysis before kicking it off.

For many users objective functions may come from a single reporting measure. For example, on our time series calibration measure both CVRMSE and NMBE might each be objective functions, but there is nothing stopping you from running multiple reporting measures, each adding their own objective functions. In your case I would not add two copies of the time series calibration measure. It was intended to look at load profile throughout the day at hourly or simulation timestep intervals. You second reporting measure should be standard or Enhanced Calibration Report. This uses the Tabular EnergyPlus results which already includes monthly data.

I will say that while it is very easy to have a good monthly CVRMSE and a bad hourly or timestep CVRMSE, the reverse is less common. It would be hard to have a good time series CVRMSE and a bad monthly CVRMSE. So if you have annual data for both, then I don't know how much is added with the monthly objective function. But a common occurrence might be having time series for 3 weeks and monthly for the year. In that case having both sets of objective functions would be critical.

edit flag offensive delete link more

Comments

Thanks for the explanation @David Goldwasser .

Vishak's avatar Vishak  ( 2019-01-02 00:22:08 -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

Careers

Question Tools

3 followers

Stats

Asked: 2018-12-20 11:22:11 -0600

Seen: 379 times

Last updated: Dec 27 '18