You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you illustrate what you mean with having logical expressions as the arguments? Is this to avoid defining a Boolean variable for the logical expression and using that Boolean in the cardinality constraint?
Can you illustrate what you mean with having logical expressions as the arguments? Is this to avoid defining a Boolean variable for the logical expression and using that Boolean in the cardinality constraint?
Yes, this could potentially avoid adding unnecessary Boolean variables. Instead of
model =GDPModel()
@variable(model, y[1:2], Logical)
@variable(model, w, Logical)
@constraint(model, w == y[1] ⟹ y[2] :=true)
@constraint(model, [w, y[1]] inAtMost(1))
Currently, we only cardinality constraints on logical variables. It would be nice to allow arguments to be logical expressions as well.
The text was updated successfully, but these errors were encountered: