Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
  • Loading branch information
jeandemanged committed Feb 28, 2024
1 parent d3878da commit 0660935
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,12 @@ public OuterLoopStatus check(AcOuterLoopContext context, Reporter reporter) {
contextData.addDistributedActivePower(-distributedActivePower);
return OuterLoopStatus.FAILED;
}
default -> throw new IllegalArgumentException("Unknown slackDistributionFailureBehavior");
}
} else {
reportAndLogSuccess(iterationReporter, slackBusActivePowerMismatch, result);
return OuterLoopStatus.UNSTABLE;
}

return OuterLoopStatus.STABLE;
}

private static void reportAndLogSuccess(Reporter reporter, double slackBusActivePowerMismatch, ActivePowerDistribution.Result result) {
Expand Down

0 comments on commit 0660935

Please sign in to comment.