set variable starting conditions
For the following FMU Export settings, the starting conditions, e.g. temperatures in buffer storages, can not be set for any episode when using the fmu.py simulator:
FMU Version 2.0, Type: Co-Simulations using Dymola Solvers, Dymola Version: 2021
The FMU parameters were checked and are defined correctly in the model. For simulation speed and performance reasons, this export type can be useful, which is why the initial starting conditions should be changed in eta_utility.
My suggested solution:
call self.set_values(init_values)
before entering the initialization mode with self.fmu.enterInitializationMode()
in __init__
as well as the reset
function.
This solution was tested with the used FMU as well as the standard FMU models from supplysystem a and supplysystem b