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

Wish list for indicators/reification #205

Open
hakank opened this issue Dec 8, 2020 · 1 comment
Open

Wish list for indicators/reification #205

hakank opened this issue Dec 8, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@hakank
Copy link

hakank commented Dec 8, 2020

Issue 202 (#202 ) got a little sidetracked so here is a cleaner wish list.

  1. The constraints using indicator/reification should not require that the user must create binary variables. Here is an example that would be really great if supported.
function all_different_except_0(m, a)
    len = length(a)
    for i in 2:len, j in 1:i-1
        @constraint(m, (a[i] != 0 && a[j] != 0) => {a[i] != a[j]} ) 
    end
end
  1. Support for && and || (or & and |) as well as != in both LHS and RHS of an indicator/reification constraint.
    See the example above.
@Wikunia Wikunia added the enhancement New feature or request label Dec 8, 2020
@Wikunia Wikunia mentioned this issue Jan 28, 2021
16 tasks
@Wikunia
Copy link
Owner

Wikunia commented Jul 19, 2021

Similar to #248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants