Abstract
In this paper, a comprehensive energy management framework for microgrids that incorporates price-based demand response programs (DRPs) and leverages an advanced optimization method—Greedy Rat Swarm Optimizer (GRSO) is proposed. The primary objective is to minimize the generation cost and environmental impact of microgrid systems by effectively scheduling distributed energy resources (DERs), including renewable energy sources (RES) such as solar and wind, alongside fossil-fuel-based generators. Four distinct demand response models—exponential, hyperbolic, logarithmic, and critical peak pricing (CPP)—are developed, each reflecting a different price elasticity of demand. These models are integrated with a flexible elasticity matrix to assess the dynamic consumer response to fluctuating electricity prices. The study evaluates four operational scenarios, focusing on grid participation, DER utilization, and the impact of real-time pricing (RTP), time of use (TOU), and critical peak pricing strategies. Quantitative results demonstrate the significant cost-saving potential of integrating DRPs with microgrid operations. In the optimal scenario, the GRSO achieved a minimum generation cost of 882¥ for the base load profile. Further, when critical peak pricing (CPP) was applied, the generation cost was reduced to 746¥, representing a 15.4% reduction. For a scenario where the grid’s participation was limited, the logarithmic-based demand response model decreased the generation cost to 817¥, while full grid interaction led to higher cost reductions. Additionally, our results show a significant reduction in peak load, with load factor improvements of up to 87.7% across the studied demand profiles. Furthermore, limiting the grid’s upstream power capacity to 30 kW resulted in a 7% increase in generation cost across all cases, confirming the importance of grid participation in reducing operational costs. The GRSO algorithm outperformed traditional metaheuristics in terms of both execution time and convergence, making it a viable solution for real-time microgrid optimization. In conclusion, the proposed GRSO-based framework provides an efficient approach for microgrid cost minimization, achieving up to a 15.4% reduction in operational costs and notable environmental benefits by reducing emissions. This study highlights the importance of dynamic demand response strategies and grid participation for sustainable and cost-effective microgrid management.
Similar content being viewed by others
Introduction
General overview
Aligning with the goals of SDG7, power system grids are migrating mostly towards renewable generation1. The degradation of the conventional fossil fuels has further fastened up this paradigm shift. However, the greatest demerit of the renewables is their intermittent nature and its dependence on climate. These renewable sources are a major source of generation in microgrids. A microgrid is essentially a scaled-down version of a traditional power grid that can autonomously manage its load demands through localized generation or with support from the main grid. These systems typically rely on distributed energy sources like wind, solar, and battery storage, while diesel generators are sometimes employed as auxiliary power units. Reducing microgrid operational costs is a crucial challenge in the design and implementation of decentralized energy systems. Key aspects of cost reduction include identifying the optimal energy resource mix, employing advanced energy management systems (EMS) to enhance operational efficiency, integrating energy storage solutions to mitigate the variability of renewable sources, ensuring smooth interaction with the main grid, evaluating the microgrid’s total lifecycle costs, and understanding applicable regulatory frameworks for grid integration. These factors are essential in developing a microgrid that operate optimally as well as possess high resiliency. Demand side management (DSM) is an important concept when dealing with microgrid cost minimization as both leads to an economic and efficient energy management solutions.
DSM is a method of energy management which considers the patterns of energy consumption of consumers2. The primary objective of demand side management (DSM) is to maintain a balance between energy demand and supply, ensuring mutually beneficial outcomes for both consumers and the grid operators. These are accomplished by encouraging the consumers to move their load usage to non-peak hours, endorsing energy efficient technologies, integrating smart grid technologies, implementing demand response programs (DRP), etc. Hence, DSM is a dynamic and evolving area that integrates engagement of consumers, grid laws and advanced methods to achieve a greater flexibility and energy efficient operation leading to sustainability.
One of the most important aspects of DSM is DRP. DRP consists of changing the usage of electricity in accordance with indications from grid operators3. When the grid experiences peak loads, the grid operators generally raise the electricity tariff rate. At these times, the consumers may desire to reduce their less priority loads voluntarily for obtaining financial benefits. Computerized algorithms and innovative communication methods are used to streamline DRP. The optimal scheduling of generators and DRP are interrelated apparatuses in the broader context for managing the electricity grids efficiently.
Optimal generator scheduling is a power system management strategy focused on meeting electricity demand efficiently while minimizing costs and ensuring the reliability of the power system. Achieving this involves determining and evaluating the best operating parameters for a group of generators, considering factors such as fuel costs, environmental regulations, and grid stability. Key elements of demand response programs (DRP) in this context include load forecasting, generator performance characteristics, unit commitment, transmission limitations, and reserve requirements. The dynamic and complex task of DRP essentially revolves around achieving a balance in-between these parameters to ensure a reliable, environment friendly and cost-effective operation of power system4,56. A deeper comprehension of grid dynamics along with advancement in technology constantly refine the methods employed for generator scheduling in modern and efficient power systems.
Exhaustive literature survey
The body of literature on economic and optimal microgrid management is extensive7,8,9,10. In11, the authors propose an optimization framework for modeling hybrid renewable energy systems, performing four key tasks: an energy management system (EMS) for resource optimization, a multi-objective moth flame optimization technique for determining energy resource sizing, the Taguchi method for setting upper limits on decision variables, and generating the best Pareto front using fuzzy models. The authors of12 reduced CO2 emissions and operational costs in microgrids by combining model predictive control, a decision-making tool, and a multi-objective optimization method. This combination facilitated rapid responses to fluctuations within the microgrid. The model predictive control utilizes the receding horizon technique, while the multi-objective optimization produces optimal Pareto solutions. For optimal EMS scheduling13, presents a novel strategy that considers the aging of battery energy storage systems (BESS) and the efficiency of reversible solid oxide cells. The hybridization of genetic algorithm-II and tabu search was employed, and results verified using data from Ningxia, China, showed a reduced payback period of 14.57 years and a self-sufficiency rate of 93.28%.
In14, eight metaheuristic approaches are evaluated to optimize the microgrid size with a focus on hydrogen storage. The objective is to minimize costs while ensuring efficient regulation of energy flow within the system. Key decision variables in this optimization include battery capacity, photovoltaic capacity, and fuel cell capacity. Among the methods, particle swarm optimization proved to be the most effective, reducing the annual system cost by 25.3% compared to the least efficient approach. Additionally, the method demonstrated an ability to avoid local optimum solutions. A dynamic economic dispatch problem for a hybrid microgrid network—incorporating battery storage, traditional power sources, and renewables—is addressed in15. This study utilizes a distributed optimization technique to minimize total generation costs. By applying a weight-sum technique, the multi-objective optimization problem is converted into a single objective, with convex functions representing the objective functions. The Lyapunov function method combined with convex analysis is utilized to assess the algorithm’s performance, ensuring that the process yields solutions that meet capacity constraints and maintain supply-demand balance within each time slot. In16, the authors applied second-order cone programming alongside a stochastic response surface approach to optimize microgrid dispatch strategies under the uncertainties of renewable energy supplies and demand fluctuations. The stochastic optimization model incorporates the Nataf transformation and Hermite chaotic matrix, employing multi-objective functions. The model’s convexity is achieved through second-order cone relaxation, and the Yalmip-Gurobi solver is used to improve both stability and computational efficiency. This approach is validated through case studies involving Monte Carlo simulations. A bi-layer optimization method is presented in17 for minimizing microgrid operating costs. In the upper layer, binary chance-constrained outage planning is addressed, while the lower layer manages power deviations. This method was tested across various outage scenarios and uncertainty levels, demonstrating significant reductions in operational costs. Additionally18, introduces a distributed hierarchical framework aimed at optimizing the economic costs of grid-connected microgrids. This system utilizes a multi-agent leader-following consensus algorithm, which provides enhanced steady-state accuracy and improved transient responses. In19, the authors focus on a hybrid microgrid in a remote region of Nigeria, emphasizing the potential for optimally hybridizing energy resources to meet increasing load demand. The energy costs of the existing system are analyzed over a 25-year period using the annualized system cost approach. Particle swarm optimization and hypothetical mathematical models are used to configure the system for minimal cost while maintaining reliability. This method effectively enhances the reliability of the microgrid at reduced operational costs.
The paper in20 explores relaying-assisted communications for demand response in smart grids, focusing on cost modeling, game strategies, and algorithms to optimize demand-side management. In21, a three-stage multi-energy trading strategy based on peer-to-peer (P2P) trading models is proposed to improve the efficiency of energy trading in hybrid microgrids. The study in22 presents a two-stage economic-safety optimization for sizing seasonal hydrogen energy storage systems in integrated energy systems, particularly for northwest China. The research in23 introduces a homomorphic encryption-based distributed energy management system that ensures resilience against cyber-attacks in microgrids using an event-triggered mechanism. In24, a framework for event-trigger-based resilient energy management in smart grids is developed to protect against false data injection (FDI) and denial-of-service (DoS) attacks, focusing on maintaining reliability in distributed energy management systems. The paper in25 investigates multi-objective optimization using deep reinforcement learning to manage microgrid dispatch, considering frequency dynamics to enhance operational stability and cost-efficiency. In26, a short-term interval prediction strategy for photovoltaic power is proposed, incorporating meteorological reconstruction with spatiotemporal correlations and multi-factor interval constraints to improve energy forecasting accuracy. The study in27 presents a novel operation method for renewable buildings by combining a distributed DC energy system with deep reinforcement learning, aiming to optimize energy management in renewable-powered buildings. The research in28 focuses on the reliability modeling and maintenance cost optimization of wind-photovoltaic hybrid power systems, providing a framework to assess and improve the reliability and economic performance of such systems. Lastly, in29, a distributed algorithm is proposed for solving dynamic economic dispatch problems in microgrids, which optimizes energy allocation and dispatch strategies without requiring initialization steps.
The integration of MATPOWER’s optimized execution with the solution-finding capabilities of various metaheuristic algorithms is examined in30 for an IEEE 30 bus system. The study explores the performance of several optimization techniques, including the Lichtenberg algorithm, particle swarm optimization (PSO), political optimizer, genetic algorithm, and mixed integer distributed ant colony optimization. Hyperparameter tuning is performed for each method, with PSO delivering the best outcome, achieving a convergence time of 19.17 s, high reliability, and a final solution of $801.57 per hour. Ultimately, an ant-colony-based algorithm is applied for economic dispatch in the microgrid, targeting the minimization of the levelized cost of energy. In31, the authors adopt a master-slave game optimization model to manage the coordination between the microgrid (acting as the master) and its loads and energy sources (acting as slaves). This approach facilitates optimized interaction among the microgrid’s load, generation, and storage components, ensuring efficient and balanced operations. Minimization of the overall cost of operation is considered to be the aim of the master and minimization of the cost of operation of renewable energy is considered to be the aim of the slave. It is shown that after 45 games, each can achieve Stackelberg equilibrium. In32, An innovative multi-agent coordinated dispatch methodology is introduced to optimize economic dispatch in a microgrid within a time-sensitive pricing environment. The microgrid’s economic operation model is meticulously developed and scrutinized using an advanced multi-agent chaotic particle swarm optimization approach is implemented. A Java agent development framework is used to establish a simulation environment for multi-agent systems, which demonstrates a high level of efficiency. An islanded microgrid is examined in33, where a two-stage distributionally robust model is developed for its optimal operation and design. The two-stage problem is solved using a column and constraint generation-based technique, and the algorithm’s effectiveness is demonstrated through multiple islanded microgrid scenarios. In34, optimal battery operation for grid-connected and standalone DC microgrids is explored, with the objective functions targeting the reduction of CO2 emissions, operational costs, and electrical energy losses. Several optimization algorithms, including the parallel ant lion optimizer, parallel particle swarm optimization, and parallel vortex search algorithm, are employed to optimize power flow on an hourly basis using successive approximations. In35, the Grey Wolf Optimizer is utilized to minimize the energy cost of a hybrid microgrid system in Malaysia. Four key performance parameters—excess energy index, renewable energy index, loss of power supply probability, and storage performance index—are analyzed to evaluate the method’s reliability. The study concludes that climatic conditions play a significant role in determining appropriate generation sources. A Coloured Petri Net-based dynamic scheduling method is proposed in36 for energy management in a microgrid powered by battery storage, solar, and wind energy. The Quantum Particle Swarm Optimization (QPSO) algorithm is applied to solve the objective function, and the results show enhanced cost-effectiveness, aligning with the enterprise benefits experienced by power utilities. A bi-level framework for day-ahead energy management is introduced in37 for a modified 33-bus distribution power grid microgrid. At the first level, load demands, solar irradiance, and wind speed are predicted for each microgrid using historical data. The second level focuses on scheduling the microgrids for the next day, with power exchange rates determined through a game-theoretic approach. The framework incorporates prediction of uncertain parameters using conventional artificial neural networks, hybrid deep learning neural networks, and long short-term memory (LSTM) networks. The findings reveal a 2.67% reduction in operational costs.
A community level management strategy at power and energy levels incorporating source-load interface is presented in38. a two-level collaborative approach is presented for its management. The first level integrates all schedulable resources for achieving balance between multi-energy sources optimally. The next level integrates hybrid virtual electrical storage. Chance-constrained programming is employed to bridge the two optimization levels, effectively reducing grid interaction variability by 59.48% and costs by 5.75%. In39, an energy management system (EMS) is introduced for a microgrid powered by solar, wind, and hydrogen storage. The primary goal is to minimize operational costs related to hydrogen storage systems and batteries. Demand response programs (DRP), combined with the Grey Wolf Optimization algorithm, are used for optimal system operation. This approach successfully lowers the final cost of the microgrid and proves highly effective in addressing complex operational challenges. A utility-driven load-shaping strategy for a digital twin of wind and solar power sources is presented in40, proposing a triple-stage stochastic EMS to optimize day-ahead planning and minimize microgrid operating costs. The suggested stochastic model, which integrates 20% demand-side management (DSM), achieves a 43.8% reduction in pricing. Similarly, in41, a stochastic programming model is developed for energy management involving multiple renewable sources, employing a multi-objective enhanced slime mould algorithm. Hong’s (2m + 1) point estimate technique is applied to account for solar irradiance and wind speed uncertainties. The combined DSM and DR methods lead to a 12.62% reduction in generation costs for wind energy, with a 7.43% decrease in environmental emissions. For solar energy systems, generation costs drop by 31.53%, while emissions are reduced by 2.51%. In42, a hybrid intelligence method is proposed for reducing total costs across three microgrid systems, incorporating DSM to optimize performance and achieve cost savings. Practical difficulties such as unit commitment was incorporated. The approach achieved cost savings between 8% and 18% across various test systems analyzed. The impact of DSM in efficient cost reduction is studied in43. Based on the priority of the loads, a shifting technique is employed. Particle swarm optimization is used for load flexibility and mini-grid sizing automatically. The analysis reveals that the levelized energy cost decreases by 20.7% and 45.8% for productive and household sectors, respectively. In44, an integrated Demand Side Management (DSM) approach is introduced, combining multi-energy pricing with a non-cooperative game strategy for a regional integrated energy system. The demand-side competition is modeled as a non-cooperative energy consumption game, while the energy hub utilizes a scheduling strategy on the supply side, applying linear programming to optimize equipment operation. This strategy successfully reduces the peak-to-average ratio, thus balancing supply and demand. In45, an opposition theory and sine cosine-based slime mould algorithm is proposed as a DSM control strategy, demonstrating enhanced optimization capabilities for the slime mould algorithm. Additionally46, presents a novel hybrid crow search algorithm integrated with JAYA for DSM analysis. By restructuring demand with 20% DSM participation, electricity generation costs were reduced by 3–5%. This approach outperformed in nonparametric statistical analysis, central tendency measures, and execution time. In47, an innovative method is proposed to optimize performance in a demand-shifting DSM strategy, focusing on top-performing students in the context of DSM applications. The strategy provides significant incentives for participants in the day-ahead electricity market, encouraging effective demand-shifting behavior.
In reference48, an Energy Management System (EMS) is proposed to enhance both the environmental and economic performance of a system incorporating multiple microgrids, electric vehicles, and renewable energy sources. The EMS integrates various components to optimize energy distribution and usage, thereby reducing emissions and operational costs. This system is designed to efficiently manage the interaction between electric vehicles, renewable power generation, and microgrid infrastructure, promoting sustainability while ensuring cost-effectiveness in energy operations. The article integrates the price elasticity Program was integrated to examine the impact of incentives and real-time pricing provided to consumers. The strategy employed is a two-level hybrid optimization approach that combines the characteristics of grey wolf and whale optimization. In order to showcase its benefits, the approach is effectively tested on a system that includes industrial, residential, and commercial microgrids. In49, a demand response program (DRP) model is presented, aiming to optimize the benefits of microgrids. The model utilizes an exhaustive optimization technique to estimate the appropriate incentive value, assuming 40% customer participation in the DRP. A sophisticated approach is then applied to reduce the total cost of the microgrid system and assess the results with and without DRP implementation. After incorporating DR, the cost is reduced from 880¥ to 872¥, and the maximum power requirement drops by 5.13%, from 180 kW to 170.754 kW. In50, the impact of price-based DRPs on optimizing microgrid scheduling is examined, taking into account both nonlinear and linear load models. The DRP generates five distinct load models: hyperbolic, linear, power, logarithmic, and exponential. The Sparrow search algorithm is applied to solve the EMS problem. Various techno-economic performance metrics are assessed across different scenarios, and a prioritization ranking is established using a multi-criteria evaluation method. In51, a detailed explanation is provided for the optimal dispatch of an integrated energy system that includes both electricity and gas, factoring in carbon trading and DRPs. The proposed model is solved using particle swarm optimization combined with CPLEX. The results show enhanced benefits for both supply and demand sides, demonstrating the effectiveness of the model in optimizing system performance.
Research gap and motivation leading to the contribution of the work
Despite the vast body of literature on economic and optimal microgrid management, several gaps remain unaddressed in the current research. While numerous studies have explored the impact of distributed energy resources (DERs) and energy management systems (EMS) in microgrids, many fail to comprehensively analyze the integration of demand response programs (DRP) with varying price elasticities. Most works primarily focus on single, static DRP models or limited pricing strategies, such as real-time pricing or time-of-use rates, neglecting the more complex, dynamic interactions of non-linear load-responsive models. Moreover, the deployment of metaheuristic optimization techniques in microgrid operations, though gaining popularity, lacks consistency in evaluating their performance across diverse DRP scenarios52,53. There is also insufficient analysis on the effects of limited grid participation and the operational dynamics between DERs and the main grid in both islanded and grid-connected microgrids54,55.
Additionally, existing optimization algorithms often struggle with balancing the trade-offs between system reliability, environmental impact, and cost-efficiency under dynamic pricing conditions. The integration of advanced methods such as the Greedy Rat Swarm Optimizer (GRSO) has not been sufficiently explored, particularly in combination with flexible DRPs and nonlinear load models. Furthermore, there is a noticeable gap in studies that simultaneously address both the economic and environmental objectives within a unified framework, especially with respect to the impact of grid participation constraints.
The major contributions of the work that tends to attend to the research gap developed by the aforementioned exhaustive literature survey can be listed as follows:
-
a.
A price-based demand response (PBDR) was implemented to restructure the load demand of a grid connected microgrid system. Thereafter, the efficiency of the distribution network with respect to reduction of peak load, savings in energy and improvement in load factor were analysed for different PBDR models.
-
b.
The minimum generation cost of the MG system was evaluated for all the PBDR load models and four different cases.
-
c.
Results were compared with those in various literatures that involved diverse range of optimization algorithms and other demand side management strategies.
-
d.
A greedy RSO that involved the amalgamation of RSO and JAYA algorithm was used as the optimization tool for the study. Non-parametric statistical analysis was performed to comment on the efficacy and robustness of the proposed algorithm.
The remainder of this paper is organized as follows: Sect. 2 presents the formulation of the fitness function, detailing the objective function, equality and inequality constraints, and the responsive load economic model used for microgrid optimization. Section 3 discusses the uncertainty modelling of distributed energy resources (DERs), including the modelling of solar photovoltaic (PV) systems and wind turbines, as well as their intermittent nature. Section 4 describes the proposed optimization algorithms, focusing on the Greedy Rat Swarm Optimizer (GRSO) and its hybridization with other methods, such as the JAYA algorithm, to achieve optimal performance. Section 5 provides a comprehensive analysis of the case studies and numerical findings, including the development of load demand models based on price-driven demand response programs and the strategic scheduling of DERs to minimize generation costs. It also includes a comparative analysis across different operational cases and discusses the impact of grid participation and load profiles on microgrid performance. Section 6 concludes the paper by summarizing the key findings and highlighting the contributions to microgrid energy management, with suggestions for future research directions in optimizing microgrid operations through advanced demand response strategies and optimization techniques.
Formulation of fitness function
Objective function
Reduction of the cost of generation of the microgrid as well as the carbon emission is the primary objective of the problem which can be represented as per (1)56, where, \(\:M\left({W}_{r}\right)\) is the total cost of the microgrid, d is the number of DG units that is incorporated within the microgrid, \(\:{M}_{gen}\left({W}_{r}\right)\) is the cost of generation and \(\:{M}_{em}\left({W}_{r}\right)\) is the cost of emission,\(\:\:{W}_{r}\) is the output power corresponding to rth DG and t is the time in hour which varies from 1 to 24. The total cost of generation of the rth DG is a combination of expenses on fuel, cost associated with operation and maintenance and depreciation cost56. It can be expressed as (2) where, \(\:{M}_{fc,r}\left({W}_{r}^{t}\right),\:\:{M}_{o\&m,r}\left({W}_{r}^{t}\right)\) and \(\:{M}_{dpc,r}\left({W}_{r}^{t}\right)\) are the expenses on fuel, cost associated with operation and maintenance and depreciation cost respectively, \(\:{C}_{G}^{t}\) is the electricity tariff and \(\:{W}_{G}^{t}\) is the power by the grid.
The operational fuel expense of DG can be expressed mathematically as (3), where \(\:{Z}_{FC,r}\) is the fuel expense coefficient for the rth DG source. Similarly, the operation and maintenance expense of DG can be expressed mathematically as (4), where \(\:{Z}_{o\&m,r}\) is the operation and maintenance expense coefficient for the rth DG source. For calculating the depreciation expenses of the corresponding DG units, a factor called depreciation expenses per kWh, DC, the maximal power output of the corresponding DG units, \(\:{W}_{max}\), and the dynamic output power of the units along with its capacity factor, cf56. are considered which can be mathematically represented as per (5). DC is further dependent on cost of installation, IC56, which can be shown as per (6), where, rate is the interest percentage rate, life is the life span in years. The cost associated with the treatment of the pollutant released by DG units \(\:{M}_{gen}\left({W}_{r}^{t}\right)\) can be formulated as per (7), where, \(\:{S}_{j}\) is the cost of treatment for the jth pollutant by DG unit r, \(\:{Z}_{rj}\) is the emission coefficient of jth pollutant from DG unit r and \(\:{Z}_{Gj}\) is the emission coefficient of jth pollutant from grid.
Equality and inequality constraints
For a reliable and stable power system operation, the required load demand by the consumers must be catered jointly by the grid, the DGs and the batteries57,58,59,60. Therefore, this required constraint can be expressed mathematically as per (8), where \(\:{W}_{RES}^{t}\) is the power supplied by the grid and \(\:{W}_{load}^{t}\) is the total load demand of the consumers that is required to be met. The constraints that are applied to the DGs and the grid can be represented as per (9) and (10) respectively, where \(\:{W}_{r,min}^{t}\) is the least power that should be generated by the rth DG,\(\:\:{W}_{r,max}^{t}\) is the maximum power that can be generated by the rth DG, \(\:{W}_{G,min}^{t}\) is the least power that should be supplied by the grid and \(\:{W}_{G,max}^{t}\) is the maximum power that should be supplied by the grid.
Responsive load economic model
Developing a responsive load economic model helps to analyse the impact due to customer participation and investigate their reaction on the electricity price changes61,62. End consumers can be broadly categorized into two groups as stated in63,64,65. One of the groups consists of sensitive loads consumers that have critical loads in a single period \(\:pd\) and can be represented as in Eq. (11), where \(\:EM\:\left(pd,pd\right)\) is called self-elasticity matrix. Likewise, the other group consists of non-sensitive loads consumers that have noncritical loads in multi-period and can be represented as in Eq. (12), where \(\:EM\:\left(pd,qd\right)\) is called cross-elasticity matrix and qd is another period. The demands and price for periods \(\:pd\) = (1, 2, 3, …., 24) and \(\:qd\) = (1, 2, 3, …., 24) are represented by \(\:dem\) and \(\:pri\), respectively. The matrix corresponding to defining the relation between these is represented by Eq. (13).
Electricity model with fixed price and static cost coefficient is not a true depiction of the response of the consumer. Therefore, modified cross and self-elasticity coefficient matrices in a flexible price elasticity model is considered in the present work. The responsive load models for non-linear loads as well as linear loads are represented by Eq. (14) to Eq. (18), where the various load model constants are represented by \(\:{x}_{lin}\), \(\:{y}_{lin}\), \(\:{x}_{pwr}\), \(\:{y}_{pwr}\), \(\:{x}_{exp}\), \(\:{y}_{exp}\), \(\:{x}_{log}\), \(\:{y}_{log}\), \(\:{x}^{hyp}\) and \(\:{y}^{hyp}\). For the non-linear and linear load responsive models, the cross and self-elasticity matrices are represented as per Eq. (19) to Eq. (28). Based on “price elasticity” and “customer benefit function”61, the flexible load models with modified price elasticity matrices can be obtained as per Eq. (29) to Eq. (33). A comprehensive load model can be represented by Eq. (34), which integrates all demand functions into one model. This model considers each response of individual customer for individual DRP. The values of \(\:{wt}_{lin},\:{wt}_{pwr},\:{wt}_{exp},\:{wt}_{log}\) and \(\:{wt}_{hyp}\) are considered by an approach of fitting historical data. All the details of the aspects of the modelling can be obtained from66.
Uncertainty modelling of the renewable energy sources involved as distributed energy resources (DER) for the microgrid.
Modelling of solar PV
The power developed by solar panels is governed by several system parameters that includes cell ambient temperature and solar irradiance57,58,59,60,67,68,69,70. The active power output (\(\:{W}_{opv}\)) of a solar PV can be obtained as per Eq. (35)63, where the maximal watt of the PV module is denoted by \(\:{W}_{max}\), solar irradiance in W/m2 is represented by \(\:solr\), the temperature coefficient of the cell in oC−1 is represented by \(\:\alpha\:\) and the temperature of the cell module in oC is represented by \(\:{T}_{cmo}\). The expression for \(\:{T}_{cmo}\) can be written as in Eq. (36), where the ambient temperature in oC is represented by \(\:{T}_{amb}\) and the nominal cell temperature value in oC is represented by \(\:{T}_{nct}\). Since the solar irradiance has an intermittent nature, for estimating the hourly solar irradiance beta PDF (\(\:{f}_{pv}\left(\rho\:\right)\)) is widely used as defined in Eq. (37), where \(\:\gamma\:\) and \(\:\:\varnothing\:\) are the values associated with the shaping of the solar irradiance. These values, represented by Eq. (38) and Eq. (39), are dependent on standard deviation \(\:\sigma\:\) and mean value \(\:\mu\:\),. The discrete probability state of solar irradiance during any time can be equated as per Eq. (40), where \(\:{\rho\:}_{1}\) and \(\:{\rho\:}_{2}\) are the limits.
Modelling of wind turbine
The power developed by wind turbine is governed by several parameters that includes wind characteristic curve and velocity of wind71,72,73,74. The power obtained can be represented by Eq. (41), where the cut in speed is represented by \(\:{s}_{ci}\), cut out speed is represented by \(\:{s}_{co}\) and the rated speed of the wind turbine is represented by \(\:{s}_{r}\) and the rated output power of the WT is represented by \(\:{W}_{nop}\). Since the wind speed has an intermittent nature, for evaluating the wind speed uncertainty, Weibull PDF (\(\:{f}_{wt}\left(s\right)\)) is widely used as defined in Eq. (42), where \(\:m\) and\(\:\:n\) represents the scaling and shaping values. At any instant, the probability of a discrete state can be given as per Eq. (43), where \(\:{s}_{1}\) and \(\:{s}_{2}\) are the wind speed limits.
Proposed optimization algorithms
Rat swarm optimizer (RSO)
Rat algorithm is chosen as the optimization algorithm which deals with the chasing and fighting behaviour of the rats. Rats generally chase their pray together in a group by a special type of behaviour known as social agonistic behaviour75. To mimic this characteristic in terms of mathematics, it is presumed that the best search agent possesses the information about the location of the prey. Following the best search agent found so far, the other search agents will adjust their positions accordingly. The mathematical equation governing this mechanism can be represented in (44), where \(\:\:\overrightarrow{{J}_{l}}\left(u\right)\)is the position vector of the rats and \(\:\overrightarrow{{J}_{lb}}\left(u\right)\) is the best optimum solution. The values of the parameters B and C are calculated as per (45) and (46) respectively, where u = 0,1, 2, …, \(\:{Iter}_{max}\) and R is a random value within the range of 1 and 5. C is also a random number ranging from 0 to 2. The parameters B and C are responsible for improved exploration and exploitation in the successive iterations75.
The fighting behaviour of the rats with the prey can be represented in terms of mathematics as per (47), where \(\:\overrightarrow{{J}_{l}}\left(u+1\right)\) is the next updated location of the rat. The best solution is saved, and the positions of other search agents is updated accordingly as per the best search agent. Hence, the adjusted value of parameters B and C guarantees the exploration and exploitation. This technique saves the optimum result with least number of operators.
JAYA algorithm
The Sanskrit word JAYA means “success” or “victory.” The major advantage of this algorithm is that there is just one governing equation for the algorithm and no tuning parameters. This makes the algorithm less tedious to deal with and can handle larger test systems with more complex constraints. As the termination requirements are met, the algorithm moves away from the worst solution (or failure) in each iteration, bringing it closer to the best answer (or success/victory). The JAYA algorithm’s basic governing equation is as per (48)76, where \(\:{R}_{f,g,h}\) denotes the value corresponding to the fth variable for the gth candidate in the iteration cycle h, \(\:{R}_{f,best,h}\) and \(\:{R}_{f,worst,h}\) denotes the value of fth variable for the best candidate and worst candidate respectively, \(\:{R}_{f,g,h}^{{\prime\:}}\) being the updated value of \(\:{R}_{f,g,h}\) and \(\:{\omega\:}_{1,f,h}\) and \(\:{\omega\:}_{2,f,h}\) are two random numbers which varies from 0 to 1. \(\:\left({R}_{f,best,h}-\left|{R}_{f,g,h}\right|\right)\)part of (48) represents the inclination of the solution to approach the best solution whereas the part \(\:{(R}_{f,worst,h}-\left|{R}_{f,g,h}\right|)\) represents the inclination of the solution to avert the worst solution. \(\:{R}_{f,g,h}^{{\prime\:}}\) is retained if it provides a better function value and is used for next cycle.
Greedy RSO (GRSO)
GRSO is a modified version of the above described RSO which implements the greedy strategy of JAYA in the later iterations of RSO. This modification not only assisted RSO from avoiding local minima, but also amplified the balance between diversification and intensification to obtain better quality solutions repeatedly. The flowchart of GRSO is shown in Fig. 1. GRSO have been implemented in this work to minimize the generation cost of microgrid systems for diverse case studies and load profiles.
Numerical findings and elaborative discussions on case studies
The study’s test system was a low voltage microgrid system. Its energy-generating components include three separate fossil-fuelled units (FF) (1, 2, and 3; referred to as “G” in the corresponding tables and figures), a solar-PV unit, a WT unit, one direct-methanol FC, and a gas turbine (GT) fed by natural gas. The subject microgrid system’s single line diagram is displayed in Fig. 2. The suggested GRSO procedures and a variety of flexible load DR techniques are used to evaluate the cost minimization function. Table 1 presents the cost and emission metrics for a variety of distributed generation (DG) resources. These metrics align with the capacity considerations outlined in previous research77. The total power requirement for the microgrid, amounting to 2.2660 MW, is distributed across a 24-hour cycle, as illustrated in Fig. 3. Additionally, Fig. 4 portrays the dynamic price of electricity, which fluctuates according to the realistic load demands in the market. Remedial costs for NOx, SO2, and CO2 are 62.9640/kg, 14.8420/kg, and 0.21/kg, respectively. MATLAB R2017a installed in a laptop with 8 GB RAM and configured with Intel(R) Core(TM) i5-8250U CPU @ 1.60 GHz 1.80 GHz was used for the work done in the paper.
The microgrid operates in four distinct modes, or “cases,” to evaluate the effects of pricing, renewable energy sources (RES), and grid participation on system performance. These cases provide a comprehensive analysis of how different factors influence the microgrid’s operation. In each scenario, all distributed generation (DG) resources are expected to be active during daylight hours, ensuring consistent energy production and allowing for a thorough assessment of each case’s impact on overall system efficiency and cost optimization.
System load demand and corresponding electricity market price77.
Restructuring of load demand model based on price-based DRPs
To optimize the scheduling and operational costs of the microgrid, the base case—excluding demand response programs (DRP)—is evaluated first. The hourly bidding price for real-time pricing (RTP) is derived from the electricity market prices illustrated in Fig. 3. The base rate or time of usage (TOU) is determined for valley, off-peak, and peak periods, while the fixed critical peak pricing (CPP) rates are applied during non-peak and critical peak periods50. Given the constraints related to static cross-elasticity and self-elasticity coefficients, the flexible elasticity model (FEM) for each price-driven DRP is calculated, as shown in Figs. 4, 5 and 6. A three-dimensional representation of the flexible price elasticity coefficients is evaluated for periods pd=(1,2,3,…,24) and qd=(1,2,3,…,24). Figure 7 presents the final nonlinear and linear load-responsive models generated for the FEM. Notably, the revised load demand profiles significantly improve peak load reduction. Table 2 outlines the decrease in peak load demand and the enhancement in load factor across the different load profiles analyzed.
Strategic planning of DERs to achieve minimal generation costs in the microgrid system
For both the base load profile (LP) and all the linear and nonlinear LPs developed, the Greedy Rat Swarm Optimizer (GRSO) is employed to minimize generation costs within the microgrid system under four distinct scenarios. The GRSO algorithm is used to identify the optimal scheduling and cost-efficient operation for each case. The resulting outcomes are analyzed in detail in the following sections, providing insight into the effectiveness of each load profile in achieving the lowest possible generation costs across various operational conditions.
Case 1
This scenario represents the optimal operational mode for the microgrid, where all distributed energy resources (DERs) operate within their designated limits. The most significant factor contributing to the lowest generation cost in this scenario, compared to others, is the grid’s active involvement in both buying and selling electricity. Using the Greedy Rat Swarm Optimizer (GRSO), the minimum generation cost was calculated at 882¥. However, when considering the load profile based on critical peak pricing (CPP), the generation cost was further reduced to 746¥, as detailed in Table 3. Figure 8 visualizes the distribution of hourly loads across the DERs at the point of achieving the lowest cost. This scenario establishes the benchmark, and the next sections explore refinements and variations to improve microgrid performance further across different operational conditions.
Case 2
This scenario examines the microgrid’s operation with the grid in a passive role, where it only supplies power when distributed energy resources (DERs) are unable to meet the load demand during specific periods. Outside these periods, the grid remains inactive. In this case, the generation cost decreased to 989¥ using the Greedy Rat Swarm Optimizer (GRSO), as shown in Table 3. Among the different load profiles, the logarithmic-based load profile further reduced the generation cost to 817¥. The distribution of hourly loads across DERs for this scenario is illustrated in Fig. 9. Notably, the grid does not exhibit any negative power flows, only supplying electricity during the 19th and 24th hours, when load demand peaks. The overall increase in generation costs compared to the optimal scenario is attributed to the limited, passive role of the grid, which constrains its ability to actively manage and reduce costs.
Case 3
This minimises the generation cost without taking the RES into account. In this instance, the minimised generation cost was 17,014¥, roughly double that of Case 1. This increase is due to both the stream in penalized emission costs and the enhanced fuel expenses for generators, which were consumed more frequently owing to the absence RES. Among the other LP studied, logarithmic based LP reduced the generation cost further to 1551¥ and the same is shown in Fig. 10.
Case 4
Examining the grid’s fixed price behaviour is the last and fourth stage in developing Case 1. As seen in Fig. 3, this is accomplished by taking the mean of the price of electricity for a full day. In this instance, GRSO yielded a minimum generating cost of 939¥ for the base load profile, and it exceeds the price evaluation for Case 1. By contrasting Cases 1& 4, it is also possible to verify that, in addition to the grid’s energetic contribution, the behaviour of electricity pricing is a significant factor in reducing a distribution system’s generation cost. Among the other load profiles studied, CPP based LP reduced the generation cost further to 802¥ as shown in Table 3 and the hourly load sharing amongst the DERs are shown in Fig. 11.
The logarithmic based LP was responsible for the minimum generation cost during Cases 2 and 3 and the CPP based LP was responsible for the minimum generation cost during Cases 1 and 2 respectively. For the other LPs, although the minimum generation cost was less than the base LP, but they weren’t the least expected ones. A ranking table shown in Table 4 displays the ranks of the LPs where the lowest rank means that the LP delivered the minimum generation cost for maximum cases compared to the rest of them.
Exhaustive analysis of the system
Table 1 mentions that the upstream limit of the grid is 80 kW, i.e. the grid can sell up to 80 kW an hour. This is more than twice the downstream limit of the grid which is 30 kW only. In other words, the grid is acting as an infinite source of power for the subject microgrid system. This analysis studies the scenario when the upstream and downstream limit of the grid is same (30 kW). All the previous four cases are evaluated gradually, and the minimum generation cost obtained using GRSO is recorded. Table 3 shows that the minimum generation costs of the system when the upstream capacity of the grid is limited to 30 kW are 948¥, 1055¥, 1800¥ and 977¥ for cases 1 to 4 respectively. Approximately 7% increment in the generation cost is observed for all the cases when the grid is restricted to transact power within 30 kW.
Grid participation for various cases
The hourly active power output of the grid was analyzed across all load profiles (LPs) in Case 1, as well as for the scenario where the grid’s upstream power flow was limited. Figure 12 illustrates the grid’s active participation in buying and selling power throughout the 24-hour period. During peak load hours (19 to 24), the grid primarily supplies power to the microgrid system, while for the remaining hours, it either buys back power or engages in minimal power sales. In the scenario where grid participation is restricted, the grid’s buying and selling transactions do not exceed 30 kW. Figure 13 displays the total power bought and sold by the grid for all LPs during Case 1. The highest levels of transactions between the grid and the microgrid system were observed for the base, real-time pricing (RTP), exponential, and hyperbolic-based LPs, whereas the lowest transaction volume occurred with the logarithmic-based LP. Positive values in Fig. 13 indicate that the grid sold power at the end of the day, while a negative value, representing 133 kW, reflects the amount of power the grid bought by the end of the day in the limited upstreaming power scenario. Total load demand transactions between grid and system during Case 1 is shown in Fig. 14.
Due to the stochastic nature of the random numbers employed in the mathematical modeling, the Greedy Rat Swarm Optimizer (GRSO) was executed 30 times for each case to ensure comprehensive data collection on generation costs and algorithm execution times, allowing for the maximum number of iterations. The characteristics of the convergence curves, as shown in Figs. 15 and 16, illustrate the GRSO’s performance in determining the minimum generation costs for both the base load profile (LP) and the critical peak pricing (CPP)-based LP. Table 5 presents the statistical evaluation of the GRSO’s resilience and effectiveness, based on the simulated results from these trials. The findings reflect the consistency and robustness of the algorithm under various scenarios. Finally, after 30 trials, Fig. 17 displays box plot representations for the base load requirements in each scenario, providing a visual summary of the distribution of outcomes and reinforcing the algorithm’s performance in optimizing generation costs.
Conclusion and future research directions
The proposed framework for microgrid energy management, incorporating flexible price-elastic demand response models and the Greedy Rat Swarm Optimizer (GRSO), provides a robust and efficient solution to the challenges of microgrid optimization. The integration of diverse demand response programs, such as time-of-use (TOU), real-time pricing (RTP), and critical peak pricing (CPP), allowed for a more dynamic and accurate response to market price fluctuations. Our results show that the GRSO-based optimization framework successfully minimized generation costs and reduced peak loads across various scenarios. Key outcomes demonstrate significant improvements in both cost and environmental performance. For the base case scenario, without demand response programs, the generation cost was reduced to 882¥, with a further reduction to 746¥ using the CPP-based load profile. Additionally, a 15.4% decrease in generation cost and an improvement of up to 87.7% in the load factor were achieved, highlighting the effectiveness of flexible demand response integration. Notably, when grid participation was limited, the logarithmic load profile resulted in a generation cost of 817¥, further underscoring the importance of grid interaction. The study also demonstrates the robustness of the GRSO algorithm in managing the complexity of microgrid systems, achieving consistent results across multiple trials while improving computational efficiency and convergence time. By evaluating four distinct operational cases, this work offers a comprehensive analysis of how different load profiles and grid participation levels affect both economic and environmental outcomes. In conclusion, this research highlights the potential of combining price-elastic demand response strategies with advanced metaheuristic optimization techniques to enhance the cost-efficiency and sustainability of microgrids. The insights gained can inform future microgrid management practices and contribute to the development of more resilient and environmentally friendly energy systems.
Building upon the findings of this study, several potential avenues for future research are worth exploring. First, further development and refinement of demand response programs (DRPs) can be pursued, particularly by incorporating more sophisticated load models that account for behavioural factors, such as consumer preferences and elasticity in response to time-varying pricing schemes. These advanced models could enhance the accuracy of demand forecasts and provide more granular insights into consumer engagement with price-based DRPs. Second, the integration of additional renewable energy sources, such as biomass, geothermal, and advanced storage systems (e.g., hydrogen storage or second-life electric vehicle batteries), could provide a more comprehensive understanding of how different energy sources interact within a microgrid. By modelling the impact of diverse renewable sources, researchers could better address the intermittent nature of renewables and optimize the use of various DERs in achieving cost-efficiency and system reliability. Third, expanding the current optimization framework to include multi-objective functions that simultaneously optimize factors such as power quality, voltage stability, and system resiliency alongside cost and environmental impact would enhance the robustness of microgrid operation strategies. The development of hybrid algorithms that combine GRSO with other advanced techniques, such as machine learning models for load prediction or reinforcement learning for adaptive energy management, could further improve microgrid efficiency. Additionally, future studies could explore real-time optimization approaches for microgrids that operate under highly dynamic conditions, such as those frequently impacted by weather changes or fluctuating energy market prices. Incorporating real-time data streams and enhancing the decision-making process through advanced forecasting techniques would enable microgrids to better respond to short-term variations in load and resource availability.
Data availability
The datasets used and/or analysed during the current study available from the corresponding author on reasonable request.
Abbreviations
- DRP:
-
Demand Response Programs
- GRSO:
-
Greedy Rat Swarm Optimizer
- DER:
-
Distributed Energy Resources
- RES:
-
Renewable Energy Sources
- CPP:
-
Critical Peak Pricing
- RTP:
-
Real-Time Pricing
- TOU:
-
Time Of Use
- CPP:
-
Critical Peak Pricing
- GRSO:
-
Greedy Rat Swarm Optimization
- SDG:
-
Sustainable Development Goals
- SDM:
-
Demand Side Management
- EMS:
-
Energy Management Systems
- BEES:
-
Battery Energy Storage Systems
- QPSO:
-
Quantum Particle Swarm Optimization
- LSTM:
-
Long Short-Term Memory
- DR:
-
Demand Response
- DG:
-
Distributed Generator
- RSO:
-
Rat Swarm Optimizer
- FF:
-
Fossil-Fuelled
- GT:
-
Gas Turbine
- FEM:
-
Flexible Elasticity Model
- LP:
-
Load Profile
- PSO:
-
Particle Swarm Optimization
- DE:
-
Differential Evolution
- DEGL:
-
Differential Evolution with Global and Local neighbourhoods
- GWO:
-
Grey Wolf Optimization
- MGWO:
-
Modified Gray Wolf Optimization
- MGWOSCACSA:
-
Modified Grey Wolf Optimization Sine Cosine Algorithm Crow Search Algorithm
References
Dutta, S., Sadhu, P. K., Cherikuri, M. & Mohanta, D. K. Application of artificial intelligence and machine learning techniques in island detection in a smart grid. Intell. Renew. Energy Syst. 79–109. (2022).
Dey, B., Dutta, S. & Garcia Marquez, F. P. Intelligent demand side management for exhaustive techno-economic analysis of microgrid system. Sustainability 15 (3), 1795 (2023).
Pinson, P. & Madsen, H. Benefits and challenges of electrical demand response: A critical review. Renew. Sustain. Energy Rev. 39, 686–699 (2014).
Pachauri, N. et al. A robust fractional-order control scheme for PV-penetrated grid-connected microgrid. Mathematics 11 (6), 1283 (2023).
Khosravi, N. et al. A novel control approach to improve the stability of hybrid AC/DC microgrids. Appl. Energy. 344, 121261 (2023).
Choudhury, S. et al. Energy management and power quality improvement of microgrid system through modified water wave optimization. Energy Rep. 9, 6020–6041 (2023).
Sahoo, G. K., Choudhury, S., Rathore, R. S. & Bajaj, M. A novel prairie dog-based meta-heuristic optimization algorithm for improved control, better transient response, and power quality enhancement of hybrid microgrids. Sensors 23 (13), 5973 (2023).
Sahoo, G. K., Choudhury, S., Rathore, R. S., Bajaj, M. & Dutta, A. K. Scaled conjugate-artificial neural network-based novel framework for enhancing the power quality of grid-tied microgrid systems. Alexandria Eng. J. 80, 520–541 (2023).
Panda, S. et al. A comprehensive review on demand side management and market design for renewable energy support and integration. Energy Rep. 10, 2228–2250 (2023).
Nagarajan, K. et al. Optimizing dynamic economic dispatch through an enhanced cheetah-inspired algorithm for integrated renewable energy and demand-side management. Sci. Rep. 14 (1), 3091 (2024).
Heydari, A. et al. A combined multi-objective intelligent optimization approach considering techno-economic and reliability factors for hybrid-renewable microgrid systems. J. Clean. Prod. 383, 135249 (2023).
Vásquez, L. O. P., Redondo, J. L., Hervás, J. D. Á., Ramírez, V. M. & Torres, J. L. Balancing CO2 emissions and economic cost in a microgrid through an energy management system using MPC and multi-objective optimization. Appl. Energy. 347, 120998 (2023).
Zhou, Y. et al. Online energy management optimization of hybrid energy storage microgrid with reversible solid oxide cell: A model-based study. J. Clean. Prod. 423, 138663 (2023).
Phan-Van, L., Takano, H. & Duc, T. N. A comparison of different metaheuristic optimization algorithms on hydrogen storage-based microgrid sizing. Energy Rep. 9, 542–549 (2023).
Duan, Y., Zhao, Y. & Hu, J. An initialization-free distributed algorithm for dynamic economic dispatch problems in microgrid: modeling, optimization and analysis. Sustainable Energy Grids Networks. 34, 101004 (2023).
Liang, Y. et al. A random optimization strategy of microgrid dispatching based on stochastic response surface method considering uncertainty of renewable energy supplies and load demands. Int. J. Electr. Power Energy Syst. 154, 109408 (2023).
Phommixay, S., Doumbia, M. L. & Cui, Q. A two-stage two-layer optimization approach for economic operation of a microgrid under a planned outage. Sustainable Cities Soc. 66, 102675 (2021).
Tong, Z., Zhang, C., Wu, S., Gao, P. & Li, H. Distributed hierarchical economic optimization approach of microgrid based on multi-agent leader-following consensus. Energy Rep. 9, 638–645 (2023).
Amuta, E. O. et al. Hybrid power microgrid optimization and assessment for an off-grid location in Nigeria. Materi. Today Proc. (2023).
Ma, K., Yang, J. & Liu, P. Relaying-assisted communications for demand response in Smart Grid: Cost modeling, game strategies, and algorithms. IEEE J. Sel. Areas Commun. 38 (1), 48–60. https://doi.org/10.1109/JSAC.2019.2951972 (2020).
Yang, J., Xu, W., Ma, K. & Li, C. A three-stage Multi-energy trading strategy based on P2P trading mode. IEEE Trans. Sustain. Energy. 14 (1), 233–241. https://doi.org/10.1109/TSTE.2022.3208369 (2023).
Li, L., Sun, Y., Han, Y. & Chen, W. Seasonal hydrogen energy storage sizing: Two-stage economic-safety optimization for integrated energy systems in northwest China. iScience 27 (9), 110691. https://doi.org/10.1016/j.isci.2024.110691 (2024).
Zhang, H. et al. Homomorphic encryption-based resilient distributed energy management under cyber-attack of micro-grid with event-triggered mechanism. IEEE Trans. Smart Grid. 15 (5), 5115–5126. https://doi.org/10.1109/TSG.2024.3390108 (2024).
Zhang, H. et al. Event-trigger-based resilient distributed energy management against FDI and DoS attack of cyber–physical system of smart grid. IEEE Trans. Syst. Man. Cybernetics: Syst. 54 (5), 3220–3230. https://doi.org/10.1109/TSMC.2024.3357497 (2024).
Zhang, H., Yue, D., Dou, C. & Hancke, G. P. PBI based multi-objective optimization via deep reinforcement elite learning strategy for micro-grid dispatch with frequency dynamics. IEEE Trans. Power Syst. 38 (1), 488–498. https://doi.org/10.1109/TPWRS.2022.3155750 (2023).
Yang, M., Jiang, Y., Zhang, W., Li, Y. & Su, X. Short-term interval prediction strategy of photovoltaic power based on meteorological reconstruction with spatiotemporal correlation and multi-factor interval constraints. Renew. Energy. 237, 121834. https://doi.org/10.1016/j.renene.2024.121834 (2024).
Deng, X., Zhang, Y., Jiang, Y., Zhang, Y. & Qi, H. A novel operation method for renewable building by combining distributed DC energy system and deep reinforcement learning. Appl. Energy. 353, 122188. https://doi.org/10.1016/j.apenergy.2023.122188 (2024).
Zhang, C., Zeng, Q., Dui, H., Chen, R. & Wang, S. Reliability model and maintenance cost optimization of wind-photovoltaic hybrid power systems. Reliab. Eng. Syst. Saf. 255, 110673. https://doi.org/10.1016/j.ress.2024.110673 (2025).
Duan, Y., Zhao, Y. & Hu, J. An initialization-free distributed algorithm for dynamic economic dispatch problems in microgrid: modeling, optimization and analysis. Sustainable Energy Grids Networks. 34, 101004. https://doi.org/10.1016/j.segan.2023.101004 (2023).
Suresh, V., Janik, P., Jasinski, M., Guerrero, J. M. & Leonowicz, Z. Microgrid energy management using metaheuristic optimization algorithms. Appl. Soft Comput. 134, 109981 (2023).
Guo, T. et al. Microgrid source-network-load-storage master-slave game optimization method considering the energy storage overcharge/overdischarge risk. Energy 282, 128897 (2023).
Wang, L., An, X., Xu, H. & Zhang, Y. Multi-agent-based collaborative regulation optimization for microgrid economic dispatch under a time-based price mechanism. Electr. Power Syst. Res. 213, 108760 (2022).
Shi, Z. et al. Optimal design and operation of islanded multi-microgrid system with distributionally robust optimization. Electr. Power Syst. Res. 221, 109437 (2023).
Grisales-Noreña, L. F., Ocampo-Toro, J. A., Montoya-Giraldo, O. D., Montano, J. & Hernandéz, J. C. Optimal operation of battery storage systems in standalone and grid-connected DC microgrids using parallel metaheuristic optimization algorithms. J. Energy Storage. 65, 107240 (2023).
Tukkee, A. S., bin Abdul Wahab, N. I. & binti Mailah, N. F. Optimal sizing of autonomous hybrid microgrids with economic analysis using grey wolf optimizer technique. e-Prime-Adv. Electr. Eng. Electron. Energy. 3, 100123 (2023).
Liu, X., Zhao, M., Wei, Z. & Lu, M. The energy management and economic optimization scheduling of microgrid based on colored petri net and quantum-PSO algorithm. Sustain. Energy Technol. Assess. 53, 102670 (2022).
Ashtari, B., Alizadeh Bidgoli, M., Babaei, M. & Ahmarinejad, A. A two-stage energy management framework for optimal scheduling of multi-microgrids with generation and demand forecasting. Neural Comput. Appl. 34 (14), 12159–12173 (2022).
Zhou, Y., Wang, J., Yang, M. & Xu, H. Hybrid active and passive strategies for chance-constrained bilevel scheduling of community multi-energy system considering demand-side management and consumer psychology. Appl. Energy. 349, 121646 (2023).
Wang, X., Song, W., Wu, H., Liang, H. & Saboor, A. Microgrid operation relying on economic problems considering renewable sources, storage system, and demand-side management using developed gray wolf optimization algorithm. Energy 248, 123472 (2022).
Mobtahej, M., Barzegaran, M. & Esapour, K. A novel three-stage demand side management framework for stochastic energy scheduling of renewable microgrids. Sol. Energy. 256, 32–43 (2023).
Behera, S. & B. D. Choudhury, N. Adaptive optimal energy management in multi-distributed energy resources by using improved slime mould algorithm with considering demand side management. e-Prime-Advances Electr. Eng. Electron. Energy. 3, 100108 (2023).
Dey, B., Márquez, F. P. G. & Bhattacharya, A. Demand side management as a mandatory inclusion for economic operation of rural and residential microgrid systems. Sustain. Energy Technol. Assess. 54, 102903 (2022).
Gelchu, M. A., Ehnberg, J., Shiferaw, D. & Ahlgren, E. O. Impact of demand-side management on the sizing of autonomous solar PV-based mini-grids. Energy 278, 127884 (2023).
Yang, J., Xu, W., Ma, K., Chen, J. & Guo, W. Integrated demand-side management for multi-energy system based on non-cooperative game and multi-energy pricing. Sustainable Energy Grids Networks. 34, 101047 (2023).
Sharma, A. K., Saxena, A. & Palwalia, D. K. Oppositional slime Mould Algorithm: Development and application for designing demand side management controller. Expert Syst. Appl. 214, 119002 (2023).
Basak, S. & Bhattacharyya, B. Optimal scheduling in demand-side management based grid-connected microgrid system by hybrid optimization approach considering diverse wind profiles. ISA Trans. (2023).
Roy, C. & Das, D. K. Ameliorated class topper optimizer for cost optimization using demand side management program in a day-ahead energy market. J. Supercomput. 1–32. (2023).
Datta, J. & Das, D. Energy management of multi-microgrids with renewables and electric vehicles considering price-elasticity based demand response: a bi-level hybrid optimization approach. Sustainable Cities Soc. 99, 104908 (2023).
Dey, B., Misra, S. & Marquez, F. P. G. Microgrid system energy management with demand response program for clean and economical operation. Appl. Energy. 334, 120717 (2023).
Singh, A. R., Ding, L., Raju, D. K., Raghav, L. P. & Kumar, R. S. A swarm intelligence approach for energy management of grid-connected microgrids with flexible load demand response. Int. J. Energy Res. 46 (4), 4301–4319 (2022).
Meng, Z., Dong, F. & Chi, L. Optimal dispatch of integrated energy system with P2G considering carbon trading and demand response. Environ. Sci. Pollut. Res. 30 (47), 104284–104303 (2023).
Karthik Nagarajan. Enhanced wombat optimization algorithm for multi-objective optimal power flow in renewable energy and electric vehicle integrated systems. Results Eng. (2024).
Daraz, A. et al. Frequency stabilization of interconnected diverse power systems with integration of renewable energies and energy storage systems. Sci. Rep. 14, 25655. https://doi.org/10.1038/s41598-024-76980-z (2024).
Davoudkhani, I. F. et al. Maiden application of mountaineering team-based optimization algorithm optimized 1PD-PI controller for load frequency control in islanded microgrid with renewable energy sources. Sci. Rep. 14, 22851. https://doi.org/10.1038/s41598-024-74051-x (2024).
Dev, A. et al. Enhancing load frequency control and automatic voltage regulation in interconnected power systems using the Walrus optimization algorithm. Sci. Rep. 14, 27839. https://doi.org/10.1038/s41598-024-77113-2 (2024).
Bagheri-Sanjareh, M., Nazari, M. H. & Hosseinian, S. H. Energy management of islanded microgrid by coordinated application of thermal and electrical energy storage systems. Int. J. Energy Res. 45 (4), 5369–5385 (2021).
Agajie, E. F. et al. Optimization of off-grid hybrid renewable energy systems for cost-effective and reliable power supply in Gaita Selassie Ethiopia. Sci. Rep. 14 (1), 10929 (2024).
Agajie, T. F. et al. Enhancing Ethiopian power distribution with novel hybrid renewable energy systems for sustainable reliability and cost efficiency. Sci. Rep. 14 (1), 10711 (2024).
Fettah, K. et al. A pareto strategy based on multi-objective optimal integration of distributed generation and compensation devices regarding weather and load fluctuations. Sci. Rep. 14 (1), 10423 (2024).
Sharma, S. et al. Modeling and sensitivity analysis of grid-connected hybrid green microgrid system. Ain Shams Eng. J. 13 (4), 101679 (2022).
Moghaddam, M. P., Abdollahi, A. & Rashidinejad, M. Flexible demand response programs modeling in competitive electricity markets. Appl. Energy. 88 (9), 3257–3269 (2011).
Karthik, N. et al. Chaotic self-adaptive sine cosine multi-objective optimization algorithm to solve microgrid optimal energy scheduling problems. Sci. Rep. 14, 18997. https://doi.org/10.1038/s41598-024-69734-4 (2024).
Radosavljević, J., Jevtić, M. & Klimenta, D. Energy and operation management of a microgrid using particle swarm optimization. Eng. Optim. 48 (5), 811–830 (2016).
Singh, R., Kumar, A. & Bajaj, R. S. Machine learning-based energy management and power forecasting in grid-connected microgrids with multiple distributed energy sources. Sci. Rep. 14, 19207. https://doi.org/10.1038/s41598-024-70336-3 (2024).
Rajagopalan, A. et al. Multi-objective energy management in a renewable and EV-integrated microgrid using an iterative map-based self-adaptive crystal structure algorithm. Sci. Rep. 14, 15652. https://doi.org/10.1038/s41598-024-66644-3 (2024).
Yousefi, S., Moghaddam, M. P. & Majd, V. J. Optimal real time pricing in an agent-based retail market using a comprehensive demand response model. Energy 36 (9), 5716–5727 (2011).
Abdalla, A. N. et al. Optimized economic operation of microgrid: combined cooling and heating power and hybrid energy storage systems. J. Energy Res. Technol. 143 (7), 070906 (2021).
Dashtdar, M., Bajaj, M. & Hosseinimoghadam, S. M. S. Design of optimal energy management system in a residential microgrid based on smart control. Smart Sci. 10 (1), 25–39 (2022).
Sharma, S. et al. Optimal sizing and cost assessment of off grid connected hybrid microgrid system. in 2022 4th Global Power, Energy and Communication Conference (GPECOM) 344–348. (IEEE, 2022), June.
Dharavat, N. et al. Optimal allocation of renewable distributed generators and electric vehicles in a distribution system using the political optimization algorithm. Energies 15 (18), 6698 (2022).
Vennila, H. et al. Static and dynamic environmental economic dispatch using tournament selection based ant lion optimization algorithm. Front. Energy Res. 10, 972069 (2022).
Panda, S. et al. Residential demand side management model, optimization and future perspective: A review. Energy Rep. 8, 3727–3766 (2022).
Nadimuthu, L. P. R., Victor, K., Bajaj, M. & Tuka, M. B. Feasibility of renewable energy microgrids with vehicle-to-grid technology for smart villages: A case study from India. Results Eng., 103474. (2024).
Pujari Harish Kumar. Techno-economic optimization and sensitivity analysis of off-grid hybrid renewable energy systems: A case study for sustainable energy solutions in Rural India. Results Eng. (2024).
Dhiman, G., Garg, M., Nagar, A., Kumar, V. & Dehghani, M. A novel algorithm for global optimization: Rat swarm optimizer. J. Ambient Intell. Humaniz. Comput. 12, 8457–8482 (2021).
Rao, R. Jaya: a simple and new optimization algorithm for solving constrained and unconstrained optimization problems. Int. J. Ind. Eng. Comput. 7 (1), 19–34 (2016).
Dey, B. & Bhattacharyya, B. Dynamic cost analysis of a grid connected microgrid using neighborhood based differential evolution technique. Int. Trans. Electr. Energy Syst., 29(1), e2665. (2019).
Dey, B., Basak, S. & Bhattacharyya, B. MGWOSCACSA: A novel hybrid algorithm for energy management of microgrid systems. in Advances in smart grid automation and industry 4.0: select proceedings of ICETSGAI4. 0 669–678. (Springer, Singapore, 2021).
Dey, B., Basak, S. & Pal, A. Demand-side management based optimal scheduling of distributed generators for clean and economic operation of a microgrid system. Int. J. Energy Res. 46 (7), 8817–8837 (2022).
Dutta, S., Reddy, M. J. B., Mohanta, D. K., Kushwah, M. S. & Sadhu, P. K. µPMU-based intelligent island detection–the first crucial step toward enhancing grid resilience with MG. IET Smart Grid. 3 (2), 162–173 (2020).
Liu, Y. et al. Electricity cost minimization for a microgrid with distributed energy resource under different information availability. IEEE Trans. Ind. Electron. 62 (4), 2571–2583 (2014).
Acknowledgements
The authors would like to acknowledge the Hanjiang Normal University for supporting this research work under Research Stratup Grant: 5080301149.
Author information
Authors and Affiliations
Contributions
Arvind R. Singh, Bishwajit Dey, Sahil Kadiwala: Conceptualization, Methodology, Software, Visualization, Investigation, Writing- Original draft preparation. Rangu Seshu Kumar, Soham Dutta, Mohit Bajaj, Ievgen Zaitsev: Project administration, Supervision, Resources, Writing - Review & Editing.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Singh, A.R., Dey, B., Bajaj, M. et al. Advanced microgrid optimization using price-elastic demand response and greedy rat swarm optimization for economic and environmental efficiency. Sci Rep 15, 2261 (2025). https://doi.org/10.1038/s41598-025-86232-3
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-025-86232-3
Keywords
This article is cited by
-
Optimal distributed generation placement and sizing using modified grey wolf optimization and ETAP for power system performance enhancement and protection adaptation
Scientific Reports (2025)
-
Optimizing sustainable energy management in grid connected microgrids using quantum particle swarm optimization for cost and emission reduction
Scientific Reports (2025)
-
Improved Lyrebird optimization for multi microgrid sectionalizing and cost efficient scheduling of distributed generation
Scientific Reports (2025)
-
A deep learning and IoT-driven framework for real-time adaptive resource allocation and grid optimization in smart energy systems
Scientific Reports (2025)
-
Revolutionizing energy and logistics: a multilayered strategy for optimizing distribution networks and achieving dual carbon goals
Clean Technologies and Environmental Policy (2025)