Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix handling of zero loss in LossLink and WTW nodes. #266

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

jetuk
Copy link
Member

@jetuk jetuk commented Oct 8, 2024

When a constant zero loss is provided to LossLink or WTW nodes then no relationship is created on the internal aggregated node. This left the added Output node unconstrained. This fix ensures that the Output node is separately constrained to zero max_flow when there is zero loss.

When a constant zero loss is provided to LossLink or WTW
nodes then no relationship is created on the internal
aggregated node. This left the added Output node unconstrained.
This fix ensures that the Output node is separately constrained
to zero max_flow when there is zero loss.
@jetuk jetuk requested a review from Batch21 October 8, 2024 15:56
Copy link
Contributor

@Batch21 Batch21 left a comment

Choose a reason for hiding this comment

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

Looks good!

@jetuk jetuk merged commit 029c1c8 into main Oct 9, 2024
7 checks passed
s-simoncelli added a commit to s-simoncelli/pywr-next that referenced this pull request Oct 10, 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