Skip to content

Changing MPC parameters after using code generation #594

Discussion options

You must be logged in to vote

You can look at the documentation for the C interface for the functions that are available: https://osqp.org/docs/release-0.6.3/interfaces/C.html#c-interface.

In general, for embedded code the functions you'll probably use the most would be:

  • osqp_warm_start* - Change where the initial point the solver starts from on the next run
  • osqp_update_* - Update various parts of the problem (e.g. lower/upper bounds, linear portion of the cost, etc.)
  • osqp_update_P/osqp_update_A - Update the matrices (only available if you enable embedded mode 2, matrix update)
  • osqp_update_rho - Change the rho parameter (only available if you enable embedded mode 2, matrix update)
    If you want to change the settings, …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@estevaoms
Comment options

Answer selected by estevaoms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants