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
13 stars 5 forks source link

Mutualize usage rules with powsybl #1067

Open pet-mit opened 6 days ago

pet-mit commented 6 days ago

Describe the current behavior

OpenRAO and PowSyBl's security analysis API have different objects that represent the same business concept: the application condition of a remedial action.

Describe the expected behavior

Try to converge to a common object model, even though it might not be easy!

Describe the motivation

Common code with PowSyBl, and streamlined experience across RAO & sensitivity analysis APIs

Extra Information

No response

pet-mit commented 6 days ago

To share your opinion @annetill @phiedw @pjeanmarie @obrix @bqth29

bqth29 commented 5 days ago

I believe that what you described is some kind of a mix between our UsageMethods and our UsageRules. The big difference comes from the fact that PowSyBl allows multiple CNECs to be included in a Condition whereas in OpenRAO it is only one for the moment.

I guess some changes to include could be:

In any case, we should carry this reflection based on the POC in #1050 that attempts to generify UsageRules and make them more flexible.

bqth29 commented 5 days ago

Also, based on what I wrote previously, here is how I would map PowSyBl's Conditions on what exists in OpenRAO: