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

Fixes sum constraints with later dimensions #282

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

dk-teknologisk-mon
Copy link
Collaborator

There was a small bug in the code that checks whether candidate points generated for sum_equals sampling obey the space boundaries. The bug is only trigged if the user constrains dimensions "later" then from the first one, e.g. constraining dimensions [0, 1, 2] would not trigger the bug, but constraining dimensions [1, 2, 3] would.

closes #281

@dk-teknologisk-mon dk-teknologisk-mon changed the title WIP: Fixes sum constraints with later dimensions Fixes sum constraints with later dimensions Nov 5, 2024
Copy link
Collaborator

@sqbl sqbl left a comment

Choose a reason for hiding this comment

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

LGTM

@sqbl sqbl merged commit aa36a79 into develop Nov 6, 2024
7 checks passed
@sqbl sqbl deleted the 281-sum_constraints-with-later-dimensions branch November 6, 2024 09:44
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.

Using sum_constraints with "later" dimensions breaks opt.ask()
2 participants