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
49 stars 9 forks source link

The init voltage values could depends on the previous state even when "init_dc" is True #30

Closed BDonnot closed 3 years ago

BDonnot commented 3 years ago

This was because the "init_dc" part did not reset "self.V" in the step function.

The major impact is that the backend was "stuck" in this state until it could converged again. And it might not be possible to make it converged this way. It entails major difference with pandapower, especially using the "obs.simulate" function.

This bug has been found while running this code

BDonnot commented 3 years ago

Fixed in release #31