-
Notifications
You must be signed in to change notification settings - Fork 118
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
[Solver.tpp] add warning message to updateHessianMatrix and updateLinearConstraintsMatrix for RowMajor #69
Conversation
…earConstraintsMatrix for RowMajor
651bdf2
to
1b80ad6
Compare
Supplementary explanation. The order of the Triplets returned by |
Hi @Naoki-Hiraoka, thanks for the PR, and apologies for the late answer.
To be honest, this is not really clear to me. osqp-eigen/include/OsqpEigen/SparseMatrixHelper.tpp Lines 139 to 144 in bba25ca
Depending on if the matrix is In particular,
is indeed expected. This problem arises when the solver is initialized with a So, in the end |
Thank you for response! I'm sorry for my inaccurate description, but I think As you say,
However, the solver is always initialized with a
|
Ah I see, good catch! Indeed, the core problem is that an I guess that the problem then is to improve evaluateNewValues such that the check is not dependent on the triplets' order, or to modify |
Hello @S-Dafarra and @Naoki-Hiraoka, some time has passed, do you know if this problem is still present? If it is, probably it could make sense to move this PR to an issue? Thanks! |
Hi @traversaro, I think that the problem is still there. Corresponding issue: #168 |
Great, thanks! I think at this point we can close this PR, and open a new one if someone wants to solve #168 . |
Hello. I am a user of OsqpEigen.
OsqpEigen::Solver::updateHessianMatrix
andOsqpEigen::Solver::updateLinearConstraintsMatrix
do not support RowMajor matrixbecause
OsqpEigen::SparseMatrixHelper::eigenSparseMatrixToTriplets
does not support RowMajor matrix.I have added warning message to inform users of this.