
%Run GAMS model qp.gms
c.name = 'Q';
c.val = eye(3);
c.form = 'full';
s1.name = 'A';
A = [0 2 -5; 2 0 2];
s1.val = A;
s1.form = 'full';
[x,u,obj,stat] = gams('qp', c, s1);
x,u,obj,stat
stat_val=stat.val
x_val=x.val
u_val=u.val

open do_qp.m