-
Notifications
You must be signed in to change notification settings - Fork 7
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
Non positive semi-definite P matrix causes R to crash #43
Comments
I just tested it on a different PC and it also crashed |
The error message clearly points out the issue: your
That said, I see that it is not even strictly true for the example that worked. You should ensure it is, either by construction or by checking the eigenvalues. We might consider adding some checks for a future version but this is not a bug as I see it. |
@bnaras indeed you are correct, the P matrix is not positive semi-definite. Not sure how I missed that. In any case, I do not get an error message. R just crashes. How did you get an error message? Are you on Windows 11, R 4.4.1? This reminds me of #29, which was solved with a check on R side. But it seems like the fundamental problem of R crashing when the osqp core throws an error is not resolved. |
Incidentally, setting linsys_solver = 1, when MKL is not available, also causes R to crash. I think this further illustrates my suspicion that any osqp core error causes R to crash. |
R version 4.4.1
Osqp version 0.6.3.3
Windows 11
The following code works fine on my machine
But if I change the value of
coef_b
tocoef_b <- -runif(n)/10
, then R crashes.Full crashing code:
The text was updated successfully, but these errors were encountered: