I defind a variable with dimension 1*n,But i want to constrain the first element and the last element of the variable,to make the two elements larger than maximization of the variable, so how should i do？Is this can achieve?

the code:

cvx_begin quiet

variable wt(Mt-2) complex %variable

minimize(norm(cur_Qt*wt,1));

subject to

At_tar’*wt == 1;

abs(wt(1)) >= max(abs(wt))*0.0001; %%canstrain the first element of the variable

abs(wt(end)) >= max(abs(wt))*0.0001; %%canstrain the first element of the variable

for sl=1:length(sl_ind)

abs(Ats(:,sl)’*wt) <= 10^(desired_psll/20);

end

cvx_end

error:

error using cvxprob/newcnstr (line 192)

Disciplined convex programming error:

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

error >= (line 21)

b = newcnstr( evalin( ‘caller’, ‘cvx_problem’, ‘[]’ ), x, y, ‘>=’ );