robotology / osqp-eigen

Simple Eigen-C++ wrapper for OSQP library
https://robotology.github.io/osqp-eigen/
BSD 3-Clause "New" or "Revised" License
385 stars 114 forks source link

Avoid to return false if `m_workspace->info->status_val` is different from `OSQP_SOLVED` #110

Closed GiulioRomualdi closed 2 years ago

GiulioRomualdi commented 2 years ago

https://github.com/robotology/osqp-eigen/blob/aa93af14ad8314d768ef033e357b04828100dfa8/src/Solver.cpp#L144-L149

This is quite limiting since osqp handles several types of exit status

https://osqp.org/docs/interfaces/status_values.html