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
17 stars 6 forks source link

Allow multi-curative in second preventive optimisation #1016

Closed pet-mit closed 4 months ago

pet-mit commented 6 months ago

Please check if the PR fulfills these requirements

What kind of change does this PR introduce?

Feature

What is the current behavior?

Second preventive RAO does not handle CRACs with multiple curative instants

What is the new behavior (if this is a feature change)? It is now possible to run 2nd preventive RAO. However, impossible to fetch temporary results (for example the flow of CNEC monitored in curative2 after application of curative1 CRAs only)

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

bqth29 commented 5 months ago

@pet-mit @phiedw do you think it is still relevant to keep FlowResult.getFlow(FlowCnec flowCnec, Side side, Unit unit) now that we defined FlowResult.getFlow(FlowCnec flowCnec, Side side, Unit unit, Instant instant)?