Closed dkouzoup closed 7 years ago
@jfrasch, @mvukov do you agree?
Your fix looks correct to me.. qpdunes is row-major right? ;-)
I mean jj runs until NX and we multiply by NX.. you definitely read outside matrix S, oder? Okay I will merge the request, thanks!
It was a long time ago since I interfaced that code, thus, it may be the best to check the interface in ACADO. Matrix format might indeed be the issue.
I noticed that the S^T terms in the objective are read in the wrong way. Changing NX to NU seems to fix the problem and yields the correct results in all QPs I have tested so far.