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

Defining objectives functions from results obtained with python scripts

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

Carmen gravatar image

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

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
1

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

Yi Zhang gravatar image

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

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: 2020-10-13 06:35:38 -0500

Seen: 80 times

Last updated: Oct 14