I’m facing some problems using warm-start and the C++ interface.
I need to use create the solver structures and pass them to a function inside a function where the solver is initialized, solve the QP problem, return from the function and then solve the second QP problem. It’s a secuence of QP problems.
I checked the warmstart example. This image resumes my code structure. I’m starting the structures the same way the example does.
And this image show the function in my code.
The first iteration it’s OK and return a solution, but the second problem throws error 7(Solver workspace not initialized) and a segmentation fault.
I’m pretty sure it must be a pointer/refence issue, but I can’t figure out. Can you help me?
I’m thinking about changing some solver’s functions, but it’s not the idea.
Thank you in advance.