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

Defining objectives functions from results obtained with python scripts

asked 2020-10-13 06:35:38 -0600

Carmen's avatar

updated 2020-10-13 08:07:09 -0600

I've created a python script in order to determine the % of discomfort hours using the hourly indoor air temperatures reported in the simulations. However, I do not know how to specify the % of discomfort hours as an objective funtion in the .rvx file, since those variables have to be linked to the column names reported in the AllCombinedResults.csv (where the hourly temperature data is reported). So, is there a way to overwrite the indoor air temperatures by the % of discomfort hours obtained in the python script? How should I tell jEPLUS+EA to optimize the variables reported in the python script?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-10-14 04:18:07 -0600

Yi Zhang's avatar

Hi Carmen,

In order to use values calculated by your Python script for optimisation, you need to add it to the jEPlus project as a "script" object. Your script will take input from jEPlus and produce a table in a required format. The manual is here: https://www.jeplus.org/wiki/doku.php?...

A new version (v2.1) of jEPlus and jEPlus+EA is out. It is a little easier to set up RVX in jEPlus v2 and the new jEPlus+EA offers some useful features, too. You can check them out on jeplus.org.

Yi

edit flag offensive delete link more

Comments

Sorry, but I didn't get it. Actually I am calculating the RMSE with a python script and gather all the results as described above in a csv called RMSE.csv. My question is how can I identify now the calculated RMSE to use it as an objective? What should I include in the formula box?

Kostas

kostas's avatar kostas  ( 2023-07-05 05:52:59 -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

2 followers

Stats

Asked: 2020-10-13 06:35:38 -0600

Seen: 263 times

Last updated: Oct 14 '20