Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page
Ask Your Question
1

How to make BCVTB make more than one iteration when co-simulates E+ with MATLAB.

asked 2017-03-24 14:17:53 -0600

nikossif gravatar image

updated 2017-03-24 15:23:12 -0600

Hello everybody, I want to force BCVTB to make more than one iteration (EnergyPlus and MATLAB connection). Does anyone know how to achieve it. Thanks in advance.

edit retag flag offensive close merge delete

Comments

Could you explain what you would like to achieve? What is your desired sequence of execution assuming a timestep of deltaT for instance?

Thierry Nouidui gravatar image Thierry Nouidui  ( 2017-03-27 09:56:13 -0600 )edit

Hello, I would like to co-simulate EnergyPlus with MATLAB via BCVTB, in order to find the optimal temperature setpoints that minimize the energy cost via genetic algorithms. Actually , I want to give energyplus some temperature setpoints, energy plus give matlab the energy required to achieve them, and try to find the optimum for a total month with a timestep of 3600secs(1minute). In order to achieve it, we may use simulink's BCVTB template or even Matlab's "Simulate AndExit" file.

Thanks in advance.

nikossif gravatar image nikossif  ( 2017-03-27 10:49:05 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-03-30 12:43:09 -0600

updated 2017-03-31 10:12:18 -0600

This should not be done with the BCVTB since the tool is not designed for that. It might be better for you to export EnergyPlus as an FMU, and import it in Simulink/Matlab so you can call it multiple times at a given time step. One difficulty I see with the whole setup is to actually reinitialize EnergyPlus with the values found by the optimizer at every step. This is particularly important when your system model has states.

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

2 followers

Stats

Asked: 2017-03-24 14:17:53 -0600

Seen: 205 times

Last updated: Mar 31 '17