Forecast-Driven Virtual Power Plant Dispatch for Hybrid Renewable Energy Systems: Reducing Grid Dependency Using LSTM Models
Abstract
1. Introduction
- Operational interpretability—transparent SOC and grid import logic is preferred over black-box optimization for utility deployment.
- Computational efficiency—tractable at hourly resolution over a 72 h horizon.
- Clean attribution—identical rules applied to forecast versus reactive inputs allow direct attribution of any performance improvement to the forecast layer.
- Develop and deploy LSTM-based hourly forecasting models for solar and wind generation profiles.
- Integrate the LSTM-forecast outputs into an optimization-based framework for VPP dispatch.
- Compare the operational performance of forecast-based optimization against a baseline scenario without forecasting.
- Quantify improvements in grid import reduction, environmental benefit and cost analysis.
2. Background
2.1. South Africa’s Smart Grid Market Trends
2.2. Demand-Side Management
2.3. Distributed Generation
2.4. Demand Response
2.5. The Virtual Power Plant Concept
- Distributed Energy Resources, including decentralized generation units such as solar PV, wind, and microgrids;
- Energy Storage Systems (ESS), such as BESS, that store excess energy and discharge during deficit periods;
2.6. LSTM Architecture for Renewable Energy
- Input Layer: incorporates time-series data comprising historical solar irradiance (with sinusoidal hour-of-the-day encoding) and wind speed records as model inputs.
- LSTM Layers: stacked LSTM layers capture short-term and long-term temporal dependencies, enabling the model to learn complex patterns across hourly and seasonal variations.
- Dense Layer: a fully connected dense layer processes the LSTM outputs to map latent features into numerical predictions of renewable power generation.
- Output Layer: produces hourly forecasts for solar irradiance and wind speed generation over a 24 h horizon, serving as input for the optimization module that governs BESS operation and grid dispatch decisions.
- Time-Dependency: LSTMs are specifically designed to handle time-series data with long-term dependencies, which makes them ideal for capturing temporal patterns in solar irradiance and wind speed data.
- Handling Non-Linearities: LSTMs excel at modeling non-linear relationships, which are crucial in renewable energy forecasting, where the relationship between weather factors and energy output is complex and non-linear.
- Real-Time Forecasting Capability: LSTM networks are inherently suited to real-time forecasting environments because their recurrent gating mechanism allows the cell state to be updated incrementally as new observations arrive, without retraining from scratch. In production deployments, this enables continuous one-step-ahead inference at sub-second latency on standard hardware, making LSTMs a well-established choice for online forecasting in smart-grid and energy-storage optimization contexts [6]. The present study, however, does not deploy the model in a fully online streaming configuration; instead, real-time-adjacent behavior is approximated through the rolling warm-start retraining mechanism described next.
- Adaptive Retraining (as implemented in this study): The LSTM architecture supports rolling warm-start retraining, whereby the wind speed model is updated at each timestep using the most recent 720 h of observed data. This mechanism reduces cumulative forecast drift during the 72 h dispatch horizon and is directly implemented in the simulation framework of this study. The 720 h (30-day) sliding window was chosen as a balance between retaining sufficient temporal context to capture short-term wind regimes and discarding stale observations that no longer reflect current atmospheric conditions. The solar irradiance model, by contrast, is trained once on the full 2013–2023 dataset and applied without warm-start updates, since irradiance is governed by a stable diurnal cycle that does not require online adaptation over a 72 h window.
- Integration with Weather Inputs: LSTMs can easily incorporate external weather data such as wind speed and solar irradiance as features. This makes them highly effective for renewable energy systems where weather conditions are the primary drivers of power generation variability. LSTMs readily accept multiple engineered input features. In this study, solar irradiance forecasting uses sinusoidal hour-of-day encoding alongside historical irradiance to capture diurnal periodicity, while wind speed forecasting uses an autoregressive single-feature input.
- Long-Term and Short-Term Accuracy: LSTMs can be trained to perform both short-term and long-term forecasts, which is important for a system that needs to optimize battery storage operations based on both immediate and future energy generation predictions.
- Extensibility with Hybrid Models: If higher complexity is needed, LSTM can be combined with other models (e.g., CNN-LSTM hybrid) to improve spatial feature extraction (e.g., weather pattern recognition) while maintaining LSTM’s temporal forecasting strengths. This extensibility is noted as a potential direction for future work but is not implemented in the present study, which focuses exclusively on pure LSTM architectures validated for hourly solar and wind forecasting.
3. Case Study
4. Methodology
4.1. Data Acquisition and Preprocessing
4.2. Forecasting and LSTM Model Development
- Input Layer: hourly time-series data incorporating meteorological variables and past generation records.
- LSTM Layer: 100 hidden units, configured with tanh activation and sigmoid gate functions to capture nonlinear dependencies.
- Fully Connected (Dense) Layer: transformed LSTM feature outputs into the target prediction space.
- Output Layer: produced the final hourly forecast values for irradiance and wind speed.
- Short-Term Solar Irradiance Forecasting
- Short-Term Wind Speed Forecasting
- BESS scheduling decisions are made hourly within the rule-based dispatch logic;
- The rolling warm-start retraining mechanism updates the model at each step using the most recent 720 h of data, reducing cumulative forecast drift;
- The achieved RMSE of 1.115 m/s corresponds to a power forecast uncertainty of approximately ±7–10% for a utility-scale wind farm, within acceptable thresholds for hour-ahead dispatch.
- Forecast Window Alignment
4.3. VPP Dispatch Optimization
- BESS SOC limits: maintaining SOC between 20 and 80% to ensure availability during peak PPA hours and preserve battery life.
- Load fulfillment: ensuring a contractual delivery of 75 MW between 05:00 and 21:30.
- Grid import restrictions: minimizing energy drawn from the grid, especially during peak tariff periods.
- Baseline Dispatch: reactive operation where BESS units respond to instantaneous shortfalls or excess renewable generation without foresight of future renewable variability.
- AFM Dispatch (Forecast-Aware): predictive operation using LSTM forecasts to preemptively schedule BESS charging and discharging, reducing grid dependency and maximizing renewable utilization.
- (1)
- Open-Meteo weather data and historical observations are fed into the solar and wind LSTM models to generate hourly forecasts;
- (2)
- the forecasts are converted to dispatchable PV and wind power using the standard PV and wind power expressions (Equations (1a) and (1b));
- (3)
- the AFM rule-based dispatch controller compares forecast supply to load demand and determines the BESS, grid, and curtailment actions for the hour, subject to SOC limits and PPA constraints;
- (4)
- the SOC is updated and the loop iterates over the 72 h horizon, with the dashed return path indicating that the updated SOC feeds back into the next forecast cycle.
| Algorithm 1: LSTM Forecast-Driven AFM/VPP Dispatch |
| Inputs: Hourly weather data (Open-Meteo, 2013–2023); installed capacities PPVcap, PWindcap, EBESS; SOC limits [SOCmin, SOCmax]; load profile L(t); PPA window [05:00–21:30]; horizon T = 72 h Outputs: Dispatch trajectory {PBESS(t), Ggrid(t), C(t)} for t = 1, …, 72 1: Train Solar-LSTM on 2013–2023 data with 24 h sequence + sin/cos hour-of-day encoding 2: Train Wind-LSTM on 2013–2023 data with 1-step autoregressive input 3: Initialize SOC(0) ← 0.5·EBESS 4: for t = 1 to 72 do 5: G(t) ← Solar-LSTM forecast 6: v(t) ← Wind-LSTM forecast (with rolling 720 h warm-start retrain) 7: PPV(t) ← ηPV · APV · G(t) 8: PWind(t) ← ½ · ρ · Arotor · Cp · v(t)3 9: S(t) ← PPV(t) + PWind(t) 10: Δ(t) ← L(t) − S(t) 11: if Δ(t) > 0 then (deficit) 12: PBESS(t) ← min(Δ(t), PBESS,MAX, SOC(t) − SOCmin) 13: if t ∈ PPA window AND SOC(t) ≤ SOCmin then 14: Ggrid(t) ← Δ(t) − PBESS(t) 15: else 16: Ggrid(t) ← 0 17: end if 18: else if Δ(t) < 0 then (surplus) 19: PBESS(t) ← − min(|Δ(t)|, PBESS,MAX, SOCmax − SOC(t)) 20: C(t) ← max(0, |Δ(t)| − |PBESS(t)|) 21: end if 22: SOC(t+1) ← SOC(t) − PBESS(t)·Δt 23: end for 24: return {PBESS, Ggrid, C} |
4.3.1. Baseline Dispatch
- PV and wind generation are first dispatched to meet the load.
- If generation is insufficient, BESS units discharge sequentially (PV-coupled first, then wind-coupled) until SOC constraints are reached.
- Remaining deficits are supplied by the grid.
- During surplus periods, BESS units are charged up to the SOC maximum, and any remaining excess is exported.
4.3.2. AFM/VPP Dispatch
- Load deficits are initially covered by BESS discharge.
- During restricted hours (05:00–21:30), grid import occurs only if BESS SOC falls below 20%, enforcing a forecast-driven minimization of grid reliance.
- Excess renewable generation is proactively stored in BESS units, with only surplus beyond storage capacity exported.
- Forecast integration enables preemptive BESS scheduling to match anticipated load peaks, ensuring consistent delivery of 75 MW during PPA-specified periods.
5. Simulation Results and Discussion
- Total grid energy imported (kWh)
- Load satisfaction rate (%)
- Average BESS state-of-charge behavior
- Curtailment and dispatch efficiency
5.1. Solar Hourly Forecasting

5.2. Wind Hourly Forecasting

| Hour | Actual | Predicted | Error | MAE | RMSE | MAPE (%) |
|---|---|---|---|---|---|---|
| 1 | 2.73 | 3.1398 | 0.4098 | 0.4098 | 0.4098 | 15.01 |
| 2 | 1.40 | 2.3305 | 0.9305 | 0.9305 | 0.9305 | 66.46 |
| 3 | 0.45 | 1.7729 | 1.3229 | 1.3229 | 1.3229 | 293.98 |
| 4 | 1.20 | 1.0605 | −0.1395 | 0.1395 | 0.1395 | 11.63 |
| 5 | 1.12 | 0.9995 | −0.1205 | 0.1205 | 0.1205 | 10.76 |
| 6 | 1.63 | 1.3694 | −0.2606 | 0.2606 | 0.2606 | 15.99 |
| 7 | 3.20 | 1.6385 | −1.5615 | 1.5615 | 1.5615 | 48.80 |
| 8 | 4.30 | 2.9726 | −1.3274 | 1.3274 | 1.3274 | 30.87 |
| 9 | 5.47 | 3.7267 | −1.7433 | 1.7433 | 1.7433 | 31.87 |
| 10 | 6.94 | 4.8894 | −2.0506 | 2.0506 | 2.0506 | 29.55 |
| ... | ... | ... | ... | ... | ... | ... |
| 90 | 2.78 | 3.5972 | 0.8172 | 0.8172 | 0.8172 | 29.40 |
| 91 | 4.70 | 3.2175 | −1.4825 | 1.4825 | 1.4825 | 31.54 |
| 92 | 5.06 | 4.8474 | −0.2126 | 0.2126 | 0.2126 | 4.20 |
| 93 | 6.11 | 4.9876 | −1.1224 | 1.1224 | 1.1224 | 18.37 |
| 94 | 6.90 | 5.8588 | −1.0412 | 1.0412 | 1.0412 | 15.09 |
| 95 | 7.02 | 6.3569 | −0.6631 | 0.6631 | 0.6631 | 9.45 |
5.3. VPP Scenario Case Study
- Baseline Dispatch (No Forecast Integration)—energy dispatch decisions rely solely on real-time measurements, with limited foresight on generation variability.
- AFM Dispatch using LSTM Predictions—forecasted solar irradiance is integrated into the optimization framework to pre-emptively manage charging and discharging of the BESS.





5.3.1. Operational Performance
5.3.2. AFM Dispatch
5.3.3. Comparative Grid Dependency Analysis
5.3.4. Impact on BESS Utilization and System Efficiency
5.3.5. Broader Implications for Forecast-Integrated VPP Operation
- Reduce operational costs through lower grid imports,
- Enhance grid resilience against renewable intermittency,
- Enable participation in demand response and ancillary services markets.
6. Financial Analysis of Hybrid PV-Wind-BESS Systems
6.1. Financial Methodology
- is the O&M fraction (2% in the model).
- numerator = present value of all costs,
- denominator = present value of all energy produced.
6.2. Capital Expenditure and Cashflow Analysis
6.3. Levelized Cost of Energy (LCOE)
6.4. Cumulative Cashflow Trajectory
6.5. Cost–Benefit Assessment
- ~50% reduction in annual grid expenditure
- Higher revenue from increased renewable availability
- Full recovery of additional CapEx within six years
- Long-term profit uplift exceeding R13 billion
6.6. Economic Implications of Forecast Model Choice
- (i)
- under-prediction of renewable supply causes the controller to over-discharge the BESS in anticipation of a deficit that does not materialize, leading to subsequent grid imports during peak-tariff hours;
- (ii)
- over-prediction causes the controller to leave insufficient SOC headroom to absorb the actual surplus, resulting in renewable curtailment; and
- (iii)
- systematic forecast bias degrades the ability of the controller to schedule charging cycles within off-peak hours. Each of these effects directly increases either the grid import volume (raising cost) or the curtailment volume (reducing usable energy) that the financial model is built on.
7. Environmental Performance: CO2 Emissions Analysis
- and are the installed capacities (MW),
- and represent capacity factors (–),
- 8760 is the number of hours per year.
- is the Eskom grid emission factor
- Enhanced renewable utilization through forecast-driven dispatch
- Pre-emptive battery management, reducing curtailment and grid dependency
- Coordinated load management, ensuring higher renewable self-consumption
8. Conclusions
- extending the framework to more distributed VPP configurations;
- comparing AFM dispatch performance against ARIMA and persistence forecast baselines;
- incorporating probabilistic demand forecasting;
- evaluating multi-step wind forecasting;
- validating dispatch performance across cloudy, overcast, and extreme-weather scenarios beyond the present clear-sky window;
- applying time-varying emission factors for lifecycle CO2 accounting.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| AFM | Advanced Forecasting Model |
| ANN | Artificial Neural Network |
| BESS | Battery Energy Storage System |
| CapEx | Capital Expenditure |
| CF | Capacity Factor |
| CO2 | Carbon Dioxide |
| DCL | Direct Control Load |
| DES | Distributed Energy Sources |
| DERs | Distributed Energy Resources |
| DG | Distributed Generation |
| DL | Deep Learning |
| DoD | Depth of Discharge |
| DR | Demand Response |
| DSM | Demand-Side Management |
| ESS | Energy Storage Systems |
| EVs | Electric Vehicles |
| HMI | Human Machine Interface |
| ICL | Indirect Control Load |
| ICT | Information and Communication Technologies |
| IRR | Internal Rate of Return |
| LCOE | Levelized Cost of Energy |
| LSTM | Long Short-Term Memory Network |
| MAE | Mean Absolute Error |
| MAPE | Mean Absolute Percentage Error |
| MC-Dropout | Monte Carlo Dropout |
| ML | Machine Learning |
| MSE | Mean Squared Error |
| MW | Megawatt |
| MWh | Megawatt-Hour |
| NWP | Numerical Weather Prediction |
| NPC | Net Present Cost |
| O&M | Operation and Maintenance |
| Peak-hours | Utility-Defined Peak Windows |
| PPA | Power Purchase Agreement |
| PV | Photovoltaic |
| RES | Renewable Energy Sources |
| RMSE | Root Mean Squared Error |
| RNN | Recurrent Neural Network |
| SANEDI | South African National Energy Development Institute |
| SDG | Sustainable Development Goals |
| SOC | State of Charge |
| SOC_max | Maximum State of Charge |
| SOC_min | Minimum State of Charge |
| System Cost | Total system cost (CapEx + O&M) |
| TOU | Time Of Use |
| VPP | Virtual Power Plant |
Nomenclature
| Symbol | Description | Units |
| Forecasting variables | ||
| LSTM-forecast solar irradiance at hour | W/m2 | |
| LSTM-forecast wind speed at hour | m/s | |
| Forecast value at index | — | |
| Actual (measured) value at index | — | |
| Number of observations in the evaluation horizon | — | |
| Discrete time index (hour) | h | |
| Simulation timestep | h | |
| Total simulation horizon | h | |
| Power generation and dispatch variables | ||
| Instantaneous PV power output at hour | MW | |
| Instantaneous wind power output at hour | MW | |
| BESS charging ()/discharging () power at hour | MW | |
| Maximum BESS charge/discharge power rating | MW | |
| Total renewable supply at hour | MW | |
| System load demand at hour | MW | |
| Load–supply mismatch at hour ( deficit, surplus) | MW | |
| Grid import/export at hour | MW | |
| Renewable curtailment at hour | MW | |
| Resource and equipment parameters | ||
| PV system efficiency | – | |
| Total PV panel area | m2 | |
| Wind turbine rotor swept area | m2 | |
| Air density | kg/m3 | |
| Wind turbine power coefficient | – | |
| Installed PV capacity | MW | |
| Installed wind capacity | MW | |
| Rated BESS energy capacity | MWh | |
| PV capacity factor | – | |
| Wind capacity factor | – | |
| State of charge variables | ||
| BESS state of charge at hour | MWh | |
| Minimum allowable state of charge () | MWh | |
| Maximum allowable state of charge () | MWh | |
| Depth of discharge | % | |
| Energy and emissions variables | ||
| Annual PV energy generation | MWh/yr | |
| Annual wind energy generation | MWh/yr | |
| Total annual renewable energy generation | MWh/yr | |
| Annual avoided CO2 emissions | t CO2/yr | |
| Difference in annual emissions (AFM–Baseline) | t CO2/yr | |
| Eskom grid emission factor | kg CO2/kWh | |
| Forecast performance metrics | ||
| Mean Absolute Error | (variable units) | |
| Root Mean Squared Error | (variable units) | |
| Mean Absolute Percentage Error | % | |
| Mean Squared Error (training loss) | (variable units)2 | |
| Financial variables | ||
| Total capital expenditure for configuration | R (ZAR) | |
| Annual operation and maintenance cost for configuration | R/yr | |
| O&M fraction (% of CapEx) | – | |
| Grid electricity tariff | R/kWh | |
| Annual gross savings (avoided grid purchases) for configuration | R/yr | |
| Annual net cashflow for configuration | R/yr | |
| Cashflow at year for configuration | R | |
| Cumulative cashflow up to year for configuration | R | |
| Discounted cashflow at year for configuration | R | |
| Net present value for configuration | R | |
| Levelized Cost of Energy | R/kWh | |
| Total profit at end of project life for configuration | R | |
| Difference in lifetime profit (AFM–Baseline) | R | |
| Difference in capital expenditure (AFM–Baseline) | R | |
| Break-even year for configuration | yr | |
| Real discount rate | % | |
| Project lifetime | yr | |
| LSTM model parameters | ||
| Forget gate output at time | – | |
| Input gate output at time | – | |
| Output gate output at time | – | |
| Candidate cell state at time | – | |
| Cell state at time | – | |
| Hidden state at time | – | |
| Weight matrices for forget, input, candidate, output, and output-mapping gates | – | |
| Bias vectors for the corresponding gates | – | |
| Sigmoid activation function | – | |
| Hyperbolic tangent activation function | – | |
| Element-wise (Hadamard) multiplication | – | |
| Subscripts and superscripts | ||
| Configuration index () | — | |
| Photovoltaic component | — | |
| Wind generation component | — | |
| Battery Energy Storage System component | — | |
| Electrical grid (import/export) | — | |
| Minimum admissible value | — | |
| Maximum admissible value | — | |
| Installed capacity | — | |
| Break-even (financial) | — | |
| Aggregated/total quantity | — | |
| Quantity avoided through renewable substitution | — | |
| Time index (hourly for dispatch; annual for finance) | — | |
| Generic observation index | — | |
| Indices | ||
| (dispatch) | Hour within simulation horizon | |
| (finance) | Year within project lifetime | r |
| Forecast/observation index | ||
References
- Jajbhay, O.; Khan, M.F.; Lasabi, O.A. A Hybrid Approach to Virtual Power Plants: Integrating Renewables, BESS and Forecasting in South African Smart Grids. In Proceedings of the 2025 33rd Southern African Universities Power Engineering Conference (SAUPEC); IEEE: Piscataway, NJ, USA, 2025; pp. 1–6. [Google Scholar] [CrossRef]
- Hossain, M.L.; Shams, S.M.N.; Ullah, S.M. Time-series and deep learning approaches for renewable energy forecasting in Dhaka: A comparative study of ARIMA, SARIMA, and LSTM models. Discov. Sustain. 2025, 6, 775. [Google Scholar] [CrossRef]
- Alguhi, A.A.; Al-Shaalan, A.M. LSTM-Based Prediction of Solar Irradiance and Wind Speed for Renewable Energy Systems. Energies 2025, 18, 4594. [Google Scholar] [CrossRef]
- Speer, B.; Miller, M. The Role of Smart Grids in Integrating Renewable Energy; ISGAN Synthesis Report; National Renewable Energy Laboratory: Denver, CO, USA, 2015. Available online: https://docs.nlr.gov/docs/fy15osti/63919.pdf (accessed on 15 January 2024).
- Abualigah, L.; Abu Zitar, R.; Almotairi, K.H.; Hussein, A.M.; Elaziz, M.A.; Nikoo, M.R.; Gandomi, A.H. Wind, solar, and photovoltaic renewable energy systems with and without energy storage optimization: A survey of advanced machine learning and deep learning techniques. Energies 2022, 15, 578. [Google Scholar] [CrossRef]
- Jajbhay, O.; Khan, M.F.; Swanson, A.G. Comparative Evaluation of AI Forecasting Models for Renewable Energy Prediction in Virtual Power Plant Applications. Energy Convers. Manag. 2026, 357, 121459. [Google Scholar] [CrossRef]
- Nejad, M.F.; Saberian, A.; Hizam, H.; Radzi, M.A.M.; Ab Kadir, M.Z.A. Application of smart power grid in developing countries. In Proceedings of the 2013 IEEE 7th International Power Engineering and Optimization Conference (PEOCO), Langkawi Island, Malaysia, 3–4 June 2013; pp. 427–431. [Google Scholar] [CrossRef]
- Khan, R.H.; Khan, J.Y. A comprehensive review of the application characteristics and traffic requirements of a smart grid communications network. Comput. Netw. 2013, 57, 825–845. [Google Scholar] [CrossRef]
- Haddad, S.; Touafek, K.; Khelifa, A. Investigation of the electrical and thermal performance of a PV/T hybrid system. In Proceedings of the 2015 Tenth International Conference on Ecological Vehicles and Renewable Energies (EVER), Monte-Carlo, Monaco, 31 March–2 April 2015. [Google Scholar] [CrossRef]
- Chaitanya, M.N.; Bodaballa, S.; Maniteja, C.; Raju, G.L. A review on initiatives to enable smart grid technologies into Indian utilities. In AIP Conference Proceedings; American Institute of Physics Inc.: College Park, MD, USA, 2024. [Google Scholar] [CrossRef]
- Mathe, T. Strategic National Smart Grid Vision for the South African Electricity Supply Industry. South Africa, February 2024. Available online: https://sanedi.org.za/wp-content/uploads/2024/02/FINAL-Strategic-National-Smart-Grid-Vision-for-the-South-African-Electricity-Supply-Industry.pdf (accessed on 17 April 2025).
- Feziwe, R.; Phaduli, I.; Magomola, N.; Mnapula, K.; Daya, S. The South African Weather Service Annual Report 2024/25. South Africa, August. 2025. Available online: https://www.weathersa.co.za/Documents/AnnualReports/SAWS_Annual_Report_2024-2025_web_version_06102025100606.pdf (accessed on 23 October 2025).
- Liu, R.-S.; Hsu, Y.-F. A scalable and robust approach to demand side management for smart grids with uncertain renewable power generation and bi-directional energy trading. Int. J. Electr. Power Energy Syst. 2018, 97, 396–407. [Google Scholar] [CrossRef]
- Tahir, M.F.; Haoyong, C.; Khan, A.; Javed, M.S.; Laraik, N.A.; Mehmood, K. Optimizing size of variable renewable energy sources by incorporating energy storage and demand response. IEEE Access 2019, 7, 103115–103126. [Google Scholar] [CrossRef]
- Macedo, M.N.Q.; Galo, J.J.M.; de Almeida, L.A.L.; Lima, A.C.d.C. Demand side management using artificial neural networks in a smart grid environment. Renew. Sustain. Energy Rev. 2015, 41, 128–133. [Google Scholar] [CrossRef]
- Sarker, E.; Halder, P.; Seyedmahmoudian, M.; Jamei, E.; Horan, B.; Mekhilef, S.; Stojcevski, A. Progress on the demand side management in smart grid and optimization approaches. Int. J. Energy Res. 2021, 45, 36–64. [Google Scholar] [CrossRef]
- Kakran, S.; Chanana, S. Smart operations of smart grids integrated with distributed generation: A review. Renew. Sustain. Energy Rev. 2018, 81, 524–535. [Google Scholar] [CrossRef]
- Alasseri, R.; Tripathi, A.; Rao, T.J.; Sreekanth, K. A review on implementation strategies for demand side management (DSM) in Kuwait through incentive-based demand response programs. Renew. Sustain. Energy Rev. 2017, 77, 617–635. [Google Scholar] [CrossRef]
- Mehigan, L.; Deane, J.; Gallachóir, B.; Bertsch, V. A review of the role of distributed generation (DG) in future electricity systems. Energy 2018, 163, 822–836. [Google Scholar] [CrossRef]
- Huda, A.; Živanović, R. Large-scale integration of distributed generation into distribution networks: Study objectives, review of models and computational tools. Renew. Sustain. Energy Rev. 2017, 76, 974–988. [Google Scholar] [CrossRef]
- Rad, H.K.; Moravej, Z. Coordinated transmission substations and sub-transmission networks expansion planning incorporating distributed generation. Energy 2017, 120, 996–1011. [Google Scholar] [CrossRef]
- Allan, G.; Eromenko, I.; Gilmartin, M.; Kockar, I.; McGregor, P. The economics of distributed energy generation: A literature review. Renew. Sustain. Energy Rev. 2015, 42, 543–556. [Google Scholar] [CrossRef]
- Moghimi, H.; Ahmadi, A.; Aghaei, J.; Rabiee, A. Stochastic techno-economic operation of power systems in the presence of distributed energy resources. Int. J. Electr. Power Energy Syst. 2013, 45, 477–488. [Google Scholar] [CrossRef]
- Lopez, J.C.; Rider, M.J.; Wu, Q. Parsimonious Short-Term Load Forecasting for Optimal Operation Planning of Electrical Distribution Systems. IEEE Trans. Power Syst. 2019, 34, 1427–1437. [Google Scholar] [CrossRef]
- Escalera, A.; Hayes, B.; Prodanović, M. A survey of reliability assessment techniques for modern distribution networks. Renew. Sustain. Energy Rev. 2018, 91, 344–357. [Google Scholar] [CrossRef]
- Negri, S.; Tironi, E.; Danna, D.S. Integrated control strategy for islanded operation in smart grids: Virtual inertia and ancillary services. IEEE Trans. Ind. Appl. 2019, 55, 2401–2411. [Google Scholar] [CrossRef]
- Alotaibi, I.; Abido, M.A.; Khalid, M.; Savkin, A.V. A comprehensive review of recent advances in smart grids: A sustainable future with renewable energy resources. Energies 2020, 13, 6269. [Google Scholar] [CrossRef]
- Chamorro, H.R.; Orjuela-Cañón, A.D.; Ganger, D.; Persson, M.; Gonzalez-Longatt, F.; Alvarado-Barrios, L.; Sood, V.K.; Martinez, W. Data-driven trajectory prediction of grid power frequency based on neural models. Electronics 2021, 10, 151. [Google Scholar] [CrossRef]
- Tuballa, M.L.; Abundo, M.L. A review of the development of smart grid technologies. Renew. Sustain. Energy Rev. 2016, 59, 710–725. [Google Scholar] [CrossRef]
- Albadi, M.; El-Saadany, E. A summary of demand response in electricity markets. Electr. Power Syst. Res. 2008, 78, 1989–1996. [Google Scholar] [CrossRef]
- Tang, X.; Hasan, K.N.; Milanovic, J.V.; Bailey, K.; Stott, S.J. Estimation and Validation of Characteristic Load Profile Through Smart Grid Trials in a Medium Voltage Distribution Network. IEEE Trans. Power Syst. 2018, 33, 1848–1859. [Google Scholar] [CrossRef]
- Darvishi, M.; Tahmasebi, M.; Shokouhmand, E.; Pasupuleti, J.; Bokoro, P.; Raafat, J.S. Optimal Operation of Sustainable Virtual Power Plant Considering the Amount of Emission in the Presence of Renewable Energy Sources and Demand Response. Sustainability 2023, 15, 11012. [Google Scholar] [CrossRef]
- Sharma, H.; Imanbayeva, A. Designing of multi-objective optimal virtual power plant model for reliability enhancement in radial network: A case study of Indian power sector. Sci. Rep. 2022, 12, 13382. [Google Scholar] [CrossRef]
- Ullah, Z.; Arshad, A.; Nekahi, A. Virtual Power Plants: Challenges, Opportunities, and Profitability Assessment in Current Energy Markets. Electricity 2024, 5, 370–384. [Google Scholar] [CrossRef]
- Liu, F.; Dong, T.; Hou, T.; Liu, Y. A Hybrid Short-Term Load Forecasting Model Based on Improved Fuzzy C-Means Clustering, Random Forest and Deep Neural Networks. IEEE Access 2021, 9, 59754–59765. [Google Scholar] [CrossRef]
- Ibrahim, M.R.; Haworth, J.; Lipani, A.; Aslam, N.; Cheng, T.; Christie, N. Variational-LSTM autoencoder to forecast the spread of coronavirus across the globe. PLoS ONE 2021, 16, e0246120. [Google Scholar] [CrossRef]
- Kaur, D.; Kumar, R.; Kumar, N.; Guizani, M. Smart grid energy management using RNN-LSTM: A deep learning-based approach. In Proceedings of the IEEE Global Communications Conference, GLOBECOM, Waikoloa, HI, USA, 9–13 December 2019; pp. 1–6. [Google Scholar]
- Shao, X.; Kim, C.S. Multi-Step Short-Term Power Consumption Forecasting Using Multi-Channel LSTM with Time Location Considering Customer Behavior. IEEE Access 2020, 8, 125263–125273. [Google Scholar] [CrossRef]
- Fang, X.; Yuan, Z. Performance enhancing techniques for deep learning models in time series forecasting. Eng. Appl. Artif. Intell. 2019, 85, 533–542. [Google Scholar] [CrossRef]
- Kaur, D.; Islam, S.N.; Mahmud, A.; Haque, E.; Dong, Z.Y. Energy forecasting in smart grid systems: Recent advancements in probabilistic deep learning. IET Gener. Transm. Distrib. 2022, 16, 4461–4479. [Google Scholar] [CrossRef]
- Wang, Y.; Chen, Q.; Gan, D.; Yang, J.; Kirschen, D.S.; Kang, C. Deep Learning-Based Socio-Demographic Information Identification From Smart Meter Data. IEEE Trans. Smart Grid 2019, 10, 2593–2602. [Google Scholar] [CrossRef]
- Zhang, D.; Han, X.; Deng, C. Review on the research and practice of deep learning and reinforcement learning in smart grids. CSEE J. Power Energy Syst. 2018, 4, 362–370. [Google Scholar] [CrossRef]
- Hao, W.; Cominola, A.; Castelletti, A. Combining wavelet-enhanced feature selection and deep learning techniques for multi-step forecasting of urban water demand. Environ. Res. Infrastruct. Sustain. 2024, 4, 035005. [Google Scholar] [CrossRef]
- EDF Power Solutions Projects Under Construction: Umoyilanga. South Africa August 2025. Available online: https://southafrica.edf-powersolutions.com/construction/umoyilanga/ (accessed on 23 October 2025).
- Jajbhay, O.; Khan, F.M.; Swanson, A. Optimizing Wind Energy Integration through Advanced Forecasting Methods for Improved Generation and Storage. In Proceedings of the Cigre Southern Africa 12th Regional Conference, Pretoria, South Africa, 14–17 October 2025. [Google Scholar]
- Piotrowski, P.; Rutyna, I.; Baczyński, D.; Kopyt, M. Evaluation metrics for wind power forecasts: A comprehensive review and statistical analysis of errors. Energies 2022, 15, 9657. [Google Scholar] [CrossRef]
- Azad, H.B.; Mekhilef, S.; Ganapathy, V.G. Long-term wind speed forecasting and general pattern recognition using neural networks. IEEE Trans. Sustain. Energy 2014, 5, 546–553. [Google Scholar] [CrossRef]
- Xiong, B.; Lou, L.; Meng, X.; Wang, X.; Ma, H.; Wang, Z. Short-term wind power forecasting based on Attention Mechanism and Deep Learning. Electr. Power Syst. Res. 2022, 206, 107776. [Google Scholar] [CrossRef]
- Hajirahimi, Z.; Khashei, M. Hybrid structures in time series modeling and forecasting: A review. Eng. Appl. Artif. Intell. 2019, 86, 83–106. [Google Scholar] [CrossRef]
- Rosewater, D.; Ferreira, S.; Schoenwald, D.; Hawkins, J.; Santoso, S. Battery energy storage state-of-charge forecasting: Models, optimization, and accuracy. IEEE Trans. Smart Grid 2019, 10, 2453–2462. [Google Scholar] [CrossRef]
- Guan, C.; Luh, P.B.; Michel, L.D.; Wang, Y.; Friedland, P.B. Very Short-Term Load Forecasting: Wavelet Neural Networks with Data Pre-Filtering. 2013. Available online: http://ieeexplore.ieee.org (accessed on 24 August 2024).
- Howlader, H.O.R.; Matayoshi, H.; Senjyu, T. Distributed generation incorporated with the thermal generation for optimum operation of a smart grid considering forecast error. Energy Convers. Manag. 2015, 96, 303–314. [Google Scholar] [CrossRef]
- Hernandez, L.; Baladron, C.; Aguiar, J.M.; Carro, B.; Sanchez-Esguevillas, A.J.; Lloret, J.; Massana, J. A survey on electric power demand forecasting: Future trends in smart grids, microgrids and smart buildings. IEEE Commun. Surv. Tutor. 2014, 16, 1460–1495. [Google Scholar] [CrossRef]
- Camera, F.L. Renewable Power Generation Costs 2024. Abhu Dhabi, March. 2025. Available online: http://www.irena.org/publications (accessed on 21 November 2025).










| Feature/Parameter | Wind Speed LSTM | Solar Irradiance LSTM | Explanation/Reasoning |
|---|---|---|---|
| Forecast Horizon | 15–18 July 2024 (hourly) | 14–17 July 2024 (hourly) | Based on different test windows used in the scripts. |
| Input Features | Wind speed only (1 feature) | Irradiance, hour-sin, hour-cos (3 features) | Solar includes engineered time-of-day features; wind uses raw autoregressive input. |
| Sequence Length | 1 h (single-step autoregressive) | 24 h (daily sequence window) | Solar requires daily context; wind behaves as a short-memory stochastic process. |
| Inactive Period Handling | Not required | Nighttime irradiance naturally becomes zero | Solar generation ceases at night; code uses clipping after prediction. |
| LSTM Hidden Units | 100 | 100 | Both models use 100 units according to final implemented code. |
| LSTM Output Mode | Sequence | Last | Wind predicts step-by-step; solar predicts next hour after consuming full 24 h context. |
| Normalization Method | Z-score (μ, σ from training set) | Z-score (μ, σ from training set) | Ensures stable gradients and consistent scaling. |
| Training Strategy | Direct one-step supervised training | Rolling year-ahead cross-validation + final full retraining | Solar uses multi-year CV; wind uses a single continuous training pass. |
| Training Epochs | 200 | 50 | Wind requires longer convergence due to noise; solar stabilizes faster. |
| Mini-Batch Size | Default (1 sequence per batch) | Default (full sequence training) | Matches MATLAB’s default for sequence-to-one LSTM regression. |
| Evaluation Metrics | MAE, RMSE, MAPE | MAE, RMSE, MAPE | Standard regression performance indicators. |
| Prediction Output | Hourly predicted vs. actual wind speeds | Hourly irradiance forecast (non-negative clipped) | Supports integration into hybrid dispatch model. |
| Hour | Actual (W/m2) | Predicted (W/m2) | MAE | MAPE (%) |
|---|---|---|---|---|
| 9 | 34.5 | 65.67 | 31.17 | 90.35 |
| 10 | 228.6 | 194.17 | 34.43 | 15.06 |
| 12 | 546.1 | 565.66 | 19.56 | 3.58 |
| 14 | 625.2 | 611.86 | 13.34 | 2.13 |
| 17 | 316.5 | 347.17 | 30.67 | 9.69 |
| 38 | 637.2 | 639.94 | 2.74 | 0.43 |
| 61 | 614.3 | 629.99 | 15.69 | 2.55 |
| 82 | 234.6 | 195.62 | 38.98 | 16.62 |
| 85 | 629.9 | 641.70 | 11.80 | 1.87 |
| 90 | 138.5 | 164.05 | 25.55 | 18.45 |
| Metric | Baseline (No Forecast) | AFM (LSTM Forecast Integrated) | Improvement |
|---|---|---|---|
| Total Grid Energy Imported (MWh) | 1466.34 | 623.47 | −57.48% |
| Load Satisfaction (%) | 92.1 | 99.3 | +7.2% |
| Avg. BESS Utilization Efficiency | 71.4 | 88.9 | +24.5% |
| Parameter | Value | Unit | Notes |
|---|---|---|---|
| PV Capacity Factor | 0.25 | - | For the Norther Cape, South Africa |
| Wind Capacity Factor | 0.35 | - | For the Eastern Cape, South Africa |
| PV LCOE | 0.043 × 17.35 | R/kWh | IRENA 2024/25 |
| Wind LCOE | 0.034 × 17.35 | R/kWh | IRENA 2024/25 |
| BESS Cost | 192 USD/kWh × 17.35 | R/kWh | IRENA 2024/25 |
| AFM/VPP Integration | +2% of total CapEx | ZAR | Software, communications, VPP coordination |
| O&M Escalation | 2%/yr | % | Inflation & service cost increase |
| Grid Tariff | R3/kWh | ZAR | Industrial TOU, Eskom 2025 |
| Grid Escalation | 5%/yr | % | Annual increase in tariff |
| Project Life | 20 | yrs | PV/Wind/BESS lifetime |
| Discount Rate | 8% | % | Weighted-average cost of capital |
| Metric | Baseline | AFM/VPP | Improvement |
|---|---|---|---|
| Total CapEx (R billion) | 9.83 | 10.03 | +0.20 |
| Annual Cashflow (R billion/year) | 1.138 | 1.802 | +0.664 |
| Break-even year | 9 | 6 | −3 years |
| Total 20-year profit (R billion) | 12.94 | 26.01 | +13.07 |
| Year | Baseline Cumulative Profit (R Billion) | AFM/VPP Cumulative Profit (R Billion) |
|---|---|---|
| 6 | 0.00 | 1.0 |
| 10 | 1.55 | 7.99 |
| 20 | 12.94 | 26.01 |
| Year | Grid Baseline (MWh) | Grid AFM (MWh) | CO2 Baseline (t) | CO2 AFM (t) | Annual Saving (t) | Cumulative Saving (t) |
|---|---|---|---|---|---|---|
| 1 | 137,420 | 68,712 | 123,680 | 61,841 | 61,841 | 61,841 |
| 5 | 137,420 | 68,712 | 123,680 | 61,841 | 61,841 | 309,205 |
| 10 | 137,420 | 68,712 | 123,680 | 61,841 | 61,841 | 618,410 |
| 15 | 137,420 | 68,712 | 123,680 | 61,841 | 61,841 | 927,615 |
| 20 | 137,420 | 68,712 | 123,680 | 61,841 | 61,841 | 1,236,820 |
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.
Share and Cite
Jajbhay, O.; Khan, M.F.; Swanson, A.G. Forecast-Driven Virtual Power Plant Dispatch for Hybrid Renewable Energy Systems: Reducing Grid Dependency Using LSTM Models. Energies 2026, 19, 2730. https://doi.org/10.3390/en19112730
Jajbhay O, Khan MF, Swanson AG. Forecast-Driven Virtual Power Plant Dispatch for Hybrid Renewable Energy Systems: Reducing Grid Dependency Using LSTM Models. Energies. 2026; 19(11):2730. https://doi.org/10.3390/en19112730
Chicago/Turabian StyleJajbhay, Omaira, Mohamed F. Khan, and Andrew G. Swanson. 2026. "Forecast-Driven Virtual Power Plant Dispatch for Hybrid Renewable Energy Systems: Reducing Grid Dependency Using LSTM Models" Energies 19, no. 11: 2730. https://doi.org/10.3390/en19112730
APA StyleJajbhay, O., Khan, M. F., & Swanson, A. G. (2026). Forecast-Driven Virtual Power Plant Dispatch for Hybrid Renewable Energy Systems: Reducing Grid Dependency Using LSTM Models. Energies, 19(11), 2730. https://doi.org/10.3390/en19112730

