```
cvx_begin quiet
variable PEGU(length(y1));
variable PB(length(y1));
variable SOC(length(y1));
variable E(length(y1))
minimize(sum(cf*(pppp(1)*PEGU.^2+pppp(2)*PEGU+pppp(3)).*et)+ce*(SOC(1)-SOC(length(y1)))*Qb*Ueding*nb/1000);
subject to
0.3<=SOC<=0.9;
Pr+Pmloss<=PB+PEGU;
0<=PEGU<=87;
Imin*sqrt(2*E/C*nb)-R*Imin^2*nb<=PB<=E/2/R/C;
E-sqrt(E.^2-2*R*C*E.*PB)<=Imax*R*sqrt(2*C*E*nb);
diff(E)<=-pp(1)/R/Qb*(E-sqrt(E.^2-2*R*C*E.*PB));
C/2*nb*(pp(1)*SOCf+pp(2))^2<=E<=C/2*nb*nb*(pp(1)*SOC0+pp(2))^2;
E(1)==C/2*nb*(pp(1)*SOC0+pp(2));
E(length(y1))==C/2*nb*(pp(1)*SOCf+pp(2));
cvx_end
```

Error using .* (line 262)

Disciplined convex programming error:

Invalid quadratic form(s): not a

square.

Error in chengxu (line 35)

E-sqrt(E.^2-2*R*C*E. PB)<=ImaxR*sqrt(2

*C*E*nb);

What should I do?Thank you.