Hello!

I just started to use OSQP, I ran some examples and tests, I got the optimal point of my objective fuction but I need the value of the variables at that point. How do I get those values?

Thanks

Hello!

I just started to use OSQP, I ran some examples and tests, I got the optimal point of my objective fuction but I need the value of the variables at that point. How do I get those values?

Thanks

The values of both primal and dual variables can be found in the structure returned by the `solve`

method. In these examples that structure is called `res`

or `results`

. Which programming language do you use?

Thank you!

I’m using C.

That’s what I was looking for!

Thank you very much for you answer and the additional details!