We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da9426e commit 511002fCopy full SHA for 511002f
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp
@@ -327,7 +327,7 @@ inline auto get_edge_weights(TransformerGraph const& graph) -> TrafoGraphEdgePro
327
// side via the bidirectional edge (if it exists). For delta configuration ABC, the above
328
// situations can happen.
329
// The logic still holds in meshed grids, albeit operating a more complex graph.
330
- if (!is_unreachable(edge_src_rank) && !is_unreachable(edge_tgt_rank)) {
+ if (!is_unreachable(edge_src_rank) || !is_unreachable(edge_tgt_rank)) {
331
if (edge_src_rank != edge_tgt_rank - 1) {
332
throw AutomaticTapInputError("The control side of a transformer regulator should be relatively further "
333
"away from the source than the tap side.\n");
0 commit comments