Error with qpOASES: "Vector argument 6 must not be in sparse format!"

25 views
Skip to first unread message

Robin Verschueren

unread,
Jul 29, 2015, 11:48:50 AM7/29/15
to YALMIP
If I try to solve the following easy example with qpOASES

w = sdpvar(2,1);
cost   = w(1)*w(1)+w(2)*w(2);
constr = (-2 <= w <= 2);
options = sdpsettings('solver', 'qpoases','verbose',2,'debug',1);
solvesdp(constr, cost, options):


it gives the following error:
__________________________________________
Error using qpOASES
ERROR (qpOASES): Vector argument 6 must not be in sparse format!

Error in callqpoases>callsolver (line 62)
[x,fval,exitflag,iter,lambda] = qpOASES(model.Q, model.c, A, model.lb,model.ub,lbA,ubA,options.qpoases);

Error in callqpoases (line 12)
solution = callsolver(model,options);

Error in solvesdp (line 335)
    eval(['output = ' solver.call '(interfacedata);']);

Error in qpoases_test (line 11)
solvesdp(constr, cost, options)
___________________________________________

Does it have something to do with MATLAB sparse matrices?
I'm running the latest YALMIP version.

Johan Löfberg

unread,
Jul 30, 2015, 11:37:52 AM7/30/15
to YALMIP, robin.ve...@gmail.com
ok, will fix that. simply cast as full and it should work
Reply all
Reply to author
Forward
0 new messages