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

fix(2P): rewrite MIP constraint to respect relative range limits #1090

Closed MartinBelthle closed 2 months ago

MartinBelthle commented 2 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? Bug fix

What is the current behavior? Due to the recently merged PR https://github.com/powsybl/powsybl-open-rao/pull/1070, the relative ranges for PST in 2P Global Optimization (when modeled as APPROXIMATED_INTEGERS) were no longer respected.

This made the test 19.11.9.bis fail when ran with XPRESS.

What is the new behavior (if this is a feature change)? I've changed the MIP equation and now they are.

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