Skip to content

Uncertainty quantification: add voltage variance for state estimation output - #1690

Draft
Plusero wants to merge 6 commits into
mainfrom
uq/01-voltage-variance
Draft

Plusero wants to merge 6 commits into
mainfrom
uq/01-voltage-variance

Merge branch 'main' into uq/01-voltage-variance

1e4c39b
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 12, 2026 in 9m 19s

Annotations

Check warning on line 127 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested conditional operator into an independent statement.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBdo-DSAMddoIpxB&open=AaHLsBdo-DSAMddoIpxB&pullRequest=1690

Check failure on line 226 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBds-DSAMddoIpxL&open=AaHLsBds-DSAMddoIpxL&pullRequest=1690

Check warning on line 74 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq_asym.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "push_back" with "emplace_back".

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBaE-DSAMddoIpw3&open=AaHLsBaE-DSAMddoIpw3&pullRequest=1690

Check warning on line 91 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq_asym.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "push_back" with "emplace_back".

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBaE-DSAMddoIpw5&open=AaHLsBaE-DSAMddoIpw5&pullRequest=1690

Check warning on line 654 in power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/measured_values.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this structure so it has no more than 20 fields, rather than the 21 it currently has.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBsN-DSAMddoIpxW&open=AaHLsBsN-DSAMddoIpxW&pullRequest=1690

Check failure on line 205 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 46 to the 25 allowed.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBds-DSAMddoIpxK&open=AaHLsBds-DSAMddoIpxK&pullRequest=1690

Check warning on line 653 in power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/measured_values.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this structure so it has no more than 20 fields, rather than the 21 it currently has.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBsN-DSAMddoIpxV&open=AaHLsBsN-DSAMddoIpxV&pullRequest=1690

Check warning on line 111 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "push_back" with "emplace_back".

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBdo-DSAMddoIpw-&open=AaHLsBdo-DSAMddoIpw-&pullRequest=1690

Check warning on line 102 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract the assignment from this expression.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBds-DSAMddoIpxJ&open=AaHLsBds-DSAMddoIpxJ&pullRequest=1690

Check warning on line 60 in power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/state_estimation_uq.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define each identifier in a dedicated statement.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBpa-DSAMddoIpxN&open=AaHLsBpa-DSAMddoIpxN&pullRequest=1690

Check warning on line 96 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract the assignment from this expression.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBds-DSAMddoIpxI&open=AaHLsBds-DSAMddoIpxI&pullRequest=1690

Check warning on line 72 in power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/state_estimation_uq_voltage.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the commented out code.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBpc-DSAMddoIpxT&open=AaHLsBpc-DSAMddoIpxT&pullRequest=1690

Check warning on line 107 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "push_back" with "emplace_back".

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBdo-DSAMddoIpw9&open=AaHLsBdo-DSAMddoIpw9&pullRequest=1690

Check warning on line 119 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "push_back" with "emplace_back".

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBdo-DSAMddoIpw_&open=AaHLsBdo-DSAMddoIpw_&pullRequest=1690

Check failure on line 238 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBds-DSAMddoIpxM&open=AaHLsBds-DSAMddoIpxM&pullRequest=1690

Check warning on line 41 in power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/state_estimation_uq_voltage.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the commented out code.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBpc-DSAMddoIpxS&open=AaHLsBpc-DSAMddoIpxS&pullRequest=1690

Check warning on line 59 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq_asym.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this function pointer with a template parameter or a "std::function".

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBaE-DSAMddoIpw7&open=AaHLsBaE-DSAMddoIpw7&pullRequest=1690

Check failure on line 320 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBdo-DSAMddoIpxG&open=AaHLsBdo-DSAMddoIpxG&pullRequest=1690

Check warning on line 87 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq_asym.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "push_back" with "emplace_back".

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBaE-DSAMddoIpw4&open=AaHLsBaE-DSAMddoIpw4&pullRequest=1690

Check warning on line 140 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "push_back" with "emplace_back".

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBdo-DSAMddoIpxD&open=AaHLsBdo-DSAMddoIpxD&pullRequest=1690

Check warning on line 104 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "push_back" with "emplace_back".

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBdo-DSAMddoIpw8&open=AaHLsBdo-DSAMddoIpw8&pullRequest=1690

Check failure on line 331 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBdo-DSAMddoIpxF&open=AaHLsBdo-DSAMddoIpxF&pullRequest=1690

Check warning on line 115 in power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/state_estimation_uq.hpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the init-statement to declare "tolerance" inside the if statement.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBpa-DSAMddoIpxO&open=AaHLsBpa-DSAMddoIpxO&pullRequest=1690

Check failure on line 131 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq_asym.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBaE-DSAMddoIpw6&open=AaHLsBaE-DSAMddoIpw6&pullRequest=1690

Check failure on line 152 in tests/cpp_unit_tests/math_solver/test_state_estimation_uq.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=PowerGridModel_power-grid-model&issues=AaHLsBdo-DSAMddoIpxE&open=AaHLsBdo-DSAMddoIpxE&pullRequest=1690