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 5 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.

@rjoomen rjoomen force-pushed the osqp_update branch 3 times, most recently from 88b05c0 to 946e148 Compare January 22, 2025 13:44
@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?

@rjoomen
Copy link
Contributor Author

rjoomen commented Feb 21, 2025

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

I just made this possible, this also requires tesseract-robotics/tesseract_planning#596

@rjoomen rjoomen requested review from Levi-Armstrong and removed request for Levi-Armstrong February 21, 2025 16:56
@Levi-Armstrong
Copy link
Contributor

Should these changes also be added to trajopt_ifopt?

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