Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable back preventive factors after sensi ends in 2P #1079

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

MartinBelthle
Copy link
Collaborator

@MartinBelthle MartinBelthle commented Jul 5, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

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?
In 2nd+ MIP iterations in 2P optimization, we had 0 flow on all preventive cnecs.
This caused too-optimistic decisions (0 flow means lot of margin) except when considering loop-flows where we'd have huge loop-flows penalties (0 flow but 1000MW of commercial flow means 1000MW of loop-flows) .

We did so because we disabled the preventive factors to speed-up sensi calculations on curative states without re-enabling it after all calculations were over.

What is the new behavior (if this is a feature change)?
We re-enable the factors after the sensi calculations and therefore do not have this problem.

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

  • Yes
  • No

Other information:
Cucumber test are running with this branch to see how many real cases were impacted.

@MartinBelthle MartinBelthle self-assigned this Jul 5, 2024
Copy link
Collaborator

@phiedw phiedw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add a small non regression test to be safe

Signed-off-by: belthlemar <martin.belthle@rte-france.com>
@pet-mit pet-mit added bug Something isn't working next-release This issue or pull request should be resolved before next release labels Jul 5, 2024
@phiedw
Copy link
Collaborator

phiedw commented Jul 8, 2024

Maybe we should add a small non regression test to be safe

It's actually quite difficult to create such a test case on a 12node network, since it requires the MIP giving different results throughout the iterations, so I guess we should just keep the case that revealed the problem in our sensitive test data.

@pet-mit pet-mit merged commit 1f4d5b3 into main Jul 9, 2024
10 checks passed
@pet-mit pet-mit deleted the fix-2P--factors-issue branch July 9, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next-release This issue or pull request should be resolved before next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants