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

Expose adaptive_rho option in OSQP block #233

Open
traversaro opened this issue Oct 14, 2022 · 4 comments
Open

Expose adaptive_rho option in OSQP block #233

traversaro opened this issue Oct 14, 2022 · 4 comments
Assignees

Comments

@traversaro
Copy link
Member

Summary

We would like to expose the adaptive_rho option (and eventually other options in the OSQP block.

Motivation

By default, OSQP is not deterministic, but if you set adaptive_rho to false, you get a deterministic solver.

Additional context

This emerged in ami-iit/matlab-whole-body-simulator#81 (comment) .

@traversaro
Copy link
Member Author

See #202 for a similar issue.

@traversaro
Copy link
Member Author

@VenusPasandi
Copy link
Contributor

Reading the list of settings for OSQP and their role in the OSQP, I think 3 variables are worth having in the OSQP block:

  • adaptive_rho: this is a flag to enable/disable the adaptive procedure for rho. The use of the adaptation algorithm increases the complexity and processing time for each time step, though it reduces the total processing time for complex problems. As a trade-off, OSQP uses the adaptation algorithm only when it is required. The realization of the problem's complexity depends on the processing time that depends don't the machine/computer specifications. So, enabling this parameter could make OSQP indeterministic.
  • polish: this is a flag to enable/disable the final polishing algorithm for increasing the solution accuracy. This feature is disabled by default.
  • max_iter: this is a number defining the maximum allowable iteration for OSQP.

@VenusPasandi
Copy link
Contributor

I would mention here that currently, OSQP block is deterministic because, we disabled adaptive rho option (see https://github.com/robotology/wb-toolbox/blob/master/toolbox/library/src/OSQP.cpp#L323)

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

No branches or pull requests

2 participants