-
Notifications
You must be signed in to change notification settings - Fork 437
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
Coupling generators #738
Open
FabianHofmann
wants to merge
13
commits into
master
Choose a base branch
from
coupling-generators
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Coupling generators #738
+533
−3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #738 +/- ##
==========================================
+ Coverage 66.24% 66.31% +0.06%
==========================================
Files 26 26
Lines 7063 7089 +26
Branches 1418 1423 +5
==========================================
+ Hits 4679 4701 +22
- Misses 2102 2104 +2
- Partials 282 284 +2 ☔ View full report in Codecov by Sentry. |
for more information, see https://pre-commit.ci
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Minimal invasive alternative to #549
closes #549
From release notes:
It is now possible to couple the dispatch of generators. For this purpose, three new columns
p_coupling
,p_coupling_coeff
andp_coupling_sign
have been added to the generator component. They allow coupling the dispatch of one generator to another generator by adding a linear constraint to the optimization problem. The condition is of the formp {p_coupling_sign} {p_coupling_sign} * p_{p_coupling}
. The coupling is applied only when the coupling generator is active.See the example here: https://pypsa--738.org.readthedocs.build/en/738/examples/generator_coupling.html
This change is purely additive and does not remove any functionality. It might be quite helpful for pypsa-eur as it allows keeping the generators coming from "electricity only" and complement them via additional coupled input/output generators.
Checklist
doc
.environment.yaml
,environment_docs.yaml
andsetup.py
(if applicable).doc/release_notes.rst
of the upcoming release is included.