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
I don't think we want to support this, right? We should just throw a CPMpy exception when encountering this.
Actually, this is another example where we want to introduce some typed-ness on the modelling side of the library.
We could then simply raise an exception when a user tries to construct this type of expression by checking in the constructor of "OR" wether both sides .is_bool()
Giving an integer as an argument for and, or and implies operators crash most solvers (gurobi, z3, minizinc, pysat)
example
Model( (bv[0] | 0)).solve("gurobi")
The text was updated successfully, but these errors were encountered: