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

Handle osqp errors #111

Merged
merged 3 commits into from
Dec 19, 2021
Merged

Handle osqp errors #111

merged 3 commits into from
Dec 19, 2021

Conversation

GiulioRomualdi
Copy link
Member

@GiulioRomualdi GiulioRomualdi commented Dec 18, 2021

This PR introduces Status and ErrorExitFlag enum class that replicates the content of https://osqp.org/docs/interfaces/status_values.html

Furthermore, I implemented:

  1. OsqpEigen::Solver::solveProblem: this function will substitute OsqpEigen::Solver::solve and it will return the ErrorExitFlag
  2. OsqpEigen::Solver::getStatus to get the internal state of osqp solver.

This closes #110

@GiulioRomualdi
Copy link
Member Author

I bumped the project version to 0.6.4.100, so if the user what to use the features implemented in this PR it can ask for a specific version of the library

@GiulioRomualdi GiulioRomualdi merged commit 6ea453d into master Dec 19, 2021
@GiulioRomualdi GiulioRomualdi deleted the handle_osqp_errors branch December 19, 2021 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid to return false if m_workspace->info->status_val is different from OSQP_SOLVED
3 participants