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

Update OSQP workspace, instead of recreating #446

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rjoomen
Copy link
Contributor

@rjoomen rjoomen commented Jan 22, 2025

This recreates the OSQP workspace, instead of recreating it, if the sparsity of the P and A matrices has not changed.

Below are runtime results of some examples (average of three runs each). Warm start is switched on or off using trajopt_solver_profile->settings.warm_start.

puzzle_piece_example puzzle_piece_auxillary_axes_example
Cleanup/setup 10.09463 28.40169
Update, warm start 7.164561 24.4617
Update, cold start 7.944992 24.38523

@Levi-Armstrong can you take a good look at this? The examples do show increased performance, but we'll have to be sure there are no side effects. In my own work I did not see any improvements, but my optimization times are much lower.

@Levi-Armstrong
Copy link
Contributor

It might be good to make this configurable to allow time for testing. Is that something that can easily be done?

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.

2 participants