Skip to content

Conversation

@sambuddhac
Copy link
Collaborator

@sambuddhac sambuddhac commented Feb 24, 2025

Description

This PR adds a constraint (as suggested by @patrickbryant) which attempts to prevent fast charging/discharging of storage batteries within a time step by enforcing a maximum charging rate capped at the storage capacity, less, the SOC from the last time step.

What type of PR is this? (check all applicable)

  • Feature
  • Bug Fix

Related Tickets & Documents

Further addresses and refines issue #547

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and .md files under /docs/src have been updated if necessary.
  • The latest changes on the target branch have been incorporated, so that any conflicts are taken care of before merging. This can be accomplished either by merging in the target branch (e.g. 'git merge develop') or by rebasing on top of the target branch (e.g. 'git rebase develop'). Please do not hesitate to reach out to the GenX development team if you need help with this.
  • Code has been tested to ensure all functionality works as intended.
  • CHANGELOG.md has been updated (if this is a 'notable' change).
  • I consent to the release of this PR's code under the GNU General Public license.

How this can be tested

Post-approval checklist for GenX core developers

After the PR is approved

  • Check that the latest changes on the target branch are incorporated, either via merge or rebase
  • Remember to squash and merge if incorporating into develop

Copy link

@patrickbryant patrickbryant 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! The only system I can think of where you might want to have a charge rate exceeding the available storage in a time step is a thermal battery which is being used for an industrial heat load which is being discharged. Such a system would not have the same physical constraint as an ensemble of electrochemical batteries.

@patrickbryant
Copy link

I have tested this branch and it looks good, no maximal charge-discharge when at 100% state of charge.

@sambuddhac sambuddhac marked this pull request as ready for review March 13, 2025 16:24
…capacity

This PR adds a constraint (as suggested by @patrickbryant) which attempts to prevent fast charging/discharging of storage batteries within a time step by enforcing a maximum charging rate capped at the storage capacity, less, the SOC from the last time step.
@lbonaldo lbonaldo force-pushed the sambuddhac-patch-13 branch from 54450e4 to d24ada1 Compare June 18, 2025 07:39
@lbonaldo lbonaldo force-pushed the sambuddhac-patch-13 branch from d24ada1 to d6a315e Compare June 18, 2025 07:42
Copy link
Collaborator

@lbonaldo lbonaldo 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. Thanks @sambuddhac and @patrickbryant!

@lbonaldo lbonaldo merged commit 90423d7 into develop Jun 18, 2025
7 of 8 checks passed
@lbonaldo lbonaldo deleted the sambuddhac-patch-13 branch June 18, 2025 08:32
NLaws pushed a commit to NLaws/GenX.jl that referenced this pull request Nov 8, 2025
…capacity (GenXProject#836)

This PR adds a constraint (as suggested by @patrickbryant) which attempts to prevent fast charging/discharging of storage batteries within a time step by enforcing a maximum charging rate capped at the storage capacity, less, the SOC from the last time step.
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.

5 participants