Skip to content

Wish list for indicators/reification #205

Description

@hakank

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions