i have error in cvx code with minimize the energy consumpution in NOMA enabled MEC system, my code is

cvx_begin

variable l1(1,K)

variable p(1,K)

variable Rt(1,K)

variable Rs(1,K)

variable phi(1,K)

variable u(1,K)

variable pai(1,K)

variable w(1,K)

variable B(K,K)

variable b(1,K)

expression m(1,K-1)

expression c1(1,K-1)

%objective function

E = zeta*pow_abs(c,3) pow_abs(l1,3)./0.01 + p.T;* lam2));

a1 = sum(sum(B-B1+rou. lam1));

a2 = sum(sum(B.(1-B1)+rou.

a3 = sum(sum(B+B’- ones(K) + eye(K) +rou.* lam3));

fun = sum(E) - 0.5

*rou*(a1 + a2 - a3);

minimize (fun)

```
subject to
for k = 1:K
(L(i) - l1(k))-10^5* Rs(k)<=0;
Rt(k) - log(1+b(k))<=0;
b_old(k)*pai_old(k) + pai_old(k)*(b(k)-b_old(k))+b_old(k)*(pai(k)-pai_old(k))- gamma(k)*p(k)<=0;
exp(-phi(k)*pow_abs(d,alpha)) <= epsilon;
pai_old(k)*2^Rs_old(k)+2^Rs_old(k)*(pai(k)-pai_old(k))+pai_old(k)*2^Rs_old(k)*log(2)*(2^Rs(k)-2^Rs_old(k))-u(k)<=0;
p_old(k)*u_old(k) + u_old(k)*(p(k)-p_old(k))+p_old(k)*(u(k)-u_old(k))- w(k)<=0;
phi_old(k)*w_old(k) + w_old(k)*(phi(k)-phi_old(k))+phi_old(k)*(w(k)-w_old(k))- (pai(k)+gamma(k)*p(k)-u(k))*10^-7<=0;
for l = 1:K
if l~=k
m(l) = (B_old(k,l)-gamma(l).*p_old(l))*(B(k,l)-gamma(l).*p(l))*0.25-square(B_old(k,l)-gamma(l).*p_old(l))*0.125;
c1(l) = B(k,l)-p(l);
elseif B_old(k,l)~=0
gamma(l)*(B_old(k,l)*p_old(k) + p_old(k)*(B(k,l)-B_old(k))+B_old(k)*(p(k)-p_old(k)))<=gamma(k).* p(k);
end
end
norm([sum(m)+(pai(k)-1)*0.5 -0.5;c1(1)*0.5;c1(2)*0.5])<=(pai(k)-1)*0.5+0.5+sum(m);
end
cvx_end
```

there is an error in NOMA decoding order

错误使用 cvx/cat (line 40)

All dimensions but the one being concatenated (1) must be equal.

出错 cvx/vertcat (line 6)

y = cat( 1, varargin{:} );

出错 penalty (line 101)

norm([sum(m)+(pai(k)-1)*0.5

-0.5;c1(1)*0.5;c1(2)*0.5])<=(pai(k)-1)*0.5+0.5+sum(m);

how to solve the problem?