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

useless sorting constraints #784

Closed
matsc-at-sics-se opened this issue Jan 15, 2024 · 1 comment
Closed

useless sorting constraints #784

matsc-at-sics-se opened this issue Jan 15, 2024 · 1 comment
Assignees
Labels
enhancement resolved Issue is resolved and the feature or fix will be part of next release

Comments

@matsc-at-sics-se
Copy link

The following are pretty useless, aren't they?

predicate strictly_decreasing(array [$X] of var bool: x)
predicate strictly_increasing(array [$X] of var bool: x)
@Dekker1
Copy link
Member

Dekker1 commented Jan 17, 2024

Yes, it does not often make sense. I'll remove it from the documentation (since the integer version is clearer), the fzn_* definitions, and replace it with a simpler definition that issues a warning to the modeller should you call strictly_increasing on an array or length 3 or higher.

@Dekker1 Dekker1 self-assigned this Jan 17, 2024
@Dekker1 Dekker1 added the resolved Issue is resolved and the feature or fix will be part of next release label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement resolved Issue is resolved and the feature or fix will be part of next release
Projects
None yet
Development

No branches or pull requests

2 participants