0

我遇到过这个错误:Error using .* (line 173) Disciplined convex programming error: Cannot perform the operation: {positive constant} ./ {concave}

./ 中的错误(第 19 行)z = times( x, y, './' );

Scenario_one 中的错误(第 177 行)minimize((1-thau/T)sum(log2(1+ denum./(term1(x^2) + term2*x + constant))))

我的问题是: 在此处输入图像描述

这是我的代码:

coef=sum(beta)+1/Pd;
coef1=(betajamQT)/thau;
coef2=(betajamQT)/((T-thau)*Pd);

term1=-3coef2.coef1;
term2=coef.coef1+3coef2.coef1-coef2thauPt.beta-coef2;
constant=coefthauPt.beta+coef+coef2thauPt.beta+coef2+(thauPt(beta.^2));
denum=thauPt(beta.^2);

cvx_begin
variable x
minimize((1-thau/T)sum(log2(1+ denum./(term1(x^2) + term2*x + constant))))
subject to
0 <= x <= 1
cvx_end
4

0 回答 0