A rule-based energy management system for hybrid renewable energy sources with battery bank optimized by genetic algorithm optimization

A Nanogrid (NG) model is described as a power distribution system that integrates Hybrid Renewable Energy Sources (HRESs) and Energy Storage Systems (ESSs) into the primary grid. However, this process is affected by several factors, like load variability, market pricing, and the intermittent nature of Wind Turbines (WTs) and Photovoltaic (PV) systems. Hence, other researchers in the past have used a few optimization-based processes to improve the development of Energy Management Systems (EMSs) and ESSs, which further enhanced the operational performance of NGs. It was seen that EMS acts as the distributed energy source in the NG setup and assists in power generation, usage, dissemination, and differential pricing. Hence this study employed the MATLAB Simulink software for modelling the grid-connected NG that included HRES; such as wind and PV; in addition to 3 Battery Storage Devices (BSDs) to design an effective EMS for the NG system and decrease its overall costs. For this purpose, a Rule-Based EMS (RB-EMS) that employs State Flow (SF) to guarantee a safe and reliable operating power flow to the NG has been developed. In addition to that, a Genetic Algorithm (GA)-based optimization system and Simulated Annealing optimization Algorithm (SAA) were proposed to determine an economical solution for decreasing the cost of the NG system depending on its operational constraints. Lastly, comparison about the cost between RB-EMS, GA and SAA has been presented. According to the simulation results, the proposed GA displayed an economical performance since it could achieve a 40% cost saving whereas the SAA system showed a 19.3% cost saving compared to the RB-EMS. It can be concluded from the findings that the GA-based optimization technique was very cost-effective displays many important features, like rapid convergence, simple design, and very few controlling factors.

www.nature.com/scientificreports/supercapacitors or batteries can be used to sustain the power generated by such RES setups 4 .The output power levelling, the energy arbitrage, and the load-following functions of an ESS should be employed in conjunction with intermittent RESs 5 .
An NG is a unit that can be programmed to swiftly respond to the various load needs of local areas to increase the dependability of the supplied power, provide uninterrupted power supply, and decrease distribution losses.This can be accomplished using the NG's power conversion system 6,7 .Most mid-and small-scale NGs derive their power from erratic and stochastic sources; such as WTs and PVs.However, load requirements and the grid tariffs change throughout the day.Due to these limitations and ambiguities, an NG is a complex system that requires intelligent control to ensure load demands can be met and it can be connected to the primary grid to keep its operational cost of electricity (COE) low 8 .
Multiple recent studies have examined how NG and MG systems function.A few optimization techniques have been used to identify the most effective operation schedules for various loading scenarios and objectives.One of the biggest issues that existing optimization methods face is the selection of the most cost-effective units to use 9 .Some studies have discussed several optimization techniques regarding the role of profit or cost in deciding the total power output of MG and NG applications 10,11 .For instance, in 12 the authors have used recursive particle swarm optimization (rPSO) to increase reliance on RES and decrease reliance on traditional sources; like microturbines (MTs) and diesel generators (DGs).Although the suggested algorithm had higher efficacy than the Bat and GA algorithms, it took longer to address the issue than the Bat and GA algorithms.With fuel limits as a primary consideration, the authors in 13 have suggested using the herd optimization algorithm (HOA) to schedule stand-alone NGs in the short run.The study's simulation-based findings indicated that the suggested approach was superior to previous methods.
In 14 , the researchers developed two methodologies; namely, a heuristic that utilizes the SF method and an optimization algorithm based on linear programming (LP); to reduce the cost of grid-connected MGs composed of a BSD and a PV array.The projected cost and loading conditions were considered during the optimization procedure.The simulation outcomes showed that the suggested optimization approach reduced operational costs by about 19%.
In 15 , the authors created a grey wolf optimisation (GWO) method to reduce the operational costs of gridconnected MGs; such as WTs, PV arrays, MTs, BSDs, and fuel cells (FCs).The operating cost solely applied to MTs, and FCs consist of operation and maintenance (O&M), fuel, and start-up costs, and shut-down expenses.Notably, the start-up and shut-down costs for WTs, PVs, and BSDs were zero.Furthermore, the ideal BSD size was also considered to lower MG operating expenses.The simulation data indicated that the devised optimization technique was more effective than differential evolution (DE) and particle swarm optimisation (PSO).
Another study proposed a grid-connected MG EMS with solar and BSD to reduce an MG's COE.Heuristic and optimization strategies for clear and foggy days were both considered.The simulation outcomes revealed that the optimization approach decreased the COE by 6.6% on clear days and 13.7% on overcast days than heuristics 16 .
A teacher-learning-based optimization (TLBO) was used to overcome the non-linear energy management issues and decrease the operating cost of a grid-connected MG composed of a WT, a PV, a FC, a MT, and a BSD.The simulation findings showed that the suggested method could perform a global search, resulting in quick and acceptable convergence, while the experimental findings demonstrated its superiority and viability over other prominent methods 17 .
In 18 , the researchers created an RB-EMS optimized using a grasshopper optimisation algorithm (GOA) to plan the capacity of independent MGs made up of a WT, a PV array, a DG, and a BSD.The RB-EMS was used to increase the use of RESs and to guarantee power flow inside the MG system.The effectiveness of the planned GOA-integrated RB-EMS were also determined and validated.The simulation outcomes demonstrated that the suggested RB-EMS was a cleaner power production mechanism as it reduced fuel consumption, CO 2 emission, and COE by 92.4%, 92.3%, and 79.8%, respectively, than a traditional DG.A comparison of the algorithms indicated that the GOA-integrated RB-EMS yielded the best results as its COE (USD0.3656/kWh)was lower than that of a cuckoo search algorithm (CSA)-integrated RB-EMS (USD0.3662/kWh).
In 19 , the authors presented an improved RB-EMS to guarantee the dependable operation of a freestanding MG comprising a WT, a PV, a DG, and a BSD.The best RB-EMS was improved based on comparisons of the RB-EMS performances indicated by earlier efforts.The simulation outcomes demonstrated that, in comparison to existing RB-EMS, the suggested technique resulted in fewer emissions, costs, operational outlays, and power losses.
In 20 , the researchers proposed an EMS based on stochastic model predictive control (SMPC) for grid-connected MGs with a WT, a PV, a DG, a FC, and a BSD.A mixed integer quadratic programming model was devised to reduce the operating cost.A thorough comparison of the simulations indicated that the suggested algorithm yielded lower operating cost than other state-of-the-art approaches.
In 21 , the researchers proposed an ideal EMS, that consisted of a FC, a PV, and a BSD, for a grid-connected NG to decrease its operational cost and determine the ideal BSD size.Linear programming (LP) was used for objective functions with non-integer variables to discover the best solutions.The best solution for objective functions with integer variables was also discovered using mixed-integer linear programming (MILP).The findings showed that the suggested hourly-based optimal operation mode reduced daytime operating costs by 17.8 to 94.5%.
A hierarchical control architecture is necessary to regulate NGs.This hierarchy has three control levels; namely, primary, secondary, and tertiary.Local voltage, frequency, and current are controlled at the primary control level or power management system (PMS) level 1 .
The EMS or secondary control level manages and regulates the power flow between the generation sources, the primary grid, and the internal load needs of the NG system 1 .The tertiary control level deals with the connection between the network and the NG 22 .This paper will focus on the EMS level; namely, the second level of NG control.
The research objectives were split into three steps.The first step was to model the grid-connected NG using MATLAB Simulink, which included a WT and PV hybrid RES dual active bridge (DAB) DC/DC converters, a BSD, LCL filters, DC/AC inverters, and the variable load for one day.In the second step, a rule-based EMS using an SF approach for an NG system to ensure power flow and a safe and dependable operation was recommended.The third stage involves applying an optimization technique based on a genetic algorithm (GA) for an NG system to find the most economical solution for distributed generation units.To showcase the effectiveness of the recommended algorithm, the performance of GA is compared to that of the Simulated Annealing optimization algorithm (SAA).Figure 1 depicts the frameworks of all the procedures used to determine the most advantageous and cost-effective solutions for grid connected NGs.The primary contributions of this paper are summarised below: (1) Designed the NG-connected modelled grid using the MATLAB Simulink software and proposed RB-EMS for guaranteeing a safe and reliable operating power flow in the NG system.(2) Analysis of the single-objective optimization issue after decreasing the overall operational costs.
(3) GA has been introduced for resolving the single-objective optimization issue.(4) GA displays many important features, like rapid convergence, simple design, and very few controlling factors.(5) The simulation results were compared with the SAA optimization findings.(6) Finally, the effectiveness and robustness of the proposed GA in the single-objective optimization setting were validated.The paper is structured as follows: Section "Introduction" introduces MG and NG energy management.Section "Nanogrid (NG) system explanation" gives a comprehensive description of the NG system with RB-EMS.Section "Formulation of optimization problem" describes the optimization problem, objective function, limitations, and GA execution.Section "Simulation results and discussions" presents the outcomes and discussion.The conclusions are presented in Section "Conclusions".

Nanogrid (NG) system explanation
As seen in Fig. 2, the grid-connected NG comprised a PV array, a BSD, a WT system, a DC/DC boost converter, DAB converters, LCL filters, and DC/AC inverters, along with three-phase loads modelled in MATLAB Simulink software coupled with local controllers.
Maximum power point tracking (MPPT) extracted energy from the PV array while the BSD created energy balance in the NG structure.The WT system, which was a critical component, was designed using a permanent magnet synchronous generator (PMSG).

Photovoltaic (PV)
The array, which was simulated in MATLAB, comprised 14 series-connected PV panels and four parallel connections.The parameters of the PV panels were set as maximum current output (I M ) = 8.18 A, maximum voltage output (V M ) = 36.7 V, short circuit current (I SC ) = 8.68 A, open circuit voltage (V OC ) = 45.3V, maximum power (P M ) = 300 W, and number of cells = 72.
Figure 3 depicts the power characteristics of the PV system using Malaysian irradiation data for 24 h at 25 °C.The peak power production was 16.7 kW. Figure 4 depicts the single-day irradiation information.The perturb and observe (P&O) technique was used to drive the MPPT to extract power from the PV array 23 .The algorithm computed the duty cycle required to drive the DC/DC boost converter to extract optimum power from the PV system.
The equation below was used to compute the highest current output of the PV array where, V M is the maximum voltage output of the PV array and I M is its highest current output.

Wind turbine system (WTS)
The WT system comprised a PMSG-based WT, a DC/DC boost converter, a DC converter, a DC/AC inverter, and a controller.The wind-based power computation is, subsequently, discussed.
where, P M_PU is the nominal power in per unit (PU) for the specific ρ (air density in kg/m3) and A (swept area in m 2 ) values; K P is the power gain (K P was ≤ 1), C P _ PU is the performance coefficient in PU of the maximum (1)

Battery storage devices
It was critical to connect a BSD to the grid-linked system due to the uncertain power generation of PV and WT sources.The BSD comprised three lithium-ion batteries that had several desirable characteristics; such as high energy density, high performance, superior life cycle (1000 cycles), and low power duration (within 1 h) 25 .
The BSD charging and discharging states depended on the state of charge (SOC), the WT's available power, and the PV's available power.The SOC thresholds determine the amount of energy drawn from the BSD.
where, SOC_MIN and SOC_MAX are the lower and the upper limits of the SOC of the BSD, respectively.Table 1 provides the parameters of the BSD.

DC/DC converters
As a DC/DC boost converter is a very efficient transformer-less device that steps up the input voltage, it is frequently used in WT and PV installations 26 .Table 2 lists the DC/DC boost converter parameters of the PV and WT.A DAB converter, which was initially recommended by 27 , was also discussed in 5 .A DAB may be considered a bidirectional DC/DC converter comprising galvanic isolation-based on DAB, a high-frequency transformer, and leakage inductance.The transformer provides galvanic isolation with very high conversion.Hence, a DAB is used if the input and output voltages vary significantly.The converter was placed after the BSD.Table 3 lists the DAB converter aspects of the BSD.MG and NG setups critically rely on DC/AC inverters to transform the DC power from PV arrays, WTs, or BSDs to AC power.A more comprehensive analysis was presented in 28 .LCL filters help eliminate unnecessary harmonics.The technique specified by 27 was employed to power a converter-specific LCL filter design.Table 4 lists the LCL filters and the DC/AC inverter parameters.

Rule-based energy management system (RB-EMS) using state flow (SF)
The SF technique was modified to suit the RB-EMS approach.This technique comprised an event-specific modelling toolbox in MATLAB to facilitate the logic modelling of the dynamic regulation of the RB-EMS.The power flow regulation is based on the energy availability data of the BSD, WT, PV, and energy demand.It provides control commands to power conversion systems that include the converters and inverters typically used to integrate NG systems.
The RB-EMS was the primary instrument that controlled and regulated the commands in the NG setup and the workings of all the inverters, controllers, and converters while the MPPT drove the DC/DC boost converters connected to the PV and WT systems.The DAB-only converters of the BSD controlled its discharging or charging states to provide a steady DC bus voltage.It was critical to balance the NG power for various power levels from the BSD, the PV, the WT, the grid, and the energy demand.The power balance expression is specified below.
Figure 7 presents a flowchart of the various operation modes of the RB-EMS applied in the SF.The EMS used different modes based on two criteria; namely, power production from the WT and the PV and the SOC of the BSD.
If the power demand exceeded the average power generated by the WT and PV systems, the BSD balanced the deficit until the SOC approached SOC_MIN.The three BSDs discharged equally to balance the power.For instance, if the BSD was powering a 3-kW load, each BSD was loaded at 1 kW.The grid was the last source used to power the balance, which was when the BSDs reached SOC_MIN.The more desirable scenario was the average power generated by the WT and PV system exceeding the load demand.The PV and WT systems powered the (4) P PV + P WIND + P BATTERIES + P GRID = P LOAD www.nature.com/scientificreports/load demand and charged the BSD to SOC_MAX.When the SOC_MAX limit was reached, the excess energy was exported to the grid.

Formulation of optimization problem
This section specifies the optimization problem of this present study.The overall operating cost of the NG was the objective function.The decision variables comprised DG power generation and the grid to provide optimal power production points for every source.ON/OFF states were used to optimize the overall operating cost of the NG and fulfil the restrictions concerning power generation levels, load balance, and BSD charging/discharging.

Objective functions
As reducing the total cost is critical to optimizing NG operations, various objective functions for reducing the cost of NG and MG have been presented in 29,30 .The suggested expressions considered the levelized cost of energy (LCOE), which comprises the capital investment and O&M capital corresponding to every source comprising the NG setup.The primary target of the recommended objective functions was to economically fulfil load demands throughout the day.The following function was suggested to decrease the total operating cost of the NG system: where, T is the total time of the study in hours (h); N g and N Bat are the energy generation units and BSD, respec- tively; Ui (t) is the status of the generation and BSD units at time t, either in ON or OFF mode; P gi (t) and P Batj (t) are the amount of power output by the generation units and BSD at time t; B gi (t) and B Batj (t) are the energy price offered for each generated unit and BSD at time t; and P Grid (t) and B Grid (t) are the volume of power exchanged and the grid market price at time t.

Constraints and limitations
Three constraints; namely, the load generation balance, the power limit of the generating units, and the charging and discharging of the BSD; were considered.

Load generation balance
As load demands must be fulfilled, regardless of the conditions, the NG should be able to adequately fulfil the load demand.This case can be expressed as follows: where, PL k (t) is the load demanded at hour t.

Power limit of units
The amount of power that the WT, PV, and BSDs can provide are subject to the following limitations: where, MAX and MIN are the maximum and minimum boundaries of the variable, respectively.

Battery storage charging and discharging constraint
The following expressions specify the charge and discharge limits of the BSD 31 : (5)   and P discharge,MAX are the maximum charging and discharging powers of the BSD, respectively; P charge and P discharge are the maximum charging and discharging powers of the BSD over a given timeframe, respectively; and η charge and η discharge are the efficacy of the BSD in the charging and discharging modes, respectively.

System variables
This section provides a comprehensive overview of aspects of the system; such as the energy production of the WT and PV, the load characteristics, and the grid tariffs of the NG setup.All the assumptions discussed in this section were based on real-world data.

PV array and wind power availability
As wind velocity and irradiation levels determine the power production of WT and PV systems, they were modelled based on the Malaysian climate.Figures 3 and 5 provide the hourly predicted PV and wind power levels throughout the day, respectively.

Load profile
Numerous factors; such as geography, hourly time of day, and climate change; affect load demand.Figure 8 provides the random commercial load profile for Malaysia, with time-specific changes in load demand indicated 5 .

Malaysian grid tariff
The primary grid market price indicates changes in demand while supply pricing facilitates higher production during peak demand and lesser production during lower demand.Figure 9 provides the 24 h electricity price (USD/kWh) profile of the Malaysian national grid 32 .The indicated price reflects traditional commercial requirements and is based on Tenaga Nasional Berhad (TNB).The daily commercial electricity price can be split into three intervals; namely, 4 h of peak demand at

System parameters
This section specifies the source-specific power levels, including the LCOE of a DG when it is in operation and the true cost of using a BSD.
Wind turbines (WTs), PV arrays, and BSDs have upper and lower power generation constraints during operation.The International Renewable Energy Agency (IRENA) specifies the LCOE per kWh standards for BSD and RES systems.As the LCOE depends on the country, the data used in this present study pertained to Malaysia.The LCOE typically comprises the installation and O&M cost of a power source.Furthermore, the true cost of using a BSD (USD/kWh) may be computed by amortising its cost (USD135/kWh per IRENA standards) over its usable life.The usable life may be determined by multiplying the cycle life (3000 cycles) and the rated energy content of the BSD (4.8 kWh).Table 5 lists the actual LCOE of PV arrays, WTs, and BSDs based on their usable life as well as upper and lower limits for BSDs and RESs.

Genetic algorithm (GA)
This section discusses the optimization algorithm for the power generated by the NG system.The GA was employed to assess the optimization issues of NG operation 33 .The GA can be defined as a stochastic global search algorithm that facilitates the simulation of a metaphor of a natural biological evolution 34,35 .
Optimizing using GA offers several benefits over other algorithms, including optimizing with continuous or discrete variables and not requiring derivative information.The GA can also deal with non-linearity issues, whether as constraints or objective functions 36 .It can also handle numerous variables and function with experimental data, analytical functions, or numerically generated data.
Like all the optimization algorithms, the GA needs the specification of the suggested upper and lower values of the variables that require optimization as they establish the starting point of the decision variables.The steps used to identify the best solutions to the optimization problem are provided below.

Initialization
The GA aimed to solve the optimization problem by searching for an optimal solution; which was the lowest cost; among the variables of the problem; which were the P WIND , P PV , P BAT1 , P BAT3 , P BAT2 , and P GRID .Thus, the first step of the GA was fitting by specifying an individual as an array of variable values to be optimized.In this present study, six variables (Nvar = 6) were associated with the individual, known as the chromosome.
The GA can function with various possible solutions, known as populations.A population can include 30 to 100 chromosomes.A matrix denotes the population within each row of the matrix, which is a 1 × Nvar chromosome of the continuous values.By considering a 24-chromosome preliminary population of Npop, the matrix below describes the full Npop × Nvar matrix of the random values: Selection and crossover A selection procedure helps determine which parents need to die and which ones must be preserved and allowed to reproduce to maintain a constant population size.Meanwhile, a crossover is the basic operator used to generate new chromosomes in the proposed algorithm.Much like in nature, a crossover can generate new chromosomes that include a few sections of the genetic materials of both parents.A crossover was employed to yield new solutions based on the available existing solutions in the mating group post-use of the selection operator.

Mutation
A mutation can be defined as a random process that is responsible for searching for the best and most optimal solution.The mutation process begins with selecting the mutation rate and the variables' row while the columns to be mutated are selected based on random numbers.A new random variable then switches a mutated variable based on the variable's limits.The stages of the GA are presented in the flowchart provided in Fig. 10. ( 18) Chromosome = [P PV P WIND P Bat1 P Bat2 P Bat3 P GRID ]

Simulation results and discussions
This present study used RB-EMS, GA and SAA.In the testing phase, the RB-EMS considered the behaviour during the day, the PV-related irradiation data at a constant temperature of 25 °C, the random demand profile, and the wind data speed for one day.The RB-EMS was tested based on the grid that was connected to the NG, which comprised a WT system, a PV array and three BSDs.Both the RESs and BSDs had to supply the load at any given time to ensure constant power flow.The GA optimization and its effect on the overall cost of the NG system was presented.The cost saving efficacy of the RB-EMS was also compared with GA and SAA.
The purpose of the RB-EMS was to satisfy load demands that had reached a peak of 15 KW in various generating conditions and utilising minimum supply from the grid.Figure 11 shows the power at different locations of the NG.The three BSDs supplied the load for up to 8 h as the PV and WT produced zero power.Post 8 h, the PV and WT supplied the load at various intervals while the additional power produced was used to charge the BSD.The excess power was then transferred to the grid for up to 15 h.The BSD supplied the load as the both the PV and WT produced less power between 15 and 18 h.Between 18 and 24 h, the WT supplied the load with support from the BSD. Figure 12 shows the discharging and charging states of the three BSDs during the day while Table 6 lists the total power produced by the WT and PV, the discharging and charging states of the BSD, and the power transferred to the grid over a 24 h period post-using the RB-EMS.
As seen in Fig. 11, the power outputted by all the sources post-using the RB-EMS was extracted to the workspace and acted as an input for the GA.The optimization problem was solved based on the optimization algorithm, which helped decrease the overall cost of the NG.The daily PV irradiation data and the wind speed data were used to analyse the results.The SOC of the BSD constraints were kept in the range of 20 to 80% SOC, which helps extend battery life.The NG used a lithium-ion battery.As for the GA optimization operation, the time step was set to a 24 h scale.The GA optimization helped decrease the COE from the main grid as well as satisfy the load demand using the power generated by the WT, the PV, the grid, and the BSDs, which, in turn, helped decrease the COE of the grid.Moreover, a comparison with SAA has been presented to showcase the effectiveness of the GA.Table 7 lists the optimum allocation post-using GA for NG generators, BSDs, and the main grid in a 24 h operation scenario, as per the cost function.While Table 8 presents the list of ideal distributions after the use of SAA for the NG generators, BSDs, and the primary grid in the case of a 24 h operation context, based on the cost functions.
The GA optimization provided an added benefit for almost every measure versus the RB-EMS.The total cost of variable-price electricity was calculated in terms of USD/kWh.The results showed that the COE of RB-EMS   The results presented in Figs. 13 and 14 indicated that with regard to the determination of optimal operating costs, the proposed GA showed a better performance compared to the SAA algorithm.It was noted that the GA acquired a 40% cost saving, while the SAA achieved a 19.3% cost saving compared to the RB-EMS.The primary difference between the optimization algorithms and RB-EMS was that the RB-EMS relied mainly on logic and predefined rules before making decisions regarding the distribution and consumption of energy in the NG systems.These rules were based on the system's knowledge and operational experience.This technique was generally used for guaranteeing power flow in the NG system and for providing safe and reliable functioning.
Meanwhile, optimization algorithms like GA employ mathematical models for determining the cost-effective and efficient ways of managing energy in the NG system.The above algorithms consider different constraints   The benefits of the GA optimization for the NG system can be described as follows: The GA significantly decreases the COE of NG compared to RB-EMS.Moreover, the proposed optimization algorithm also reduced grid energy usage.In future, several advanced algorithms will be used for solving the multi-objective issue that includes minimizing the costs and emissions generated from the NG system.

Conclusions
In this study, an RB-EMS is proposed for the grid-connected NG that included a PV, WT, and BSD.The RB-EMS primarily aimed to offer safe and reliable functioning and guarantee a steady power flow within the NG system.Furthermore, the GA was employed for minimizing the costs of the NG system.In addition to its simplicity, the

Figure 1 .
Figure 1.RB-EMS and GA based on grid connected NG.

( 3 )Figure 3 .
Figure 3.The PV array power curve for one day.

Figure 4 .
Figure 4.The PV irradiation data for one day.

Figure 5 .
Figure 5.The power curve of wind for one day.

Figure 6 .
Figure 6.The wind speed data for one day.

Figure 8 .
Figure 8. Load profile for one day.

Figure 9 .
Figure 9. Malaysian power price for one day.

Figure 12 .
Figure 12.The batteries charge and discharge curves for 1 day.

Figure 13 .
Figure 13.The cost of RB-EMS and GA for NG system.

Figure 14 .
Figure 14.The cost of RB-EMS and SAA for NG system.

Table 1 .
The battery storage parameters.

Table 2 .
The DC/DC boost converter parameters.

Table 3 .
The DC/DC DAB converter parameters.

Table 4 .
The parameters of DC/AC inverter LCL filters.

Table 5 .
LCOE and technical coefficient of the DGs sources.
Vol.:(0123456789) Scientific Reports | (2024) 14:4865 | https://doi.org/10.1038/s41598-024-54333-0 was USD 15.9856/day whereas the COEs displayed by the GA and SAA optimization systems were USD 9.50672/ day and USD 12.8928/day, respectively.Table9presents the COE (per hour) and the daily overall cost savings after employing the RB-EMS and GA systems.Figure13displays the COE values shown by the GA and RB-EMS systems.Table10displays the COE (per hour) and the daily overall cost savings after employing the RB-EMS and SAA systems; whereas Fig.14depicts the COE comparison of both the systems.

Table 6 .
The power of each source after applying RB-EMS.

Table 7 .
The power of each source after applying GA.

Table 8 .
The power of each source after applying SSA.

Table 9 .
RB-EMS and GA cost and the saving for one day.

Table 10 .
RB-EMS and SAA cost and the saving for one day.