Skip to content

Update to BAU constraint formulation in function add_BAU_constraints#1024

Merged
FabianHofmann merged 1 commit intoPyPSA:masterfrom
SermishaNarayana:master
Apr 14, 2024
Merged

Update to BAU constraint formulation in function add_BAU_constraints#1024
FabianHofmann merged 1 commit intoPyPSA:masterfrom
SermishaNarayana:master

Conversation

@SermishaNarayana
Copy link
Copy Markdown
Contributor

@SermishaNarayana SermishaNarayana commented Apr 14, 2024

Incorrect constraint formulation

The lhs and rhs of the constraints have carriers specified in different orders. The constraint formulation was being done without reordering the carriers. This lead to incorrect constraint formulations where the limits specified for one carrier were used for another.

Closes # (if applicable).

Changes proposed in this Pull Request

Checklist

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

Constraint formulation was not taking into account the ordering of the carriers
Copy link
Copy Markdown
Contributor

@FabianHofmann FabianHofmann left a comment

Choose a reason for hiding this comment

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

Great, thanks @SermishaNarayana

@FabianHofmann FabianHofmann merged commit f362638 into PyPSA:master Apr 14, 2024
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