Sasa
(cch)
1
clear all

close all

clc

load tempR1.mat

load tempX10120.mat

L=size(X,2);

Mt=size(X,1);

cvx_begin quiet % sdp gp

variable phi(1,L) complex

expression x_k(Mt,L)

expression X2

expression u

variable t

minimize t

for k=1:size(X,1)

X1(k,:)=X(k,:).*phi;

end

for m=1:Mt

X2(m)=quad_form(X1(m,:).’,R1);

end

max(X2)<=0.12*t;

sum(X2)<=t;

u=abs(phi);

max(u)<=0.8;

real(phi)>=0;

imag(phi)>=0;

cvx_end

Sasa
(cch)
2
In fact， there is no mistake.

But I want to get min(u)>=0.5

so how can i write the constrait?

Erling
(Erling D.Andersen)
3
Why not keep it simple and write

u \geq 0.5.

Sasa
(cch)
4
Disciplined convex programming error:

Invalid constraint: {convex} >= {real constant}

Erling
(Erling D.Andersen)
5
Then u is not a variable a variable as your previous post indicated.

In any case your model is nonconvex then and you cannot use cvx.

Sasa
(cch)
6
u equals abs(phi). I don’t know how to express abs(phi)>=contant.

To appreciate @Erling’s comments, please carefully read

1 Like