Submitted:
24 March 2026
Posted:
26 March 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
- A corrected MILP formulation with import/export decomposition and terminal departure SoC constraints that eliminate all infeasible scheduling cycles.
- An ARMA(p, q) forecasting module with Akaike Information Criterion (AIC) model-order selection and rolling bias correction, adopted and modified from [11].
- A three-stage real-time cascade achieving 92.1-94.7% D-FCAS accuracy.
- A greedy EV phase-reassignment algorithm reducing mean phase imbalance from 11.8% to 5.6%.
- An open-source MATLAB implementation validated on the Raspberry Pi 4 with fully documented hardware interfaces. The controller is evaluated over seven days across three Melbourne field trial sites using Monte Carlo synthetic profiles calibrated against Victorian metered data.
2. Related Work
2.1. Residential Energy Management Systems
2.2. V2G Coordination
2.3. FCAS and Ancillary Service Participation
2.4. Three-Phase Current Balancing
3. System Model and Architecture
3.1. System Configuration

3.2. Tariff and Economic Parameters
3.3. Control Hierarchy and Timing

4. ARMA (p, q) Day-Ahead Forecasting
4.1. Stationarity and Seasonal Differencing
4.2. ARMA Model Structure and Estimation
4.3. Model Order Selection via AIC
4.4. Multi-Step Forecast Generation
4.5. Rolling Real-Time Bias Correction

5. Day-Ahead Scheduling
5.1. Problem Overview
5.2. Decision Variables
5.3. Objective Function
5.4. Equality Constraints
5.4.1. Power Balance
5.4.2. BESS Energy Dynamics
5.4.3. EV Energy Dynamics
5.5. Inequality Constraints
5.5.1. BESS SoC Limits and Mutual Exclusion
5.5.2. EV Power and V2G Bounds
5.5.3. EV Terminal Departure SoC Constraint
5.5.4. Regulation Capacity Feasibility
5.5.5. Grid Capacity
5.6. Solver Performance
6. Real-Time D-FCAS Regulation Cascade
6.1. Reference Signal and Error
6.2. Stage 1: EV Charge Rate Modulation
6.3. Stage 2: BESS Ramping
6.4. Stage 3: PV Curtailment
6.5. Regulation Accuracy Score

7. Price-Responsive V2G Dispatch
7.1. Rolling Median Price Reference
7.2. Dispatch Decision Logic
7.3. Revenue Tracking and Shapley Allocation

8. Three-Phase Current Balancing
8.1. Imbalance Quantification
8.2. Phase Current Decomposition
8.3. Greedy Phase Assignment Algorithm

9. Simulation Results and Discussion
9.1. Simulation Methodology
9.2. Summary KPI Results
9.3. Peak Demand Reduction
9.4. PV Self-Consumption
9.5. Regulation Cascade Breakdown
9.6. Revenue Analysis
| Revenue source | Site 1 (AUD/kW/yr) | Site 2 (AUD/kW/yr) | Site 3 (AUD/kW/yr) |
| D-FCAS enablement | $162 | $171 | $139 |
| V2G discharge revenue | $218 | $312 | $189 |
| BESS energy arbitrage | $117 | $135 | $0 |
| Net PV export revenue | $0 | $0 | $51 |
| Total | $497 | $618 | $379 |
9.7. Phase Balancing Results
9.8. Impact of Formulation Corrections
9.9. Sensitivity Analysis
9.10. Comparison with Related Work

