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

feat(optim): better ra-usage-limits for 2nd preventive #1035

Closed MartinBelthle closed 3 months ago

MartinBelthle commented 3 months ago

Please check if the PR fulfills these requirements

Does this PR already have an issue describing the problem? No.

What kind of change does this PR introduce? Algorithm enhancement

What is the current behavior?

If the 2nd preventive RAO is run without GlobalOptimization, we may exclude some rangeActions from the 2nd preventive, meaning we will not re-optimize them. In this case, to ensure we don't exceed the RaUsageLimits in preventive, we decrement these limits with the excluded range actions.

But currently, we decrement these limits by considering all the RangeActions excluded from the 2nd preventive.

What is the new behavior (if this is a feature change)?

We only consider the Range Actions that were actually activated during the 1st preventive.

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