First time here? Check our help page!
1

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

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.

nikossif's avatar
31
nikossif
asked 2017-03-24 14:17:53 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-03-24 15:23:12 -0500
edit flag offensive 0 remove flag 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's avatar Thierry Nouidui (2017-03-27 09:56:13 -0500) 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's avatar nikossif (2017-03-27 10:49:05 -0500) edit
add a comment see more comments

1 Answer

2

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.

Thierry Nouidui's avatar
1.5k
Thierry Nouidui
answered 2017-03-30 12:43:09 -0500, updated 2017-03-31 10:12:18 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments