Export Command

56 views
Skip to first unread message

Dominik Moser

unread,
Apr 25, 2014, 3:14:24 AM4/25/14
to yal...@googlegroups.com
Hello,
is there any way to export a yalmip model to qpoases? I would like to implement an MPC on DSpace. I think the export function doesn't work with qpoases, is there a workaround?
Thank you!

Johan Löfberg

unread,
Apr 25, 2014, 3:23:25 AM4/25/14
to yal...@googlegroups.com
model = export(constraints,objective,sdpsettings('solver','quadprog'));
options
= sdpsettings;
options
= options.qpoases;
lbA
= [model.beq;-inf(length(model.b),1)];
ubA
= [model.beq;model.b];
A
= [model.Aeq;model.A];
options
.qpoases.printLevel = -1;
[x,fval,exitflag,iter,lambda] = qpOASES(model.Q, model.c, A, model.lb,model.ub,lbA,ubA,[],options.qpoases);


Reply all
Reply to author
Forward
0 new messages