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 the parameters of lines trafo (r, x, b, coefficients to put in the jacobian etc) only once #34

Closed BDonnot closed 2 years ago

BDonnot commented 2 years ago

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

This would allow for faster execution.

Today these coefficients are computed each time a powerflow is ran. Actually they are even computed twice per powerflow. Once to create Ybus and another to compute flows on powerline.

Describe the solution you'd like

See title

Describe alternatives you've considered

There is no alternative at the moment. We lose time to recompte them each time.

Additional context