Retired electric-vehicle batteries typically leave service at 70–80% of their original capacity. Sending them directly to recycling at that point wastes remaining cycle life and adds to environmental pressure. Second-use in grid-scale energy battery storage—particularly peak shaving and time-of-use arbitrage—can defer recycling and reduce the cost of storage. The planning question is therefore not only how much power and energy to install, but how the sizing choice changes the battery’s degradation path and the present value of the entire service life.

The Planning Problem: Annual Revenue Is Not Lifetime Value
A common sizing objective maximizes annual net revenue. That objective is myopic for second-use batteries because the dispatch that maximizes one year’s arbitrage revenue can accelerate capacity fade. More frequent cycling and deeper discharge raise short-term revenue but reduce the number of years over which the system can earn. The alternative is to maximize the net present value of cash flows over the actual service life, with the service life determined endogenously by the battery’s capacity retention.
The decision variables are rated power \(P_m\) and rated energy \(E_m\). For each candidate pair, the model simulates a typical daily load, dispatches the storage under time-of-use tariffs, computes annual benefits and costs, updates capacity retention, and repeats until the retention threshold is reached. The objective is
$$S=E_1+\sum_{i=1}^{T_{CL}}\left(E_{2,i}+E_{3,i}+E_{4,i}-C_{2,i}\right)-C_1$$
where \(E_1\) is the present value of deferred distribution upgrade, \(E_{2,i}\) is arbitrage revenue, \(E_{3,i}\) is reliability benefit, \(E_{4,i}\) is carbon-reduction benefit, \(C_{2,i}\) is operation and maintenance cost, \(C_1\) is initial investment, and \(T_{CL}\) is the actual service life in years.
Lifetime Estimation from Cycling Data
Cycle life is strongly dependent on depth of discharge (DOD). For a lithium iron phosphate (LFP) cell, the DOD–cycle data used in the model are summarized in Table 1.
Table 1. DOD and cycle life for an LFP cell.
| DOD | Maximum cycles | DOD | Maximum cycles |
|---|---|---|---|
| 0.4 | 7,200 | 0.8 | 5,200 |
| 0.6 | 6,000 | 1.0 | 4,700 |
A power-law fit to these points gives
$$N_{ctf}(DOD)=6380\,DOD^{-0.3614}-1680$$
where \(N_{ctf}\) is the maximum cycle count at a given DOD. In operation, DOD is not constant. Rainflow counting extracts discharge half-cycles from the state-of-charge (SOC) trace and assigns each a DOD. Equivalent full-cycle counting then converts each DOD cycle into a fraction of a full cycle:
$$N’=\sum_{k=1}^{n}\frac{N_{ctf}(1)}{N_{ctf}(DOD_k)}$$
Here \(N’\) is the equivalent number of full cycles per day, \(n\) is the number of extracted cycles in the day, and \(N_{ctf}(1)=4700\) is the cycle count at 100% DOD.
The model uses a linear fit between capacity retention \(\beta\) and cycle count \(N\):
$$\beta=-2.6043\times10^{-5}N+0.8347$$
The case sets the start and end of second use at \(\beta=0.75\) and \(\beta=0.65\), respectively. If cycling were constant, the service life would be
$$T=\frac{N_2-N_1}{365N’}$$
where \(N_1\) and \(N_2\) correspond to the start and end retention values. The model instead updates retention annually. As \(\beta_i\) falls, the usable capacity falls, so the same energy throughput produces a larger SOC swing; the SOC trace, rainflow count, and next year’s retention are therefore recalculated. This iterative loop is what couples sizing to degradation.
Economic Model: Four Benefits and Two Costs
The economic case combines four benefit streams and two cost streams. All annual cash flows are discounted at a 5% benchmark rate in the case; the deferred-upgrade benefit uses a 1.5% inflation rate and a 4.5% discount rate.
Deferred distribution upgrade. When peak load exceeds feeder or substation capacity, storage can shave the peak from \(P_{lm}\) to \(P’_{lm}\). The peak-shaving coefficient is \(\lambda=P_{lm}/P’_{lm}\), and the deferral period is
$$n_\Delta=\frac{\log\lambda}{\log(1+\tau)}$$
where \(\tau\) is annual load growth. The present value of deferring a one-time upgrade investment \(C_{inv}\) is
$$E_1=C_{inv}\left[1-\left(\frac{1+r_i}{1+r_d}\right)^{n_\Delta}\right]$$
with inflation \(r_i\) and discount rate \(r_d\).
Time-of-use arbitrage. The system charges at low-price hours and discharges at high-price hours. For year \(i\),
$$E_{2,i}=n_i\sum_{k=1}^{24}\left(P_k^{+}-P_k^{-}\right)e_k\left(1+R_b\right)^{-(i-1)}$$
where \(P_k^{+}\) and \(P_k^{-}\) are discharge and charge power in hour \(k\), \(e_k\) is the hourly price, \(n_i\) is the number of operating days, and \(R_b\) is the benchmark rate.
Reliability. Storage can supply users during shortages. The reliability benefit is
$$E_{3,i}=I_{EAR}\lambda_s E_{ENS}\left[1-\Pr\{P_k^W<e_{ens}\}\right]\left(1+r_b\right)^{-(i-1)}$$
with \(I_{EAR}\) the interruption cost per MWh, \(\lambda_s\) the supply-failure rate, and \(E_{ENS}=T_s(1-A_s)P_0\) the expected unserved energy, where \(T_s\) is annual user hours, \(A_s\) is supply reliability, and \(P_0\) is the user’s required power. The probability term accounts for the chance that stored energy is insufficient when a shortage occurs.
Carbon reduction. Lower thermal generation reduces emissions. The annual benefit is
$$E_{4,i}=n_i e_c Q_c\left(1+R_b\right)^{-(i-1)}$$
where \(e_c\) is the carbon price and \(Q_c\) is the typical daily reduction. The case values carbon reduction as a revenue stream, consistent with the policy context in which China’s pilot carbon markets were introduced in seven provinces and cities in 2013.
Initial investment and O&M. Initial investment separates battery energy capacity from converter power:
$$C_1=C_E E_m+C_P P_m$$
where \(C_E\) is cost per MWh and \(C_P\) is cost per MW. Annual O&M is
$$C_{2,i}=\left(K_{E,i}E_m+K_P P_m\right)\left(1+R_b\right)^{-(i-1)}$$
The battery O&M cost per MWh rises as capacity retention falls:
$$K_{E,i}=0.005165\,\beta_i^{-6}$$
so a degraded battery costs more to maintain per unit of remaining capacity. This is the second channel through which capacity retention affects economics, alongside the loss of usable energy.
Constraints include charge and discharge power limits, daily energy balance, and SOC limits:
$$0\le P_k^{+}\le P_m,\qquad 0\le P_k^{-}\le P_m$$
$$\sum_{k=1}^{24}\left(P_k^{+}-P_k^{-}\right)=0$$
$$SOC_{min}\le SOC_i(t)\le SOC_{max}$$
$$SOC_i(t)=\frac{E_i(t)}{E_m}\frac{\beta_{\mathrm{START}}}{\beta_i}$$
The last expression normalizes stored energy by the year-specific usable capacity; the case uses \(SOC_{min}=0.1\) and \(SOC_{max}=0.9\).
Optimization and Case Results
The sizing model is solved with a firefly algorithm (FA), a population-based metaheuristic. Each firefly represents a candidate \((P_m,E_m)\); its brightness is the lifetime net present value from the simulation. The case uses 300 fireflies, a step factor of 0.2, an absorption coefficient of 1, 100 iterations, and a search precision of \(10^{-6}\). FA is convenient here because it handles a two-dimensional continuous search with few tuning parameters, but as a heuristic it returns the best solution found under the stated settings rather than a proof of global optimality.
The case is a microgrid in southern China with a typical daily load and time-of-use tariffs. Peak hours (08:00–11:00, 13:00–17:00, 18:00–21:00) are priced at 0.1132 × 104 CNY/MWh; flat hours (06:00–08:00, 11:00–13:00, 17:00–18:00, 21:00–22:00) at 0.0683 × 104 CNY/MWh; valley hours (02:00–06:00) at 0.0277 × 104 CNY/MWh. Table 2 lists the main parameters. Monetary values in the tables are in 104 CNY.
Table 2. Main parameters of the case.
| Parameter | Value | Parameter | Value |
|---|---|---|---|
| \(C_E\) | 180 × 104 CNY/MWh | \(C_P\) | 100 × 104 CNY/MW |
| \(K_P\) | 2 × 104 CNY/MW | \(I_{EAR}\) | 10 × 104 CNY/MWh |
| \(c_e\) | 0.005 × 104 CNY/MWh | \(C_{inv}\) | 2,500 × 104 CNY |
| \(n\) | 365 days/year | \(T_s\) | 8,760 h/year |
| \(\lambda_s\) | 0.34 /year | \(A_s\) | 0.99973 |
| \(P_0\) | 2.5 MW | \(\tau\) | 1.5%/year |
| \(r_i\) | 1.5% | \(r_d\) | 4.5% |
| \(R_b\) | 5% | SOC range | [0.1, 0.9] |
| \(\beta_{\mathrm{START}}\) | 0.75 | \(\beta_{\mathrm{END}}\) | 0.65 |
The lifetime-optimal configuration is \(P_m=2.4169\) MW and \(E_m=21.1759\) MWh. It yields a net present value of 1,766.7 × 104 CNY over an actual service life of 11.37 years. Table 3 shows the economic breakdown.
Table 3. Economic breakdown for the lifetime-optimal configuration.
| Item | Value (104 CNY) | Share |
|---|---|---|
| Deferred upgrade | 838.2 | 14.28% of total benefits |
| Arbitrage | 4,724.9 | 80.48% of total benefits |
| Reliability | 142.2 | 2.42% of total benefits |
| Carbon reduction | 165.8 | 2.82% of total benefits |
| Total benefits | 5,871.1 | 100% |
| Initial investment | 4,053.4 | Cost |
| O&M | 51.1 | Cost |
| Net present value | 1,766.7 | — |
Arbitrage dominates: 4,724.9 × 104 CNY, or 80.48% of total benefits. Deferred upgrade contributes 838.2 × 104 CNY (14.28%), reliability 142.2 × 104 CNY (2.42%), and carbon reduction 165.8 × 104 CNY (2.82%). Initial investment is 4,053.4 × 104 CNY, and O&M is 51.1 × 104 CNY. The concentration in arbitrage means the result is sensitive to the time-of-use price spread; the lifetime model does not eliminate that sensitivity, but it prevents a short-term dispatch pattern from eroding the asset’s useful life.
Lifetime-Optimal Versus Annual-Net-Revenue Sizing
To isolate the effect of the objective, the same model can be solved with annual net revenue as the objective, then evaluated over its actual service life. The annual-revenue design is \(P_m=2.0532\) MW and \(E_m=17.6289\) MWh. It earns 1,019.4 × 104 CNY and lasts 8.52 years. The lifetime-optimal design therefore produces 747.3 × 104 CNY more net benefit, and the annual-revenue design falls short by 42.29% relative to the lifetime-optimal value (Table 4).
Table 4. Comparison of lifetime-optimal and annual-net-revenue sizing.
| Metric | Lifetime-optimal sizing | Annual-net-revenue sizing |
|---|---|---|
| Rated power \(P_m\) (MW) | 2.4169 | 2.0532 |
| Rated energy \(E_m\) (MWh) | 21.1759 | 17.6289 |
| Net present value (104 CNY) | 1,766.7 | 1,019.4 |
| Service life \(T_{CL}\) (years) | 11.37 | 8.52 |
| Difference in net present value | — | 747.3 lower (42.29% relative to lifetime-optimal) |
The comparison is not simply a matter of installing more capacity. The annual-revenue design responds more aggressively to price spikes, charging and discharging more frequently. That raises short-term arbitrage but accelerates capacity fade. The lifetime-optimal design accepts a larger energy rating and operates with a flatter SOC profile and shallower DOD. The result is slower capacity-retention decline and a longer service life. The annual-revenue objective is myopic because it prices the electricity arbitrage but not the reduction in future earning years.
Implications and Boundaries
For second-use battery energy storage, sizing and degradation cannot be separated. A capacity configuration that looks attractive in a single-year dispatch model can be economically inferior once capacity retention, O&M cost, and service life are included. The case shows that a lifetime net-present-value objective can raise the net benefit and extend service life at the same time, because it avoids dispatch patterns that consume cycle life too quickly.
The boundaries are important. The lifetime model is cycle-count based: it uses rainflow counting and equivalent full cycles, with a fitted retention curve for retired LFP cells. Calendar aging, temperature, cell-to-cell inconsistency, and second-use screening losses are outside the model. The case uses one typical daily load, fixed time-of-use tariffs, and a single carbon price. The case-specific 11.37-year life and 1,766.7 × 104 CNY net benefit are therefore conditional on those assumptions, not generic performance figures. The firefly algorithm is also a heuristic, so the numerical optimum depends on its parameter settings.
The main planning implication is that second-use storage should be sized against the cash flows it can earn over its degraded life, not against a single year of arbitrage. Where arbitrage dominates revenue, the value of preserving capacity is highest; where deferral or reliability benefits dominate, the trade-off shifts. The same framework can be reused with site-specific load, tariff, and degradation data, provided the retention curve and cycle-counting assumptions are updated for the battery chemistry and operating regime.
</e_{ens}\}\right]\left(1+r_b\right)^{-(i-1)}$$
