ibpsa / project1-boptest-gym

Other
43 stars 20 forks source link

Synchronize parameters with scenarios #139

Open vadim0x60 opened 1 year ago

vadim0x60 commented 1 year ago

If, when I initialize BoptestGymEnv, I select a scenario like this:

env = BoptestGymEnv(
  start_time            = 0,
  scenario              = {'electricity_price': 'dynamic', 'time_period': 'peak_heat_day'})

this leads to errors and unstable behavior, because 'peak_heat_day' scenario includes a start_time and this start_time is not zero. So the request above (create a 'peak_heat_day' scenario with a start_time of 0) is inconsistent, however BoptestGymEnv doesn't raise any exception immediately, instead what happens is: