Next Article in Journal
Review of Virtual Inertia Based on Synchronous Generator Characteristic Emulation in Renewable Energy-Dominated Power Systems
Previous Article in Journal
Fault Ride-Through Control and Protection Coordination Analysis of Wind Farms via Flexible DC Transmission Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Pareto Multiobjective Optimization Power Dispatch for Rural and Urban AC Microgrids with Photovoltaic Panels and Battery Energy Storage Systems

by
Jhon Montano
1,*,
John E. Candelo-Becerra
2 and
Fredy E. Hoyos
2
1
Department of Electronics and Telecommunications, Instituto Tecnológico Metropolitano, Medellín 050028, Colombia
2
Facultad de Minas, Departamento de Energía Eléctrica y Automática, Universidad Nacional de Colombia, Sede Medellín, Carrera 80 No. 65-223, Robledo, Medellín 050034, Colombia
*
Author to whom correspondence should be addressed.
Electricity 2025, 6(4), 68; https://doi.org/10.3390/electricity6040068
Submission received: 20 September 2025 / Revised: 14 November 2025 / Accepted: 26 November 2025 / Published: 30 November 2025

Abstract

This paper presents an economic–environmental power dispatch approach for a grid-connected microgrid (MG) with photovoltaic (PV) generation and battery energy storage systems (BESSs). The problem was formulated as a multiobjective optimization problem with functions such as minimizing fixed and variable generation costs, power losses, and CO2 emissions. This study addresses the problem of intelligent energy management in microgrids with PV generation and BESSs to optimize their performance based on multiple criteria. This study focuses on optimizing the Energy Management System (EMS) with metaheuristic algorithms to achieve practical implementation with simpler algorithms to solve a complex optimization problem. This study employs four multiobjective optimization algorithms: Nondominated Sorting Genetic Algorithm II (NSGA-II), Harris Hawks Optimization (HHO), multiverse optimizer (MVO), and Salp Swarm Algorithm (SSA), which are classified as robust techniques for obtaining Pareto fronts. The computational resources employed to simulate the problem are presented. The optimal dispatch obtained from the Pareto front achieved reductions of 0.067% in fixed costs, 0.288% in variable costs, 3.930% in power losses, and 0.067% in CO2 emissions, demonstrating the effectiveness of the proposed approach in optimizing both economic and environmental performance. The SSA stood out for its stability and computational efficiency, establishing itself as a promising method for energy management in urban and rural microgrids (MGs) and providing a solid framework for optimization in alternating current systems.

1. Introduction

Microgrids (MGs) have become an effective option for integrating renewable energy into power systems, thus improving their reliability, sustainability, and efficiency [1]. Due to their ability to operate in a coordinated way at the local level, MGs adjust the balance between generation and demand and increase autonomy in both urban and rural contexts [2,3]. A central challenge is the variability of renewable sources, particularly photovoltaic (PV) generators, which require the coordinated operation of generators, storage, power electronic converters, and loads under the network constraints.
In this setting, battery energy storage systems (BESSs) are critical because of their fast response, contribution to voltage and frequency support, and ability to maintain secure operation [4,5]. To balance supply and demand and integrate renewable energy under technical and economic criteria, energy management systems (EMSs) rely on optimization frameworks that include classical methods, stochastic approaches, predictive control of the model, artificial intelligence, and metaheuristics [1,6]. On a daily scale, PV-BESS coordination involves tracking irradiance and load variations while maintaining admissible power and voltage profiles.
Classical methods, such as mixed-integer linear programming (MILP) and Benders decompositions, have proven useful in well-structured formulations [7,8]; however, they face limitations when multiple objectives, uncertainty, and real-time scalability are required. Stochastic and predictive control approaches explicitly model variability and enable forecast-based decisions, at the cost of greater modeling complexity and data demands [9,10,11,12,13,14,15,16]. In parallel, metaheuristics and AI techniques provide flexibility and practical implementation for nonconvex multiobjective problems, while raising challenges in ensuring solution quality and transferability to larger scales [6]. In general, control and optimization strategies reduce losses and operating costs, and maintain service continuity under fluctuating generation and demand [17,18]. Against this background, the next section reviews the state of the art in energy management for MGs with PV generators and BESSs.
In [19], a real-time EMS was proposed for a low-voltage microgrid to optimize the operation of diesel, wind turbine (WT) and PV generators, and energy storage units. The study minimized costs, emissions, and power losses using NSGA-II enhanced with Dynamic Crowding Distance (DCD) and a local search algorithm (LSA), revealing a trade-off between costs and losses. The strategies included minimizing diesel use during the day and increasing it at night. However, they did not validate the system with a 24-h power flow, separate fixed and variable costs, incorporate CO2 with power losses, or consider statistical analysis.
A study introduced an improved multiobjective brain storm optimization (BSO) algorithm to schedule hybrid AC/DC microgrids, improving economic efficiency and energy storage health [20]. It mitigated premature convergence through learning-based and adaptive operators, using fuzzy decision-making for optimal dispatch solutions. The algorithm outperformed MOPSO, MOABC, and NSGAII in terms of quality, stability, and speed, addressing renewable energy uncertainties in microgrids. However, it was limited to an isolated marine case, did not consider a 24 h power dispatch for AC networks, did not separate fixed and variable costs, did not include CO2 emissions, and did not consider detailed Pareto front data.
Huang et al. (2024) introduced an economic optimization scheduling strategy for offshore fishing raft microgrid clusters to minimize operational, maintenance, and electricity exchange costs [21]. The study highlighted the effectiveness of the constraint multiobjective evolutionary algorithm based on decomposition (CMOEA/D) over NSGA-II in optimizing cost efficiency and power stability. However, the study was limited by testing only two algorithms, focusing solely on generation and maintenance costs, and lacking comprehensive cost analysis, CO2 emissions, and statistical examination of the results.
Keshta et al. (2024) presented a bi-level energy management strategy for grid-tied microgrids to reduce operational costs while meeting technical constraints [22]. The strategy uses ANN-based day-ahead forecasting for improved PV, WT, and load predictions, and the coronavirus herd immunity optimizer (CHIO) for effective scheduling. Real-time scheduling adapts to changes in weather, demand, and tariffs, thus enhancing cost savings. However, they minimize total operational costs, but limitations include the lack of differentiation between fixed and variable costs and the absence of integrated losses and CO2 penalties. The study is based on a single case of a grid-tied microgrid, without testing other systems.
Another study introduced a two-level optimization approach for energy management and sizing of a multi-energy microgrid. The purpose of the study was to minimize income and expenses [23]. This highlighted that hydrogen production can boost income through self-consumption and grid sales, despite the high electrolyzer costs. The optimal design depended on investment costs and hydrogen prices, evaluating only capacity configuration without considering 24 h operational dispatch and separating hourly variables from fixed costs. Multi-algorithm and statistical analyses were not performed in the study.
In [24], the research focused on optimizing the capacity configuration of MGs connected to the grid with photovoltaic and WT generators, and BESSs in China using an improved Beluga Whale Optimization (BWO) algorithm. The objective was to improve the utilization and economic efficiency of renewable energy by minimizing the levelized cost of energy (LCOE), maximizing the consumption of renewable energy, and minimizing the system costs. The improved BWO algorithm combined opposition-based learning and bee colony strategies to enhance population diversity and convergence accuracy. When applied to real-world local load data, it surpassed traditional methods in terms of solution quality, achieving an optimal LCOE of 0.192 yuan/kWh. This study highlighted the role of advanced optimization in the design of microgrids for low-carbon power and economic growth. However, the study did not validate the problem in a 24 h AC power dispatch, separate variables from fixed costs, or include multi-algorithm analyses.
In [25], the authors investigated the optimization of renewable energy microgrids using the Levy Flight Algorithm (LFA). They focused on hybrid hydrogen and battery storage to improve the energy management and reliability of the system with PV and WT generators. The LFA demonstrated superior cost-saving performance and improved levelized energy cost compared to other algorithms, highlighting the importance of hybrid storage in grid stability and reduction of carbon emissions. However, the study did not address 24-h AC power dispatch with network constraints, joint fixed and variable costs, power losses, CO2 emissions in a multiobjective scheme with penalties, or provide Pareto fronts and variability indicators with statistical support.
Another study introduced the Golden Jackal Optimization (GJO) algorithm for managing microgrid energy, focusing on minimizing costs and addressing energy management challenges in systems with hybrid energy sources and battery storage [26]. It demonstrated superior efficiency and cost-effectiveness of GJO compared to other algorithms, such as Particle Swarm Optimization, Artificial Bee Colony, and Tabu Search. However, the GJO approach remained limited to economic objectives without incorporating multiobjective functions such as CO2 emissions, and it lacked validation for 24-h power dispatch in AC networks and robustness analysis through multiple runs and nonparametric tests.
The study in [27] investigated multiobjective optimization for production scheduling in hybrid renewable power plants with battery energy storage systems (BESS) to enhance profits and reduce battery degradation. A particle swarm optimization (PSO) algorithm was used to balance profitability and battery life, and it was compared favorably with single-objective PSO and linear programming methods by extending battery life while maintaining similar profitability. It highlighted the importance of incorporating energy efficiency into cost functions and suggested alternative revenue strategies, such as ancillary services, owing to limited profits from energy arbitrage in markets such as the Iberian Electricity Market. The study also suggests improvements by using real production forecasts and considering the penalties for deviations. However, it did not perform 24 h power dispatch in an AC multinodal network, separate fixed and variable costs, integrate CO2, or document Pareto front variability with confidence intervals.
Shaker et al. (2021) explored optimal strategies for charging and discharging energy storage in grid-connected microgrids using a multiobjective hunger game search optimizer (MOHGS) [28]. They focused on a hybrid microgrid with renewable energy and energy storage solutions to minimize costs, emissions, and loss of power supply while maximizing the use of renewable energy. The MOHGS outperformed the other optimizers in terms of cost efficiency and environmental benefits. The analysis incorporated the costs associated with battery degradation and employed supercapacitors to improve the system reliability. Despite its advantages, the study did not test 24 h operation under AC power constraints, articulate a comprehensive daily cost and emission function, or report Pareto fronts and statistical robustness.
In addition, a study explored the optimization of microgrid load dispatch with electric vehicles (EVs) using a modified gravitational search algorithm and particle swarm optimization (MGSA-PSO) [29]. To reduce costs, pollution, and load variance, unordered and ordered EV charging–discharging strategies were examined. The MGSA-PSO algorithm improved the convergence speed and accuracy, with ordered charging-discharging with DG cutting costs by 25.55% and load variance by 83.51%. This study emphasized the role of smart EV charging in grid efficiency and the trade-off between economic benefits and grid stability. However, the absence of multinodal PV–BESS co-management, fixed and variable cost separation, power loss consideration, and statistical Pareto front analysis were noted.
The study in [30] explored the optimization of P2P power trading in microgrids using coalition game theory. It focused on maximizing renewable energy self-consumption and monetary benefits for prosumers through a mixed-integer linear programming model. Simulations with 30 households considered load and market constraints, promoting local energy use and renewable investment. However, the model did not consider 24 h AC power dispatch and a comprehensive multiobjective scheme, and did not provide Pareto fronts or confidence intervals.
Parvin et al. (2023) explored the optimization of a renewable microgrid in Shiraz, Iran, using the MOPSO algorithm, and analyzed configurations combining wind turbines, PV, and CHP systems [31]. The focus is on minimizing the probability of power supply loss and energy cost, considering factors such as weather and demand. This study highlights the local impacts of climate change and suggests hydrogen-based energy storage for remote areas. The limitations included the lack of BESS integration, 24 h validation, cost differentiation, CO2 considerations with losses, and the absence of a Pareto front or statistical support.
The authors of [32] developed a multiobjective optimization strategy for home EMS that included photovoltaic and battery storage systems. This intelligent home EMS, featuring three adaptable strategies, aims to maximize economic benefits and consumer comfort by balancing costs, peak-valley balance, and user satisfaction through a multiobjective model with weighted coefficients. The study predicted PV power output using historical weather data and demonstrated significant improvements, such as a 39.81% reduction in electricity bills, a 50.37% decrease in peak load, and a 1.6 times increase in the user comfort index. However, the analysis was limited to residential users and did not account for the constraints of the multinode AC microgrid, cost separation, losses, CO2 penalties, or provide Pareto fronts with confidence intervals and nonparametric tests.
Lu et al. presented a multiobjective optimal load dispatch model for microgrids that accounts for stochastic access to EVs. They aimed to minimize costs and load variance while considering uncertainties in EV charging [33]. The study included PV and WT generators, using Monte Carlo simulation and improved Particle Swarm Optimization. Three scenarios were examined: uncoordinated and coordinated charging states. The results showed that coordinated charging reduced costs by 3.09% and improved stability by shifting loads, with DGs adding a further 6.43% cost reduction. The study highlighted cost and stability trade-offs, but lacked an analysis of PV–BESS operation, 24 h AC dispatch with constraints, a unified cost formulation including CO2, and robustness analysis.
The article by [34] explored the optimization of distribution networks with generators and BESS, with optimal network reconfiguration. The study introduced the Improved Bidirectional Coevolutionary (I-BiCo) algorithm to minimize energy costs, power losses, and voltage deviations. The algorithm addressed renewable energy variability through BESS and uses a multiobjective optimization approach to determine the best locations and sizes for RES and BESS. The I-BiCo algorithm outperformed existing methods in terms of convergence, diversity, and quality of the solution. Despite demonstrating the benefits of combining DG, BESS, and network reconfiguration, the study did not validate the 24 h AC dispatch within specific limits, differentiate between fixed and variable costs, integrate losses and CO2 penalties simultaneously, or provide statistical evaluations of Pareto fronts.
Table 1 presents a summary and comparison of the previous literature and the proposed method. The literature shows that most solutions have focused on multiobjective optimization based solely on energy costs. Applications have also concentrated on single-node tests with various energy resources, such as buildings, homes, maritime, and other small networks. However, more research is required to include additional objective functions, such as electrical network losses and CO2 emissions. Moreover, these solutions should be applied to distribution networks based on microgrids with multiple nodes and energy resources at various locations. It is also desirable that the management system be applicable to both urban and rural networks. In addition, studies have been practically limited to the results of cost optimization, and no further statistical analyses have been presented to demonstrate the efficiency of the solutions obtained.
Therefore, this paper employs multiobjective optimization for an EMS in an AC microgrid using four objective functions: fixed energy costs, variable energy costs, power losses, and CO2 emissions. The proposed algorithm is capable of managing energy for microgrids with PV generation, demand, and storage systems. Optimization can be performed for microgrids connected to the power grid or in island mode. Batteries previously located in the system are managed, considering charge and discharge states, which resulted in a total of 72 variables, considering the 24 SOC states of the batteries for one day of operation. This multiobjective function is solved by finding the Pareto frontiers for the objective functions and identifying the best solutions to the problem. The application of Pareto-based multiobjective optimization algorithms offers several advantages in solving complex problems with multiple conflicting objectives [35]. The mathematical formulation of this problem is explained in Section 2. The multiobjective formulation was solved using four algorithms: Harris Hawks Optimization (HHO), multiverse optimizer (MVO), Salp Swarm Algorithm (SSA), and nondominated sorting genetic algorithm II (NGSAII). First, the general algorithm is explained in Section 3. Subsequently, a general explanation of the advantages of each algorithm and the corresponding mathematical model is presented. Two power systems were used to test the methods: 27-node feeder and 33-node feeder test cases; the network parameters are included in Section 4. This section also presents the parameters of energy resources, power demand, and energy costs. The computational resources employed to simulate the problem are also presented. This study presents various results (Section 5) that focus on the details of decisions related to EMS. Finally, the conclusions and future work are presented (Section 6).
Based on the gaps found in previous studies, this study makes the following contributions:
  • The literature shows that most previous research has focused on performing multiobjective optimization centered on energy costs. Few studies have used penalties on constraints to find valid solutions. In this study, multiobjective cost functions were addressed as separate functions: fixed costs, variable costs, power losses, and CO2 emissions. In addition, penalties are considered in the constraints to obtain better solutions.
  • Only a few works in the previous literature have used the Pareto front to present their solutions. In this study, the Pareto front was used to find solutions for each of the functions and to suggest the best results obtained from the problem.
  • From the literature reviewed, only two works have proposed working with systems that have multiple DERs in microgrids, and these works use a single node and several energy resources. This study utilized multiple energy resources and nodes to optimize the operation.
  • Most works only present conventional results and do not perform statistical analyses to select the best options. This study includes all statistical analyses that enable the characterization of the behaviors of the best solutions.
  • The solutions proposed in the literature do not consider operational conditions for urban and rural networks within their mathematical formulations; they focus their solutions on one of these. This study proposes optimization solutions that can be applied to both types of networks located in urban and rural areas.

2. Optimization Problem

The optimal energy dispatch in AC microgrids, considering the integration of photovoltaic generation as a baseline case and its comparison with the additional incorporation of lithium-ion batteries, can be effectively formulated as a multiobjective optimization problem. To resolve this, it is essential to define a set of objective functions that structure the optimization methodology, aimed at the simultaneous minimization of costs, power losses, and CO2 emissions. These functions were constructed according to the guidelines established in the specialized literature and sought to address the gaps identified in previous research. The general methodology is presented below, along with the respective mathematical formulations.

2.1. General Procedure

Figure 1 shows the general procedure of this study. In this procedure, the microgrid is modeled, including PV generators, power grid, and batteries. Additionally, the mathematical formulation of the multiobjective optimization problem based on Pareto was performed. In this case, the four objective functions defined in this study were considered (fixed energy cost, variable energy cost, power losses, and CO2 emissions). Subsequently, the modeling of the multiobjective algorithms considered to solve the problem was carried out. It is important to adjust the algorithms to obtain a better solution. Finally, the results were obtained and statistical analyses were performed. Based on these results, the comparison and discussion are presented.

2.2. Objective Function

The main objective function serves as the core of the entire multiobjective optimization process, integrating the different targets to be minimized: fixed and variable costs, power losses, and CO2 emissions. Its formulation depends on the operational context of the microgrid, distinguishing between urban and rural areas. In the urban scenario, four objective functions are considered: fixed costs, variable costs, power losses, and CO2 emissions, as defined in Equation (1). In contrast, in the rural scenario, where the microgrid operates primarily in island mode with diesel generation, only three objective functions are considered: fixed costs, power losses, and CO2 emissions, as expressed in Equation (2).
F O B ( 1 , 2 , 3 , 4 ) = O F 1 O F 2 O F 3 O F 4 + β · P F
F O B ( 1 , 3 , 4 ) = O F 1 O F 3 O F 4 + β · P F
In particular, each objective function incorporates a penalty factor ( P F ) multiplied by a normalization factor β = 1000 , which aims to ensure a balance between the feasibility of the problem and the usefulness of the solutions generated by the optimization algorithms. These values were defined heuristically, as described in [36,37,38].
Each term represented in the F O B vector is formulated to broadly structure the objective functions, constraints, and penalties that constitute the mathematical model of the proposed optimization problem. Although the specific meaning of each O F i component is not detailed at this stage, their individual formulations will be developed in the following sections, where their technical foundations and relevance to the microgrid energy management scheme will be explained in detail.

2.3. Operation Costs Minimization

The objective functions O F 1 (fixed costs) and O F 2 (variable costs) represent the minimization of the total operational costs associated with the energy supply in the AC microgrid during a typical 24 h operating day. In Equation (3), t denotes the hours in the analysis horizon.
OF 1 , 2 = min t = 1 24 i N C C G i ( t ) · P C G i ( t ) C E E + i N C M D G i · P D G i P V ( t ) + C M B i · P B i ( t ) C M
The term C E E represents the component of the energy cost, where C C G i ( t ) is the unit cost of the energy generated by the conventional generator at node i. This component distinguishes between fixed and variable costs, depending on the type of MG. In urban contexts, where energy prices fluctuate, both types of costs are considered in the analyses. In contrast, rural MGs operating in island mode assume a fixed energy cost derived from diesel consumption that remains constant throughout the operating period. The variable P C G i ( t ) denotes the power generated by the conventional generator at node i.
The term C M groups the maintenance costs associated with the DERs. Specifically, C M D G i represents the maintenance cost of PV generators, and C M B i corresponds to the maintenance costs of PV generators and batteries. The variables P D G i P V ( t ) and P B i ( t ) represent the power generated by the PV systems and the power managed (charged/discharged) by the batteries at node i.

2.4. Power Loss Minimization

The objective function O F 3 represents the minimization of power losses ( P L o s s ) in the electrical system under evaluation during a typical operating day. These losses are a key parameter in MGs, as their reduction directly contributes to enhancing the efficiency, reliability, and overall sustainability of the system, particularly when energy storage systems, such as batteries, are integrated.
O F 3 = min t = 1 24 i N j N Y i j · V i ( t ) · V j ( t ) · cos ( θ i ( t ) θ j ( t ) φ i j ( t ) ) P L o s s
In this expression, V i ( t ) and V j ( t ) denote the voltage magnitudes at the nodes i and j at time t, while θ i ( t ) and θ j ( t ) are their corresponding phase angles. The parameter φ i j ( t ) represents the angle of the complex admittance of the line connecting nodes i and j, and Y i j is the magnitude of the admittance derived from the admittance matrix of the system. This formulation enables the accurate quantification of the losses of the technical lines within the MG by considering the voltage profile and both active and reactive power flows, thus providing a comprehensive measure of the technical performance of the system.

2.5. CO2 Emission Minimization

The objective function O F 4 represents the minimization of total carbon dioxide (CO2) emissions generated by the power sources within the microgrid during a typical operating day. This component is essential for integrating environmental sustainability criteria into the optimization process, particularly in scenarios with a high share of fossil-based or nonrenewable generation.
O F 4 = min t = 1 24 i N P C G i ( t ) · C E C G i + j N P G D j ( t ) · C E j G D E
In this expression, E denotes the total CO2 emissions per hour generated by the microgrid. The term P C G i ( t ) refers to the power generated by the conventional generators at node i, and C E i C G is the associated emission factor of CO2. Similarly, P G D j ( t ) represents the power generated by the generators in the MG at node j, with C E j G D being the corresponding emission coefficient. This formulation enables a quantitative assessment of the environmental impact of energy dispatch, incorporating the ecological dimension into the optimal energy management model of the MG.

2.6. Power Balance Constraints

Once the objective functions that form the multiobjective optimization framework have been defined, it is essential to incorporate a set of constraints that ensure the technical and operational feasibility of the electric power system under analysis. In particular, maintaining the balance of active and reactive power is crucial for accurately modeling the operation of AC microgrids with renewable energy, conventional power sources, and energy storage systems.
The active power balance constraint, shown in Equation (9), ensures that at each node i and every time step t, the sum of the active power injected by conventional generators P C G i ( t ) , renewable generators P D G i ( t ) P V , and batteries P B i ( t ) —which may either inject or absorb power, depending on their operational mode—must equal the active demand P D i ( t ) plus the power losses associated with the network transfers. These losses are modeled using the admittance parameters Y i j and phase angles θ i ( t ) and θ j ( t ) .
P C G i ( t ) + P D G i P V ( t ) ± P B i ( t ) P D i ( t ) = V i ( t ) · j N Y i j · V j ( t ) · cos θ i ( t ) θ j ( t ) φ i j ( t ) i , j N , t H
Additionally, the reactive power balance constraint, shown in Equation (10), aims to ensure voltage stability across the electrical network by requiring that the reactive power generated adequately meets the demand of the users at each node. This formulation considers the reactive power supplied by conventional generators Q C G i ( t ) and photovoltaic generators to the MG Q D G i ( t ) P V , along with the reactive power demand of the loads Q D i ( t ) at each node of the system. As with the active power balance, this equation incorporates electrical system parameters, such as the admittances Y i j and phase angles θ i ( t ) and θ j ( t ) , which are now applied to calculate the reactive power flows.
Q C G i ( t ) + Q D G i P V ( t ) Q D i ( t ) = V i ( t ) · j N Y i j · V j ( t ) · sin θ i ( t ) θ j ( t ) φ i j ( t ) i , j N , t H
In this context, it is essential to adhere to the operational generation limits defined for each energy source within the active and reactive power balances of the MG. This ensures the technical feasibility of the system, particularly for configurations that integrate intermittent renewable sources with battery-based energy storage. These generation constraints play a critical role in maintaining the operational stability and reliability of the power system, ensuring that all generating units operate within their technical capabilities during the analysis period.
Consequently, conventional generation is constrained by the upper and lower bounds for both active and reactive power, as expressed in Equations (8) and (9), respectively.
P C G i min P C G i ( t ) P C G i max i N , t H
Q C G i min Q C G i ( t ) Q C G i max i N , t H
Additionally, the power generated by photovoltaic systems must remain within their defined operational limits, as stated in Equation (10). These constraints ensure the safe and efficient operation of renewable resources, considering their intermittency.
P D G i min P D G i ( t ) P V P D G i max i N , t H
Finally, battery operation is constrained by the maximum allowable power during the charging and discharging processes ( P B i ), as specified in Equation (11). These constraints aim to improve energy management efficiency and preserve and extend the useful life of storage systems.
P B i Char max P B i ( t ) P B i Disch max i N , t H

2.7. Operational Constraints

Additionally, within the set of constraints imposed on the power balance and the formulation of objective functions, it is essential to include those that ensure the correct technical operation of the MG. First, the voltage levels at each node must be maintained within the allowable operational margins, as defined in Equation (12).
V i min V i ( t ) V i max i N , t H
Similarly, the current flowing through the network lines must be limited to prevent overloads that could compromise the stability and integrity of electrical systems. This condition is expressed in Equation (13).
I i j ( t ) I i j max i , j N , t H
Regarding batteries, constraints play a crucial role in ensuring the efficiency and reliability of energy management in the MG. One of the key variables to control is the state of charge (SoC), which must remain within safe limits to preserve the lifespan of the storage system and ensure an adequate response to fluctuations in demand and renewable generation. The SoC is calculated as a function of the analysis period and the charge/discharge factor ( ϕ B i ) , as shown in Equation (14).
SoC B i ( t ) = SoC B i ( t 1 ) ϕ B i × P B i ( t ) × Δ t
The factor ϕ B i is determined by the technical characteristics of the battery—in particular, its charging ( t c B i ) and discharging ( t d B i ) times—and is defined according to Equation (15).
ϕ B i = 1 t c B i × P B i char min = 1 t d B i × P B i disch max
The state of charge (SoC) must remain within a safe operating range, typically between 10% and 90% of the battery’s total capacity. This constraint is formulated as shown in Equation (16).
SoC i min SoC B i ( t ) SoC i max i N , t H
Finally, Equation (17) presents the formulation of the penalty function ( P F ). This function is designed to ensure that all technical constraints imposed on the system are satisfied during the iterative optimization process. In practical terms, P F serves as a corrective mechanism that increases the value of the objective function whenever any critical operational conditions, such as voltage levels, line currents, or battery SoC, are outside the allowable limits.
P F = t = 1 24 max 0 , i N P B i ( t ) P B i char max + min 0 , i N P B i ( t ) P B i disch max + max 0 , i N SoC B i ( t ) SoC i max + min 0 , i N SoC B i ( t ) SoC i min + max 0 , i N V i ( t ) V i max + min 0 , i N V i ( t ) V i min + max 0 , i N j N I i j ( t ) I i j max

2.8. Hourly Power Flow

The optimization model considers a daily analysis horizon divided into 24 h intervals. For each individual in the candidate population, an hourly power flow simulation was performed on the microgrid, integrating the operation of conventional generators, photovoltaic generators, and battery storage systems.
At each hour t, the power flow is solved based on the alternating current (AC) model, using the system’s active and reactive demands as input. The estimated active generation for that hour was derived from conventional generators, photovoltaic generators, and the power exchanged by batteries, which was calculated based on the changes in the state of charge (SoC). These values are used to compute the net load power, which serves as the input for solving the nodal system of complex voltages, as expressed in Equation (18).
V d t + 1 = Z d d Z d s V s + diag 1 ( V d t , ) S d
In this model, the voltages at the load nodes are represented by the vector V d , and the voltage at the main supply node of the electrical grid is denoted as V s . The admittance matrices Z d d and Z d s describe the electrical connections among the load nodes and between the load and supply nodes, respectively. This procedure is repeated iteratively until the convergence criterion based on voltage variations is satisfied. Once the nodal voltage vector V d is determined, all intrinsic variables associated with the objective functions are computed.
To conclude this section and introduce the multiobjective optimization algorithms, it is essential to emphasize that the energy management problem—integrating photovoltaic generation, battery storage, and multiobjective functions in AC microgrids—requires following the step-by-step sequence outlined in Algorithm 1, as it provides a clear structure for implementation and adaptation to the selected optimization techniques.
Algorithm 1 General pseudocode for multiobjective evaluation in alternating current (AC) microgrids
1:Load system parameters: nodal topology, demand curves P D i ( t ) and Q D i ( t ) , generation capacities P C G i min , max , and battery operation limits.
2:Initialize the population of individuals ( N i ) (Optimization algorithm), number of iterations.
3:Compute the evolution of the state of charge SoC B i ( t ) using Equation (14), with charge/discharge factors ϕ B i (Equation (15)).
4:Validate the trajectories of SoC B i ( t ) according to the limits in Equation (16).
5:for each individual i = 1 : N i  do
6:   Assign  P B i ( t ) profiles based on SoC.
7:   Set  P D G i P V ( t ) and P C G i ( t ) according to the defined scenarios.
8:   Initialize electrical state matrices: V i ( t ) , P C G i ( t ) , P B i ( t ) , P D G i P V ( t ) .
9:   for each hour t = 1 to 24 do
10:     Update net demand ( S d x ( t ) ) considering battery operation.
11:     Solve the AC load flow using the successive approximations model (Equation (18)).
12:     Update nodal voltages V i ( t ) and angles θ i ( t ) .
13:     Compute injections of P C G i ( t ) , P D G i ( t ) and losses in the network P L o s s ( t ) (Equation (4)).
14:     Check current constraints on lines I i j ( t ) (Equation (13)) and voltage limits (Equation (11)).
15:     Apply active and reactive power balance (Equations (6) and (7)).
16:   end for
17:   Evaluate objective functions (Equation (1) or (2)):
18:   Apply penalty  P F if violations exist (Equation (17)):
19:   Build multiobjective vector (Equation (1) or (2)):
20:end for
21:Return all F O B vectors for use in the multiobjective optimization algorithm

2.9. Pareto Multiobjective Optimization

Multiobjective optimization algorithms are advantageous because they allow the evaluation of multiple functions; therefore, it is essential to highlight the role of the Pareto front. These fronts are used in problems with multiple objectives because, in these scenarios, there is generally no single solution capable of minimizing or maximizing all the objective functions simultaneously. Therefore, the focus is on identifying a set of solutions known as the Pareto optimal set. In this context, a solution X 1 is said to dominate another solution X 2 if and only if the criterion in Equation (19) is satisfied.
i : F i ( X 1 ) F i ( X 2 ) y j : F j ( X 1 ) < F j ( X 2 )
The set of solutions that are not dominated by any other solution is called a Pareto front. This set represents the optimal trade-offs among the various objective functions under consideration in the vector-solution space. Each point on the front corresponds to an efficient equilibrium, where improving one objective necessarily worsens at least another objective. In contrast, solutions that lie outside this frontier are considered dominated, as there exists at least one other solution that improves one or more objectives without degrading the others (See Figure 2).

3. Optimization Algorithms

Once the multiobjective behavior with Pareto frontiers was established, a general description was provided for each of the optimization algorithms implemented to offer a solution to the problem of intelligent energy management applied to microgrids (MG) with photovoltaic solar systems and batteries. For each algorithm, special emphasis is placed on its method of progression or evolution. Thus, this study employs four multiobjective optimization algorithms, NSGA-II, HHO, MVO, and SSA, which are classified as robust techniques for obtaining Pareto fronts. Their evaluation functions inherently involve nonlinear and nonconvex problems within their models, allowing for a homogeneous assessment of their objective functions. This portfolio ensures broad and comparable Pareto fronts for technical-economic and environmental dispatch in MG with PV–BESS. NSGA-II was adopted as the baseline because of its nondominated sorting and effective preservation of diversity. The HHO contributes to adaptive exploitation–exploration with jumps that help to escape local optima. The MVO algorithm provides early global coverage of space with controlled jumps, which is useful for high-dimensional hourly vector data. Finally, the SSA smooths the trajectories (leader–chain), favoring a stable convergence with a low variance.

3.1. Harris Hawks Optimization (HHO)

The HHO is a bioinspired optimization technique that emulates the cooperative hunting behavior of Harris’s hawks. This bird species is known for its intelligence and sociability, as it can execute coordinated harassment and ambush tactics on agile prey, such as rabbits, simulating a progressive chase through rapid jumps in different directions. This strategy, known as the pounce surprise or the seven attacks, forms the basis of a mathematical model that guides the HHO optimization process [39].
This algorithm operates in two fundamental phases: exploration and exploitation, which alternate dynamically based on the remaining energy of the prey species. This energy, represented by the parameter E, decreases over the iterations as the process progresses and is modeled by Equation (20).
E = 2 E 0 1 t T
where E 0 is in the range (−1, 1) and is taken randomly to simulate the initial state of the prey, t represents the current iteration, and T is the total number of iterations. It is important to note that for the algorithm to enter the exploration or exploitation phase, it is compared with the value of | E | ; if this is greater than or equal to 1, the exploration phase is activated; if, on the other hand, it is less than 1, the algorithm transitions to the exploitation phase of the search space. This allows for smooth adaptation between the two phases of the search space. It is worth mentioning that in the exploratory phase, hawks explore the search environment from random or strategic positions close to other members of the group, as denoted in Equation (21).
X ( t + 1 ) = X r a n d ( t ) r 1 X r a n d ( t ) 2 r 2 X ( t ) q 0.5 X r a b b i t ( t ) X m r 3 L b + r 4 U b L b q < 0.5
where X ( t ) represents the current position of the hawk, X r a n d is a random hawk, X r a b b i t corresponds to the best current solution, and X m is the average of all positions in the population. r 1 , r 2 , r 3 , r 4 , and q are uniformly distributed random variables in the range of ( 0 ,   1 ) , and L b and U b are the lower and upper bounds of the search space, respectively. However, during the exploitation phase, a single strategy is not applied; instead, it adapts its behavior according to the energy level E of the prey and the probability r that it will be able to escape. This adaptability gives rise to four attack modes that are dynamically activated as the search space evolves.
For these possible phases, the process begins with the possibility of a soft besiege, which is triggered when | E | 0.5 and r 0.5 . In this scenario, the prey retains sufficient energy but fails to escape. Therefore, the hawks strategically surround its position, which is modeled by Equation (22).
X ( t + 1 ) = Δ X ( t ) E · J · X r a b b i t ( t ) X ( t )
where Δ X = X r a b b i t ( t ) X ( t ) and J = 2 ( 1 r 5 ) represent the random force of the jump of the prey. The possible second phase is referred to as hard besiege, which occurs when ( | E | < 0.5 ) and ( r 0.5 ) , indicating that the prey is exhausted. In this case, the hawks intensify their approach and perform aggressive and direct movements, as indicated by Equation (23).
X ( t + 1 ) = X r a b b i t ( t ) E · Δ X ( t )
Using this mechanism, convergence towards the best solution found up to that point can be accelerated. Additionally, the third siege is characterized as gentle with rapid progressive dives and occurs when ( | E | 0.5 ) and ( r < 0.5 ) ; that is, it occurs when the prey has sufficient energy to carry out evasive maneuvers. Therefore, hawks apply more sophisticated and adaptive movements that combine prediction and random jumps modeled by Lévy flights, as detailed in Equations (24)–(26).
Y = X r a b b i t ( t ) E · J · X r a b b i t ( t ) X ( t )
Z = Y + S · Levy ( D )
where the positions must be compared to select the best candidate solution obtained by increasing the population size. Here, Y is the tentative position based on the direct movement toward the prey, S is a random vector, and Levy ( D ) represents a jump generated with a Lévy distribution in a D dimension.
X ( t + 1 ) = Y , f ( Y ) < f ( X ( t ) ) Z , f ( Z ) < f ( X ( t ) )
The fourth and final strategy is a hard siege with rapid progressive dives, which occurs when ( | E | < 0.5 ) and ( r < 0.5 ) , implying that the prey is exhausted and making erratic movements. Therefore, hawks adjust their trajectory based on the population mean and apply a Lévy flight to search for more refined solutions, as expressed in Equation (27).
Y = X r a b b i t ( t ) E · J · X r a b b i t ( t ) X m ( t )
Finally, the decision for the next move is made by comparing the fitness of vectors Y and Z in the same manner as in Equations (25) and (26). The intention is to ensure that the algorithm can approach a global solution without losing population diversity.

3.2. Multiverse Optimizer (MVO)

The MVO algorithm is inspired by three fundamental concepts of cosmology: the expansion of the universe, black holes, and wormholes. These phenomena are used as metaphors to represent the transfer of information between solutions (universes) and the adaptive evolution of a population in the search space. Therefore, in MVO, each candidate solution is represented as a universe that adapts according to an inflation rate that is related to the quality of the solution. In this context, universes with better fitness tend to attract information from worse universes through processes similar to black holes, which is referred to as the exploitation phase of the search space. All universes can exchange random information through wormholes, which are categorized as exploration phases [40]. Therefore, the movement of a solution is guided by a random process regulated by the normalized inflation rate of each universe, as denoted in Equation (28).
N I ( U j ) = f ( U j ) f w o r s t f b e s t f w o r s t
where N I ( U j ) is the normalized inflation rate of the universe j, f ( U j ) is the fitness value, and f b e s t and f w o r s t are the best and worst fitness values in the population, respectively. This allows the value to regulate the probability that a universe gives or receives information during its evolution. As mentioned earlier, for the exploitation strategy of the algorithm, a process must be carried out through the transfer of matter through black holes, as expressed in Equation (29).
X i , j t + 1 = X k , j t , r 1 < N I ( U k ) X i , j t , r 1 N I ( U k )
where X i , j t + 1 is the value of the j-th parameter of the i-th universe in iteration t + 1 , X k , j t is the corresponding value of a random universe k, and r 1 is a random number ranging from ( 0 , 1 ) . Therefore, this mechanism ensures that universes with better inflation rates influence the others, with the intention of promoting the intensification of solutions. However, the exploration phase is managed through wormholes, which allow any universe to make random jumps towards regions of space near the best universe found so far. This dynamic is regulated by the Wormhole Existence Probability ( W E P ) and Travel Distance Rate ( T D R ), defined by Equations (30) and (31), respectively.
W E P = W E P m i n + ( W E P m a x W E P m i n ) · t T
T D R = 1 t T 1 / p
where t is the current iteration, T is the total number of iterations, and p is a parameter that regulates the convergence rate of the algorithm. The complete process of the wormholes is modeled using the following update rule defined in Equation (32).
X i , j t + 1 = X best , j t + T D R × ( U b j L b j ) × r 4 + L b j , r 3 < 0.5 X best , j t T D R × ( U b j L b j ) × r 4 + L b j , r 3 0.5 r 2 < W E P X i , j t , r 2 W E P
where X b e s t , j t represents the best solution found in dimension j, and U b j and L b j are the limits of the search space. Thus, this phase allows for controlled jumps around the best solutions, enhancing the ability to escape local optima and improving the exploration of the search space.

3.3. Salp Swarm Algorithm (SSA)

SSA is a bioinspired optimization technique based on the collective movement of salps, marine organisms that travel in linear chains while searching for food. Within this chain, the first salp is called the leader, and the remaining salps act as followers who adjust their positions according to the individuals ahead of them. This natural behavior is mathematically modeled to achieve an adequate balance between the exploration and exploitation of the search space [41].
Here, the movement of the leader salp is defined by its position in dimension j, which is updated based on the best known solution F j and search boundaries L b j and U b j , as shown in Equation (33).
X 1 , j = F j + c 1 × ( U b j L b j ) × c 2 + L b j , c 3 0.5 F j c 1 × ( U b j L b j ) × c 2 + L b j , c 3 < 0.5
Considering that c 1 is an adaptive decay coefficient that controls the transition between the exploration and exploitation phases, it is defined as in Equation (34).
c 1 = 2 e 4 t T 2
The parameters c 2 and c 3 are random numbers within the interval [ 0 , 1 ] , which introduce randomness in the direction and sense of movement of the leading salp. In contrast, the follower salps update their position by taking as a reference the salp immediately preceding them in the chain, applying a smoothed numerical integration to simulate a progressive and coordinated movement, as denoted in Equation (35).
X i , j = X i , j + X i 1 , j 2 , i 2
where X i , j is the position of the i-th salp and x i 1 , j is the position of the preceding salp in the dimension j. This allows the equation to adjust the trajectories of the follower salps, reducing the distance with respect to those ahead of them. By contrast, parameter c 1 is essential for balancing exploration and exploitation. At the beginning of the optimization, its value is high, causing the leader to make large movements in the search space for a broad exploration. As the iterative process progresses, c 1 decreases exponentially, concentrating the movement of the salp chain around the best solutions found, thus allowing for the intense and precise exploitation of the search space.

3.4. Nondominated Sorting Genetic Algorithm II (NSGA-II)

The foundation of NSGA-II originates from classical genetic algorithms that use evolutionary operators, such as crossover and mutation, to generate new solutions from the initial population. However, unlike traditional single-objective optimization algorithms, NSGA-II introduces a mechanism for partial comparison between solutions based on Pareto dominance [42].
Given a set of solutions p, the solution p is considered to dominate another solution q if it meets the conditions described in Equation (36).
p q f m ( p ) f m ( q ) , m { 1 ,   2 ,   ,   M } m { 1 ,   2 ,   ,   M } such that f m ( p ) < f m ( q )
where M represents the number of objectives, and f m is the value of objective function m. This criterion allows the identification of all nondominated solutions that constitute the first Pareto front. During the iterative process of the algorithm, dominated solutions are eliminated and replaced by new nondominated solutions, thus forming successive Pareto fronts. In other words, solution p dominates another solution q if it simultaneously meets the following conditions: p is not worse than q in any of the objectives, and p is strictly better than q in at least one objective.
To preserve the diversity within each Pareto front, NSGA-II incorporates the crowding distance ( C D i ), which prevents solutions from concentrating solely in one region of the search space. The calculation of this distance is presented in Equation (37).
C D i = m = 1 M f i + 1 m f i 1 m f max m f min m
where f i + 1 m and f i 1 m are the values of the objective function m for neighboring solutions within the same front, and f max m and f min m are the extreme values of the function. This mechanism favors less crowded solutions and promotes balanced distribution in the solution space.
In general, NSGA-II begins by generating an initial population and evaluating its objective functions to sort them according to the Pareto criterion. Subsequently, the crowding distance is calculated to diversify the population, and genetic operators of crossover, mutation, and recombination are applied, along with an elitist selection process that allows the combination of parents and offspring into a new population. In this population, nondominated sorting and the calculation of the crowding distance were performed again, repeating the process iteratively until an efficient and well-distributed approximation of the Pareto front was achieved.

4. Test Case and Materials

Simulations of MGs with photovoltaic generation and battery energy storage systems were conducted to identify the multiobjective optimization method that best suits the resolution of the intelligent energy management problem. This approach seeks to minimize the technical, economic, and environmental impacts associated with the optimal energy dispatch, ensuring that each test scenario is validated under the same computational conditions.

4.1. Network Parameters

Figure 3 shows the case of the test system powered by 27 nodes and 26 lines, where the system operates at a base voltage of 23 kV and a base power of 100 kVA. It is important to note that this is considered a rural scenario connected to a single diesel generator operating in island mode. The parameters of the rural network are listed in Table 2, which provides the electrical parameters of an MG. In this table, the first column shows the line l, the second column the sending node of the line i, the third column the receiving node of the line j, the fourth column presents the resistance parameters of the line given in ohms ( Ω ) , the fifth column also represents the reactance of the line X i j in ( Ω ) , and the sixth, seventh, and eighth columns represent the active power at the receiving node ( P j ) in kilowatts (kW), the reactive power at the receiving node ( Q j ) in kilovolt-amperes (kVAr), and the maximum admissible current in the lines ( I i j max ) in amperes (A).
Figure 4 shows the test case powered by 33 nodes and 32 lines, where the system operates at a base voltage of 12.66 kV and a base power of 100 kVA. Notably, this is considered an urban scenario connected to the electrical grid with a single generator. This information was obtained from [43,44] and its electrical configurations, which are detailed in Table 3, have the same structure as those described in Table 2. It is important to highlight that both the urban and rural cases were assigned line current limits for the MG under analysis in each of the study cases, as it is crucial to have the information from the base case without photovoltaic DGs or batteries and using a nodal voltage limit of +/−10% of the nominal voltage of the systems.

4.2. Energy Resources

The MG integrates PV systems and lithium-ion batteries, which are strategically connected to different nodes of the network. The main objective is to ensure that these energy resources operate under strict safety and efficiency criteria, avoid system overload, and ensure optimal energy management that allows for a balanced and reliable distribution of energy. Table 4 lists the technical specifications of the elements installed in the different MGs. The first column represents the number of generators located in the MG, the second column indicates the location of the DGs at the node where they are installed, and the third column details the power of each generator.
Table 5 lists the specifications of the batteries in the test system. Here, the first column denotes the node where the battery is installed, the second column represents the type of battery, and columns three, four, and five detail the battery power and the charging and discharging times of the batteries, respectively. Each of these characteristics is specified for the different test systems used [36,45].

4.3. Power Demand and Solar Resources

Once the technical parameters of the test systems were defined, the use of generation and demand profiles to simulate an average day of MG operation was highlighted (Figure 5). It is worth mentioning that these average daily data were obtained by collecting a year’s worth of data based on solar irradiation and ambient temperature data provided by NASA POWER [44]. Therefore, they can be used for other types of generation and demand conditions. Additionally, the data are provided per unit (pu), which makes it easier to modify them for data extrapolation according to the technical and operational requirements of MGs [44,46].

4.4. Energy Cost

It is important to highlight that, for the analysis of variable energy costs in urban areas, the energy costs of the supply grid (the grid connected to the MG) must be included, because nonregulated users can generate significant variations, as shown in Figure 6. These costs are adjusted according to market fluctuations and are represented by existing nonregulated users, which facilitates their integration into the models applied for optimization and in the test systems. Data related to the price of the costs of energy production are taken from [37,47].
The elements used in the MGs, as well as the purchase and maintenance of their components, are described below. Here, the economic and environmental parameters associated with MGs and their configurations are represented by MGs connected to the power grid and autonomous MGs. In the first case, the cost of purchasing energy from the grid was 0.1302 USD/kWh, the operating cost of the diesel generator was 0.0019 USD/kWh, and the operating cost of the batteries was 0.2913 USD/kWh. The emissions associated with the grid electricity were 0.1644 kg/kWh. In the autonomous mode, both the operating cost of the battery and the cost equivalent to the energy that would come from the grid were 0.2913 USD/kWh, whereas the diesel generator maintained a cost of 0.0019 USD/kWh. The specific emissions in this case were 0.2671 kg/kWh, suggesting greater reliance on fossil fuel sources.

4.5. Computational Resources

All simulations were implemented and executed in MATLAB® R2024a on a workstation equipped with an Intel® Xeon® Silver4110 (up to 2.10 GHz), 16 GB of DDR5 RAM, a 1 TB SATA solid-state drive, and Windows 11. The multiobjective optimizers (NSGA-II, HHO, MVO, and SSA) were coded within a unified framework with vectorized evaluation of the four objectives (fixed costs, variable costs, power losses, and CO2 emissions). The AC power flow was solved at each discrete time step under quasi–steady-state assumptions, and operational constraints (voltage and current limits, battery SoC bounds, and charge/discharge power) were enforced through an additive penalty function integrated into the objective vector. The demand, PV generation, and tariff profiles were handled in the same environment to ensure consistent data management across the experiments.
This setup is intended for dispatch and short-term planning studies and does not emulate the fast switching dynamics of power electronic converters, inner control loops, or electromagnetic transients. When detailed dynamic analyses are required, the proposed formulation is directly portable to specialized tools (e.g., DIgSILENT PowerFactory, OpenDSS, and GridLAB-D) by retaining the multiobjective layer and feeding it with network states and flows computed on those platforms. The random seeds, population sizes, iterations, and stopping criteria used in the comparative study are reported in Section 5.1 to support replicability and fair comparison across methods.

5. Results and Analysis

Based on the methodology defined in Section 2, the results were obtained by validating the different test scenarios, considering the generation and demand profiles established for an average day of operation. These tests were evaluated using four multiobjective optimization algorithms. In the results analysis, the first step corresponds to the tuning or adjustment of the algorithms, with the aim of ensuring the highest possible quality solutions for the problem under study. Subsequently, the optimization methodologies for intelligent energy management with the PV DERs and the BESS are executed, with the purpose of comparing the results obtained against the baseline case. Likewise, both the performance of the algorithms and the behavior of the systems under the operating conditions of the MG were analyzed in detail to validate the proper functioning of the proposed approaches.

5.1. Algorithm Tuning

The optimization algorithms described in Section 3 were tuned to identify the parameters that best fit the problem under analysis. The adjusted parameters correspond to the maximum number of iterations, maximum number of iterations without convergence, maximum number of particles or individuals, and maximum and minimum ranges defined in the progression or evolution methodologies specific to each optimization algorithm. Tuning is performed using another algorithm responsible for optimizing and determining these parameters. In this case, a continuous genetic algorithm was used, in which the search space for the considered parameters was defined as follows: [1–100] particles or individuals, [100–20,000] maximum iterations, and [100–20,000] iterations without convergence. Meanwhile, the intrinsic parameters of each optimization algorithm were set within a working range of [0–1], with the sole exception of the parameter p of the MVO, whose range is [0–10] and which is responsible for defining the precision of the exploitation of the search space throughout the iterative process. The tuning results are presented in Table 6.

5.2. Simulation with the Test Case System

5.2.1. Rural Analysis Results 27-Node MG Feeder Test System

Different results were obtained based on the test scenarios and generation and demand profiles. The analysis began with the first scenario, consisting of 27 nodes, which was considered representative of a rural case. In this scenario, the MG operates in island mode, meaning it is isolated from the public utility grid, and its main generation system is a diesel generator. In this context, Table 7 and Figure 7 present the results obtained from the simulation performed on the test case. The information contained in Table 7 is organized as follows: the first column indicates the algorithm used; the second reports the values obtained for energy management considering a fixed energy cost, expressed in U.S. dollars (USD); the third shows the CO2 emissions calculated for each algorithm, expressed in kg of CO2/kWh; finally, the last column presents the total energy losses recorded in kWh.
It is important to note that the table presents the global minimum values reached by the objective functions. Additionally, the average values and standard deviations corresponding to each optimization algorithm are included. This analysis allows for the identification of the methods’ performance in terms of the quality of the solutions offered for the optimal energy management problem, aimed at reducing costs, CO2 emissions, and power losses in AC microgrids. Figure 7 shows the results in terms of the reduction percentages obtained with respect to the base case for the rural area. This radar chart facilitates interpretation by clearly indicating that the algorithm with the best performance, that is, the greatest reductions, is located farther from the origin, whereas the one with the least benefit, or with the worst performance compared to the base case, is positioned closer to the center of the chart. The purpose of this representation is to provide a clearer view of the results obtained through the implementation of the optimization methodologies (HHO, NGSA-II, SSA, and MVO). Additionally, it is important to note that this figure makes it possible to jointly analyze different indicators, showing the reduction percentages in terms of minimum costs, CO2 emissions, power losses, and averages of these objective functions.
It is worth noting that the table presents the global minimum values achieved by the objective functions. Additionally, it includes the average values and standard deviations corresponding to each optimization algorithm. This analysis allows for the identification of the performance of the methods in terms of the quality of the solutions offered for the optimal energy management problem, aimed at reducing costs, CO2 emissions, and power losses in AC microgrids. Figure 7 shows the results in terms of the percentage reductions obtained compared with the baseline case. This radar-type graph facilitates interpretation by illustrating that the algorithm with the best results—that is, the greatest reductions—is located farther from the origin, whereas the one with the smallest benefits or the worst performance compared to the baseline case is positioned closer to the center of the graph. The purpose of this representation is to provide a clearer view of the results obtained through the implementation of the optimization methodologies (HHO, NGSA-II, SSA, and MVO). Additionally, it is important to note that this figure allows for a joint analysis of different indicators, showing the percentage reductions in terms of minimum costs, CO2 emissions, power losses, and averages of these objective functions.
Figure 8 presents another radar analysis, but unlike the previous one, this focuses on comparing the technique that achieved the best results with the others. In this case, SSA was selected as the most stable technique because, in the previously obtained results regarding average percentages, it offered the best performance. It is important to highlight that, unlike the previous radar figure, in this representation, the technique that is closest to the origin is the one that matches or approaches the best technique, while the one that is furthest away corresponds to the one that showed the worst results.
Note that, with respect to NGSAII, in minimal terms, it surpasses SSA with improvement values of 0.001% for costs, 0.136% for CO2 emissions, and 0.001% for power losses. However, in a global comparison with the other techniques, SSA achieved better average results, with values of 0.026%, 0.918%, and 0.024%, respectively. However, regarding the average values and standard deviations of SSA compared to the other optimization techniques, it was superior in all cases. Thus, in the average results, SSA outperformed HHO by 0.012% in fixed energy costs, by 1.190% in terms of CO2 emissions, and by 0.012% in power losses. Compared to NGSAII, the improvements were 0.001%, 0.119%, and 0.001%, respectively. As for MVO, the SSA achieved advantages of 1.169% in fixed costs, 26.346% in CO2 emissions, and 1.260% in power losses. Consequently, considering the overall average fixed costs for reductions, SSA was better than all other techniques by 0.394%, by 9.218% in CO2 emissions, and by 0.425% in power losses. Finally, overall, the SSA was also superior in the standard deviations of the results compared to all techniques, with average values of 57.626% for fixed costs, 57.202% for CO2 emissions, and 57.630% for power losses.
As part of the results analysis, it is possible to observe that this information can be reinforced by Figure 9, which represents the global iterations of each optimization algorithm with respect to the objective functions analyzed, relating to fixed energy costs, CO2 emissions, and power losses. This figure shows why the MVO was the technique with the greatest dispersion of results, due to the spread of some of its solutions in terms of minimization.
Similarly, these results can be further strengthened through the nonparametric Friedman analysis, detailed in Table 8, whose approach consists of analyzing the information provided by the global solutions. This test allows for the evaluation of disparities among the values obtained in the reductions of the objective functions during the implementation of different optimization techniques. Table 8 consolidates the information derived from the Friedman test, which demonstrates significant differences in the results. For the rural tests with 27 nodes, the SSA stands out as the best optimization technique, and the MVO emerges as the least effective technique for the intelligent energy management problem.
In addition to the statistical and results analyses, Figure 10 details the analysis of confidence intervals, where the lines corresponding to the optimization algorithms and objective functions are represented. The light black shaded area indicates the range in which the mean of the population of solutions obtained by the optimization techniques is found, with a 95% confidence level. This analysis was performed to provide a deeper understanding of the variability of the results and the uncertainty associated with the optimization algorithms.
It is important to highlight the behavior of the charging and discharging states in batteries, as these are a fundamental part of intelligent energy management for reducing fixed costs, CO2 emissions, and power losses in the MG. Therefore, Figure 10 shows the best SoC behaviors obtained by the optimization methodologies; furthermore, the figure shows that at no point do any of the optimization algorithms violate the technical-operational constraints, and they remain within the SoC operating ranges of 10–90%. Figure 11 shows the behavior of the hours with the highest battery power contribution is reflected in the periods when there is no solar energy; namely, those in which there is a greater dependence on diesel generation for the rural case: hours 1–6 and 18–24 h.
Similarly, Figure 12 shows that the algorithms in each of the iterative processes do not exceed the voltage and current limits or restrictions of the lines and nodes of the MG during the 24-h operation period. This demonstrates that the objective functions and mathematical models applied within the intelligent energy management methodologies ensure operations that respect the technical and operational constraints and conditions of the MG.

5.2.2. Annual Cost Minimization for Rural AC MG

For the rural case of the 27-node test system, the optimization algorithms and energy management made it possible to achieve results that highlighted SSA and NGSAII as the best optimization techniques for intelligent energy management applied to the optimal technical-environmental dispatch of the MG that integrates PV DERs and BESSs. Since SSA was classified as the algorithm that achieved the optimal benefits for the problem, it obtained values of 10.29 USD in fixed costs for an average day of operation, 35.33 kg of CO2/kWh in CO2 emissions, and 9.433 kWh in power losses. These results allow for an average annual analysis projecting benefits of 3755.676 USD in fixed energy costs for the rural MG, 12.896 tons in CO2 emissions, and 34.430 MW in energy loss reductions.

5.2.3. Urban Analysis Results 33-Node MG Feeder Test System

Once the rural system has been analyzed, the analysis proceeds with the 33-node test system, which is considered a rural scenario in an MG connected to the main service grid, such as the EPM in the case of Medellín, Colombia. In this context, Table 9 and Figure 13 present the results derived from the simulation of the 33-node test case for the urban area. These results are organized in the same way as in the 27-node system (Table 7); however, in Table 9, a column is added that contains the energy costs, expressed in United States dollars (USD).
Figure 7 shows the results in terms of the percentage reductions obtained with respect to the base case, as analyzed in the 27-node system. The radar chart allows for easier interpretation of the information; in this figure, it can be seen that SSA and NGSAII are the best optimization techniques, while HHO and MVO yielded the worst results compared to the base case, considering that the analysis of the radar chart is the same as previously explained. Analyzing the results from the table and the figure, it can be deduced that in terms of minimum cost reductions, NGSAII ranked first with reductions of 0.165%, SSA was in second place with 0.131%, MVO took third place with 0.062%, and HHO was fourth with 0.059%. Regarding the variable energy costs and their maximum reductions obtained, SSA achieved first place with 0.706%, followed by NGSAII with 0.419%, while HHO and MVO obtained values of 0.006% and −0.016%, respectively. It is worth noting that the negative value of MVO is due to the fact that, in terms of variable energy costs, it did not achieve significant reductions in the system under consideration. As for CO2 emissions and power losses, NGSAII achieved first place with reductions of 4.019% and 0.162%, respectively. Second, SSA achieved reductions of 3.172% and 0.127%. Meanwhile, HHO and MVO, which ranked third and fourth, respectively, presented results of −0.305% and 0.011%, and 0.061% and −0.089% in terms of CO2 emissions and power losses, respectively.
On the other hand, Figure 14 shows the average percentages obtained by the optimization algorithms. Once again, SSA and NGSAII delivered the best results within the framework of the 100 global runs. In this regard, NGSAII achieved values of 0.0021%, 0.0060%, 0.1618%, and 0.0016% for fixed energy costs, variable energy costs, CO2 emissions, and power losses, respectively. In turn, the SSA obtained values of 0.0017%, 0.0101%, 0.1277%, and 0.0013% for the same objective functions.
This can be seen more clearly in Table 10, in which, upon applying the nonparametric Friedman test again, the order and hierarchy of the optimization algorithms stand out in terms of the minimum and average values obtained using the methodology applied for intelligent energy management in rural AC microgrids with PV DERs and BESSs.
Once the behavior of the different optimization algorithms was analyzed in terms of the minimum and average reduction percentages, it was necessary to rank the best optimization technique based on the quality of the solutions. Although NSGAII outperformed various aspects of the objective functions, SSA was selected as the best optimization technique because, despite ranking second in some metrics, it showed a higher level of accuracy in terms of standard deviations compared to the other techniques. Consequently, on average, compared to the other optimization techniques, the SSA achieved average percentage minimizations of 0.035% for fixed energy costs, 0.570% for variable energy costs, 1.899% for CO2 emissions, and 0.099% for power losses; whereas, for the overall mean values, the SSA reached 0.102%, 0.734%, 1.608%, and 0.095%, respectively, for the same objective functions. Moreover, in terms of standard deviations, SSA outperformed NSGAII with percentages of 7.082% for fixed energy costs over the one hundred global iterations, 23.476% for variable costs, 7.892% for CO2 emissions, and 7.082% for power losses. This highlights that the accuracy of SSA surpasses that of NSGAII within the global iterative processes concerning the execution and validation of the optimization algorithms.
This can be seen in Figure 15, which shows the global iterations of each optimization algorithm with respect to the objective functions analyzed, relating the fixed energy costs, CO2 emissions, and power losses. Note that, although NGSAII presents good results in terms of variation, SSA exhibits boxplots with greater reductions than the other optimization techniques, which classifies it as the most suitable alternative in terms of the quality of solutions offered by the stochastic nature of the optimization algorithms.
However, for this case study, confidence intervals are also used in the scenario with 33 nodes, as shown in Figure 16. As in the 27-node system, this figure details the analysis of the confidence intervals with respect to the objective functions and optimization algorithms. Similar to the previous case, the light black shaded edges represent the mean of the solutions and fall within a 95%.
Additionally, it is important to highlight the behavior of the algorithms regarding the SoC of the batteries located in the AC MG of the 33-node system within these optimization methodologies. In this case, Figure 17 shows the performance of the three battery banks. Note that technical and operational constraints of the battery SoC are not violated.
Finally, Figure 18 shows that the system never exceeds the voltage and current limits in the lines and nodes of the 33-node MG, displaying the hour-by-hour behavior for voltage at all 33 nodes and current in the 32 lines. This demonstrates and guarantees that the applied mathematical model and implemented methodologies ensure that the technical and operational constraints of the MG are satisfied at every demand level of the system.

5.2.4. Annual Cost Minimization for Urban AC MG

The results obtained so far allow us to analyze that, for the urban case of the 33-node test system in intelligent energy management applied to the technical-environmental optimal dispatch of the MG containing PV DERs and BESS, the SSA achieved the optimal benefits. Among these, the highlights are 8671 USD in fixed energy costs, 62,952 USD in variable energy costs for an average day of operation, 66,598 kg of CO2/kWh in CO2 emissions, and 10,587 kWh in power losses. When these results are projected to an average year of MG operation, they amount to 3,164,959 USD in fixed costs, 22,977,510 USD in variable energy costs, 24.308 tons of CO2 emissions, and 38.643 MW in energy loss reductions for the 33-node urban MG.
Finally, after the analysis, it is important to demonstrate that optimization algorithms exhibit certain behaviors and constraints through Pareto algorithms, as shown in Figure 19, which illustrates how different optimization algorithms behave when determining optimized solutions in terms of the quality of the solutions for each objective function. The trends and limits of the algorithms can be observed, as this represents the point of incidence where the MG functions can be further reduced.
Figure 19 summarizes the behavior of the four algorithms in the objective space (fixed cost, CO2 emissions and power losses). In each panel, the semitransparent cloud represents the population evaluated during the iterations, and the red markers correspond to the final nondominated set. The contraction of the cloud towards the red edge and the continuity of that edge are two visual indicators of the convergence and quality/diversity of the Pareto front. The figure shows that the SSA and NSGA-II form compact and well-extended fronts in the desired region (low cost, low emissions, and low losses). It is also worth noting that all the red points remain within the operational limits (voltage, current, and SoC), which explains the visible barrier that no feasible solution crosses; thus, any further improvement in one objective implies deterioration in at least one other.

6. Conclusions and Future Work

This paper presented an intelligent EMS for AC microgrids with PV–BESS through a multiobjective formulation that minimizes fixed and variable costs, power losses, and CO2 emissions. The problem was solved using Pareto fronts and hourly AC power flow with penalties. A methodology was proposed to solve scenarios related to rural MG operating in island mode and urban MG connected to the grid while maintaining operation within technical and operational limits. The following conclusions were obtained:
In the rural system with 27 nodes, coordinated PV–BESS dispatch shifted the demand during non-irradiance periods (1–6 and 18–24 h), thus reducing diesel usage and decreasing losses. The state of charge was maintained within 10–90% without violating constraints, and voltage and current profiles remained within range throughout the 24 h. Projecting to a typical year, with the best configuration found, estimated benefits are 3755.676 USD in fixed costs, 12.896 t of avoided CO2, and 34.430 MW of reduced losses.
In the urban system with 33 nodes, the inclusion of variable costs allowed the exploitation of hourly price signals through energy arbitrage without compromising the voltage quality. The scheme found a cost–technical–environmental compromise with batteries operating within the safe range of 10 to 90% and without overloading lines. The annual projection yields 3164.959 USD in fixed costs, 22,977.510 USD in variable costs, 24.308 t of CO2, and 38.643 MW of avoided losses.
Regarding the algorithms, SSA showed the most robust behavior on average (narrow confidence bands and low dispersion), making it preferable when repeatability and statistical stability are prioritized. NGSAII achieved the best minima for several objectives, serving as a reference when exploring the extremes of the Pareto front. HHO was consistent and competitive, whereas MVO showed greater sensitivity to dimensionality and tuning, with higher dispersion in some runs. In general, the portfolio {SSA, NGSAII, HHO} offers a solid balance between exploration, exploitation, and front quality.
Methodologically, combining the multiobjective formulation with AC power flow, explicit SoC management, and penalties, along with an ex-post statistical analysis (distributions and 95% confidence intervals), provides a reproducible pathway to compare techniques and support operational decisions in MGs with high renewable penetration.
From a practical standpoint, the Pareto fronts obtained in this study translate into hourly dispatch policies that can be implemented within an EMS as follows: in urban or industrial microgrids with hourly tariff signals, the solutions exploit the price signal through energy arbitrage while preserving AC feasibility (voltages, currents) and safe SoC windows; in rural or islanded settings, they systematically reduce diesel consumption and technical losses without violating operational limits. Because feasibility is enforced within the AC power flow and through explicit constraints and penalties, the schedules require no post-hoc repairs and can be ported to EMS/SCADA or specialized tools (e.g., DIgSILENT, OpenDSS, GridLAB-D) for deployment and operator training. This strengthens the direct applicability of the results to real microgrids seeking economic, technical, and environmental improvements under the integration conditions of PV-BESS.
The following extensions are proposed for future work: (i) incorporating uncertainty with robust/stochastic approaches and probabilistic forecasts of demand, irradiance, and prices, incorporating day-ahead/real-time levels; (ii) co-optimizing PV–BESS location and sizing along with hourly dispatch, including per-cycle costs and degradation models; (iii) coupling Volt/VAR control of inverters and network reconfiguration to reduce losses and improve voltage profiles while retaining the AC model; (iv) integrating demand response and flexible loads (e.g., EVs) under dynamic tariffs; (v) exploring hybrid and adaptive metaheuristics (e.g., NGSAII + SSA) with online tuning and post-Pareto decision criteria; (vi) assessing real-time operation with digital twins and hardware-in-the-loop validation; (vii) analyzing resilience to failures, unintentional islanding and extreme events (N − 1 criterion), as well as ancillary services (synthetic inertia, black start); and (viii) studying P2P and multi-energy (electric–thermal) models for community MGs. These lines strengthen the field transfer and scalability in urban and rural contexts with high PV–BESS penetration. Additionally, an experimental validation is planned in two stages: hardware-in-the-loop (HIL) using OPAL-RT coupled with MATLAB/Simulink or DIgSILENT PowerFactory to reproduce measured profiles and verify the executability of the dispatch under AC power flow, SoC management, and voltage/current limits; and a field test on a city feeder or pilot microgrid, contrasting the dispatch schedules with measurements under urban and rural scenarios.

Author Contributions

Conceptualization, investigation, methodology, and software, J.M. and J.E.C.-B. Formal analysis, writing—review and editing, J.M., J.E.C.-B. and F.E.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding authors.

Acknowledgments

The work of Jhon Montano was supported by the Automation, Electronics and Computational Sciences research group of the Instituto Tecnológico Metropolitano. Additionally, this work was supported by Minciencias, Universidad Nacional de Colombia, and Institución Universitaria ITM under the research project “Diseño de una plataforma de hardware/software para la caracterización y operación de sistemas de almacenamiento que incluyan baterías de segunda mano en microrredes eléctricas orientadas a zonas no-interconectadas de Colombia.” (Minciencias code 105895), which belongs to the research program “TULATO—Tecnologías para la adopción de sistemas energéticos y de movilidad eficientes que fomentan el desarrollo sostenible orientados a regiones con alto potencial bio social y energético como Tumaco, Nariño” (Minciencias code 1150-938-100864, ITM code RC 112721-394-2023, UNAL code 59803). The work of John E. Candelo-Becerra and Fredy E. Hoyos was supported by the Universidad Nacional de Colombia, Sede Medellín.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Kumar, A.; Jain, P.; Sharma, S. Transactive energy management for microgrids considering techno-economic perspectives of utility—A review. Int. J. Energy Res. 2022, 46, 16127–16149. [Google Scholar] [CrossRef]
  2. Jia, Y.; Wen, P.; Yan, Y.; Huo, L. Joint operation and transaction mode of rural multi microgrid and distribution network. IEEE Access 2021, 9, 14409–14421. [Google Scholar] [CrossRef]
  3. Shahzad, S.; Abbasi, M.A.; Ali, H.; Iqbal, M.; Munir, R.; Kilic, H. Possibilities, challenges, and future opportunities of microgrids: A review. Sustainability 2023, 15, 6366. [Google Scholar] [CrossRef]
  4. Zarate-Perez, E.; Rosales-Asensio, E.; González-Martínez, A.; de Simón-Martín, M.; Colmenar-Santos, A. Battery energy storage performance in microgrids: A scientific mapping perspective. Energy Rep. 2022, 8, 259–268. [Google Scholar] [CrossRef]
  5. Ganesan, S.; Subramaniam, U.; Ghodke, A.A.; Elavarasan, R.M.; Raju, K.; Bhaskar, M.S. Investigation on sizing of voltage source for a battery energy storage system in microgrid with renewable energy sources. IEEE Access 2020, 8, 188861–188874. [Google Scholar] [CrossRef]
  6. Eyimaya, S.E.; Altin, N. Review of energy management systems in microgrids. Appl. Sci. 2024, 14, 1249. [Google Scholar] [CrossRef]
  7. Gao, H.C.; Choi, J.H.; Yun, S.Y.; Lee, H.J.; Ahn, S.J. Optimal scheduling and real-time control schemes of battery energy storage system for microgrids considering contract demand and forecast uncertainty. Energies 2018, 11, 1371. [Google Scholar] [CrossRef]
  8. Javadi, M.; Gong, Y.; Chung, C.Y. Frequency stability constrained BESS sizing model for microgrids. IEEE Trans. Power Syst. 2024, 39, 2866–2878. [Google Scholar] [CrossRef]
  9. Garcia-Torres, F.; Bordons, C.; Tobajas, J.; Real-Calvo, R.; Santiago, I.; Grieu, S. Stochastic optimization of microgrids with hybrid energy storage systems for grid flexibility services considering energy forecast uncertainties. IEEE Trans. Power Syst. 2021, 36, 5537–5547. [Google Scholar] [CrossRef]
  10. Tabares, A.; Cortés, P. Using Stochastic Dual Dynamic Programming to solve the multi-stage energy management problem in microgrids. Energies 2024, 17, 2628. [Google Scholar] [CrossRef]
  11. Lee, J.; Zhang, P.; Gan, L.K.; Howey, D.A.; Osborne, M.A.; Tosi, A.; Duncan, S. Optimal operation of an energy management system using model predictive control and Gaussian process time-series modeling. IEEE J. Emerg. Sel. Top. Power Electron. 2018, 6, 1783–1795. [Google Scholar] [CrossRef]
  12. Thaler, B.; Posch, S.; Wimmer, A.; Pirker, G. Hybrid model predictive control of renewable microgrids and seasonal hydrogen storage. Int. J. Hydrogen Energy 2023, 48, 38125–38142. [Google Scholar] [CrossRef]
  13. Parisio, A.; Wiezorek, C.; Kyntäjä, T.; Elo, J.; Strunz, K.; Johansson, K.H. Cooperative MPC-based energy management for networked microgrids. IEEE Trans. Smart Grid 2017, 8, 3066–3074. [Google Scholar] [CrossRef]
  14. Garcia-Torres, F.; Báez-Gonzalez, P.; Tobajas, J.; Vazquez, F.; Nieto, E. Cooperative optimization of networked microgrids for supporting grid flexibility services using model predictive control. IEEE Trans. Smart Grid 2020, 12, 1893–1903. [Google Scholar] [CrossRef]
  15. Zhai, M.; Liu, Y.; Zhang, T.; Zhang, Y. Robust model predictive control for energy management of isolated microgrids. In Proceedings of the 2017 IEEE International Conference on Industrial Engineering and Engineering Management (IEEM), Singapore, 10–13 December 2017; pp. 2049–2053. [Google Scholar]
  16. Nair, U.R.; Costa-Castelló, R. A model predictive control-based energy management scheme for hybrid storage system in islanded microgrids. IEEE Access 2020, 8, 97809–97822. [Google Scholar] [CrossRef]
  17. Gelani, H.E.; Dastgeer, F.; Nasir, M.; Khan, S.; Guerrero, J.M. AC vs. DC distribution efficiency: Are we on the right path? Energies 2021, 14, 4039. [Google Scholar] [CrossRef]
  18. Gelani, H.E.; Dastgeer, F.; Siraj, K.; Nasir, M.; Niazi, K.A.K.; Yang, Y. Efficiency comparison of AC and DC distribution networks for modern residential localities. Appl. Sci. 2019, 9, 582. [Google Scholar] [CrossRef]
  19. Vergara, P.P.; Torquato, R.; da Silva, L.C.P. Towards a real-time Energy Management System for a Microgrid using a multi-objective genetic algorithm. In Proceedings of the 2015 IEEE Power & Energy Society General Meeting, Denver, CO, USA, 26–30 July 2015; pp. 1–5. [Google Scholar]
  20. Zhang, K.; Tang, Z. An improved multi-objective brain storm optimization algorithm for hybrid microgrid dispatch. Int. J. Swarm Intell. Res. 2024, 15, 1–21. [Google Scholar] [CrossRef]
  21. Huang, J.; Guo, H.; Luo, H. Economic optimization scheduling strategy for offshore fishing raft microgrid clusters. IEEE Access 2024, 12, 76986–76994. [Google Scholar] [CrossRef]
  22. Keshta, H.E.; Hassaballah, E.G.; Ali, A.A.; Abdel-Latif, K.M. Multi-level optimal energy management strategy for a grid tied microgrid considering uncertainty in weather conditions and load. Sci. Rep. 2024, 14, 10059. [Google Scholar] [CrossRef]
  23. Roy, A.; Olivier, J.C.; Auger, F.; Auvity, B.; Schaeffer, E.; Bourguet, S.; Schiebel, J.; Perret, J. A combined optimization of the sizing and the energy management of an industrial multi-energy microgrid: Application to a harbour area. Energy Convers. Manag. X 2021, 12, 100107. [Google Scholar] [CrossRef]
  24. Wang, Z.; Wang, T.; Niu, Q.; Wu, J.; Li, M.; Zhu, S. Research on multiobjective capacity configuration optimization of grid-connected wind–solar–storage microgrid system based on improved BWO algorithm. Energy Sci. Eng. 2024, 12, 2365–2384. [Google Scholar] [CrossRef]
  25. Modu, B.; Abdullah, M.P.; Alkassem, A.; Hamza, M.F. Optimal rule-based energy management and sizing of a grid-connected renewable energy microgrid with hybrid storage using Levy Flight Algorithm. Energy Nexus 2024, 16, 100333. [Google Scholar] [CrossRef]
  26. Kumar, R.P.; Karthikeyan, G. A multi-objective optimization solution for distributed generation energy management in microgrids with hybrid energy sources and battery storage system. J. Energy Storage 2024, 75, 109702. [Google Scholar] [CrossRef]
  27. Martinez-Rico, J.; Zulueta, E.; de Argandoña, I.R.; Fernandez-Gamiz, U.; Armendia, M. Multi-objective optimization of production scheduling using particle swarm optimization algorithm for hybrid renewable power plants with battery energy storage system. J. Mod. Power Syst. Clean Energy 2020, 9, 285–294. [Google Scholar] [CrossRef]
  28. Shaker, Y.O.; Yousri, D.; Osama, A.; Al-Gindy, A.; Tag-Eldin, E.; Allam, D. Optimal charging/discharging decision of energy storage community in grid-connected microgrid using multi-objective hunger game search optimizer. IEEE Access 2021, 9, 120774–120794. [Google Scholar] [CrossRef]
  29. Zhang, X.; Wang, Z.; Lu, Z. Multi-objective load dispatch for microgrid with electric vehicles using modified gravitational search and particle swarm optimization algorithm. Appl. Energy 2022, 306, 118018. [Google Scholar] [CrossRef]
  30. Huang, H.; Nie, S.; Lin, J.; Wang, Y.; Dong, J. Optimization of peer-to-peer power trading in a microgrid with distributed PV and battery energy storage systems. Sustainability 2020, 12, 923. [Google Scholar] [CrossRef]
  31. Parvin, M.; Yousefi, H.; Noorollahi, Y. Techno-economic optimization of a renewable micro grid using multi-objective particle swarm optimization algorithm. Energy Convers. Manag. 2023, 277, 116639. [Google Scholar] [CrossRef]
  32. Song, Z.; Guan, X.; Cheng, M. Multi-objective optimization strategy for home energy management system including PV and battery energy storage. Energy Rep. 2022, 8, 5396–5411. [Google Scholar] [CrossRef]
  33. Lu, X.; Zhou, K.; Yang, S.; Liu, H. Multi-objective optimal load dispatch of microgrid with stochastic access of electric vehicles. J. Clean. Prod. 2018, 195, 187–199. [Google Scholar] [CrossRef]
  34. Ali, A.; Liu, Z.; Ali, A.; Abbas, G.; Touti, E.; Nureldeen, W. Dynamic multi-objective optimization of grid-connected distributed resources along with battery energy storage management via improved bidirectional coevolutionary algorithm. IEEE Access 2024, 12, 58972–58992. [Google Scholar] [CrossRef]
  35. Salehi, N.; Martinez-Garcia, H.; Velasco-Quesada, G.; Guerrero, J.M. A comprehensive review of control strategies and optimization methods for individual and community microgrids. IEEE Access 2022, 10, 15935–15955. [Google Scholar] [CrossRef]
  36. Montano, J.; Guzmán-Rodríguez, J.P.; Palomeque, J.M.; González-Montoya, D. Comparison of different optimization techniques applied to optimal operation of energy storage systems in standalone and grid-connected direct current microgrids. J. Energy Storage 2024, 96, 112708. [Google Scholar] [CrossRef]
  37. Montano, J.; González-Montoya, D.; Candelo-Becerra, J.E.; Herrera-Jaramillo, D.A. Optimal energy management system and techno-economic assessment in Urban and Rural AC microgrids. J. Energy Storage 2025, 114, 115836. [Google Scholar] [CrossRef]
  38. Montano, J.; Mejia, A.F.T.; Rosales Munoz, A.A.; Andrade, F.; Garzon Rivera, O.D.; Palomeque, J.M. Salp swarm optimization algorithm for estimating the parameters of photovoltaic panels based on the three-diode model. Electronics 2021, 10, 3123. [Google Scholar] [CrossRef]
  39. Yüzgeç, U.; Kusoglu, M. Multi-objective harris hawks optimizer for multiobjective optimization problems. BSEU J. Eng. Res. Technol. 2020, 1, 31–41. [Google Scholar]
  40. Behbahani, F.M.; Ahmadi, B.; Caglar, R. Multi-objective multiverse optimization for optimal allocation of distributed energy resources: The optimal parallel processing schemes. Electr. Power Syst. Res. 2024, 231, 110298. [Google Scholar] [CrossRef]
  41. Ridha, H.M.; Gomes, C.; Hizam, H.; Mirjalili, S. Multiple scenarios multi-objective salp swarm optimization for sizing of standalone photovoltaic system. Renew. Energy 2020, 153, 1330–1345. [Google Scholar] [CrossRef]
  42. Deb, K.; Agrawal, S.; Pratap, A.; Meyarivan, T. A fast elitist non-dominated sorting genetic algorithm for multi-objective optimization: NSGA-II. In Proceedings of the International Conference on Parallel Problem Solving from Nature, Paris, France, 18–20 September 2000; Springer: Berlin/Heidelberg, Germany, 2000; pp. 849–858. [Google Scholar]
  43. Prabawa, P.; Choi, D.H. Hierarchical Volt-VAR optimization framework considering voltage Control of smart electric vehicle charging stations under uncertainty. IEEE Access 2021, 9, 123398–123413. [Google Scholar] [CrossRef]
  44. NASA. NASA Prediction of Worldwide Energy Resources; NASA: Washington, DC, USA, 2021.
  45. Montano, J.; Guzmán, J.P.; Garzón, O.D.; Barrera, A.M.R. Techno-economic approach for energy management system: Multi-objective optimization algorithms for energy storage in standalone and grid-connected DC microgrids. J. Energy Storage 2024, 102, 114069. [Google Scholar] [CrossRef]
  46. Rahmani-Andebili, M. Stochastic, adaptive, and dynamic control of energy storage systems integrated with renewable energy sources for power loss minimization. Renew. Energy 2017, 113, 1462–1471. [Google Scholar] [CrossRef]
  47. Pérez, Carolina María Gómez and Marín, Jorge Barrientos Pricing evolution in the Colombian electricity market: Does regulation matter? Electr. J. 2023, 36, 107340. [CrossRef]
Figure 1. Flowchart with the methodology used in the research.
Figure 1. Flowchart with the methodology used in the research.
Electricity 06 00068 g001
Figure 2. Nondominated Solutions, Pareto Dominance, and the Optimal Trade-off Set.
Figure 2. Nondominated Solutions, Pareto Dominance, and the Optimal Trade-off Set.
Electricity 06 00068 g002
Figure 3. Diagram of the 27-node feeder test case.
Figure 3. Diagram of the 27-node feeder test case.
Electricity 06 00068 g003
Figure 4. Diagram of the 33-node feeder test case.
Figure 4. Diagram of the 33-node feeder test case.
Electricity 06 00068 g004
Figure 5. Average daily demand and solar power generation.
Figure 5. Average daily demand and solar power generation.
Electricity 06 00068 g005
Figure 6. Variable energy cost scenario.
Figure 6. Variable energy cost scenario.
Electricity 06 00068 g006
Figure 7. Minimum and average percentage reductions achieved in the multiobjective application of rural MG with PV DERs and BESSs.
Figure 7. Minimum and average percentage reductions achieved in the multiobjective application of rural MG with PV DERs and BESSs.
Electricity 06 00068 g007
Figure 8. Reductions obtained from NGSAII compared to rural AC MG with PV DERs and BESSs.
Figure 8. Reductions obtained from NGSAII compared to rural AC MG with PV DERs and BESSs.
Electricity 06 00068 g008
Figure 9. Box plot of the different optimization algorithms applied for energy management in the rural AC MG with PV DERs and BESSs.
Figure 9. Box plot of the different optimization algorithms applied for energy management in the rural AC MG with PV DERs and BESSs.
Electricity 06 00068 g009
Figure 10. Visualization of 95% confidence intervals for multiobjective functions in the rural AC MG with PV DERs and BESSs.
Figure 10. Visualization of 95% confidence intervals for multiobjective functions in the rural AC MG with PV DERs and BESSs.
Electricity 06 00068 g010
Figure 11. Battery charging and discharging states for multiobjective functions in the rural AC MG with PV DERs and BESSs.
Figure 11. Battery charging and discharging states for multiobjective functions in the rural AC MG with PV DERs and BESSs.
Electricity 06 00068 g011
Figure 12. Current and voltage values obtained by different optimization algorithms in the rural AC MG with PV DERs and BESSs for lines and nodes over a 24 h period.
Figure 12. Current and voltage values obtained by different optimization algorithms in the rural AC MG with PV DERs and BESSs for lines and nodes over a 24 h period.
Electricity 06 00068 g012
Figure 13. Minimum and average percentage reductions achieved in the multiobjective application of urban MG with PV DERs and BESSs.
Figure 13. Minimum and average percentage reductions achieved in the multiobjective application of urban MG with PV DERs and BESSs.
Electricity 06 00068 g013
Figure 14. Reductions obtained from NGSAII compared to urban AC MG with PV DERs and BESSs.
Figure 14. Reductions obtained from NGSAII compared to urban AC MG with PV DERs and BESSs.
Electricity 06 00068 g014
Figure 15. Box plot of the different optimization algorithms applied for energy management in the urban AC MG with PV DERs and BESSs.
Figure 15. Box plot of the different optimization algorithms applied for energy management in the urban AC MG with PV DERs and BESSs.
Electricity 06 00068 g015
Figure 16. Visualization of 95% confidence intervals for multiobjective functions in the urban AC MG with PV DERs and BESSs.
Figure 16. Visualization of 95% confidence intervals for multiobjective functions in the urban AC MG with PV DERs and BESSs.
Electricity 06 00068 g016
Figure 17. Battery charging and discharging states for multiobjective functions in the urban AC MG with PV DERs and BESSs.
Figure 17. Battery charging and discharging states for multiobjective functions in the urban AC MG with PV DERs and BESSs.
Electricity 06 00068 g017
Figure 18. Current and voltage values obtained by different optimization algorithms in the urban AC MG with PV DERs and BESSs for lines and nodes over a 24 h period.
Figure 18. Current and voltage values obtained by different optimization algorithms in the urban AC MG with PV DERs and BESSs for lines and nodes over a 24 h period.
Electricity 06 00068 g018
Figure 19. Convergence of solutions with respect to the Pareto frontier of each of the optimization algorithms within the iterative process.
Figure 19. Convergence of solutions with respect to the Pareto frontier of each of the optimization algorithms within the iterative process.
Electricity 06 00068 g019
Table 1. Literature review and gaps.
Table 1. Literature review and gaps.
Ref.Energy CostPower LossesCO2 EmissionsParetoMulti DERsMultinodal MGPenaltiesStatisticsUrban + Rural
[19]
[20]
[21]
[22]
[23]
[24]
[25]
[26]
[27]
[28]
[29]
[30]
[31]
[32]
[33]
[34]
Our approach
Table 2. Electrical parameters for the AC MG 27-node feeder test case system.
Table 2. Electrical parameters for the AC MG 27-node feeder test case system.
Line lNode iNode j R ij ( Ω ) X ij ( Ω ) P j (kW) Q j (kVAr) I ij max (A)
1120.01400.605100240
2230.74631.078300165
3340.40520.5855297.50184.3795
4451.15241.66500085
5560.52610.7601255.00158.0370
6670.71271.02960055
7781.66282.4024212.50131.7055
8895.34343.13200020
99102.15221.2615266.05164.8820
102110.40520.585585.0052.6870
1111121.15241.6650340210.7170
1212130.52610.7601297.50184.3755
1313141.23581.1332191.25118.5330
1414152.88352.6440106.2565.8520
1515165.34343.1320255.00158.0320
163171.29421.1867255.00158.0370
1717180.70270.6443127.5079.0255
1818193.32341.9480297.50184.3740
1919201.51720.8893340210.7125
2020210.71271.029685.0052.6820
214228.25282.9911106.2565.8520
225239.19613.333055.2534.2420
236240.74631.078369.7043.2020
248252.01120.7289255.00158.0320
258263.32341.948063.7539.5120
2626270.52610.7601170105.3620
Table 3. Electrical parameters for the AC MG 33-node feeder test case system.
Table 3. Electrical parameters for the AC MG 33-node feeder test case system.
Line lNode iNode j R ij ( Ω ) X ij ( Ω ) P j (kW) Q j (kVAr) I ij max (A)
1120.09220.047710060385
2230.49300.25119040355
3340.36600.186412080240
4450.38110.19416030240
5560.81900.70706020240
6670.18720.6188200100110
7781.71141.235120010085
8891.03000.7400602070
99101.04000.7400602070
1010110.19660.0650453055
1111120.37440.1238603555
1212131.46801.1550603555
1313140.54160.71291208040
1414150.59100.5260601025
1515160.74630.5450602020
1616171.28901.7210602020
1717180.73200.5740904020
182190.16400.1565904040
1919201.50421.3554904025
2020210.40950.4784904020
2121220.70890.9373904020
223230.45120.3083905085
2323240.89800.709142020085
2424250.89600.701142020040
256260.20300.10346025125
2626270.28420.14476025110
2727281.05900.93376020110
2828290.80420.700612070110
2929300.50750.258520060095
3030310.97440.96301507055
3131320.31050.361921010030
3232330.34100.5302604020
Table 4. Locations and power ratings of the PV DGs in each test system.
Table 4. Locations and power ratings of the PV DGs in each test system.
27-Node Feeder Test
Case System (Rural)
33-Node Feeder Test
Case System (Urban)
Node P DG  (kW)Node P DG  (kW)
51012.5121125
91188251320
19899.130999
Table 5. Location and characteristics of the batteries in the test systems.
Table 5. Location and characteristics of the batteries in the test systems.
Battery 27-Node Feeder Test Case System (Rural)
NodeType P B  (kW) t c  (h) t d  (h)
3C1200055
8A1100044
19B1150044
Battery 33-Node Feeder Test Case System (Urban)
NodeType P B  (kW) t c  (h) t d  (h)
6C1200055
14A1100044
31B1150044
Table 6. Optimal parameters obtained after the tuning of the HHO, NGSAII, SSA, and MVO algorithms.
Table 6. Optimal parameters obtained after the tuning of the HHO, NGSAII, SSA, and MVO algorithms.
MethodOptimization ParametersValue
HHONumber of particles65
Maximum number of iterations8890
Maximum number of repetitions without improvement6065
NGSAIINumber of particles30
Maximum number of iterations5215
Maximum number of repetitions without improvement1890
Crossover probability ( p c ) 0.983
Mutation probability ( p m ) 0.104
Mutation intensity ( m s ) 0.0177
SSANumber of particles96
Maximum number of iterations9175
Maximum number of repetitions without improvement7142
MVONumber of particles94
Maximum number of iterations9070
Maximum number of repetitions without improvement7950
Accuracy of exploitation (p)6
Table 7. Results of the optimization with the four algorithms application of rural MG with PV DERs and BESSs.
Table 7. Results of the optimization with the four algorithms application of rural MG with PV DERs and BESSs.
Minimum Objective Function
MethodFixed Cost (USD)Emissions
(kgCO2/kWh)
Power
Losses (kWh)
Base case + PV15,424.030582.37714,125.660
HHO15,414.215548.67614,116.662
NGSAII15,412.460542.65114,115.053
SSA15,412.675543.38814,115.250
MVO15,423.260554.06414,124.127
Average Objective Function
MethodFixed Cost (USD)Emissions
(kgCO2/kWh)
Power
Losses (kWh)
HHO15,415.660553.63614,117.987
NGSAII15,413.930547.69714,116.401
SSA15,413.740547.04714,116.227
MVO15,596.104742.72914,296.431
Standard Deviation (%)
MethodFixed Cost (USD)Emissions
(kgCO2/kWh)
Power
Losses (kWh)
HHO5.267   ×   10 5 5.035   ×   10 3 5.274   ×   10 5
NGSAII4.031   ×   10 5 3.895   ×   10 3 4.037   ×   10 5
SSA2.899   ×   10 5 2.805   ×   10 3 2.903   ×   10 5
MVO1.946   ×   10 2 4.126   ×   10 1 2.123   ×   10 2
Table 8. Classification of the three objective functions based on multiobjective algorithms using Friedman’s nonparametric test in the rural AC grid with PV and BESS DERs.
Table 8. Classification of the three objective functions based on multiobjective algorithms using Friedman’s nonparametric test in the rural AC grid with PV and BESS DERs.
MethodFixed CostRankCO2 EmissionsRankPower LossRank
SSA15,413.7401547.047114,116.2271
NGSAII15,413.9302547.697214,116.4012
HHO15,415.6603553.636314,117.9873
MVO15,596.1044742.729414,296.4314
Table 9. Results of the optimization with the four algorithms application of urban MG with PV DERs and BESSs.
Table 9. Results of the optimization with the four algorithms application of urban MG with PV DERs and BESSs.
Minimum Objective Function
MethodFixed
Cost (USD)
Variable
Cost (USD)
Emissions
(kgCO2/kWh)
Power
Losses (kWh)
Base case + PV7859.0276999.0532484.5759887.048
HHO7854.37776998.66002492.15759885.9473
NGSAII7846.02576969.74232384.70949870.9924
SSA7848.76576949.64222405.75779874.4523
MVO7854.13097000.19552483.06729895.8229
Mean Objective Function
MethodFixed
Cost (USD)
Variable
Cost (USD)
Emissions
(kgCO2/kWh)
Power
Losses (kWh)
HHO7863.65527004.66472489.24249891.7415
NGSAII7847.49876954.51742396.02529872.8525
SSA7850.35636936.10092417.97679876.4609
MVO7863.93517003.30362489.64159893.0226
Standard Deviation [%]
MethodFixed
Cost (USD)
Variable
Cost (USD)
Emissions
(kgCO2/kWh)
Power
Losses (kWh)
HHO7.035   ×   10 4 8.482   ×   10 4 2.356   ×   10 3 5.819   ×   10 4
NGSAII1.013   ×   10 4 1.334   ×   10 3 2.548   ×   10 3 1.016   ×   10 4
SSA9.410   ×   10 5 1.021   ×   10 3 2.347   ×   10 3 9.445   ×   10 5
MVO7.667   ×   10 4 8.596   ×   10 4 2.196   ×   10 3 5.795   ×   10 4
Table 10. Classification of the four objective functions based on multiobjective algorithms using Friedman’s nonparametric test in the rural AC grid with PV and BESS DERs.
Table 10. Classification of the four objective functions based on multiobjective algorithms using Friedman’s nonparametric test in the rural AC grid with PV and BESS DERs.
MethodFixed
Cost
RankVariable
Cost
RankPower
Loss
RankCO2
Emissions
Rank
NGSAII7847.49916954.51722396.02519872.8531
SSA7850.35626936.10112417.97729876.4612
HHO7863.65537003.30432489.24239891.7423
MVO7863.93547004.66542489.64249893.0234
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Montano, J.; Candelo-Becerra, J.E.; Hoyos, F.E. A Pareto Multiobjective Optimization Power Dispatch for Rural and Urban AC Microgrids with Photovoltaic Panels and Battery Energy Storage Systems. Electricity 2025, 6, 68. https://doi.org/10.3390/electricity6040068

AMA Style

Montano J, Candelo-Becerra JE, Hoyos FE. A Pareto Multiobjective Optimization Power Dispatch for Rural and Urban AC Microgrids with Photovoltaic Panels and Battery Energy Storage Systems. Electricity. 2025; 6(4):68. https://doi.org/10.3390/electricity6040068

Chicago/Turabian Style

Montano, Jhon, John E. Candelo-Becerra, and Fredy E. Hoyos. 2025. "A Pareto Multiobjective Optimization Power Dispatch for Rural and Urban AC Microgrids with Photovoltaic Panels and Battery Energy Storage Systems" Electricity 6, no. 4: 68. https://doi.org/10.3390/electricity6040068

APA Style

Montano, J., Candelo-Becerra, J. E., & Hoyos, F. E. (2025). A Pareto Multiobjective Optimization Power Dispatch for Rural and Urban AC Microgrids with Photovoltaic Panels and Battery Energy Storage Systems. Electricity, 6(4), 68. https://doi.org/10.3390/electricity6040068

Article Metrics

Back to TopTop