Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nnz on constraint crashes #1250

Open
johanlofberg opened this issue Mar 24, 2023 · 0 comments
Open

nnz on constraint crashes #1250

johanlofberg opened this issue Mar 24, 2023 · 0 comments

Comments

@johanlofberg
Copy link
Member

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant