I am doing repeated OSQP solves using the generated C code, updating the problem matrices for each solve. Sometimes a solve is related to the prior solve, in which case I take advantage of warm starting and don’t worry much about the value of any persistent states in the code.
However, at other times I must perform a solve that is completely unrelated to a prior solve (apart from having the same sparsity pattern). For these cases I’m wondering if there is something I should do to “reset” any persistent states in the OSQP code to default settings. For one example, is the adaptive rho a persistent state? If so, then for determinism I should probably reset it to a default value whenever I wish to solve a new and unrelated problem.
I may have missed it, but I didn’t see anything in the documentation that covered this, and would appreciate any guidance. Thanks,