Hi everybody,
Lets assume we have a quadratic constrained quadratic programm (QCQP).I need run this code but error?pls help me to solve the program.
M=4
Xm= [ 0.347539377224500 - 0.081746918454880i
0.326769939937300 - 0.189685096566200i
0.147353101517000 - 0.370809793783700i
-0.051613306810020 - 0.313641729930000i]
Rin=Xm*Xm'
Ep=1;
cvx_begin
variable a(M,1) complex
minimize(quad_form(a,pinv(Rin)));
subject to
{a, (norm(a,2))^2 -M} == complex_lorentz(M);
{a, (1/Ep)*(norm((a-Xm),2) )^2 } == complex_lorentz(M);
cvx_end
??? Error using ==> cvx.pow_cvx at 142
Disciplined convex programming error:
Illegal operation: {convex} .^ {2}
(Consider POW_P, POW_POS, or POW_ABS instead.)
Error in ==> cvx.power at 55
z = pow_cvx( x, y, 'power' );
Error in ==> cvx.mpower at 9
z = power( x, y );
Error in ==> Rob_fek at 31
{a, (norm(a,2))^2 -M} == complex_lorentz(M);