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

Count globals #239

Merged
merged 3 commits into from
Mar 2, 2023
Merged

Count globals #239

merged 3 commits into from
Mar 2, 2023

Conversation

Wout4
Copy link
Collaborator

@Wout4 Wout4 commented Feb 23, 2023

No description provided.

@Wout4 Wout4 requested a review from JoD February 23, 2023 08:52
@Wout4
Copy link
Collaborator Author

Wout4 commented Feb 23, 2023

these are the last changes from pr #207

class GlobalCardinalityCount(GlobalConstraint):
"""
GlobalCardinalityCount(a,gcc): Collect the number of occurrences of each value 0..a.ub in gcc.
The array gcc must have elements 0..ub (so of size ub+1).
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is a.ub? E.g., if a is x+y with x.ub=10 and y.ub=10?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

a is a list, so a.ub is the highest value that can be in the list. Confusing notation with the .ub because this makes it look like an intvar..

@Wout4 Wout4 merged commit dfe0dfd into master Mar 2, 2023
Wout4 added a commit that referenced this pull request Mar 2, 2023
@Wout4 Wout4 mentioned this pull request Mar 2, 2023
Wout4 added a commit that referenced this pull request Mar 2, 2023
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