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 4 years ago

Carmen's avatar

updated 4 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

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

Preview: (hide)
link

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  ( 1 year ago )

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: 4 years ago

Seen: 286 times

Last updated: Oct 14 '20