Skip to content

New node StratPeriodDemandSink#14

Merged
JulStraus merged 6 commits into
mainfrom
feat/StratPeriodDemandSink
Jul 6, 2026
Merged

New node StratPeriodDemandSink#14
JulStraus merged 6 commits into
mainfrom
feat/StratPeriodDemandSink

Conversation

@JulStraus

Copy link
Copy Markdown
Member

This PR introduces a new node called StratPeriodDemandSink. It works similar compared to a PeriodDemandSink with the following changes:

  1. The demand is specified per strategic period and not per partition period.
  2. Each partition period can provide a minimum and maximum of the strategic demand, given as fraction. It is however still possible to violate this soft constraint through a given penalty.

I have not yet updated the documentation, NEWS.md and version number. I will do it once we have settled on the implemented approach.

Important

The system currently uses the same penalties for violations of the strategic demand constraints and the partition period demand constraints. This can be easily changed if desired. Let me know if you want to utilize different penalties.

JulStraus added 2 commits July 1, 2026 09:28
- New sink based on `PeriodDemandSink`
- Demand now specified per strategic period
- Individual penalties for demand periods
@JulStraus JulStraus added the enhancement New feature or request label Jul 1, 2026
@JulStraus JulStraus requested a review from magnuask July 1, 2026 09:14
@JulStraus JulStraus marked this pull request as ready for review July 3, 2026 13:43

@magnuask magnuask left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Overall, it looks good. I added a few comments for your consideration.

Comment thread src/sink/checks.jl Outdated
Comment thread src/sink/checks.jl
Comment thread docs/src/nodes/sink/stratperioddemand.md Outdated
Comment thread docs/src/nodes/sink/stratperioddemand.md Outdated

@JulStraus JulStraus left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I answered your comments and updated the points.

Comment thread src/sink/checks.jl
Comment thread src/sink/checks.jl Outdated
Comment thread docs/src/nodes/sink/stratperioddemand.md Outdated
Comment thread docs/src/nodes/sink/stratperioddemand.md Outdated
@JulStraus JulStraus merged commit 889f8aa into main Jul 6, 2026
5 checks passed
@JulStraus JulStraus deleted the feat/StratPeriodDemandSink branch July 6, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants