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

Proper translation of count to minizinc #462

Merged
merged 2 commits into from
May 2, 2024
Merged

Proper translation of count to minizinc #462

merged 2 commits into from
May 2, 2024

Conversation

IgnaceBleukx
Copy link
Collaborator

Fixes #461

@IgnaceBleukx IgnaceBleukx added the Simple to review Simple change to review, e.g., a oneliner. label Apr 29, 2024
@IgnaceBleukx IgnaceBleukx requested a review from Wout4 April 29, 2024 08:56
vars = self._convert_expression(vars)
val = self._convert_expression(val)
return "count({},{})".format(vars, val)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good. So, now we should not need the one at line 502 right?

@Wout4
Copy link
Collaborator

Wout4 commented May 2, 2024

Aha we actually reduced code, good :) ready to merge

@Wout4 Wout4 merged commit f63ded7 into master May 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple to review Simple change to review, e.g., a oneliner.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

count inside wsum crashes minizinc
3 participants