How to use >= constraint?

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

In fact, there is no mistake.
But I want to get min(u)>=0.5
so how can i write the constrait?

Why not keep it simple and write

u \geq 0.5.

Disciplined convex programming error:
Invalid constraint: {convex} >= {real constant}

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.

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

Is the set

|x| >= 1

convex?

1 Like

To appreciate @Erling’s comments, please carefully read

1 Like