```
cvx_begin quiet
%length(y1)=19710
variable PEGU(length(y1));
variable PB(length(y1));
variable SOC(length(y1));
% variable Tt(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;
C/2*nb*(pp(1)*SOCf+pp(2))^2<=E<=C/2*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 reshape

Out of memory. Type HELP MEMORY for your options.

Error in cvx_sdpt3>solve (line 268)

Avec{end}{end+1} = reshape( ( str_3 * str_2 ) * reshape( At(ti,:), nt, nv * m ), nt2 * nv, m );

Error in cvxprob/solve (line 422)

[ x, status, tprec, iters, y ] = shim.solve(At, b, c, cones, quiet, prec, solv.settings, eargs{:} );

Error in cvx_end (line 87)

solve( prob );

Error in chengxu (line 46)

cvx_end

What should I do? Is the length(y1) (length(y1)=19710) too large?

Thank you.