W is a vector of N complex elements.

D is a binary variable

The requirements are:

When D==1, L_{\min}\le ||W||_2^2\le L_{\max}

and when D==0, ||W||_2^2=0

I have formulated the following constraints to fulfill the requirements

||W||_2^2\ge 0

||W||_2^2\le L_{\min}

||W||_2^2\le DL_{\max}

||W||_2^2\ge DL_{\min}

I have modeled it as

```
norm(W)>=0;
norm(W)<=sqrt(Lmax);
norm(W)<=D*sqrt(Lmax);
norm(W)>=D*sqrt(Lmin);
```

I am experiencing the following error

```
Error using cvxprob/newcnstr (line 192)
Disciplined convex programming error:
Invalid constraint: {convex} >= {real affine}
```

How can I overcome this?