Skip to content

Fix reserve and ramping constraints - #18

Merged
idelder merged 2 commits into
mainfrom
fix/reserve
Jul 28, 2026
Merged

Fix reserve and ramping constraints#18
idelder merged 2 commits into
mainfrom
fix/reserve

Conversation

@idelder

@idelder idelder commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Two fixes that were made in v4 but I forgot to apply in CANOE as well (please let this branching die already)

idelder added 2 commits July 27, 2026 14:43
Signed-off-by: Davey Elder <iandavidelder@gmail.com>
Signed-off-by: Davey Elder <iandavidelder@gmail.com>
@idelder
idelder requested review from a team and Copilot July 28, 2026 15:57
@idelder
idelder merged commit fe0781e into main Jul 28, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR brings CANOE’s constraint logic back in sync with fixes previously made in v4, addressing unit/normalization issues in ramping constraints and correcting how exchange technologies contribute to dynamic reserve margins.

Changes:

  • Adjust ramping constraints to convert capacity-based limits onto an hourly basis (scaling by 24 * DaysPerPeriod).
  • Fix seasonal ramping constraints to compute “next” slice hourly activity using the next slice’s hours adjustment.
  • Update ReserveMarginDynamic exchange handling to add firm import commitments and subtract firm export commitments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 2491 to 2494
* value(M.SegFrac[p, s, d])
for (t, v) in M.processReservePeriods[r1r2, p]
for t in M.tech_reserve
)
Comment on lines +2496 to +2500
# Only consider exchange technologies connecting to this region
if r2 == r:
# Add the firm capacity commitment TO this region
# (this region was guaranteed an import of power)
available += output
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.

2 participants