Skip to content

Commit

Permalink
Update power_grid_model_c/power_grid_model/include/power_grid_model/m…
Browse files Browse the repository at this point in the history
…ath_solver/observability.hpp

Co-authored-by: Martijn Govers <martijn.govers@alliander.com>
Signed-off-by: Tony Xiang <19280867+TonyXiang8787@users.noreply.github.com>
  • Loading branch information
TonyXiang8787 and mgovers authored Jan 21, 2025
1 parent dfa6437 commit 1d15f26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ inline void assign_injection_sensor_radial(YBusStructure const& y_bus_structure,
struct ObservabilityResult {
bool is_sufficiently_observable{false};
bool is_possibly_ill_conditioned{false};
bool use_perturbation() const { return is_possibly_ill_conditioned && is_sufficiently_observable; }
constexpr bool use_perturbation() const { return is_possibly_ill_conditioned && is_sufficiently_observable; }
};

template <symmetry_tag sym>
Expand Down

0 comments on commit 1d15f26

Please sign in to comment.