powsybl / powsybl-open-rao

A toolbox based on powsybl framework dedicated to power systems coordinated capacity calculation and security analysis projects
Mozilla Public License 2.0
15 stars 6 forks source link

Add new method withNetworkElement for InjectionRangeActionAdder #1087

Open wangjer opened 2 months ago

wangjer commented 2 months ago

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? Feature

What is the current behavior? Adding a new network element to an "InjectionRangeAction" requires to use "withNetworkElementAndKey" method.

What is the new behavior (if this is a feature change)? We can now use withNetworkElement method instead, so that "key" argument is set to 1.0 by default

Does this PR introduce a breaking change or deprecate an API?

If yes, please check if the following requirements are fulfilled

What changes might users need to make in their application due to this PR? (migration steps)

Other information: