Skip to content

Commit

Permalink
remove change on factor
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe GUILLOTIN <jean-christophe.guillotin@rte-france.com>
  • Loading branch information
jeanChristopheGuillotin committed Sep 8, 2020
1 parent 2b7c258 commit 584ffb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected List<ParticipatingElement<LfBus>> getParticipatingElements(LfNetwork n
return network.getBuses()
.stream()
.filter(bus -> bus.getPositiveLoadCount() > 0 && bus.getLoadTargetP() > 0)
.map(bus -> new ParticipatingElement<>(bus, bus.getVariableActivePower() != 0 ? bus.getVariableActivePower() : bus.getLoadTargetP()))
.map(bus -> new ParticipatingElement<>(bus, bus.getLoadTargetP()))
.collect(Collectors.toList());
}

Expand Down

0 comments on commit 584ffb5

Please sign in to comment.