PyPSA / PyPSA/linopy

add_piecewise_formulation use case: snapshot-dimensioned breakpoints (PyPSA/PyPSA#1914)

Open
#953 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement model formulation
Dominant language
Python
Stars
257
Forks
87
Avg merge
1d 3h
Merged PRs (30d)
29

Description

Note: AI-assisted (written with Claude).

The add_piecewise_formulation docstring asks for use cases while the API is evolving, so a one-line cross-reference: PyPSA/PyPSA#1914 exercises snapshot-dimensioned breakpoints (a (snapshot, _breakpoint) DataArray per entity, verified working on 0.9.1 with the lp tangent method) to express time-varying piecewise marginal costs. Nothing to change here as far as I can tell; just flagging that the proposal relies on that broadcast behaviour staying supported.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the add_piecewise_formulation docstring and PyPSA/PyPSA#1914, which is cited as the use case for snapshot-dimensioned breakpoints. Confirm whether a cross-reference is wanted and whether the broadcast behavior should remain supported; done is a clear documentation decision or update.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.