Skip to content

Commit

Permalink
fix comment
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 Nov 13, 2024
1 parent 87df96c commit d44796f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1037,8 +1037,8 @@ private void createMultipleSlackBusesEquations(EquationSystem<AcVariableType, Ac
for (int i = 1; i < slackBuses.size(); i++) {
LfBus slackBus = slackBuses.get(i);
// example for 3 slack buses
// target_p2 = slack_p2 - slack_p1 + inj_p2
// target_p3 = slack_p3 - slack_p1 + inj_p2
// target_p2 = slack_p2 - slack_p1
// target_p3 = slack_p3 - slack_p1
equationSystem.createEquation(slackBus, AcEquationType.BUS_DISTR_SLACK_P)
.addTerms(createActiveInjectionTerms(firstSlackBus, equationSystem.getVariableSet()).stream()
.map(EquationTerm::minus)
Expand Down

0 comments on commit d44796f

Please sign in to comment.