9.11. Computational Performance on Raspberry Pi 4
10. Conclusions
Author Contributions
Funding
Acknowledgments
During
Conflicts of Interest
Abbreviations
| VPP | Virtual Power Plant |
| V2G | Vehicle-to-Grid |
| G2V | Grid-to-Vehicle |
| EV | Electric Vehicle |
| BESS | Battery Energy Storage System |
| PV | Photovoltaic |
| NEM | National Electricity Market |
| NMI | Network Metering Installation |
| AEMO | Australian Energy Market Operator |
| D-FCAS | Demand-side Frequency Control Ancillary Service |
| BTM | Behind the Meter |
| MILP | Mixed Integer Linear Programming |
| ARMA | Autoregressive Moving Average |
| AIC | Akaike Information Criterion |
| MPC | Model Predictive Control |
| REMS | Residential Energy Management System |
| OCPP | Open Charge Point Protocol |
| TOU | Time of Use |
| FiT | Feed-in Tariff |
| SoC | State of Charge |
| ADF | Augmented Dickey-Fuller |
| RMSE | Root Mean Square Error |
| MAE | Mean Absolute Error |
| AR | Autoregressive |
| MA | Moving Average |
| OLS | Ordinary Least Squares |
| RegD | Regulation D (signal) |
| AGC | Automatic Generation Control |
| KPI | Key Performance Indicator |
| RMS | Root Mean Square |
| DER | Distributed Energy Resources |
| LV | Low Voltage |
| AS/NZS | Australian Standard / New Zealand Standard |
| WDR | Wholesale Demand Response |
| AER | Australian Energy Regulator |
| ESC | Essential Services Commission |
| BOM | Bureau of Meteorology |
| AEST | Australian Eastern Standard Time |
References
- Australian Energy Regulator State of the Energy Market 2024; AER: Canberra, ACT, Australia, 2024.
- Electric Vehicle Council State of Electric Vehicles: Australian EV Market Report 2024; Electric Vehicle Council: Sydney, NSW, Australia, 2024.
- Marzband, M.; Fouladfar, M.H.; Akorede, M.F. others Framework for Smart Transactive Energy in Home-Microgrids Considering Coalition Formation and Demand Side Management. Sustain. Cities Soc. 2018, 40, 136–154. [Google Scholar] [CrossRef]
- Tushar, W.; Saad, W.; Poor, H.V.; Smith, D.B. Economics of Electric Vehicle Charging: A Game Theoretic Approach. IEEE Trans. Smart Grid 2012, 3, 1767–1778. [Google Scholar] [CrossRef]
- Sortomme, E.; El-Sharkawi, M.A. Optimal Combined Bidding of Vehicle-to-Grid Ancillary Services. IEEE Trans. Smart Grid 2012, 3, 70–79. [Google Scholar] [CrossRef]
- Liu, H.; Hu, Z.; Song, Y.; Lin, J. Decentralized Vehicle-to-Grid Control for Primary Frequency Regulation Considering Charging Demands. IEEE Trans. Power Syst. 2013, 28, 3480–3489. [Google Scholar] [CrossRef]
- Hossain, M.A.; Pota, H.R.; Hossain, M.J.; Blaabjerg, F. Evolution of Microgrids with Converter-Interfaced Generations: Challenges and Opportunities. Int. J. Electr. Power Energy Syst. 2019, 109, 160–186. [Google Scholar] [CrossRef]
- Zhang, Q.; Dehghanpour, K.; Wang, Z.; Qiu, F.; Zhao, D. Multi-Agent Safe Policy Learning for Power Management of Networked Microgrids. IEEE Trans. Smart Grid 2021, 12, 1048–1062. [Google Scholar] [CrossRef]
- Richardson, P.; Flynn, D.; Keane, A. Local Versus Centralized Charging Strategies for Electric Vehicles in Low Voltage Distribution Systems. IEEE Trans. Smart Grid 2012, 3, 1020–1028. [Google Scholar] [CrossRef]
- Haupt, R.L. Practical Genetic Algorithms, 2nd ed.; John Wiley: Hoboken, N.J, 2004; ISBN 978-0-471-67175-6. [Google Scholar]
- Box, G.E.P.; Jenkins, G.M.; Reinsel, G.C.; Ljung, G.M. Time Series Analysis: Forecasting and Control . In Wiley series in probability and statistics, Fifth edition.; Wiley: Hoboken, New Jersey, 2016; ISBN 978-1-118-67492-5. [Google Scholar]
- Mayer, M.J.; Gróf, G. Extensive Comparison of Physical Models for Photovoltaic Power Forecasting. Appl. Energy 2021, 283, 116239. [Google Scholar] [CrossRef]
- Kempton, W.; Tomić, J. Vehicle-to-Grid Power Fundamentals: Calculating Capacity and Net Revenue. J. Power Sources 2005, 144, 268–279. [Google Scholar] [CrossRef]
- Grau Unda, I.; Papadopoulos, P.; Skarvelis-Kazakos, S.; Cipcigan, L.M.; Jenkins, N.; Zabala, E. Management of Electric Vehicle Battery Charging in Distribution Networks with Multi-Agent Systems. Electr. Power Syst. Res. 2014, 110, 172–179. [Google Scholar] [CrossRef]
- Nguyen, T.A.; Byrne, R.H.; Concepcion, R.J.; Gyuk, I. Maximizing Revenue from Electrical Energy Storage in MISO Energy & Frequency Regulation Markets. In Proceedings of the 2017 IEEE Power & Energy Society General Meeting, Chicago, IL, USA, July 2017; IEEE; pp. 1–5. [Google Scholar]
- Cobben, Sjef; Gaiddon, Bruno; Laukamp, Hermann. Impact of Photovoltaic Generation on Power Quality in Urban Areas with High PV Population; Intelligent Energy Europe: Brussels, Belgium, 2008. [Google Scholar]
- Nambiar, J.; Yu, S.; Makam, J.; Trinh, H. Optimizing Power Sharing and Demand Reduction in Distributed Energy Resources for Apartments Through Tenant Incentivization. Energies 2025, 18, 4073. [Google Scholar] [CrossRef]
- Wang, Y.; Mao, S.; Nelms, R.M. Online Algorithm for Optimal Real-Time Energy Distribution in the Smart Grid. IEEE Trans. Emerg. Top. Comput. 2013, 1, 10–21. [Google Scholar] [CrossRef]

| Parameter | Value | Notes |
| BESS usable capacity | (Site 1) | Scales to 40 kWh at Site 2 |
| BESS max charge/discharge power | Inverter-limited | |
| BESS charge / discharge efficiency | Round-trip ~90% | |
| BESS SoC operating band | Cycle-life protection | |
| BESS initial SoC | Simulation start condition | |
| BESS degradation cost | Per kWh throughput | |
| EV charger rated power | AC Level 2, single-phase | |
| EV charger minimum power | OCPP lower threshold | |
| V2G max discharge power | Bidirectional charger | |
| EV battery capacities | Nissan Leaf / Tesla Model 3 | |
| EV departure SoC minimum | +5% buffer applied in V2G | |
| Grid contracted capacity | 3-phase, 100 A per phase | |
| Phase imbalance threshold | AS/NZS 61000.3.3 | |
| BESS usable capacity | (Site 1) | Scales to 40 kWh at Site 2 |
| Parameter | Site 1 (Reference) | Site 2 (Large) | Site 3 (No BESS) |
| Apartments | 6 | 12 | 4 |
| PV capacity (kWp) | 10 | 20 | 15 |
| BESS capacity (kWh) | 20 | 40 | 0 |
| EV charger bays (N) | 2 | 4 | 3 |
| Grid contracted (kW) | 25 | 25 | 25 |
| V2G-capable EVs | 2 | 4 | 3 |
| EV models | Leaf + M3 | 2×Leaf + 2×M3 | 3×M3 |
| Period | Window (AEST) | Rate |
| Off-peak | 22:00 – 07:00 | $0.12 /kWh |
| Shoulder | 07:00 – 09:00, 17:00 – 22:00 | $0.30 /kWh |
| Peak | 09:00 – 17:00 | $0.45 /kWh |
| Feed-in tariff | All hours | $0.05 /kWh |
| D-FCAS enablement | Per enabled kW | $0.10 /kW |
| BESS degradation | Per kWh throughput | $0.0002 /kWh |
| Site | Model Type | p (AR) | q (MA) | AIC | RMSE (kW) | MAE (kW) | |
| Site 1 | PV | 3 | 1 | −842.1 | −841.6 | 0.61 | 0.44 |
| Load | 4 | 2 | −716.3 | −715.3 | 0.88 | 0.63 | |
| Site 2 | PV | 3 | 1 | −901.4 | −900.9 | 1.12 | 0.79 |
| Load | 4 | 2 | −744.8 | −743.8 | 1.31 | 0.97 | |
| Site 3 | PV | 3 | 1 | −874.2 | −873.7 | 0.84 | 0.61 |
| Load | 4 | 2 | −703.5 | −702.5 | 0.72 | 0.51 |
| Variable | Dimension | Type | Description |
| T | Continuous ≥ 0 | Grid import power [kW] | |
| T | Continuous ≥ 0 | Grid export (feed-in) power [kW] | |
| T | Continuous ≥ 0 | BESS charge rate [kW] | |
| T | Continuous ≥ 0 | BESS discharge rate [kW] | |
| T | Binary | BESS mode (1 = charging) | |
| N×T | Continuous | EV charger net power [kW]; +ve = G2V, −ve = V2G | |
| N×T | Binary | V2G activation for EV i at slot t | |
| T | Continuous | BESS stored energy [kWh] | |
| N×T | Continuous | EV i stored energy [kWh] | |
| T | Continuous ≥ 0 | Up-regulation capacity [kW] | |
| T | Continuous ≥ 0 | Down-regulation capacity [kW] |
| Site | Cont. vars | Binary vars | Constraints | intlinprog (s) | Gurobi (s) |
| Site 1 (N=2) | 672 | 144 | 1,824 | 42.3 | 2.8 |
| Site 2 (N=4) | 960 | 240 | 2,736 | 88.6 | 4.1 |
| Site 3 (N=3) | 816 | 192 | 2,280 | 61.4 | 3.4 |
| KPI | Target | Site 1 | Site 2 | Site 3 |
| Peak demand reduction (%) | 35–42 | 38.4 | 41.6 | 35.4 |
| PV self-consumption (%) | 68–72 | 70.1 | 72.0 | 68.1 |
| D-FCAS regulation accuracy (%) | ≥ 92.0 | 93.4 | 94.7 | 92.1 |
| V2G + D-FCAS revenue (AUD/kW/yr) | 380–620 | 497 | 618 | 379 |
| Mean phase imbalance (%) | ≤ 10.0 | 5.6 | 5.1 | 6.2 |
| Peak phase imbalance (%) | ≤ 10.0 | 9.4 | 8.7 | 9.8 |
| MILP infeasible cycles (out of 21) | 0 | 0 | 0 | 0 |
| PV curtailment (% of available gen.) | < 2% | 0.38 | 0.21 | 0.44 |
| Stage | Intervals invoked (%) | Error resolved (%) | Notes |
| Stage 1: EV modulation | 100% | 74.2% | All intervals; primary responder |
| Stage 2: BESS ramp | 26.1% | 23.8% | |e| > 200 W after Stage 1 |
| Stage 3: PV curtailment | 2.8% | 0.4% | |e| > 500 W, down-reg only |
| Metric | Site 1 | Site 2 | Site 3 |
| Mean imbalance — uncontrolled (%) | 11.8 | 13.1 | 10.4 |
| Mean imbalance — controlled (%) | 5.6 | 5.1 | 6.2 |
| Peak imbalance — uncontrolled (%) | 14.2 | 16.7 | 12.8 |
| Peak imbalance — controlled (%) | 9.4 | 8.7 | 9.8 |
| AS/NZS violations — uncontrolled (hours) | 28.4 | 41.6 | 18.2 |
| AS/NZS violations — controlled (hours) | 0 | 0 | 0 |
| Phase reassignment events per day | 1.8 | 3.2 | 2.1 |
| Throttling events per day | 0.2 | 0.4 | 0.3 |
| Metric | Original Formulation | Corrected Formulation |
| Infeasible MILP cycles | 7 / 21 (33%) | 0 / 21 (0%) |
| Mean over-export vs. commitment (kW) | 3.8 kW | 0.1 kW |
| Mean BESS cycles per day | 2.84 | 2.33 (−18%) |
| V2G dispatch opportunities/day | 6.1 | 7.5 (+23%) |
| D-FCAS infeasible bids per week | 3.1 | 0 |
| Annualised revenue (AUD/kW/yr) | $381 | $497 (+30%) |
| Parameter variation | Revenue ($/kW/yr) | Peak red. (%) | Self-con. (%) | Reg. acc. (%) |
| Baseline (V2G 100%, 20 kWh, $0.10/kW) | $497 | 38.4 | 70.1 | 93.4 |
| V2G participation 50% | $371 | 37.1 | 70.1 | 92.6 |
| V2G participation 0% (G2V only) | $261 | 36.2 | 70.1 | 91.4 |
| BESS capacity 10 kWh | $418 | 34.7 | 66.2 | 92.8 |
| BESS capacity 30 kWh | $564 | 43.1 | 73.8 | 94.2 |
| FCAS rate $0.05/kW | $459 | 38.4 | 70.1 | 93.4 |
| FCAS rate $0.20/kW | $581 | 38.4 | 70.1 | 93.4 |
| Study | FCAS | V2G | Phase bal. | Embedded | Aus. NEM | Reg. acc. | Rev. ($/kW/yr) |
| Nguyen et al. [15] | Yes | No | No | No | No | 91.6% | N/A |
| Unda et al. [14] | No | Yes | No | Yes | No | N/A | ~470 |
| Wang et al. [18] | No | No | No | No | Yes | N/A | N/A |
| Hossain et al. [7] | Yes | No | No | No | Yes | 94.0% | N/A |
| This work — Site 1 | Yes | Yes | Yes | Yes | Yes | 93.4% | $497 |
| This work — Site 2 | Yes | Yes | Yes | Yes | Yes | 94.7% | $618 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).