You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the up-and-coming detachment feature in Grid2Op, it works well with the PandaPowerBackend, but causes an error to be thrown in LightSim2Grid.
Currently it seems Lightsim2grid will still internally try to change the active power setpoint of disconnected generators (probably as part of the backend changing the setpoints of loads/generators to balance supply & demand). I imagine these will need to be masked so that the backend does not try to use disconnected elements.
Grid2OpException BackendError "GeneratorContainer::change_p: Impossible to change the active value of a disconnected generator (check gen. id 0)"
The error appears to occur in GeneratorContainer.cpp line 268.
Expected output
Expect no error to be thrown.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue. This is on my todo list but requires a bit of work on the cpp side of lightsim2grid (refactoring because it currently is a bit messy...)
As a quick and dirty fix, You can inherit the lightsim2grid backend and override the "apply_action" method to "mask out" the loads and generators disconnected in the "change_p", "change_q" or "change_v" functions.
Let me know if this is enough for you or if you want a code snippet 😊
Environment
1.11.0.dev3
(Note: This is a development branch)0.10.0
linux
Bug description
When using the up-and-coming detachment feature in Grid2Op, it works well with the PandaPowerBackend, but causes an error to be thrown in LightSim2Grid.
How to reproduce
Current output
Currently it seems Lightsim2grid will still internally try to change the active power setpoint of disconnected generators (probably as part of the backend changing the setpoints of loads/generators to balance supply & demand). I imagine these will need to be masked so that the backend does not try to use disconnected elements.
The error appears to occur in GeneratorContainer.cpp line 268.
Expected output
Expect no error to be thrown.
The text was updated successfully, but these errors were encountered: