Closed Mleyliabadi closed 1 year ago
Hello,
With the example provided, by checking "mismatch" vector i got:
(Pdb) np.abs(mismatch)
array([0.00000000e+00, 1.18335433e-05, 9.50266363e-06, 1.75569287e-04,
4.26133770e-05, 7.15545898e-06, 4.58905795e-05, 5.55111512e-15,
2.68788108e-06, 1.73460272e-05, 3.77548176e-05, 2.36069288e-05,
3.07799537e-05, 3.93859092e-06, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 8.75801899e-05, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00])
Highest value is 1.75569287e-04
which seems to be totally negligible: input data are rounded at 1e-2 so anything bellow that is pure numeric noise.
And honestly a difference of 170W (1.7 e-4 MW) on a transmission grid cannot be seen at all.
Try update grid2op and lightsim2grid to latest version.
Environment
x.y.z
(1.7.1)x.y.z
(0.7.0)WSL ubuntu20.04, ...
Bug description
The following reported bug concerns the (
PhysicalLawChecker
) class, and more specifically when running thecheck_solution
function to verify the Kirchhoff's law. It works correctly on real observations computed using physical solvers when there is no topology change (bus bar change) on the grid. However, when introducing some bus topology changes, the corresponding output ofcheck_solution
function does not respect the Kirchhoff's law, and there are some mismatches.How to reproduce
To reproduce the bug, I have provided a Python code snippet (see below)
Code snippet
Current output
Expected output
The expected output without and with topology changes should be
False
which means that the Kirchhoff's law is respected for observations issued from Physical solver.