Enhanced Microgrid Control through Genetic Predictive Control: Integrating Genetic Algorithms with Model Predictive Control for Improved Non-Linearity and Non-Convexity Handling
Abstract
:1. Introduction
1.1. Literature Review
1.2. Contributions of This Paper
- Introduction of a novel GPC method: This paper introduces a new control method, GPC, which integrates GAs with MPC to enhance the management of MGs. The integration leverages the global optimisation capabilities of GAs with the predictive power of MPC, addressing the limitations of each individual method.
- Enhanced handling of non-linear and non-convex problems: The GPC method is specifically designed to handle the complex, non-linear, and non-convex characteristics of MG systems more effectively than conventional approaches. By incorporating GAs within the MPC framework, the proposed method better manages the inherent complexities and dynamic behaviours of MGs.
- Dynamic adaptability to changing conditions: GPC improves the adaptability of MG control by dynamically adjusting control actions based on forecasted future load demands and system conditions. This ability allows the MG to maintain optimal performance despite fluctuating supply and demand, which is essential for reliable and efficient operation.
- Contribution to hybrid control strategies: The integration of GAs and MPC in the proposed GPC method contributes to the development of hybrid control strategies, combining different optimisation techniques to achieve better performance. This approach could be extended to other domains beyond MGs, offering a framework for future research in advanced control methods.
2. Methodology of Building and Implementing GPC
- Minimising excess power production: Optimise power generation to closely match load demand, with the aim of minimising overgeneration and consequently minimising the power injection in the upstream network.
- Balancing cost and emissions: Achieve a balance between cost and carbon emissions to maximise the economic and environmental viability of the MG.
2.1. MG System Model
2.2. The Implementation of MPC
- The control vector consists of the variables that the MPC can manipulate to achieve the desired performance.
- The state vector includes variables that represent the current status of the system.
- The output vector consists of the variables that the MPC aims to regulate or track.
- For the PV panel and WT, the power output and can be modelled using the following equation [45]:
- Power losses in transmission and distribution lines can be expressed as [46]
- The of the ESS and its charging/discharging efficiency can be modelled as [35]
- : This inequality requires that the charging power be zero or negative. Physically, this means that when the ESS is charging, it absorbs energy from the grid or other sources. A value of indicates no charging, while means the ESS is actively being charged.
- : This constraint implies that charging power should be zero or positive, stating that charging power cannot be negative. When both conditions are applied, they confirm that during charging, the power into the system cannot exceed the maximum charge rate.
- : This inequality states that the discharging power should be zero or negative. Physically, this means that when the ESS is discharging, it releases energy (power) back into the grid or the connected load. If , no discharging occurs; if , discharging is happening, and the ESS is supplying power.
- : This constraint indicates that discharging power should be zero or positive, effectively stating that discharging power cannot be negative. Together with the previous condition, these two inequalities imply that during discharging, the power drawn by the system cannot exceed the maximum discharge limit (which would be indicated as zero or more).
- The term aims to minimise the power imbalance between generation and load, ensuring stable and reliable operation.
- The term could represent the financial costs associated with energy generation, procurement, or operation.
- The term likely reflects environmental costs, such as emissions, which are becoming increasingly important in sustainable energy management.
- Power Balance Constraint:
- Generation Capacity Constraints:
- Ramp Rate Constraints:
- Emissions Constraint:
2.3. The Implementation of the GA Algorithm
- Initialisation: An initial population of candidate solutions, chromosomes in the form of control inputs, is created.
- Selection: Parent chromosomes are selected and survive according to computed fitness values for each chromosome.
- Crossover: Parents chromosomes are combined to produce the offspring.
- Mutation: Small random changes in chromosomes of offspring are introduced to provide an element of randomness and to retain diversity.
- Evaluation: The fitness of offspring chromosomes is computed.
- Replacement: A new population is created considering the best chromosomes of the current population and offsprings.
- Crossover: A single-point crossover operation can be defined as
- Mutation: A mutation operation can be defined as
2.4. The Implementation of GPC
- Prediction: Use system model to predict future states over the prediction horizon.
- Optimisation: Apply GA to optimise the control inputs over the prediction horizon.
- Implementation: Implement the optimised control inputs in the MG system.
- Repetition: Execute repetition of the process at each of the control steps to adapt to the changing conditions.
- Excess Power Production: Measured as the total surplus power generated beyond the load demand, and the power to be stored in the ESS. This power will be injected into upstream grid.
- Power Generation Costs: Calculated as an estimate of the operational costs for DERs.
- Emissions: Quantified in terms of the total emissions produced by the MG.
2.5. Practical Implementation Steps of GPC
- 1.
- ESS Support for Load Demand:
- ○
- When there is no power generation from wind or PV sources, the ESS becomes the primary source of electricity for meeting the load demand. The GPC method is designed to optimise the use of the ESS by dynamically adjusting its charging and discharging cycles based on forecasted future load demands and the current SOC of the ESS.
- ○
- If the ESS has a sufficient SOC (meaning it has enough stored energy), the GPC will discharge power from the ESS to support the load demand. The control strategy ensures that the ESS discharges at an optimal rate to meet the load requirements while also minimising power losses and maintaining efficient operation.
- 2.
- Decision Making Under No Generation Conditions:
- ○
- The GPC method uses the predictive capabilities of MPC to forecast future load requirements and ESS status. If the wind and PV generation are predicted to remain zero for an extended period, the GPC will optimise the discharging process to sustain the load for as long as possible, considering the constraints such as minimum SOC levels to prevent deep discharging and potential damage to the ESS.
- ○
- The optimisation will balance the discharging power to ensure that the ESS can cover the load demand over the required time horizon. However, if the SOC is low and cannot sufficiently cover the load, the GPC might initiate a strategy to reduce demand (load shedding) or signal the need for external grid support, if available.
2.6. A Tutorial Example
- 1.
- Initial conditions:
- ○
- Initial State of Charge (SOC) of ESS: SOC (1): 50%
- ○
- Maximum charging power:
- ○
- Maximum discharging power:
- ○
- Initial charging efficiency:
- ○
- Initial discharging efficiency:
- ○
- Weighting factors: ,
- 2.
- Forecasted load and generation:
- ○
- At :
- ▪
- , and
- Step-by-Step Optimisation:
- At time step k:
- 1.
- Power balance:
- ○
- The required power balance to meet the load is:
- ○
- Thus,
- 2.
- Determine Optimal Charging/Discharging Strategy: To meet the load, we need a net discharge of 40 kW. Since the ESS cannot charge and discharge simultaneously, we have two cases:
- ○
- Case 1: Discharging Only—If the ESS is discharging to cover the deficit,
- ○
- Case 2: Charging Only—Since we need to meet the load, charging only would not be feasible in this scenario, so
- ○
- Thus, the optimal strategy here is to discharge 40 kW from the ESS.
- 3.
- Update SOC After Discharging: The SOC of the ESS after discharging at time step is calculated using the following formula:
- ○
- From Equation (14),
3. Results
3.1. The Case Study Description
3.2. Mutation–Random Selection
3.3. Mutation–Elitism
3.4. Crossover–Random Selection
3.5. Crossover–Elitism
4. Discussion
4.1. Performance Analysis
4.2. Methodological Insights
4.3. Limitations and Challenges
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- He, X.; Cui, S.; Wang, Y.-W.; Xiao, J.-W. A Data-Driven MPC-Based Energy Optimization and Management Framework of an Energy Building. In Proceedings of the 2021 33rd Chinese Control and Decision Conference (CCDC), Kunming, China, 22–24 May 2021; pp. 5139–5144. [Google Scholar] [CrossRef]
- Qian, K.; Liu, D.; Yan, Y.; Xu, Y.; Wei, H.; Zhang, J. Research on configuration optimization of integrated energy system considering equipment nonlinearity. In Proceedings of the 2023 IEEE 6th International Electrical and Energy Conference (CIEEC), Hefei, China, 12–14 May 2023; pp. 3722–3726. [Google Scholar] [CrossRef]
- Chapaloglou, S.; Alves, E.F.; Trovato, V.; Tedeschi, E. Optimal Energy Management in Autonomous Power Systems With Probabilistic Security Constraints and Adaptive Frequency Control. IEEE Trans. Power Syst. 2024, 39, 1543–1554. [Google Scholar] [CrossRef]
- Dincer, I.; Rosen, M.A.; Ahmadi, P. Optimization of Energy Systems; John Wiley & Sons Ltd.: West Sussex, UK, 2017. [Google Scholar] [CrossRef]
- Ma, K.; Hu, G.; Spanos, C.J. Energy Management Considering Load Operations and Forecast Errors With Application to HVAC Systems. IEEE Trans. Smart Grid 2018, 9, 605–614. [Google Scholar] [CrossRef]
- Carreras, F.; Kirchsteiger, H. An Empirical Approach to Optimize non-linear Problems of Domestic Energy Management Systems. Environ. Clim. Technol. 2023, 27, 299–313. [Google Scholar] [CrossRef]
- Müller, J. Evolutionary optimization under uncertainty in energy management systems. IT—Inf. Technol. 2017, 59, 23–29. [Google Scholar] [CrossRef]
- Dashtdar, M.; Flah, A.; Hosseinimoghadam, S.M.S.; Reddy, C.R.; Kotb, H.; AboRas, K.M.; Bortoni, E.C. Improving the Power Quality of Island Microgrid With Voltage and Frequency Control Based on a Hybrid Genetic Algorithm and PSO. IEEE Access 2022, 10, 105352–105365. [Google Scholar] [CrossRef]
- Liao, J.; Zhou, N.; Wang, Q.; Chi, Y. Load-Switching Strategy for Voltage Balancing of Bipolar DC Distribution Networks Based on Optimal Automatic Commutation Algorithm. IEEE Trans. Smart Grid 2021, 12, 2966–2979. [Google Scholar] [CrossRef]
- Sadees, M.; Raju, A.; Mukherjee, U.; Vijayakumar, K. Genetic Algorithm Based Energy Management in Microgrid. In Proceedings of the International Conference on Power Electronics and Renewable Energy Systems; Springer: Singapore, 2022; Volume 795, pp. 445–455. [Google Scholar] [CrossRef]
- El-Fergany, A.A.; El-Hameed, M.A. Efficient frequency controllers for autonomous two-area hybrid microgrid system using social-spider optimiser. IET Gener. Transm. Distrib. 2017, 11, 637–648. [Google Scholar] [CrossRef]
- Sah, S.V.; Prakash, V.; Pathak, P.K.; Yadav, A.K. Fractional Order AGC Design for Power Systems via Artificial Gorilla Troops Optimizer. In Proceedings of the 2022 IEEE International Conference on Power Electronics, Drives and Energy Systems (PEDES), Jaipur, India, 14–17 December 2022; pp. 1–6. [Google Scholar] [CrossRef]
- Joshal, K.S.; Gupta, N. Microgrids with Model Predictive Control: A Critical Review. Energies 2023, 16, 4851. [Google Scholar] [CrossRef]
- Li, H.; Zang, C.; Zeng, P.; Yu, H.; Li, Z. A genetic algorithm-based hybrid optimization approach for microgrid energy management. In Proceedings of the 2015 IEEE International Conference on Cyber Technology in Automation, Control, and Intelligent Systems (CYBER), Shenyang, China, 8–12 June 2015; pp. 1474–1478. [Google Scholar] [CrossRef]
- Ramesh, M.; Yadav, A.K.; Pathak, P.K. Artificial Gorilla Troops Optimizer for Frequency Regulation of Wind Contributed Microgrid System. J. Comput. Nonlinear Dyn. 2023, 18, 011005. [Google Scholar] [CrossRef]
- Li, W.; Wang, R.; Zhang, T.; Ming, M.; Lei, H. Multi-scenario microgrid optimization using an evolutionary multi-objective algorithm. Swarm Evol. Comput. 2019, 50, 100570. [Google Scholar] [CrossRef]
- Nanda, S.J.; Panda, G. A survey on nature inspired metaheuristic algorithms for partitional clustering. Swarm Evol. Comput. 2014, 16, 1–18. [Google Scholar] [CrossRef]
- Qu, B.-Y.; Suganthan, P.N. Novel multimodal problems and differential evolution with ensemble of restricted tournament selection. In Proceedings of the IEEE Congress on Evolutionary Computation, Barcelona, Spain, 18–23 July 2010; pp. 1–7. [Google Scholar] [CrossRef]
- Camacho, E.F.; Bordons, C.; London, M.P.C. Model Predictive Control; Springer Nature: Dordrecht, The Netherlands, 2007. [Google Scholar] [CrossRef]
- Wang, L. Model Predictive Control System Design and Implementation Using MATLAB®; Springer: London, UK, 2009. [Google Scholar] [CrossRef]
- Rawlings, J.B.; Mayne, D.Q. Model Predictive Control Theory and Design; Nob Hill Pub, LLC.: Madison, WI, USA, 2009. [Google Scholar]
- Qin, S.J.; Badgwell, T.A. A survey of industrial model predictive control technology. Control Eng. Pract. 2023, 11, 733–764. [Google Scholar] [CrossRef]
- Moradi, M.H. Predictive control with constraints. Int. J. Adapt. Control. Signal Process. 2003, 17, 261–262. [Google Scholar] [CrossRef]
- Panday, A.; Bansal, H.O. Energy management strategy for hybrid electric vehicles using genetic algorithm. J. Renew. Sustain. Energy 2016, 8, 015701. [Google Scholar] [CrossRef]
- Pannocchia, G. Handbook of Model Predictive Control [Bookshelf]. IEEE Control. Syst. 2020, 40, 96–99. [Google Scholar] [CrossRef]
- Maouedj, R.; Mammeri, A.; Draou, M.D.; Benyoucef, B. Performance Evaluation of Hybrid Photovoltaic-wind Power Systems. Energy Procedia 2014, 50, 797–807. [Google Scholar] [CrossRef]
- Ding, N.; Prasad, K.; Lie, T.T. Design of a hybrid energy management system using designed rule-based control strategy and genetic algorithm for the series-parallel plug-in hybrid electric vehicle. Int. J. Energy Res. 2020, 45, 1627–1644. [Google Scholar] [CrossRef]
- Alzahrani, A.; Hafeez, G.; Ali, S.; Murawwat, S.; Khan, M.I.; Rehman, K.; Abed, A.M. Multi-Objective Energy Optimization with Load and Distributed Energy Source Scheduling in the Smart Power Grid. Sustainability 2023, 15, 9970. [Google Scholar] [CrossRef]
- Ren, Z.; Qu, X.; Wang, M.; Zou, C. Multi-Objective Optimization for DC Microgrid Using Combination of NSGA-II Algorithm and Linear Search Method. IEEE J. Emerg. Sel. Top. Circuits Syst. 2023, 13, 789–796. [Google Scholar] [CrossRef]
- Elazab, R.; Abdelnaby, A.T.; Ali, A.A. A comparative study of advanced evolutionary algorithms for optimizing microgrid performance under dynamic pricing conditions. Sci. Rep. 2024, 14, 4548. [Google Scholar] [CrossRef]
- Bordons, C.; Garcia-Torres, F.; Ridao, M.A. Model Predictive Control of Microgrids; Springer International Publishing: Cham, Switzerland, 2020. [Google Scholar] [CrossRef]
- Zhao, Z.; Xu, J.; Guo, J.; Ni, Q.; Chen, B.; Lai, L.L. Robust Energy Management for Multi-Microgrids Based on Distributed Dynamic Tube Model Predictive Control. IEEE Trans. Smart Grid 2024, 15, 203–217. [Google Scholar] [CrossRef]
- Han, H.; Zhang, H.; Yang, J.; Su, H. Distributed Model Predictive Consensus Control for Stable Operation of Integrated Energy System. IEEE Trans. Smart Grid 2024, 15, 381–393. [Google Scholar] [CrossRef]
- Akbulut, O.; Cavus, M.; Cengiz, M.; Allahham, A.; Giaouris, D.; Forshaw, M. Hybrid Intelligent Control System for Adaptive Microgrid Optimization: Integration of Rule-Based Control and Deep Learning Techniques. Energies 2024, 17, 2260. [Google Scholar] [CrossRef]
- Cavus, M.; Allahham, A.; Adhikari, K.; Giaouris, D. A hybrid method based on logic predictive controller for flexible hybrid microgrid with plug-and-play capabilities. Appl. Energy 2024, 359, 122752. [Google Scholar] [CrossRef]
- Cavus, M.; Ugurluoglu, Y.F.; Ayan, H.; Allahham, A.; Adhikari, K.; Giaouris, D. Switched Auto-Regressive Neural Control (S-ANC) for Energy Management of Hybrid Microgrids. Appl. Sci. 2023, 13, 11744. [Google Scholar] [CrossRef]
- Pamulapati, T.; Cavus, M.; Odigwe, I.; Allahham, A.; Walker, S.; Giaouris, D. A Review of Microgrid Energy Management Strategies from the Energy Trilemma Perspective. Energies 2022, 16, 289. [Google Scholar] [CrossRef]
- Cavus, M.; Allahham, A.; Adhikari, K.; Zangiabadia, M.; Giaouris, D. Control of microgrids using an enhanced Model Predictive Controller. In Proceedings of the 11th International Conference on Power Electronics, Machines and Drives (PEMD 2022), Newcastle, UK, 21–23 June 2022; pp. 660–665. [Google Scholar] [CrossRef]
- Shankar, G.; Mukherjee, V. Load frequency control of an autonomous hybrid power system by quasi-oppositional harmony search algorithm. Int. J. Electr. Power Energy Syst. 2016, 78, 715–734. [Google Scholar] [CrossRef]
- Villalón, A.; Rivera, M.; Salgueiro, Y.; Muñoz, J.; Dragičević, T.; Blaabjerg, F. Predictive Control for Microgrid Applications: A Review Study. Energies 2020, 13, 2454. [Google Scholar] [CrossRef]
- Vergara, P.P.; Torquato, R.; da Silva, L.C.P. Towards a real-time Energy Management System for a Microgrid using a multi-objective genetic algorithm. In Proceedings of the 2015 IEEE Power & Energy Society General Meeting, Denver, CO, USA, 26–30 July 2015; pp. 1–5. [Google Scholar] [CrossRef]
- Mayne, D.Q.; Rawlings, J.B.; Rao, C.V.; Scokaert, P.O.M. Constrained model predictive control: Stability and optimality. Automatica 2000, 36, 789–814. [Google Scholar] [CrossRef]
- Garcia-Torres, F.; Zafra-Cabeza, A.; Silva, C.; Grieu, S.; Darure, T.; Estanqueiro, A. Model Predictive Control for Microgrid Functionalities: Review and Future Challenges. Energies 2021, 14, 1296. [Google Scholar] [CrossRef]
- Zhang, P. MPC for Microgrids: Theory and Practice (IEEE Press Series on Power and Energy Systems), 1st ed.; Wiley-IEEE Press: West Sussex, UK, 2024. [Google Scholar]
- Trifkovic, M.; Sheikhzadeh, M.; Nigim, K.; Daoutidis, P. Modeling and Control of a Renewable Hybrid Energy System With Hydrogen Storage. IEEE Trans. Control Syst. Technol. 2014, 22, 169–179. [Google Scholar] [CrossRef]
- Weedy, B.M.; Cory, B.J.; Jenkins, N.; Ekanayake, J.B.; Strbac, G.; Systems, E.P. Electric Power Systems; John Wiley & Sons: Hoboken, NJ, USA, 2012. [Google Scholar]
Time (Hours) | Solar Irradiation (W/m2) | Wind Speed (m/s) | Load Demand (kW) |
---|---|---|---|
01:00 | 0 | 12 | 50 |
02:00 | 0 | 11 | 45 |
03:00 | 0 | 10 | 43 |
04:00 | 0 | 9 | 35 |
05:00 | 50 | 8 | 30 |
06:00 | 100 | 6 | 40 |
07:00 | 200 | 5 | 54 |
08:00 | 400 | 14 | 60 |
09:00 | 600 | 12 | 74 |
10:00 | 800 | 10 | 80 |
11:00 | 1000 | 10 | 90 |
12:00 | 1100 | 7 | 105 |
13:00 | 1000 | 7 | 97 |
14:00 | 800 | 8 | 98 |
15:00 | 600 | 9 | 99 |
16:00 | 400 | 7 | 87 |
17:00 | 200 | 11 | 102 |
18:00 | 100 | 13 | 101 |
19:00 | 50 | 15 | 105 |
20:00 | 0 | 14 | 98 |
21:00 | 0 | 13 | 99 |
22:00 | 0 | 7 | 96 |
23:00 | 0 | 6 | 94 |
24:00 | 0 | 7 | 90 |
Parameters | Values | Parameters | Values |
---|---|---|---|
ESS capacity | 150 kWh | Daytime price (7 AM–7 PM) | USD 0.20 per kWh |
PV panels | 100 kW | Nighttime price (7 PM–7 AM) | USD 0.10 per kWh |
WTs | 90 kW | 0.9 (90%) | |
0.95 | 0.15 (15%) | ||
0.90 | 0.5 (50%) | ||
0 kW | 0.5 ohms | ||
110 kW | 24 h | ||
1.0 | 5 h | ||
0.6 | Mutation rate | 0.1 | |
0.4 | Emission factor | 0.22499 kg CO2e per kWh | |
200 m2 | −0.0045 (°C−1) | ||
0.18 (18%) | 90 m2 | ||
50 kW | 3 m/s | ||
25 m/s | 12 m/s |
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. |
© 2024 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Cavus, M.; Allahham, A. Enhanced Microgrid Control through Genetic Predictive Control: Integrating Genetic Algorithms with Model Predictive Control for Improved Non-Linearity and Non-Convexity Handling. Energies 2024, 17, 4458. https://doi.org/10.3390/en17174458
Cavus M, Allahham A. Enhanced Microgrid Control through Genetic Predictive Control: Integrating Genetic Algorithms with Model Predictive Control for Improved Non-Linearity and Non-Convexity Handling. Energies. 2024; 17(17):4458. https://doi.org/10.3390/en17174458
Chicago/Turabian StyleCavus, Muhammed, and Adib Allahham. 2024. "Enhanced Microgrid Control through Genetic Predictive Control: Integrating Genetic Algorithms with Model Predictive Control for Improved Non-Linearity and Non-Convexity Handling" Energies 17, no. 17: 4458. https://doi.org/10.3390/en17174458