Are vectorized constraints no longer supported on JuMP?

The vectorized constraints on Constraints · JuMP no longer seems to work. The following code

using JuMP
model = Model();

@variable(model, x[i=1:2])

A = [1 2; 3 4]
b = [5, 6]

@constraint(model, con_vector, A * x == b)

verbatim from the documentation returns the error “@constraint(model, con_vector, (Expr(:escape, :A)) * (Expr(:escape, :x)) == b)`: Unexpected vector in scalar constraint. Did you mean to use the dot comparison operators like .==, .<=, and .>= instead?”

Any idea what might be the issue here?

1 Like

Try updating your version of JuMP. This syntax was added in v1.10