Skip to content

Relecture réserve: Optimisation / reserve sts#3437

Merged
sylvmara merged 4 commits intofeature/reserve_model_lot3_scalianfrom
feature/reserve_sts
Mar 19, 2026
Merged

Relecture réserve: Optimisation / reserve sts#3437
sylvmara merged 4 commits intofeature/reserve_model_lot3_scalianfrom
feature/reserve_sts

Conversation

@JasonMarechal25
Copy link
Copy Markdown
Contributor

No description provided.

@pull-request-size
Copy link
Copy Markdown

This PR is too big. Please break it up into smaller PRs.

Comment thread src/solver/optimisation/constraints/STReleaseCapacityThresholds.cpp
Comment thread src/solver/optimisation/opt_gestion_second_membre_reserves.cpp
Comment thread src/solver/optimisation/constraints/STReserveDownParticipation.cpp Outdated
Comment thread src/solver/optimisation/opt_gestion_second_membre_reserves.cpp
Comment thread src/solver/optimisation/constraints/STStorageLevelReserveParticipation.cpp Outdated
@JasonMarechal25 JasonMarechal25 changed the title review: reserve sts Relecture réserve: Optimisation / reserve sts Feb 25, 2026
@JasonMarechal25 JasonMarechal25 changed the base branch from develop to feature/reserve_model_lot3_scalian March 19, 2026 08:58
@JasonMarechal25 JasonMarechal25 marked this pull request as ready for review March 19, 2026 08:59
Copilot AI review requested due to automatic review settings March 19, 2026 08:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 refines short-term storage reserve participation constraints in the solver’s optimisation layer, mainly through a small runtime optimization (avoiding a copy) and several comment/documentation updates, plus removal of an obsolete down-reserve participation implementation.

Changes:

  • Avoid copying RESERVE_PARTICIPATION_STSTORAGE when building ST storage level reserve participation constraints.
  • Update/clarify comments around ST reserve participation and global energy level reserve participation formulas.
  • Remove STReserveDownParticipation.cpp implementation.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/solver/optimisation/constraints/STStorageLevelReserveParticipation.cpp Uses a reference instead of copying reserve participation data while building constraints.
src/solver/optimisation/constraints/STStorageGlobalEnergyLevelReserveParticipation.cpp Reworks documentation comments for global energy constraint formulation.
src/solver/optimisation/constraints/STReserveParticipation.cpp Updates comments to reflect up/down reserve participation handling in one constraint.
src/solver/optimisation/constraints/STReserveDownParticipation.cpp Removes the (apparently unused) down-participation constraint implementation file.
src/solver/optimisation/constraints/STReleaseCapacityThresholds.cpp Updates comments for release capacity thresholds (introduces a typo).

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +11 to 19
// Sum(P_{res,t_st} * R_{min,res} - J_up * R_{lambda,t_st}) <= n_min * R_up * -
// J_up
//
// Sum(P_{res,t_st} * R_{min,res} + J_down * R_{lambda,t_st}) <= n_min * R_up *
// J_down
//
// R_t : stock level at time t P_{res,t_st} : power participation for reserve down
// res at time t_st R_{min,res} : max power participation ratio R_up : max stock level

Comment thread src/solver/optimisation/constraints/STReleaseCapacityThresholds.cpp Outdated
Comment on lines +33 to 34
RESERVE_PARTICIPATION_STSTORAGE& reserveParticipations
= capacityReservation.AllSTStorageReservesParticipation[cluster];
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@sylvmara sylvmara merged commit 09575e2 into feature/reserve_model_lot3_scalian Mar 19, 2026
4 of 8 checks passed
@sylvmara sylvmara deleted the feature/reserve_sts branch March 19, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants