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

SQP++ Hessian computation optimization #16

Open
EnricoMingo opened this issue Aug 18, 2021 · 1 comment
Open

SQP++ Hessian computation optimization #16

EnricoMingo opened this issue Aug 18, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@EnricoMingo
Copy link
Collaborator

At the moment the Hessian is computed as:
H = J.transpose() * J; (1)
this can be optimized using:
_H.selfadjointView<Eigen::Lower>().rankUpdate(_J.transpose()); (2)
however, we must pay attention to sparsity. Basically, the solver needs to be initialized with the sparsity from (1) but then in the solve we need to compute the Hessian as in (2), otherwise errors rise and it only works when the Hessian is diagonal.

@EnricoMingo EnricoMingo added the enhancement New feature or request label Aug 18, 2021
@EnricoMingo EnricoMingo self-assigned this Aug 18, 2021
@EnricoMingo
Copy link
Collaborator Author

@alaurenzi could you report here the error you have when running the Hessian computation with (2)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant