Grid-side problem and design objective
Large-scale electric vehicle (EV) charging is a spatially concentrated and stochastic load. When charging demand coincides with the evening load peak, the distribution feeder experiences a sharper peak, higher branch loading, larger losses, and deeper voltage drops. Shifting charging to off-peak hours helps, but price-driven load transfer can create a second peak if the response is not constrained by network conditions. A more complete approach uses the converter capability of EV chargers and stationary storage to regulate both active and reactive power within the same operating envelope.
The control problem is often described as source–grid–load–storage coordination: distributed generation, the feeder, flexible demand, and storage are scheduled together rather than treated as separate layers. Four-quadrant chargers allow active power to flow into or out of the grid while reactive power is injected or absorbed. This gives the distribution operator two related but distinct levers. Active power moves energy across time; reactive power redistributes voltage support across the feeder. The design objective is therefore not simply to minimize charging cost or peak demand, but to reduce voltage deviation, load fluctuation, network loss, and user charging cost together.
The starting point is the net load at each hourly interval:
\[
P_{\mathrm{net},t}=P_{\mathrm{load},t}+P_{\mathrm{EV},t}-P_{\mathrm{DG},t}
\]
where \(P_{\mathrm{load},t}\) is conventional load, \(P_{\mathrm{EV},t}\) is EV charging demand, and \(P_{\mathrm{DG},t}\) is distributed generation output. The net-load curve determines transformer and feeder utilization, but voltage and losses depend on where the charging and storage are connected and on the reactive-power setpoints at those locations.
System architecture and price response
The coordinated system includes the distribution feeder, an EV charging station, a battery energy storage system (BESS), distributed photovoltaic and wind generation, and other loads. The EV charging station maintains a bidirectional interface with the distribution operator: it purchases energy when the system is short, and it can export energy when the system has surplus capacity and the tariff or dispatch signal favors discharge. The BESS provides faster and more predictable regulation than a fleet of vehicles, but it also has a charging cost and a state-of-charge (SOC) cycle that must be managed.
EVs add flexibility, but their availability is constrained by arrival and departure times. Uncontrolled charging can overlap with the system peak and produce a “peak-on-peak” effect; poorly designed orderly charging can also create a new peak if all vehicles are shifted to the same low-price window. Price elasticity provides a way to represent demand response. A simple form relates the relative change in demand to the relative change in price:
\[
\varepsilon=\frac{\Delta P/P_0}{\Delta D/D_0}
\]
where \(P_0\) and \(D_0\) are the baseline demand and price, and \(\Delta P\) and \(\Delta D\) are their changes after demand response. The schedule in the case analysis uses three tariff levels: 0.36 yuan/kWh for 01:00–08:00, 0.68 yuan/kWh for 12:01–18:00, and 1.07 yuan/kWh for 08:01–12:00 and 18:01–00:00. The 24-hour horizon is divided into one-hour steps, which is coarse enough for day-ahead scheduling but still captures the peak and valley structure.

Four-quadrant charger operating envelope
For an EV or BESS charger, the active and reactive setpoints are coupled by the converter rating. If the charger is rated at apparent power \(S_c\), its operating point must remain inside the circle:
\[
P_{c,t}^{2}+Q_{c,t}^{2}\le S_{c}^{2},\qquad c\in\{\mathrm{EV},\mathrm{BESS}\}
\]
Reactive power does not involve a net exchange of battery energy, but it consumes converter current and therefore reduces the active-power capacity available at the same instant. The four operating quadrants can be summarized as follows.
| Quadrant | Active power | Reactive operation | Typical use |
|---|---|---|---|
| 1 | Export to grid | Inductive / reactive absorption | Peak-load discharge |
| 2 | Export to grid | Capacitive / reactive injection | Discharge with voltage support |
| 3 | Import from grid | Capacitive / reactive injection | Valley charging with voltage support |
| 4 | Import from grid | Inductive / reactive absorption | Normal charging |
The battery-side constraint is the state of charge. With charging power \(P_{\mathrm{ch},t}\), discharge power \(P_{\mathrm{dis},t}\), charging efficiency \(\eta_{\mathrm{ch}}\), discharge efficiency \(\eta_{\mathrm{dis}}\), and storage energy capacity \(E_{\mathrm{BESS}}\), the discrete-time update is:
\[
SOC_{t+1}=SOC_t+\frac{(P_{\mathrm{ch},t}\eta_{\mathrm{ch}}-P_{\mathrm{dis},t}/\eta_{\mathrm{dis}})\Delta t}{E_{\mathrm{BESS}}}
\]
The case parameters set \(0.1\le SOC_t\le 0.9\) and \(\eta_{\mathrm{ch}}=\eta_{\mathrm{dis}}=0.95\). Charging and discharging are mutually exclusive at each time step, and the power setpoints are bounded by the charger rating. For an EV, the energy requirement over the connection window is:
\[
\sum_{t=1}^{T}P_{\mathrm{EV},i,t}\Delta t=(SOC_{a,i}-SOC_{\mathrm{ini},i})Q_{\mathrm{EV},i}
\]
where \(SOC_{\mathrm{ini},i}\) and \(SOC_{a,i}\) are the initial and target states of charge, and \(Q_{\mathrm{EV},i}\) is the usable battery capacity. This constraint prevents the optimizer from simply suppressing charging: the vehicle must leave with the required energy. The BESS model applies the same SOC logic, with separate charge and discharge limits and an additional constraint that the converter cannot exceed its apparent-power rating.
Optimization model and solution method
The dispatch problem minimizes a weighted combination of voltage deviation, load fluctuation, network loss, and charging cost:
\[
F=\omega_U\lambda_U+\omega_{av}\lambda_{av}+\omega_L\lambda_L+\omega_C\lambda_C
\]
Here \(\lambda_U\) is a normalized voltage-deviation index, \(\lambda_{av}\) represents load fluctuation, \(\lambda_L\) is a network-loss index, and \(\lambda_C\) is the charging-cost term. The weights sum to one and change by load period. During peak hours, the weights are \(\omega_U=0.3\), \(\omega_{av}=0.4\), \(\omega_L=0.2\), and \(\omega_C=0.1\). During valley hours, they are \(\omega_U=0.2\), \(\omega_{av}=0.1\), \(\omega_L=0.3\), and \(\omega_C=0.4\). This prioritizes voltage quality and load smoothing when the feeder is stressed, and gives more weight to energy cost and losses when the feeder has spare capacity.
The constraints include AC power-flow balance, nodal voltage limits of 0.95–1.05 p.u., branch current limits, distributed-generation output limits, SVC reactive-power limits, BESS SOC and power limits, EV energy requirements, and charger apparent-power limits. Network loss over the 24-hour horizon can be written as:
\[
E_{\mathrm{loss}}=\sum_{t=1}^{24}\sum_{ij\in\mathcal{E}}r_{ij}I_{ij,t}^{2}\Delta t
\]
where \(r_{ij}\) is the branch resistance and \(I_{ij,t}\) is the branch current. The model is nonconvex because of the AC power-flow equations, the converter circles, and the binary charge/discharge states. A particle swarm optimization (PSO) algorithm is used for the schedule. The velocity and position updates follow the standard form:
\[
V_{i,j}^{k+1}=wV_{i,j}^{k}+c_1r_1(P_{i,j}^{k}-X_{i,j}^{k})+c_2r_2(G_{j}^{k}-X_{i,j}^{k})
\]
\[
X_{i,j}^{k+1}=X_{i,j}^{k}+V_{i,j}^{k+1}
\]
where \(P_{i,j}^{k}\) is the personal best, \(G_{j}^{k}\) is the global best, \(w\) is the inertia weight, and \(c_1,c_2\) are learning factors. A Circle chaotic map is used to initialize the swarm so that the initial positions are distributed more evenly across the search space. As a metaheuristic, PSO produces a feasible dispatch schedule; it does not certify global optimality.
Case design and scenario definitions
The test case uses the IEEE 33-node distribution feeder over 24 hourly intervals. The parameter set includes 1,000 EV units and 1,000 storage units, an EV battery capacity of 80 kWh, SOC limits of 0.1 and 0.9, an initial SOC of 0.5, a target SOC of 0.9, and node voltage limits of 0.95–1.05 p.u. Three scenarios are compared:
- Scenario 1: uncontrolled EV charging with no coordinated dispatch.
- Scenario 2: demand response plus four-quadrant coordination of EV chargers only.
- Scenario 3: demand response plus four-quadrant coordination of both EV chargers and the BESS.
The comparison isolates two effects. Scenario 2 shows how much flexibility can be obtained from the EV fleet and its chargers. Scenario 3 adds stationary storage, which can provide a more predictable active-power response and reactive support, but also introduces an additional cost and SOC cycle.
Load, voltage, loss, and cost results
The 24-hour case results are summarized below. Voltage deviation, loss rate, and load fluctuation are expressed as percentages; user cost is expressed in yuan.
| Scenario | Voltage deviation (%) | Loss rate (%) | Load fluctuation (%) | User cost (yuan) | Voltage limit violated |
|---|---|---|---|---|---|
| 1: uncontrolled EV charging | 5.44 | 10.25 | 9.30 | 3510.65 | Yes |
| 2: EV four-quadrant coordination | 3.53 | 7.20 | 8.70 | 2780.43 | No |
| 3: EV and BESS coordination | 2.383 | 6.90 | 8.25 | 2815.89 | No |
Peak and valley load. In the uncontrolled case, charging overlaps the morning and evening load peaks, producing a sharp net-load rise. Scenario 2 reduces the peak by 18.35% and raises the valley by 7.65%. Scenario 3 reduces the peak by 18.04% and raises the valley by 7%. The peak reduction is therefore approximately 18% in both coordinated cases, while the valley increase creates additional off-peak demand that can absorb renewable output. The BESS state of charge falls during 08:00–12:00 and 16:00–24:00 and rises during 12:00–16:00 and 00:00–07:00. This pattern is consistent with discharge during high-load or high-price periods and charging during lower-price periods, producing peak shaving and valley filling.
Voltage. In the uncontrolled case, about 30% of nodes fall below the lower voltage limit; the overall voltage-deviation index is 5.44%. EV coordination lowers the index to 3.53%, and adding BESS coordination lowers it further to 2.383%. Neither coordinated scenario violates the voltage limit. The improvement is not only a consequence of active-power shifting. Reactive injection and absorption from the four-quadrant chargers provide local voltage support, while the active-power schedule reduces the current that produces the voltage drop.
Network loss. The loss rate falls from 10.25% in scenario 1 to 7.20% in scenario 2 and 6.90% in scenario 3. Relative to the uncontrolled case, these are reductions of about 29.8% and 32.7%, respectively. Flatter load profiles reduce the high-current intervals that dominate \(I^2r\) losses, and local reactive support can reduce the reactive component of branch current. The incremental loss reduction from adding the BESS is 0.3 percentage points in this case.
Cost and load fluctuation. The user-cost metric falls from 3510.65 yuan in scenario 1 to 2780.43 yuan in scenario 2, a reduction of about 20.8%. Scenario 3 costs 2815.89 yuan, which is 35.46 yuan, or about 1.3%, above scenario 2. The load-fluctuation index falls from 9.30% to 8.70% with EV coordination and to 8.25% with EV-plus-BESS coordination, reductions of about 6.5% and 11.3% relative to the uncontrolled case. The cost increase in scenario 3 is consistent with the additional storage dispatch and the use of a limited energy buffer; the gain appears mainly in voltage quality and losses rather than in the charging-cost metric alone.
Interpretation and application boundaries
The case illustrates a trade-off that matters for deployment. EV coordination alone delivers most of the peak reduction and a large share of the cost saving. Adding stationary storage improves voltage deviation from 3.53% to 2.383% and the loss rate from 7.20% to 6.90%, but the cost metric rises by 1.3% relative to the EV-only case and the peak reduction is slightly lower, at 18.04% versus 18.35%. The BESS is therefore not automatically justified by energy arbitrage alone; its value depends on how the network operator prices voltage support, loss reduction, and reliability. In a feeder with severe voltage constraints or limited reactive compensation, that incremental support may be worth the additional cost. In a feeder with sufficient voltage margin, EV coordination may be the more economical first step.
The results also show why active and reactive coordination should be evaluated together. Active-power shifting changes the timing of the load but does not by itself guarantee a satisfactory voltage profile at every node. Reactive-power injection can raise local voltage, but it consumes converter capacity and may increase losses if delivered over long feeder sections. The useful question is not whether reactive power is “free,” but where and when it can be provided within the charger rating without displacing essential active-power capacity.
The scope of the case is a 24-hour deterministic schedule on one IEEE 33-node feeder with fixed tariff bands and fixed weights. The reported metrics cover voltage deviation, loss rate, load fluctuation, and user cost. They do not quantify battery degradation, protection coordination, transformer thermal aging, communication delay, or real-time response to forecast errors. Those factors can change the economics of storage and the practical value of four-quadrant charging. The case therefore supports a conditional conclusion: coordinated active–reactive dispatch with EV chargers and energy battery storage can reduce peak load, prevent voltage-limit violations, and lower network losses, while the incremental value of stationary storage depends on the feeder’s voltage margin, tariff design, and the cost assigned to reliability.
