3

Defining objectives functions from results obtained with python scripts

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?

Carmen's avatar
61
Carmen
asked 2020-10-13 06:35:38 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2020-10-13 08:07:09 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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

Yi Zhang's avatar
1.2k
Yi Zhang
answered 2020-10-14 04:18:07 -0500
edit flag offensive 0 remove flag delete 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 (2023-07-05 05:52:59 -0500) edit
add a comment see more comments