We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e0a81e commit 7f788a2Copy full SHA for 7f788a2
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/measured_values.hpp
@@ -597,8 +597,8 @@ template <symmetry_tag sym> class MeasuredValues {
597
598
// S_i = S_i_mea - var_i * mu
599
auto const calculate_injection = [&mu](auto const& power) {
600
- return ComplexValue<sym>{power.value() - power.real_component.variance * real(mu) +
601
- 1.0i * power.imag_component.variance * imag(mu)};
+ return ComplexValue<sym>{power.value() - ((power.real_component.variance * real(mu)) +
+ (1.0i * power.imag_component.variance * imag(mu)))};
602
};
603
604
for (Idx const load_gen : load_gens) {
0 commit comments