keeping T constant we have to minimize Q. How to code.
c1,c2 matrices NxN
X matrix Lx1 here L=4 . A order NxL a1 order 1xN
cvx_begin variable x(4) variable k T=a1*c1*A*x; Q=a1*c2*A*x; minimize((Q)) subject to T is constant x(1)==k; x(2)==0; x(4)==0; sum(x(1:3))==0.5*k; A*x>0; cvx_end
T is constant giving error.