Skip to content

Refactor redispatch bids and calculation to incorporate availabilities correctly#803

Merged
mthede merged 13 commits into
mainfrom
availability-in-redispatch
May 13, 2026
Merged

Refactor redispatch bids and calculation to incorporate availabilities correctly#803
mthede merged 13 commits into
mainfrom
availability-in-redispatch

Conversation

@mthede
Copy link
Copy Markdown
Collaborator

@mthede mthede commented Apr 28, 2026

Related Issue

Closes #775

Description

For the upward redispatch potential, the nominal power was previously submitted as maximum generation potential. This did not account for unit outages or limited availability of renewables as specified in the 'availabilities.csv' inputs.

This PR ensures that availabilities are now correctly considered for the redispatch calculation.

Checklist

  • Documentation updated (docstrings, READMEs, user guides, inline comments, doc folder updates etc.)
  • Changes noted in release notes
  • Consent to release this PR's code under the GNU Affero General Public License v3.0

Additional Notes

New redispatch examples provided by @paragpatil39 will be added in a seperate PR.

Copy link
Copy Markdown
Member

@maurerle maurerle left a comment

Choose a reason for hiding this comment

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

Looks good to me, but lets wait for @paragpatil39 review as well

@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.51%. Comparing base (b7a0212) to head (c467c04).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #803      +/-   ##
==========================================
+ Coverage   80.49%   80.51%   +0.01%     
==========================================
  Files          56       56              
  Lines        9004     9013       +9     
==========================================
+ Hits         7248     7257       +9     
  Misses       1756     1756              
Flag Coverage Δ
pytest 80.51% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mthede
Copy link
Copy Markdown
Collaborator Author

mthede commented May 7, 2026

New examples will be added in a different PR, so I reverted the commits. We can either merge now or wait for @paragpatil39's review decision :)

Copy link
Copy Markdown
Collaborator

@paragpatil39 paragpatil39 left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Copy Markdown
Contributor

@gugrimm gugrimm left a comment

Choose a reason for hiding this comment

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

added a test to check availability 0, 0.5 and 1

@mthede mthede merged commit 4998487 into main May 13, 2026
9 checks passed
@mthede mthede deleted the availability-in-redispatch branch May 13, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Naive redispatch uses static capacity instead of time-dependent availability

4 participants