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

Support for !constraint #253

Closed
Wikunia opened this issue Feb 13, 2021 · 1 comment
Closed

Support for !constraint #253

Wikunia opened this issue Feb 13, 2021 · 1 comment

Comments

@Wikunia
Copy link
Owner

Wikunia commented Feb 13, 2021

In certain situations it would be nice to be able to write

@constraint(m, !(x == 1 && y == 1))

instead of reformulating to

@constraint(m, x != 1 || y != 1)

One needs to implement: parse_one_operator_constraint(::Function, ::Bool, ::Val{:!}, ::Expr)
Maybe the best way to support this by using a bridge that only supports this type if the anti constraint is supported.

@Wikunia
Copy link
Owner Author

Wikunia commented Jun 14, 2021

Done in #264

@Wikunia Wikunia closed this as completed Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant