Skip to content

docs: add partial elastic demand and log-log approximation#1519

Merged
lkstrp merged 9 commits intoPyPSA:masterfrom
flxlchr:docs-demand-elasticity
Feb 6, 2026
Merged

docs: add partial elastic demand and log-log approximation#1519
lkstrp merged 9 commits intoPyPSA:masterfrom
flxlchr:docs-demand-elasticity

Conversation

@flxlchr
Copy link
Copy Markdown
Contributor

@flxlchr flxlchr commented Jan 7, 2026

Addition of partial demand elasticity and a piecewise-linear demand curve as approximation for a log-log demand curve as proposed in Brown, Neumann, Riepin (2025)

Closes # (if applicable).

Changes proposed in this Pull Request

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in docs.
  • Unit tests for new features were added (if applicable).
  • A note for the release notes docs/release-notes.md of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

Addition of partial demand elasticity and a piecewise-linear demand curve as approximation for a log-log demand curve
@fneum fneum self-requested a review January 7, 2026 16:44
@flxlchr
Copy link
Copy Markdown
Contributor Author

flxlchr commented Jan 7, 2026

I originally used Gurobi locally because due to the quadratic nature of the added examples, they did not converge with HiGHS on my machine. Since Gurobi is not usable on Read the Docs, I switched back to HiGHS in a follow-up commit. With HiGHS the example now runs into a timeout during the RTD docs build...

Copy link
Copy Markdown
Member

@lkstrp lkstrp left a comment

Choose a reason for hiding this comment

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

Hey @flxlchr,

thanks for the notebook. This is the same problem as in #1318 and #1492. We need to come up with something.

Also the embedding to mkdocs.yaml is missing currently

@flxlchr
Copy link
Copy Markdown
Contributor Author

flxlchr commented Jan 21, 2026

Thanks for your comment @lkstrp

I only updated the existing notebook and did not change its scope or placement, so I assumed no mkdocs.yml change was necessary. Happy to adjust navigation if you think it should be referenced differently.

I now adjusted the number of days, that are included. Now one day per month instead of every 5th. Works with HiGHS now, will update the file the next days

@lkstrp
Copy link
Copy Markdown
Member

lkstrp commented Jan 21, 2026

I only updated the existing notebook and did not change its scope or placement, so I assumed no mkdocs.yml change was necessary. Happy to adjust navigation if you think it should be referenced differently.

Ah, I missed that, thanks!

I now adjusted the number of days, that are included. Now one day per month instead of every 5th. Works with HiGHS now, will update the file the next days

Reducing the complexity would be the best. We might also have fixed this issue with #1526 hopefully soon

@flxlchr flxlchr force-pushed the docs-demand-elasticity branch 2 times, most recently from 865161c to f7906fe Compare January 22, 2026 12:19
@flxlchr
Copy link
Copy Markdown
Contributor Author

flxlchr commented Jan 22, 2026

I’ve now committed and pushed the simplified version that works with HiGHS.

@lkstrp lkstrp added the docs Documentation improvements or features to be showcased in docs/ notebook label Jan 26, 2026
Copy link
Copy Markdown
Member

@fneum fneum left a comment

Choose a reason for hiding this comment

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

Excellent work @flxlchr! Thanks for completing this example!

@lkstrp lkstrp enabled auto-merge (squash) February 6, 2026 10:55
@lkstrp lkstrp merged commit b7a3608 into PyPSA:master Feb 6, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation improvements or features to be showcased in docs/ notebook

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants