coin-or / qpOASES

Open-source C++ implementation of the recently proposed online active set strategy
GNU Lesser General Public License v2.1
365 stars 127 forks source link

qpOASES in Siumlink cannot solve QP Problem #71

Open svigerske opened 4 years ago

svigerske commented 4 years ago

Issue created by migration from Trac.

Original creator: Michel

Original creation time: 2017-08-01 16:00:32

Assignee: ferreau

Version: 3.2.1

Keywords: Simulink, Matlab

I try to solve an optimization problem using the simulink interface. Before I've already used the matlab interface. Here, it's possible to solve the problem. The inputs are attached. For solving I used:

[x,fval,exiflag,iter,lamda,ausOutput]=qpOASES(H,g,A,lb,ub,lbA,ubA) Then I built up the problem inputs in the same way given in the examples. The inputs are attached, too. I'm using the example_QProblem.mdl. However, by solving in simulink the following errors occur: Division by zero, Abnormal termination due to Cholesky factorisation, Determination of step direction failed, Initialisation failed! QP could not be solved,... Any clue what's wrong in my problem statement? Why can it be solved in matlab but not in simulink? Regards Michel