Memory management (c)

When calling osqp through the C api, does P & A need to outlive the solver or is it sufficient that they live until setup_workspace has been called?

OSQP makes internal copies of the problem data (see here). Hence, they need to live only until osqp_setup is called.

1 Like