cvx_begin
variables C_NRC_L(L,N_RC);
[tau_av,hitratio_av] = TAU_AV( C_NVC1_L,C_NVC2_L,C_NRC_L,S_q,Gamma(1));
Cost_av = COST_AV(C_NVC1_L,C_NVC2_L,C_NRC_L,S_q,Gamma(1));
tau_Cost_av=tau_av/tau_max+Cost_av/Cost_max;
minimize tau_Cost_av
subject to
C_NRC_L <= 1;
C_NRC_L >= 0;
[ones(1,L)*C_NRC_L]'<= S_R*ones(N_RC,1);
cvx_end
Undefined function ‘newcnstr’ for input arguments of type ‘cvx’.
Error in == (line 12)
b = newcnstr( evalin( ‘caller’, ‘cvx_problem’, ‘’ ), x, y, ‘==’ );Error in TAU_AV (line 56)
if C_NRC_L(q_l,i)==1Error in CachingwithZipfgamma (line 94)
[tau_av,hitratio_av] = TAU_AV( C_NVC1_L,C_NVC2_L,C_NRC_L,S_q,Gamma(1));
Part of the code of TAU_AV:
for i=1:N_RC if C_NRC_L(q_l,i)==1 c_ml_RC=1; else c_ml_RC=0; end if find(C_NRC_L(q_l,:)==1)>0 c_ml_RC_sum=1; else c_ml_RC_sum=0; end
TAU_AV is a function I created, which involves judging the value of the element in the variable C_NRC_L, and then prompted an error, I am sure the problem is convex, this may be a violation of the DCP rule, then how should I express the judgment of the element value in the variable ?

