Skip to content

Preserve zero-duration cumulative solutions in FlatZinc - #263

Merged
zayenz merged 2 commits into
mainfrom
feature/6.5.0-cumulative-zero-duration
Oct 22, 2026
Merged

zayenz merged 2 commits into
mainfrom
feature/6.5.0-cumulative-zero-duration

Conversation

@zayenz

@zayenz zayenz commented Oct 22, 2026

Copy link
Copy Markdown
Member

A singleton gecode_cumulatives constraint previously enforced resource usage against capacity even when the task had zero duration. This rejected valid schedules, including a zero-duration task using more than the capacity.

Guard the capacity requirement by positive duration. Add regressions for zero, positive, and variable duration, including propagation of the variable duration to zero when resource usage exceeds capacity.

Validation: the zero and variable-duration cases fail before the fix. All three cases pass with five iterations and five runner threads. The combined release-fix validation also passed all 482 integrity tests, source tidiness, and generated-source freshness checks.

@zayenz
zayenz merged commit 0158b8e into main Oct 22, 2026
16 checks passed
@zayenz
zayenz deleted the feature/6.5.0-cumulative-zero-duration branch October 22, 2026 12:02
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.

1 participant