拜托大神 MATLAB中CVX运用出问题 程序如下 拜托了啊啊啊
Tcycle=125;d=300;Pt=-30;%dBmPn=-95;%dBma=6.6;b=36.1;c=3.80;%sigma_s;BN=2000;R=600;Pl_...
Tcycle=125;d=300;Pt=-30;%dBmPn=-95;%dBma=6.6;b=36.1;
c=3.80;%sigma_s;BN=2000;R=600;
Pl_d=(a).*log10(d)+b; Pr_d=Pt-Pl_d; r_dB=Pr_d-Pn;
r=10.^(r_dB/10); rb=r.*(BN./R); Pb=(1/2).*(exp(-rb));
Pm=1-Pb; cvx_begin
variable l; minimize((-1).*Pm.^(l+386).*(l/(l=386))
subject to
lpayload>0;
lpayload<2000;
( R).^(-1).*(l+193)<Tcycle;
cvx_end
Warning: A non-empty cvx problem already exists in this scope.
It is being overwritten.
> In cvxprob.cvxprob at 30
In cvx_begin at 41
??? minimize((-1).*Pm.^(l+386).*(l/(l=386))
Error: The expression to the left of the equals sign is not a valid target for
an assignment. 展开
c=3.80;%sigma_s;BN=2000;R=600;
Pl_d=(a).*log10(d)+b; Pr_d=Pt-Pl_d; r_dB=Pr_d-Pn;
r=10.^(r_dB/10); rb=r.*(BN./R); Pb=(1/2).*(exp(-rb));
Pm=1-Pb; cvx_begin
variable l; minimize((-1).*Pm.^(l+386).*(l/(l=386))
subject to
lpayload>0;
lpayload<2000;
( R).^(-1).*(l+193)<Tcycle;
cvx_end
Warning: A non-empty cvx problem already exists in this scope.
It is being overwritten.
> In cvxprob.cvxprob at 30
In cvx_begin at 41
??? minimize((-1).*Pm.^(l+386).*(l/(l=386))
Error: The expression to the left of the equals sign is not a valid target for
an assignment. 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询