pypsa-eur icon indicating copy to clipboard operation
pypsa-eur copied to clipboard

enable EQ constraint on locations

Open martacki opened this issue 1 year ago • 3 comments

Closes # (if applicable).

Changes proposed in this Pull Request

enable the EQ constraint to operate on locations, particularly useful for sector coupled models

Checklist

  • [x] I tested my contribution locally and it seems to work fine.
  • [x] Code and workflow changes are sufficiently documented.
  • [x] Changed dependencies are added to envs/environment.yaml.
  • [x] Changes in configuration options are added in all of config.default.yaml.
  • [x] Changes in configuration options are also documented in doc/configtables/*.csv.
  • [x] A release note doc/release_notes.rst is added.

martacki avatar Jul 18 '24 09:07 martacki

Hi @martacki , I am also interested by this feature. If you intend to make it work for sector-coupled models, it seems to me that we should also add links related to power supply into the constraint. Am I missing something ?

tgi-climact avatar Jul 18 '24 12:07 tgi-climact

Hi @tgi-climact thanks for your interest in the feature and remark! You're absolutely right. Needs some filtering though, I think, so that we always take the right pX stream (i.e. p1, p2, ...), if applicable. Need to have a close look into the generators, too.

I didn't have any generating units in my network that were attached by links, so I'll need to find a new test-case for this

martacki avatar Jul 22 '24 08:07 martacki

Related to https://github.com/PyPSA/pypsa-eur/pull/659? Unfortunately I believe implementing the EQ constraint for sector-coupled networks can be a bit complicated (see the docstring of the rewritten EQ constraint function in the aforementioned PR).

(P.S. I do hope to find the time to revisit https://github.com/PyPSA/pypsa-eur/pull/659 and see if I can finally get it merged. Looking back at it now it does seem like maybe it's more complicated than it needs to be so I'll be on the look-out for simplifications.)

koen-vg avatar Aug 19 '24 07:08 koen-vg