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

setHessianMatrix is deprecated #39

Closed
ChiZhangCyngn opened this issue Dec 4, 2019 · 0 comments · Fixed by #48
Closed

setHessianMatrix is deprecated #39

ChiZhangCyngn opened this issue Dec 4, 2019 · 0 comments · Fixed by #48

Comments

@ChiZhangCyngn
Copy link

Hi dear developers, I met the following error when I am working on a MPC problem with osqp-eigen. I followed the example to build the QP problem.

error: ‘bool OsqpEigen::Data::setHessianMatrix(const Eigen::SparseMatrix<Scalar>&) [with T = double]’ is deprecated: Use setHessianMatrix(const Eigen::SparseCompressedBase<Derived> &hessianMatrix) instead [-Werror=deprecated-declarations]
   if (!solver.data()->setHessianMatrix(Hessian_)) {

Do you know why I get this error?

@GiulioRomualdi GiulioRomualdi linked a pull request Feb 5, 2020 that will close this issue
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 a pull request may close this issue.

2 participants