BDonnot / lightsim2grid

LightSim2grid implements a c++ backend targeting the Grid2Op (https://github.com/rte-france/grid2op) platform.
https://lightsim2grid.readthedocs.io/en/latest/
Mozilla Public License 2.0
46 stars 9 forks source link

Compute Ybus when computing Ybus_dc (same for Sbus) #35

Closed BDonnot closed 9 months ago

BDonnot commented 2 years ago

Is your feature request related to a problem? Please describe.

This would allow to not read the grid twice when initializing the grid with DC voltage for example.

And it would make cleaner an implementation of the DC approximation.

Describe the solution you'd like

Today grid is read both when DC approximation is performed and when the ac powerflow is computed afterward.

We could enable this feature only when results are not computed.

Describe alternatives you've considered

Additional context