yalmip / YALMIP

MATLAB toolbox for optimization modeling
https://yalmip.github.io/
Other
464 stars 134 forks source link

nnz on constraint crashes #1250

Open johanlofberg opened 1 year ago

johanlofberg commented 1 year ago
A = randn(3,2);
b = randn(3,1)*20;
x = intvar(2,1);
e = b-A*x;
F = [nnz(A*x <= b) <= length(b) - 1]
optimize(F,e'*e);