Next Article in Journal
Optimal Sizing of Residential PV and Battery Systems Under Grid Export Constraints: An Estonian Case Study
Previous Article in Journal
Forecasting Short-Term Photovoltaic Energy Production to Optimize Self-Consumption in Home Systems Based on Real-World Meteorological Data and Machine Learning
Previous Article in Special Issue
ELM-Bench: A Multidimensional Methodological Framework for Large Language Model Evaluation in Electricity Markets
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Economic Optimization of a Grid-Connected Hybrid Renewable System with an Electromagnetic Frequency Regulator Using a Genetic Algorithm

by
Aziz Oloroun-Shola Bissiriou
1,†,
Joale de Carvalho Pereira
1,†,
Ednardo Pereira da Rocha
2,†,
Ricardo Ferreira Pinheiro
1,†,
Elmer Rolando Llanos Villarreal
3,† and
Andrés Ortiz Salazar
1,4,*,†
1
Department of Computer Engineering and Automation, Federal University of Rio Grande do Norte (DCA-UFRN), Natal 59072-970, Brazil
2
Department of Engineering and Technology, Federal Rural University of Semi-Arid (DET-UFERSA), Mossoró 59625-900, Brazil
3
Department of Natural Sciences, Mathematics, and Statistics, Federal Rural University of Semi-Arid (DCME-UFERSA), Mossoró 59625-900, Brazil
4
Centre for Renewable Energy and Rational Use of Energy (CER-UNI), National University of Engineering, Tupac Amaru Avenue 210, 25, Lima 15333, Peru
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Energies 2025, 18(16), 4404; https://doi.org/10.3390/en18164404
Submission received: 29 June 2025 / Revised: 26 July 2025 / Accepted: 12 August 2025 / Published: 19 August 2025

Abstract

This paper presents a comprehensive economic optimization of a grid-connected hybrid renewable energy system (HRES) enhanced with an electromagnetic frequency regulator (EFR) to improve frequency stability and provide clean and continuous electricity to the Macau City Campus while reducing dependence on fossil sources. The system includes photovoltaic (PV) arrays, wind turbines, battery storage, EFR, and a backup diesel generator. A genetic algorithm (GA) is employed to optimally size these components with the objective of maximizing the net present value (NPV) over the system’s lifetime. The GA implementation was validated on standard benchmark functions to ensure correctness and was finely tuned for robust convergence. Comprehensive sensitivity analyses of key parameters (discount rate, component costs, resource availability, etc.) were performed to assess solution robustness. The optimized design ( PV 35 kWp , WT = 30 kW , ESS 200 kWh , and EFR = 30 kW ) achieves a highly positive net present value of BRL 1.86 M in 2015 values (BRL 3.11 M in 2025) and discounted payback in approximately 9 years. A comparative assessment with the 2015 baseline project revealed up to a 10.1% enhancement in the net present value, underscoring the economic advantages of the optimized design. These results confirm the system’s strong economic viability and environmental benefits, providing a valuable guideline for future grid-connected hybrid energy systems.

1. Introduction

The growth in energy demand, coupled with concerns about sustainability, has significantly boosted the integration of renewable sources into the electricity system. Among the most promising solutions are hybrid systems made up of solar photovoltaic generation, wind power, and battery storage [1,2]. These configurations, known as distributed generation systems, can operate autonomously or be connected to the main electricity grid, promoting greater efficiency and resilience in the supply of electricity. In order for these systems to be technically viable and economically attractive, they must be optimally sized. This means minimizing investment and operating costs, as well as greenhouse gas emissions (such as CO2) while ensuring high levels of operational reliability. In addition, regulatory policies and charging mechanisms linked to interaction with the electricity grid, such as charging for exported energy, have become integrated components in the energy planning of hybrid systems. This reinforces the importance of broader, integrated, and multi-objective optimization approaches.
Various optimization methods have been used in the literature to achieve this balance, including heuristic algorithms such as PSO (particle swarm optimization), GA (genetic algorithms), and MILP (mixed integer linear programming), as well as specialized computational tools such as HOMER and GAMS. A notable example is the study by Ismail et al. [3], which proposes an optimization model based on genetic algorithms for designing hybrid systems composed of photovoltaic (PV) panels, microturbines (or diesel generators), and battery banks. The study’s aim is to minimize the cost of energy generated (COE), reduce polluting emissions, and ensure a continuous supply to small rural communities located in Palestine. In a similar vein, Yang et al. [4] developed a GA-based optimization model for solar–wind–battery systems, using the annualized cost of the system (ACS) as the economic metric and the loss of load probability (LPSP) as the technical criterion. The actual application of the model to a telecommunications station demonstrated consistent performance throughout the year, with an LPSP of less than 2%, reinforcing the potential of this approach for remote areas. Complementing this panorama, Dufo-López and Bernal-Agustín [5] proposed a multi-objective optimization framework for complex hybrid systems (PV, wind, diesel, hydrogen, and batteries), using the SPEA algorithm to simultaneously minimize total system cost (NPC), C O 2 emissions, and unserved load (UL). The model generates a set of Pareto solutions, offering the designer flexibility to choose between multiple technically feasible and environmentally sustainable alternatives.
Recently, Paulitschke et al. [6] proposed an optimization model that simultaneously integrates component sizing and energy management control parameters in PV–battery–hydrogen hybrid systems. The study introduces an enhanced particle swarm algorithm (EPSO), capable of dealing with the complexity and non-linearity of the problem, including invalid regions in the search space. Another approach that has been gaining prominence in recent years is the use of artificial intelligence (AI) for dimensioning in hybrid systems. For example, in [7], a new framework for optimal sizing of autonomous hybrid energy systems (photovoltaic, wind, and hydrogen) was proposed. This approach incorporates weather forecasts and a hybrid heuristic algorithm based on chaotic search, harmony search, and simulated annealing, aided by artificial neural networks for predicting solar radiation, ambient temperature, and wind speed. The study shows that combining weather forecasts via an artificial neural network (ANN) with a hybrid search algorithm significantly improves the sizing of hybrid off-grid systems. Along the same lines, Zhang et al. [8] developed an optimization approach based on hybrid simulated annealing (HCHSA), combining harmonic and chaotic search techniques, for the optimal sizing of PV/wind hybrid systems with battery and hydrogen storage. The model considers four decision variables, areas of solar collectors and wind rotors, number of batteries and hydrogen tanks, with the aim of minimizing the life cycle cost (LCC) of the system. Applied to a remote region in Iran, the study evaluated six different hybrid system configurations. The results indicated that the solar/wind combination with batteries offers the best technical-economic performance, even outperforming systems with hydrogen storage.
In remote locations such as Sabah, Malaysia, electrification still depends mostly on isolated diesel generators, which are associated with high fuel costs and significant environmental impacts. The adoption of hybrid systems with photovoltaic panels and batteries has emerged as a promising alternative to increase supply reliability, reduce emissions, and lower the levelized cost of energy (LCOE). In [9]’s study, specialized HOMER software was used to model and compare different generation scenarios, including pure diesel arrangements, PV/diesel/battery hybrid systems (in current and optimized configurations), and a 100% PV/battery-based system, with a focus on evaluating technical, economic and environmental performance. The optimized PV/diesel/battery hybrid system presents the best compromise between reliability, cost, and environmental impact. The 100% PV/battery scenario, although emission-free, is still economically unviable due to the high investment costs in PV and batteries. In addition, Sen and Bhattacharyya [10] proposed a comprehensive approach for sizing and evaluating hybrid off-grid systems in remote villages. Also, using the HOMER software, the authors modeled different combinations of micro-hydropower, solar panels, wind turbines, and biodiesel generators, seeking to identify the most technically reliable and economically viable solution.
Complementing this perspective, Gu et al. [11] proposed a techno-economic evaluation model for PV/T solar concentrators applied to the building sector in Sweden, using Monte Carlo simulation techniques to incorporate uncertainties associated with technical and financial variables. The study analyzed the combined impacts of 11 critical parameters, such as solar radiation, interest and inflation rates, collector efficiency, and cost of capital, on metrics such as levelized cost of energy (LCOE), net present value (NPV), and payback. The reference configuration analyzed achieved an average LCOE of SEK 1.27/kWh, a positive NPV of approximately EUR 1,880, and an estimated payback period of 10 years.
Based on the literature reviewed, there is a consolidated trend towards the use of genetic algorithms as an effective optimization method for sizing the components of hybrid systems, especially when it comes to selecting the most efficient configurations between components such as photovoltaic panels, wind turbines, storage systems, and auxiliary generators. Works such as those by Ismail et al. [3], Yang et al. [4], and Dufo-López and Bernal-Agustion [5] demonstrate that the GA is capable of exploring complex and non-linear solution spaces, allowing optimal arrangements to be found that minimize indicators such as the levelized cost of energy (LCOE), C O 2 emissions, and the probability of load shedding (LPSP). In addition, many of these studies consider the use of diesel generators as an integral part of hybrid solutions, not only because of their reliability but also to guarantee load service in critical scenarios, especially in isolated regions. However, arrangements that combine renewable sources with well-designed storage tend to significantly reduce the time of use and costs associated with fossil generators [9,10]. Another recurring aspect is the emphasis on maximizing net present value (NPV) as the main metric of economic attractiveness. Studies such as those by Gu et al. [11] and Zhang et al. [8] reinforce that considering discounted cash flows over the useful life of the system allows for a more realistic assessment of the viability of the project, especially when variables such as inflation, interest rates, operating costs, and climatic uncertainties are incorporated.
On the other hand, conventional wind systems connected to the grid, such as turbines with synchronous generators or double-fed generators controlled by converters, still present challenges such as high maintenance costs, degradation of power quality due to harmonics, and the complexity of power converters [1]. In this scenario, the electromagnetic frequency regulator (EFR) has emerged as an innovative alternative, with the potential to mitigate harmonics and facilitate direct hybridization with auxiliary sources via the DC bus of the inverter [1,12,13,14]. The EFR’s architecture, based on an induction machine with a rotating armature, enables the conversion of variable wind speeds into frequencies compatible with the electricity grid, promoting greater electromechanical robustness and integration with hybrid systems.
This paper proposes the sizing and technical-economic analysis of a hybrid renewable energy system (HRES) made up of photovoltaic panels, wind turbines, a diesel generator, and a battery bank (BB), to be applied to UFRN’s Macau Campus and connected to the electricity grid. Inspired by the approach of Delson et al. [15], three improvements are made to the computational model: (i) adjustment of the temperature coefficients of the PV modules and incorporation of shading and degradation losses; (ii) parameterization of the turbine power curve considering aerodynamic corrections; and (iii) hourly simulation integrated with the evolution of the state of charge (SoC) of the batteries. A genetic algorithm is then used to simultaneously optimize the installed capacity of each component in order to maximize the net present value (NPV) over 20 years. Finally, we carry out a comparative study of the results obtained with the proposed method and with the original sizing presented by Delson et al. [15], highlighting gains in cash flow accuracy and economic viability.
This article is structured as follows: Section 1 introduces the study’s motivation, objectives, and a literature review. Section 2 provides a detailed description of the grid-connected hybrid system and its components (PV modules, wind turbine, EFR, and battery bank). Section 3 formulates the mathematical model of the HRES, including generation equations and storage dynamics. Section 4 outlines the genetic algorithm employed for optimal system sizing. Section 5 defines the NPV-based objective function, detailing cash-flow formulations and constraints. Section 6 presents GA validation results using benchmark functions. Section 7 describes the simulation setup, and Section 8 reports the simulation outcomes. Section 9 examines the sensitivity analysis, while Section 10 compares the proposed design against the reference project using a unified NPV methodology. Finally, Section 11 discusses key findings, limitations, and practical implications, and Section 12 offers concluding remarks and future research recommendations.

2. Description of the Grid-Connected Hybrid Energy System

This article proposes a hybrid renewable energy generation system with the aim of providing clean and continuous electricity to the Macau City Campus while reducing dependence on fossil sources. Figure 1 shows the topology of the proposed configuration, which integrates wind turbines (WT), photovoltaic panels (PV), an energy storage system (ESS), a diesel generator (DG), an electromagnetic frequency regulator (EFR), a synchronous generator (SG), the campus load, and the connection point to the electricity grid. The system’s operation is coordinated by a centralized energy management system (EMS), which is responsible for real-time control of energy flows.
The wind turbine converts the wind’s kinetic energy into mechanical power ( P W T H ), which is transferred via a set of gears to the EFR. This electromagnetic device creates a rotating magnetic field that mechanically drives the SG, allowing the generation of alternating current ( P S G A C ) compatible with the AC bus. The energy produced can be directed to meet the campus load ( P L ) or exported to the electricity grid ( P G ).
The direct current sources, consisting of the photovoltaic modules and the battery bank, are connected to the system via a DC/AC inverter. This inverter is also responsible for regulating the rotation speed of the EFR rotor, keeping it constant to ensure the stability of the generated frequency. The EMS monitors and controls critical operating variables in real time, such as the power supplied by each source ( P W T H , P P V , and P B S S ), the exchange with the grid ( P G ), and the ESS state of charge ( ρ S o C ). Based on the instantaneous operating conditions, the EMS controls the switches ( S w 1 to S w 6 ) and the automatic transfer switch (ATS) in order to prioritize the use of renewable sources, store surplus energy, or activate auxiliary sources, depending on demand.
In addition, the system incorporates an emergency diesel generator, used exclusively in extreme conditions. This resource is activated, for example, during simultaneous failures of wind and solar generation at night, when the battery bank does not have enough energy to keep the DC bus voltage within operating limits. Therefore, the proposed system stands out for its operational flexibility, robustness in the face of adverse scenarios, and ability to efficiently integrate multiple renewable and conventional energy sources.

3. Mathematical Model of the Hybrid Renewable Energy System (HRES)

This section presents the sizing of the components of the grid-connected HRES. The actual meteorological data, such as wind speed and solar radiation, were obtained from the NASA database. Based on this information, mathematical models were developed for the main components of the system: the campus electrical loads, the photovoltaic (PV) system, the wind turbine, the EFR, and the energy storage system (ESS). These models considered input variables including climate data (wind speed and solar radiation), the energy consumption profile of the academic unit, and equipment specifications such as nominal power, efficiency, and useful life.

3.1. Load Model

The load profile, which represents the variation in energy demand over the course of a typical day, was based on data provided by [15] and is illustrated in Figure 2. This figure shows the average hourly energy demand over a 24-h period. The daily energy consumption ( E l o a d ) is calculated by adding up the power consumed in each time interval and multiplying by the duration of that interval ( Δ t ) [16]:
E l o a d ( k ) = P f i x e d ( k ) + i = 1 N t P i ( k ) · Δ t , k = 1 , , 24 .
In this Equation (1), P f i x e d ( k ) represents constant energy consumption (e.g., lighting or fixed equipment), while P i ( k ) corresponds to the power consumed by the i-th controllable load (e.g., appliances that can be switched on or off). The parameter N t indicates the total number of controllable loads.

3.2. Photovoltaic Model

The photovoltaic system model estimates the power generated by the solar panels, denoted as P s o l a r ( t ) , based on factors such as solar irradiance, ambient temperature, cell temperature, and equipment efficiency. The output power is probided by the following equation [17]:
P s o l a r ( t ) = I t ( t ) · A p v · 1 ψ T m o d ( t ) T r e f · η C C ,
where I t ( t ) is the solar irradiance at the optimum tilt angle, A p v is the total area of the solar panels, and ψ is the temperature coefficient, typically 0.5%/°C, indicating the reduction in power due to the increase in temperature [18]. η C C is the efficiency of the DC/DC converter that regulates the output. The module temperature T m o d ( t ) is calculated based on the ambient temperature T a m b ( t ) and the solar irradiance using Equation (3):
T m o d ( t ) = T a m b ( t ) + NOTC T c r 0 , 8 · I G ( t ) I s t c ,
where T a m b ( t ) is the ambient temperature at time t, NOTC is the nominal operating temperature of the cell (supplied by the manufacturer under conditions of 800 W/m2 and 20 °C), and T c r is the reference temperature, typically 20 °C. Figure 3 presents the seasonal distribution of solar irradiance in the Macau/RN region, with hourly data collected by NASA throughout 2015, showing the variations in the intensity of sunlight during each season of the year.

3.3. Wind Turbine Model

To calculate the power generated by the wind turbine, it is necessary to adjust the measured wind speed to the turbine’s hub height, as the measuring equipment (anemometers) is typically located at different heights. The relationship between wind speed at hub height u ( h 2 ) and anemometer height h 1 is provided by the following:
u ( h 2 ) u ( h 1 ) = h 2 h 1 β .
In this Equation (4), u ( h 2 ) is the wind speed (in meters per second) at the height of the cube h 2 , and h 1 is the height of the anemometer. The exponent β depends on the terrain, time, and season, but it is typically around 1 7 , as proposed by Johnson (1985) [19].
The output power of the wind turbine P w t ( t ) depends on the wind speed u ( t ) and is modeled as follows [20]:
P w t ( t ) = P w t , r · u 3 ( t ) u m i n 3 u r 3 u m i n 3 if u m i n u ( t ) u r , P w t , r if u r < u ( t ) < u m a x , 0 otherwise , ,
where P w t , r is the turbine’s nominal power, u ( t ) is the instantaneous wind speed, u m i n is the minimum speed for power generation, u r is the nominal speed, and u m a x is the maximum speed, above which the turbine is shut down for protection. Here, the wind speed data were obtained from the INMET database for the same period as the solar data, measuring at a height of 17.37 meters at hourly intervals, totaling 8760 data points.
The nominal power of the wind turbine P w t , r is calculated from the maximum power coefficient C p , m a x , the air density ( ρ ), the area swept by the rotor blades ( π D r 2 4 ), and the nominal wind speed u r , as expressed in [20]:
P w t , r = C p , m a x ( 0.5 ) ρ ( π D r 2 4 ) u r 3 .
Figure 4 illustrates the seasonal distribution of wind speed in the same region and period, showing how the wind profiles behave in summer, autumn, winter, and spring.

3.4. Modeling of the Electromagnetic Frequency Regulator (EFR)

The EFR’s rated power ( P E F R ) is sized equal to the wind turbine’s rated power ( P w t , r ) due to its direct mechanical coupling and shared nominal rotational speed [13]. This power-matching strategy ensures torque compatibility while maximizing energy conversion efficiency, as validated experimentally in EFR-based systems (cf. [1]). Transient stability analyses further confirm this approach maintains operational integrity during wind speed fluctuations and abrupt load changes [1].
P E F R = P w t , r .
This relationship ensures that the EFR operates at the same angular speed as the turbine, maximizing energy conversion efficiency. This technology offers several advantages compared to conventional wind systems: (i) reduced maintenance costs, i.e., by eliminating the need for complex power converters, the EFR reduces maintenance costs and increases reliability; (ii) improved power quality, i.e., by mitigating harmonics and voltage fluctuations, this ensures compliance with grid quality standards; (iii) hybrid integration, i.e., facilitating direct hybridization with other energy sources (such as PV and ESS) through the EFR armature slip rings. Thus, the EFR works in conjunction with the wind turbine and the synchronous generator to provide AC power that can be used directly by the campus or exported to the COSERN grid in Rio Grande do Norte, Brazil.

3.5. Modeling of the Battery Energy Storage System

In hybrid renewable energy systems, the energy storage system (ESS) plays a critical role in mitigating the variability inherent in renewable sources, such as solar PV. Accurate modeling of the ESS is essential to ensure system reliability, meet load demand, and optimize economic costs. In this study, the ESS model is based on the daily energy balance between generation and demand, adopting the methodology proposed by Lai and McCulloch (2017) [21] for hybrid systems with high solar energy utilization. Thus, ESS sizing is based on the difference between PV generation and load demand over a 24-h period. For the UFRN campus in Macau/RN, the daily energy surplus was estimated at 120 kWh, as illustrated in Figure 5. This surplus ensures that the ESS can store energy during periods of high solar generation and supply it during periods of low generation or high demand, such as at night or on cloudy days. For the UFRN campus in Macau/RN, the daily energy surplus was estimated at 120 kWh, corresponding to the area under the photovoltaic curve above demand (highlighted in green in Figure 5). Note that although total daily consumption is higher than the peak generated, only the period in which PV generation exceeds load results in energy available for storage or injection into the grid. This value of 120 kWh was used as the minimum reference for storage capacity. However, the genetic algorithm applied to the sizing of the hybrid system identified an optimum storage capacity close to 200 kWh, in order to more reliably meet fluctuations in generation and demand.
The state of charge (SoC) of the battery at any time (t) is modeled by the following equation:
S o C ( t ) = S o C ( t 1 ) + [ E P V ( t ) E l o a d η i n v ] · η b a t ,
where
  • SoC ( t ) is the state of charge at time (t);
  • E P V ( t ) is the energy generated by the PV system at time (t) (kWh);
  • E load represents the energy demanded by the load at time (t) (kWh);
  • η inv is the inverter efficiency (typically 0.95), and η bat is the battery efficiency.
This equation reflects the hourly dynamics of the SoC, considering the energy generated by the PV system that is directed to the battery, the output to meet demand (adjusted by the inverter efficiency), and the losses associated with battery efficiency. ESS sizing is adjusted to operate within the safe depth of discharge (DoD) limits, in this case between 20% and 80% for lithium-ion batteries, in order to maximize service life.

4. Genetic Algorithm for Optimal Sizing of HRES

Genetic algorithms (GAs) are a class of stochastic optimization methods inspired by the principles of natural evolution, as originally formulated by John H. Holland (1975) [22] and later popularized by Goldberg (1989) [23]. Such algorithms are widely used to solve complex optimization problems, characterized by multidimensional, non-linear, and often multimodal search spaces [24].
One of the most common representations in GAs is binary, where each individual is encoded as a sequence of bits (0 and 1). However, alternative representations, such as real values or permutations, are also frequently used depending on the problem [25].
The main genetic operators are as follows:
  • Selection: Individuals with higher fitness, determined by an objective function, have a higher probability of being selected for reproduction. Common techniques include roulette and binary tournament [26].
  • Crossover: Combines characteristics of two individuals (parents) to generate offspring. A classic example is the one-point crossover, in which segments of the parents are recombined [24].
  • Mutation: Small random perturbations are introduced into the chromosomes, preserving genetic diversity and preventing premature convergence [25].
The iterative process of a GA can be summarized in the following steps [24]:
  • Initialization: Random generation of an initial population.
  • Evaluation: Calculation of the fitness of each individual based on the objective function.
  • Selection: Selection of the fittest individuals for reproduction.
  • Application of Operators: Crossover and mutation to create a new generation.
  • Stopping Criterion: Verification of convergence or maximum number of generations.
GAs have been widely applied in the optimization of renewable energy systems, such as hybrid microgrids. In this context, the objective is to minimize investment and operating costs while meeting energy demand. Variables such as the number of photovoltaic panels, wind turbines, battery banks, and inverters are optimized to ensure efficiency and cost-effectiveness [27]. The objective function usually incorporates acquisition, maintenance, and operation costs, in addition to technical constraints.
In this work, a genetic algorithm is adopted as a metaheuristic technique for the optimal dimensioning of the main components of a hybrid power generation system (HPGS), including photovoltaic (PV) modules, wind turbine (WT), battery bank (BB), and electromagnetic frequency regulator (EFR). The objective of the optimization process is to maximize the net present value (NPV), as defined in Section 5. Metaheuristics are well-suited for sizing HRES due to their ability to navigate vast and complex search spaces without getting stuck in local optima. Among these, genetic algorithms (GAs) are the most prevalent.
Each individual (chromosome) of the GA is represented by a real vector x of four decision variables:
x = [ C PV , P WT , C ESS , C EFR ] ,
where
  • C PV (kWp) is the installed capacity of photovoltaic panels;
  • P W T (kW) is the nominal power of the wind turbine;
  • C ESS (kWh) is the capacity of the battery bank;
  • C EFR (kW) is the nominal power of the EFR.
The initial population of size N P is randomly generated within predefined lower and upper bounds for each decision variable, ensuring a broad exploration of the search space from the beginning. Thus, pairs of parents are chosen by performing binary tournaments, in which two random individuals are compared and the one with the highest fitness is selected as the parent.
For each pair of parents x ( a ) , x ( b ) , a descendant y is generated. Real uniform crossover is used, where for each gene i,
y i = α x i ( a ) + ( 1 α ) x i ( b ) , α U ( 0 , 1 ) .
For each gene, with probability p m , an adaptive Gaussian perturbation is applied:
y i y i + δ i , δ i N ( 0 , σ i 2 ) ,
where σ i ( g ) = σ i , 0 exp ( λ g ) decays exponentially with generation g.
In addition, the top 5% of individuals are copied directly to the next generation, ensuring that high-performing solutions are not lost.
For each individual x in the population, the fitness value is determined by the NPV, which integrates both technical performance (energy generation and storage) and economic metrics (revenues, costs, and cash flows) over a 20-year horizon. The evaluation procedure comprises the following steps: (a) Decoding: Map the chromosome x to its physical parameters ( C PV , P WT , C ESS , and C EFR ). (b) Simulation: Run the hybrid generation model for 20 years using hourly solar radiation, wind speed, and temperature data (NASA/INMET) alongside component models (Equations (2), (5), and (8)). (c) Cash Flow Computation: Estimate annual revenues, investment costs, and operation and maintenance expenses according to Equations (14)–(17). (d) Discounting: Apply the minimum attractive rate of return to discount all cash flows to present value, yielding the NPV (Equation (13)). (e) Fitness Assignment: Assign the computed NPV as the fitness value of the individual. The GA procedure follows the pseudocode in Table 1.

5. Objective Function

The economic feasibility analysis of energy projects is commonly performed using consolidated financial indicators, such as net present value (NPV), internal rate of return (IRR), benefit–cost ratio (B/C), and payback period. In this study, NPV was adopted as the main decision criterion, due to its wide acceptance in the literature, robust methodological basis, and ease of interpretation [28]. In addition, it was established as the objective function to be maximized, determining the ideal system configuration.
The NPV represents the net benefit of the project over its lifespan, considering a discount rate (MAT) that reflects the opportunity cost of capital or the minimum attractive rate of return (MARR). A positive NPV indicates that the project tends to generate benefits greater than costs over time, and is therefore economically viable. A negative NPV suggests financial unfeasibility, given that costs would exceed expected benefits [29].
The calculation of NPV involves three fundamental steps: (i) projection of annual cash flows ( C F t ); (ii) definition of the minimum attractiveness rate of return M A R R , usually between 7% and 15%, according to the investment risk and the macroeconomic scenario [30]; (iii) discounting the flows to the present value, subtracting the initial investment C 0 . The general equation is expressed by the following:
NPV = C 0 + t = 1 n CF t ( 1 + MAT ) t ,
where
  • C 0 is the initial cost of the project, including acquisition ( C aq ) and installation ( C inst ) [31];
  • CF t is the cash flow in year t;
  • MAT is the minimum attractiveness tax;
  • n is the analysis horizon, defined by the useful life of the equipment.
The optimization routine in this study aims to maximize the system’s net present value (NPV) by determining the optimal combination of generation and storage capacities. Accordingly, the fitness function is formulated as follows:
Fitness = max x NPV ( x ) = C 0 ( x ) + t = 1 n CF t ( x ) ( 1 + MAT ) t ,
where
  • x = C PV , P W T , C ESS , C EFR denotes the decision-variable vector;
  • C 0 ( x ) is the initial capital outlay (acquisition + installation);
  • CF t ( x ) is the annual cash flow (revenue R t ( x ) minus costs, Equation (14));
The net present value (NPV) is the predominant metric for assessing economic viability in energy engineering, as it synthesizes capital expenditures, operational and maintenance costs, and anticipated revenues into a single, time-discounted measure [32,33,34,35]. By employing NPV as the sole objective, the optimization framework directly targets the configuration that maximizes long-term financial returns, in accordance with established best practices for techno-economic sizing of hybrid renewable systems [36]. This focused approach simplifies the decision process and ensures comparability across studies, while still capturing the full spectrum of project cash flows over the analysis horizon.
The function CF t ( x ) includes all annual revenues and expenses of the system as follows:
CF t ( x ) = R t ( x ) C aq ( x ) C dem , t C op , t C man , t ( x ) ,
where
  • R t ( x ) is the revenue from energy generation in year t;
  • C aq ( x ) is the cost of acquiring equipment;
  • C dem , t is the annual cost with an increase in contracted demand;
  • C op , t is the operational cost (e.g., installation labor);
  • C man , t ( x ) is the maintenance cost.
All terms, except C dem , t and C op , t , depend on the decision vector x as follows: the annual revenue R t ( x ) , calculated from the PV/WT energy output (cf. Equation (15)); the acquisition cost C aq ( x ) , which scales with the installed capacities of the components; the maintenance cost C man , t ( x ) , assumed proportional to the yearly generated energy E g , year (cf. Equation (16)).
The revenue R t ( x ) is obtained according to the following equation:
R t ( x ) = E p ( x ) · T p , t + E fp ( x ) · T fp , t ,
where
  • E p ( x ) is the average annual energy generated during peak hours;
  • E fp ( x ) is the average annual energy generated outside peak hours;
  • T p , t , T fp , t are the energy rates during peak and off-peak hours in year t.
Both costs and rates are updated annually, considering inflation and variations in electricity prices.
The annual maintenance costs and installation costs are calculated using Equations (16) and (17), respectively. The annual maintenance cost ( C man , t ( x ) ) is incurred regularly throughout the project’s useful life. It is composed of a fixed annual portion and a variable portion, proportional to the amount of energy generated during the period. The installation cost is estimated as 15% of the total acquisition value of the equipment [35].
C man , t ( x ) = C f + ( E g , year ( x ) · K ) ,
C inst = 15 % · C lab ,
where C f represents the annual fixed maintenance cost, E g , year is the electrical energy generated annually by the system, K is the maintenance cost coefficient per unit of energy (kWh), and C lab corresponds to the installation labor cost.

6. Validation of the GA with Benchmark Functions

The core parameters governing the behavior of the genetic algorithm (GA) are outlined below, covering population structure, genetic operator rates, and search boundaries. These values were selected based on well-established literature and carefully calibrated for the HRES sizing task.
Table 2 summarizes the GA settings employed in this study. The population size (Np = 100) was chosen to balance exploratory search and convergence speed, consistent with the recommended range of 50–100 individuals in optimization applications [37]. A crossover probability of 0.8 (pc = 0.8) and a mutation probability of 0.05 (pm = 0.05) were adopted following best practices that advocate for high crossover rates (0.6–0.8) to encourage solution recombination, paired with low mutation rates (0.02–0.1) to maintain diversity without disrupting convergence [37,38]. To further enhance performance, elitism was applied at 5% ( ρ elite = 0.05 ), allowing the best-performing solutions to persist across generations and support faster convergence. The algorithm was set to run for a maximum of 200 generations ( G max = 200 ), a value determined through prior calibration to ensure optimal results within feasible computational time. This setup leverages the synergistic benefits of elitism and adaptive Gaussian mutation strategies. Finally, the search bounds for system components, namely PV, WT, ESS, and EFR, were defined to reflect realistic and commercially viable capacity ranges. This ensured that the optimization process adequately explored all feasible configurations applicable to the energy profile of the UFRN campus located in Macau.
To further assess the generality and robustness of the proposed GA configuration, two classical benchmark functions were employed [39]: Sphere
f Sphere ( x ) = i = 1 4 x i 2 , x i [ 5.12 , 5.12 ] ,
and Rastrigin
f Rastrigin ( x ) = 10 · 4 + i = 1 4 x i 2 10 cos ( 2 π · x i ) , x i [ 5.12 , 5.12 ] .
Each function was optimized over 100 independent runs in MATLAB R2021a sing the same algorithmic settings as in Table 2: population size N p = 100 , maximum generations G max = 200 , crossover rate p c = 0.8 , mutation rate p m = 0.05 with adaptive Gaussian mutation, elitism of 5%, and function tolerance of 10 6 . The metrics recorded were the mean objective value f ¯ , standard deviation σ f , average number of generations g ¯ , average runtime, and success rate (fraction of runs with f < 10 3 ), as summarized in Table 3.
The results obtained after running the GA indicate the optimal HRES configuration as follows: C PV 35 kWp , P WT = 30 kW , C ESS 200 kWh , and C EFR = 30 kW . Next, the economic and operational impact of this configuration is examined through a long-term simulation.

7. Simulation

To evaluate the technical and economic performance of the proposed hybrid system, a simulation was carried out considering a period of 20 years. Table 4 presents the main data adopted.
The system was designed to generate an average of approximately 218 MWh per year, totaling approximately 4.36 GWh at the end of the period evaluated. This value is much higher than the load consumption, which totals just over 2.1 GWh in 20 years. The estimated annual revenue is based on a tariff of BRL 0.34 per kWh, according to the values practiced in 2015. To bring the results to more current values, an accumulated monetary correction of 67.8% was considered until 2025, following the inflation projection published in the Central Bank of Brazil’s Focus bulletin on 28 April 2025.
Table 5 shows the costs of the equipment used in the simulation, as well as the estimated useful life of each component. These data are essential for calculating the necessary investments, future replacements, and maintenance of the system.
The values include all the main elements of the system, such as turbines, solar panels, batteries, inverters, and auxiliary generators, as well as materials and installation costs. Durability was taken into account to estimate future replacements. For example, the battery bank has a useful life of 5 years, requiring replacements throughout the analysis period, while the solar panels last 25 years and do not require replacement during the horizon considered.
In addition to the main technical and economic data of the hybrid system, other parameters were considered in the simulation with the aim of making the analysis more realistic and in line with the practical implementation conditions. These data are presented in Table 6.
The dollar exchange rate considered refers to the year 2015 and was used to convert the purchase price of an industrial induction motor to the equivalent in Brazilian reais (BRL). This value served as a basis for the EFR’s estimated cost, which is derived from an induction motor with structural modifications. An increase of 20% over the original value of the motor was adopted to represent the additional adaptation costs required to transform the conventional motor into an EFR. This modification involves, for example, allowing the stator to rotate, which requires specific mechanical changes to the housing and the assembly system.
On the other hand, the proposal to use the EFR also results in savings in other components of the system. For the wind turbine, a 20% discount on the total cost was considered in relation to a conventional turbine [15]. This is justified by the elimination of equipment such as transformers, speed multipliers, and electronic converters, which become unnecessary due to the characteristics of the EFR for small systems.
Other relevant parameters include the number of photovoltaic modules (143 units), the presence of only one wind turbine and one inverter, and an estimated maintenance cost of BRL 0.05 per kWh generated. In addition, a 15% rate on the acquisition cost of all equipment, cables, and accessories was considered for estimating labor costs for installing the system. Finally, the electricity tariff adopted for revenue calculations corresponds to the value of BRL 0.3425 per kWh, as practiced in 2015, which is compatible with the historical data of the local distributor. These additional parameters were essential to improve the financial feasibility calculations and to ensure greater accuracy in obtaining the net present value (NPV) of the proposed system.

8. Results

The analysis of the simulated data allowed the assessment of the economic and financial viability of the proposed hybrid system, with emphasis on the NPV calculation, which reached BRL 1,855,971.99 in 2015 values, indicating a significant financial return over the 20 years of operation. The results are detailed in Table 7, which presents, year by year, the annual maintenance costs, the energy tariff value, the updated (discounted) expenses and revenues, the annual cash flow (Total Desc.), and the accumulated cash flow (Payback).
The initial investment required to implement the system was BRL 631,255.80, reflecting installation and infrastructure costs. From the first year onwards, revenues from energy generation showed continuous growth, reaching BRL 972,125.08 in year 20, driven by the appreciation of the energy tariff. At the same time, maintenance expenses increased over time, starting at BRL 18,250.86 in year 1 and reaching BRL 85,066.45 in year 20, incorporating inflation adjustments and projected operating costs. Table 7 shows that the net cash flow (net discounted value) has positive values in the first four years, followed by a negative value in the fifth year. From the sixth year onwards, the flows become positive again, indicating greater financial stability of the system over time. However, the full return on the initial investment, as indicated by the Payback indicator, only occurs in the ninth year, when the accumulated cash flow becomes positive, totaling BRL 117,268.50.
Figure 6 highlights the dynamics between revenues (green), expenses (orange), and net flow (blue) over 20 years. It can be observed that expenses presented notable peaks, such as in year 0 (-BRL 631,255.80), year 5 (-BRL 141,635.44), year 10 (-BRL 155,511.10), year 15 (-BRL 196,398.17) and year 20 (-BRL 187,473.68), reflecting initial investments and high operating costs at specific moments. The discounted revenues, in turn, grew consistently, reaching around BRL 304,000 in year 20, while net flow fluctuated but showed a recovery trend from the tenth year onwards, suggesting financial stabilization. Figure 7 complements this analysis by illustrating the accumulated NPV, which starts negative, crosses the break-even point around the eighth year, and reaches BRL 1,855,971.99 in year 20, demonstrating exponential growth and the economic viability of the project in the long term.
These findings corroborate the attractiveness of the proposed hybrid system. Despite the high initial costs and growing operating expenses, the balance between income and expenses, combined with the significant cumulative return, shows that the project achieves financial sustainability from the ninth year onwards, with a robust performance at the end of the analyzed horizon.
In Figure 7, there is an exponential growth in accumulated NPV from year 0, where it starts out negative, crossing the zero line around year 8 and reaching around 2 million in year 20. This indicates that the investment becomes profitable in the long term, with a significant return after the break-even point.

9. Sensitivity Analysis

The viability of HRES projects is subject to uncertainties and fluctuations in multiple economic, operational, and environmental parameters over their operational lifetime. Therefore, sensitivity analysis is a critical step to assess the robustness of the optimal sizing solution and to quantify the potential impact of these variations on the project’s financial performance metrics. This section presents the results of a comprehensive sensitivity analysis, examining how the net present value responds to ± 30 % variations in four key parameters: the electricity selling tariff, the acquisition cost of the electromagnetic frequency regulator (EFR), the cost of the wind turbine (accounting for the discount afforded by EFR integration), and the availability of climatic resources (solar irradiance + wind speed). The ± 30 % magnitude was chosen to represent aggressive scenarios, testing the project’s resilience under extreme conditions.
The reference scenario for this analysis is the optimal HRES configuration (PV ≈ 35 kWp, WT = 30 kW, ESS ≈ 200 kWh, and EFR = 30 kW), which yielded a cumulative NPV of BRL 1,855,971.99 (in 2015 values) at the end of the 20-year simulation horizon. The NPV values for each variation scenario are presented annually in Table 8.
The electricity selling tariff constitutes the primary revenue source for the HRES, making it one of the most influential parameters on the project’s economic attractiveness. A 30% reduction in the selling tariff results in a substantially negative impact on the cumulative NPV. At the end of 20 years, the NPV falls to BRL 799,701.16, representing a decrease of approximately 56.9% relative to the base scenario (BRL 1,855,971.99). Although the project remains NPV-positive, this sharp decline underscores the high sensitivity of HRES profitability to energy tariff fluctuations and highlights the need for stable regulatory frameworks to mitigate investment risks. The payback period would also be significantly extended under this scenario; conversely, a 30% increase in the electricity selling tariff elevates the cumulative NPV to BRL 2,912,242.81 after 20 years, an increase of approximately 56.9% over the base case. This result demonstrates the substantial profit potential of the project under more favorable tariff conditions, accelerating the return on investment and enhancing financial robustness, thereby emphasizing the importance of supportive regulatory environments for renewable energy deployment.
The EFR is an innovative component designed to optimize wind turbine efficiency and reduce maintenance costs. The sensitivity analysis on its acquisition cost evaluates the influence of this investment on overall project profitability. The base cost for the 30 kW EFR is BRL 16,026.44. A 30% reduction in this cost yields a cumulative NPV of BRL 1,860,779.92 over 20 years, only a 0.26% increase relative to the base scenario. Similarly, a 30% increase in the EFR cost leads to an NPV of BRL 1,851,164.06, representing a 0.26% decrease from the base. The low sensitivity of NPV to EFR cost variations is attributed to its relatively small share of the total initial investment, dominated by larger capital items such as wind turbines, PV modules, and batteries. This suggests that, while EFR offers technical advantages such as improved power quality, harmonic reduction, and hybridization facilitation, its cost fluctuations do not constitute a primary financial risk for the project.
The wind turbine cost is one of the most significant capital investments in a hybrid renewable energy system. The base cost for the 30 kW turbine is BRL 184,253.56, already reflecting a 20% discount relative to a conventional model, justified by the elimination of auxiliary equipment (e.g., transformers and power converters) due to EFR integration. The ±30% variations reported in Table 8 refer to fluctuations around this discounted base cost. A 30% reduction in turbine cost increases the 20-year NPV to BRL 1,911,248.06, a gain of approximately 3.0% over the base case. Conversely, a 30% cost increase reduces the NPV to BRL 1,800,695.92, a decrease of about 3.0%. Although the turbine cost represents a considerable investment, the NPV sensitivity to its variations is moderate compared to tariff and climatic resource parameters. This indicates that the project can absorb significant turbine price fluctuations without fundamentally compromising viability, likely due to balanced contributions to total energy generation and cost-optimization benefits provided by the EFR.
The availability and consistency of solar and wind resources are determinants of HRES generation capacity. Variations in these resources directly affect energy output and project revenues. A 30% decrease in climatic resource availability (solar irradiance and wind speed) has the most severe impact on NPV, reducing it to BRL 601363.37 over 20 years, a decline of approximately 67.6% relative to the base scenario. While the NPV remains positive, such a scenario would necessitate a critical reappraisal of revenue projections and rigorous risk management strategies to address the inherent variability of renewable sources. Conversely, a 30% increase in resource availability boosts the cumulative NPV to BRL 4,675,634.40, a 151.9% rise over the base case. This represents the most optimistic scenario, underlining the substantial financial gains achievable under more favorable climatic conditions. It emphasizes the imperative for precise resource assessments and site selection to maximize investment returns.
Overall, the sensitivity analysis reveals that HRES NPV is most sensitive to variations in electricity selling tariffs and climatic resource availability, parameters that directly influence project revenues. Significant fluctuations in these factors can markedly alter the project’s financial attractiveness over a 20-year horizon. In contrast, acquisition cost variations for the EFR and the wind turbine exhibit moderate to low impacts on NPV. The particularly low sensitivity to EFR cost underscores that implementing this innovative technology, delivering operational and maintenance benefits, does not introduce substantial capital cost risk. The project’s robustness to equipment cost fluctuations indicates the effectiveness of the genetic algorithm in identifying an optimal configuration that balances initial investments with long-term benefits.
Even under aggressive ±30% variations, the GA-sized optimal HRES configuration demonstrates remarkable economic resilience. The project maintains a positive NPV (BRL 601,363.37) even in the most challenging scenario of reduced resource availability, confirming its fundamental viability and validating the optimization approach. This sensitivity analysis strengthens confidence in the proposed model’s applicability for real-world planning of renewable energy systems. For future work, it would be valuable to incorporate combined parameter variation scenarios and stochastic uncertainties in cost and resource projections to provide an even more comprehensive risk and opportunity assessment.

10. Comparison with Previous Project

To put the results in context, a comparison was made with a previous project, carried out in 2015 under the same conditions. The comparative data is summarized in Table 9 and Table 10, allowing a detailed analysis of the economic and technical performance of the proposed hybrid system of the reference project.
Table 9 shows the NPV values for both projects, in 2015 values and updated to 2025. The current project achieved an NPV of BRL 1,855,971.99 in 2015, which, adjusted for inflation, is equivalent to BRL 3,114,320.99 in 2025. In contrast, the Delson et al. [15] project recorded an NPV of BRL 1,685,529.00 in 2015, corresponding to BRL 2,828,317.66 in 2025. These results indicate that the proposed sizing technique has a superior economic performance, both in nominal terms and adjusted for inflation, showing significant improvements in the technical, operational, and financial parameters adopted in the current project.
Table 10 details the main technical and financial parameters of the two projects, allowing for a more in-depth analysis of the differences between them. The proposed system generated 2,006,460.54 kWh of wind energy over 20 years, slightly more than the project in Delson et al. [15], which produced 1,922,800 kWh. On the other hand, photovoltaic (PV) energy generation in the current project was 2,353,115.41 kWh, significantly lower than the 5,122,453 kWh of the 2015 project, which reflects a lower dependence on photovoltaic modules in the proposed hybrid system. This is corroborated by the number of PV modules used: 143 (245 Wp) in the current project, compared to 504 (245 Wp) in the project of Delson et al. Similarly, the battery bank in the proposed system consists of 91 units (12 V, 220 Ah), a reduction from the 150 units in the previous project, indicating optimization in the sizing of energy storage.
Despite the lower photovoltaic generation, the load demand met remained identical in both projects, totaling 2,105,590.68 kWh over 20 years, which suggests that the proposed system achieved greater efficiency in integrating wind and photovoltaic sources to meet the same energy needs. In addition, the higher NPV of the current project (BRL 1,855,971.99 in 2015 and BRL 3,114,320.99 in 2025) compared to the Delson et al. Project (BRL 1,685,529.00 in 2015 and BRL 2,828,317.66 in 2025) reflects better economic performance.
In summary, the comparative analysis shows that the proposed hybrid system has economic and technical advantages over the Delson et al. project, with higher efficiency in energy generation and storage, as well as a more significant financial return. These results reinforce the strategies adopted, consolidating the viability of the current project in the context of hybrid energy generation systems.

11. Discussions

The proposed optimization yielded a design favoring solar generation, supplemented by wind and appropriately sized battery storage, consistent with the site’s abundant solar resource. In this configuration, the EFR provides physical inertia, smoothing frequency fluctuations, and a higher renewable penetration without compromising stability. The optimized configuration resulted in a substantially positive NPV, indicating robust profitability over the project lifetime. These outcomes underscore the dual economic and environmental benefits of the proposed design.
Crucially, the GA algorithm was rigorously validated and tuned before application to the system model. It successfully converged using several standard benchmark functions, verifying correct implementation and convergence behavior. Key GA parameters were systematically adjusted: for example, a population of a few hundred individuals and moderate mutation/crossover rates balanced exploration with convergence speed. This careful tuning prevented premature convergence and ensured consistent attainment of high-quality solutions across multiple runs. Our use of NPV as the optimization metric follows common practice in energy system design, although multi-objective approaches (e.g., including emissions or reliability criteria) could be explored for a more comprehensive assessment.
A thorough sensitivity analysis characterized the solution’s robustness. We varied financial and technical inputs (discount rate, equipment costs, solar/wind resource levels, etc.) and observed that the optimal NPV remained positive under all tested scenarios, including ±30% variations in electricity tariff, component costs, and climatic resource availability. The NPV was most sensitive to climatic resource availability: for example, a 30% reduction in solar irradiance and wind speed resulted in 67.6 % drop in project NPV, underscoring the critical role of site-specific climate conditions in hybrid system planning. Financial parameters such as tariff or discount rate also had notable but comparatively smaller effects. Some limitations of the current study should be acknowledged. The optimization approach focused solely on maximizing NPV, without explicitly enforcing renewable penetration thresholds or reliability constraints. Despite these limitations, the proposed hybrid system is shown to be both economically viable and environmentally beneficial, offering practical insights for the design of future grid-connected hybrids.

12. Conclusions

The present study has demonstrated a robust methodology for the economic design of a grid-connected hybrid renewable system equipped with an electromagnetic frequency regulator. By integrating detailed component modeling with a validated GA optimizer, the optimal configuration was found to deliver strong economic performance and high renewable utilization. Specifically, the optimized system meets almost all of its load demand from PV and wind generation while yielding a high NPV (1.86 M) over the project horizon. The inclusion of the EFR was critical in achieving this result by enhancing frequency stability, which enabled the high renewable penetration. Overall, the optimized design achieves a strong economic return. The sensitivity analysis confirmed the robustness of the proposed approach under a wide range of conditions, including ±30% variations in electricity tariff, wind turbine costs, EFR acquisition costs, and climate resource availability. In all cases, the NPV remained positive, highlighting the method’s resilience to economic and environmental uncertainties. Furthermore, a comparative analysis with a 2015 reference project revealed a 10.1% increase in NPV, underscoring the economic advantages of the proposed improvements. These findings position the proposed methodology as a high-impact planning tool for hybrid energy systems in both remote and grid-connected regions, contributing meaningfully to the ongoing energy transition. Future research should investigate multi-objective optimization frameworks that jointly minimize CO2 emissions and maximize financial returns. Additionally, the incorporation of machine learning-based climate forecasting could further enhance the accuracy and robustness of hybrid system sizing under variable meteorological conditions.

Author Contributions

A.O.-S.B. and A.O.S. conceived and designed the study; A.O.-S.B., J.d.C.P., and R.F.P. contributed to data curation, investigation, and methodology; E.R.L.V., E.P.d.R., and A.O.S. reviewed the manuscript and provided valuable suggestions; A.O.-S.B., J.d.C.P., E.P.d.R., R.F.P., and E.R.L.V. wrote the paper; A.O.S. supervised. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior, Brasil (CAPES), Finance Code 001 and the Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author(s).

Acknowledgments

The authors would like to thank the CAPES (Coordenação de Aperfeiçoamento de Pessoal de Nível Superior) and CNPq (Conselho Nacional de Pesquisa) for the financial support.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
HREShybrid renewable energy generation system
WTwind turbine
BBbattery bank
ANNartificial neural network
ATSautomatic transfer switch
AIartificial intelligence
COEcost of energy generated
SoCstate of charge
DoDdepth of discharge
ULunserved load
INMETInstituto Nacional de Metereologia
NOTCnominal operating temperature of cell
EPSOenhanced particle swarm algorithm
LCClife cycle cost
LCOElevelized cost of energy
LPSPprobability of load shedding
EFRelectromagnetic frequency regulator
NPVnet present value
GAgenetic algorithm
PSOparticle swarm optimization
PVphotovoltaic panels
EMSenergy management system
HPGShybrid power generation system
COSERNCompanhia Energética do Rio Grande do Norte
MATminimum attractiveness tax
IRRinternal rate of return
MARRminimum attractive rate return
ESSenergy storage system
MILPmixed integer linear programming

References

  1. do Nascimento, T.F.; Nunes, E.A.D.F.; Villarreal, E.R.L.; Pinheiro, R.F.; Salazar, A.O. Performance Analysis of an Electromagnetic Frequency Regulator under Parametric Variations for Wind System Applications. Energies 2022, 15, 2873. [Google Scholar] [CrossRef]
  2. Agha Kassab, F.; Rodriguez, R.; Celik, B.; Locment, F.; Sechilariu, M. A Comprehensive Review of Sizing and Energy Management Strategies for Optimal Planning of Microgrids with PV and Other Renewable Integration. Appl. Sci. 2024, 14, 10479. [Google Scholar] [CrossRef]
  3. Ismail, M.S.; Moghavvemi, M.; Mahlia, T.M.I. Genetic algorithm based optimization on modeling and design of hybrid renewable energy systems. Energy Convers. Manag. 2014, 85, 120–130. [Google Scholar] [CrossRef]
  4. Yang, H.; Wei, Z.; Lou, C. Optimal design and techno-economic analysis of a hybrid solar wind power generation system. Appl. Energy 2009, 86, 163–169. [Google Scholar] [CrossRef]
  5. Dufo-Lopez, R.; Bernal-Agustín, J.L. Multi-objective design of PV wind diesel hydrogen battery systems. Renew. Energy 2008, 33, 2559–2572. [Google Scholar] [CrossRef]
  6. Paulitschke, M.; Bocklisch, T.; Böttiger, M. Comparison of particle swarm and genetic algorithm based design algorithms for PV-hybrid systems with battery and hydrogen storage path. Energy Procedia 2017, 135, 452–463. [Google Scholar] [CrossRef]
  7. Zhang, W.; Maleki, A.; Rosen, M.A.; Liu, J. Sizing a stand-alone solar-wind-hydrogen energy system using weather forecasting and a hybrid search optimization algorithm. Energy Convers. Manag. 2019, 180, 609–621. [Google Scholar] [CrossRef]
  8. Zhang, W.; Maleki, A.; Rosen, M.A.; Liu, J. Optimization with a simulated annealing algorithm of a hybrid system for renewable energy including battery and hydrogen storage. Energy 2018, 163, 191–207. [Google Scholar] [CrossRef]
  9. Halabi, L.M.; Mekhilef, S.; Olatomiwa, L.; Hazelton, J. Performance analysis of hybrid PV/diesel/battery system using HOMER: A case study Sabah, Malaysia. Energy Convers. Manag. 2017, 144, 322–339. [Google Scholar] [CrossRef]
  10. Sen, R.; Bhattacharyya, S.C. Off-grid electricity generation with renewable energy technologies in India: An application of HOMER. Renew. Energy 2014, 62, 388–398. [Google Scholar] [CrossRef]
  11. Gu, Y.; Zhang, X.; Myhren, J.A.; Han, M.; Chen, X.; Yuan, Y. Techno-economic analysis of a solar photovoltaic/thermal (PV/T) concentrator for building application in Sweden using Monte Carlo method. Energy Convers. Manag. 2018, 165, 8–24. [Google Scholar] [CrossRef]
  12. Crisóstomo, D.C.; do Nascimento, T.F.; Nunes, E.A.F.; Villarreal, E.R.L.; Pinheiro, R.F.; Salazar, A.O. Fuzzy control strategy applied to an electromagnetic frequency regulator in wind generation systems. Energies 2022, 15, 7011. [Google Scholar] [CrossRef]
  13. Costa, A.E.S.; Bissiriou, A.O.; de Oliveira, G.P.; Silva, J.V.S.; Pinheiro, R.F.; Salazar, A.O. Analysis of the Behavior of the Electromagnetic Frequency Regulator (EFR) Used in Hybrid Wind-Solar Photovoltaic Generation Systems. RE&PQJ 2024, 2, 21–26. [Google Scholar]
  14. Silva, P.V.; Pinheiro, R.F.; Salazar, A.O.; do Santos Junior, L.P.; de Azevedo, C.C. A proposal for a new wind turbine topology using an electromagnetic frequency regulator. IEEE Lat. Am. Trans. 2015, 13, 989–997. [Google Scholar] [CrossRef]
  15. da Costa, D.A.; Pinheiro, R.F.; de Medeiros Júnior, M.F. Sistema Híbrido de Geração de Energia Elétrica Conectado à Rede, incluindo o Regulador Eletromagnético de Frequência-REF. In Proceedings of the Anais Congresso Brasileiro De Energia Solar—CBENS, Belo Horizonte, Brazil, 4–7 April 2016; pp. 1–8. [Google Scholar]
  16. Dufo-López, R.; Cristóbal-Monreal, I.R.; Yusta, J.M. Optimisation of PV-wind-diesel-battery stand-alone systems to minimise cost and maximise human development index and job creation. Renew. Energy 2016, 94, 280–293. [Google Scholar] [CrossRef]
  17. Atia, R.; Yamada, N. Sizing and analysis of renewable energy and battery systems in residential microgrids. IEEE Trans. Smart Grid 2016, 7, 1204–1213. [Google Scholar] [CrossRef]
  18. Eltamaly, A.M.; Alotaibi, M.A. Novel Fuzzy-Swarm Optimization for Sizing of Hybrid Energy Systems Applying Smart Grid Concepts. IEEE Access 2021, 9, 93629–93650. [Google Scholar] [CrossRef]
  19. Johnson, G.L. Wind Energy Systems; Prentice Hall: Hoboken, NJ, USA, 1985. [Google Scholar]
  20. ÇetınbaŞ, B.I.; Tamyürek, B.; Dermitas, M. The Hybrid Harris Hawks Optimizer-Arithmetic Optimization Algorithm: A New Hybrid Algorithm for Sizing Optimization and Design of Microgrids. IEEE Access 2022, 10, 19254–19283. [Google Scholar] [CrossRef]
  21. Lai, C.S.; McCulloch, M.D. Sizing of Stand-Alone Solar PV and Storage System with Anaerobic Digestion Biogas Power Plants. IEEE Trans. Ind. Electron. 2017, 64, 2112–2121. [Google Scholar] [CrossRef]
  22. Hayes-Roth, F. Review of Adaptation in Natural and Artificial Systems by John H. Holland. the U. Of Michigan Press, 1975. ACM Sigart Bulletin N. 1975, 53, 15. [Google Scholar] [CrossRef]
  23. Goldberg, D.E. Genetic Algorithm in Search, Optimization and Machine Learning; Addison, Wesley Publishing Company Reading: Boston, MA, USA, 1989; pp. 1–9. [Google Scholar]
  24. Eiben, A.E.; Smith, J.E. Introduction to Evolutionary Computing; Springer: Berlin/Heidelberg, Germany, 2015. [Google Scholar]
  25. Whitley, D.; Sutton, A.M. Genetic algorithms—A survey of models and methods. In Handbook of Natural Computing; Springer: Berlin/Heidelberg, Germany, 2012; pp. 637–671. [Google Scholar]
  26. Mitchell, M. An Introduction to Genetic Algorithms; MIT Press: Cambridge, MA, USA, 1998. [Google Scholar]
  27. Memon, S.A.; Patel, R.N. An overview of optimization techniques used for sizing of hybrid renewable energy systems. Renew. Energy Focus 2021, 39, 1–26. [Google Scholar] [CrossRef]
  28. Arshad, A. Net present value is better than internal rate of return. Interdiscip. J. Contemp. Res. Bus. 2012, 4, 211–219. [Google Scholar]
  29. Kumar, B.V.; Farhan, M.A. Optimal simultaneous allocation of electric vehicle charging stations and capacitors in radial distribution network considering reliability. J. Mod. Power Syst. Clean Energy 2024, 12, 1584–1595. [Google Scholar] [CrossRef]
  30. Padmini, V.; Omran, S.; Chatterjee, K.; Khaparde, S.A. Cost benefit analysis of smart grid: A case study from India. In Proceedings of the 2017 North American Power Symposium (NAPS), Morgantown, WV, USA, 17–19 September 2017; pp. 1–6. [Google Scholar]
  31. Maleki, A.; Ameri, M.; Keynia, F. Scrutiny of multifarious particle swarm optimization for finding the optimal size of a PV/wind/battery hybrid system. Renew. Energy 2015, 80, 552–563. [Google Scholar] [CrossRef]
  32. Mellichamp, D.A. Profitability, risk, and investment in conceptual plant design: Optimizing key financial parameters rigorously using NPV%. Comput. Chem. Eng. 2019, 128, 450–467. [Google Scholar] [CrossRef]
  33. Kelly, J.J.; Leahy, P.G. Optimal investment timing and sizing for battery energy storage systems. J. Energy Storage 2020, 28, 101272. [Google Scholar] [CrossRef]
  34. Yimen, N.; Tchotang, T.; Kanmogne, A.; Abdelkhalikh Idriss, I.; Musa, B.; Aliyu, A.; Okonkwo, E.C.; Abba, S.I.; Tata, D.; Meva’a, L.; et al. Optimal sizing and techno-economic analysis of hybrid renewable energy systems—A case study of a photovoltaic/wind/battery/diesel system in Fanisau, Northern Nigeria. Processes 2020, 8, 1381. [Google Scholar] [CrossRef]
  35. Joale, P.C.; Ricardo, P.F.; Medina, T.G.I. Sizing of electric power generation systems from biogas through the generator staggering methodology. SN Appl. Sci. 2020, 2, 1–11. [Google Scholar] [CrossRef]
  36. Žigman, D.; Tomiša, T.; Osman, K. Methodology presentation for the configuration optimization of hybrid electrical energy systems. Energies 2023, 16, 2158. [Google Scholar] [CrossRef]
  37. Hassanat, A.; Almohammadi, K.; Alkafaween, E.A.; Abunawas, E.; Hammouri, A.; Prasath, V.S. Choosing mutation and crossover ratios for genetic algorithms—A review with a new dynamic approach. Information 2019, 10, 390. [Google Scholar] [CrossRef]
  38. Ammar, H.H.; Tao, Y. Fingerprint registration using genetic algorithms. In Proceedings of the 3rd IEEE Symposium on Application-Specific Systems and Software Engineering Technology, Richardson, TX, USA, 24–25 March 2000; pp. 148–154. [Google Scholar] [CrossRef]
  39. Storn, R.; Price, K. Differential evolution—A simple and efficient heuristic for global optimization over continuous spaces. J. Glob. Optim. 1997, 11, 341–359. [Google Scholar] [CrossRef]
Figure 1. Block diagram of the proposed system, including the EFR.
Figure 1. Block diagram of the proposed system, including the EFR.
Energies 18 04404 g001
Figure 2. Average hourly load demand in a day.
Figure 2. Average hourly load demand in a day.
Energies 18 04404 g002
Figure 3. Seasonal distribution of solar irradiance throughout the year 2015.
Figure 3. Seasonal distribution of solar irradiance throughout the year 2015.
Energies 18 04404 g003
Figure 4. Seasonal distribution of wind speed throughout the year 2015.
Figure 4. Seasonal distribution of wind speed throughout the year 2015.
Energies 18 04404 g004
Figure 5. PV and load curves of the hybrid system.
Figure 5. PV and load curves of the hybrid system.
Energies 18 04404 g005
Figure 6. Evolution of revenues (green), expenses (orange), and net flow (blue) over the period analyzed.
Figure 6. Evolution of revenues (green), expenses (orange), and net flow (blue) over the period analyzed.
Energies 18 04404 g006
Figure 7. Trajectory of accumulated NPV.
Figure 7. Trajectory of accumulated NPV.
Energies 18 04404 g007
Table 1. Pseudocode adapted for HRES sizing.
Table 1. Pseudocode adapted for HRES sizing.
StepDescription
1Initialize random seed and define search ranges: PV _ range , Wt _ range , ESS _ range , Efr _ range .
2Initialize population Pop with N P individuals within the defined ranges.
3For each generation g = 1 through G max :
  3.1 Evaluate the fitness of each individual ( Fitness = NPV ( x ) ).
  3.2 Sort Pop in decreasing order of fitness.
  3.3 Copy the N elite = round ( elitism _ rate · N P ) best individuals to NewPop.
  3.4 While | NewPop | < N P :
    (a) Select two parents by binary tournament.
    (b) If rand < p c , apply real uniform crossover.
    (c) Apply adaptive Gaussian mutation with probability p m .
    (d) Add generated children to NewPop.
  3.5 Update Pop = NewPop ( 1 : N P ) .
4Return the best individual of Pop and its optimal parameters.
Table 2. Summary of parameters used in the genetic algorithm.
Table 2. Summary of parameters used in the genetic algorithm.
ParameterSymbolValue / Range
Population size N P 100
Maximum generations G max 200
Crossover rate p c 0.8
Mutation rate p m 0.05
Elitism rate ρ elite 0.05 (5%)
PV limit [ C PV min C PV max ] [10–50] kWp
WT Limit [ P WT min P WT max ] [10–50] kW
ESS Limit [ C ESS min C ESS max ] [50–250] kWh
EFR limit [ C EFR min C EFR max ] [10–50] kW
Mutation decay λ 0.01
Table 3. GA performance on sphere and Rastrigin functions (100 Runs).
Table 3. GA performance on sphere and Rastrigin functions (100 Runs).
Function f ¯ σ f g ¯ Time (s)Success (%)
Sphere 4.30 × 10 9 1.29 × 10 8 86.00.07100
Rastrigin 1.39 × 10 1 4.25 × 10 1 107.20.0889
Table 4. Technical and economic parameters of the simulated system.
Table 4. Technical and economic parameters of the simulated system.
ParameterValue
Simulation horizon20 years
Average annual energy generated217,978.80 kWh
Total energy generated (20 years)4,359,576 kWh
Total load consumption (20 years)2,105,590.68 kWh
Estimated initial annual revenueBRL 74,657.74
Base rate usedBRL 0.34/kWh (2015)
Monetary update considered67.8% (2015–2025)
Table 5. Hybrid system component costs.
Table 5. Hybrid system component costs.
ComponentsPrice (BRL)Durability (Years)
EFR, 30 kW16,026.4420
WT, 30 kW, Height 18 m184,253.5620
PV 245 W p , 1640 × 990 × 35 mm156,585.0025
ESS110,747.005
Inverter nominal power 30 kW19,380.0015
Diesel Generator 20 kVA36,580.0020
Cables and Accessories29,148.0020
Installation Labor78,535.8020
Annual Maintenance Cost18,489.111
Table 6. Additional data.
Table 6. Additional data.
DescriptionCost (BRL)
Price (2015) ($)3.01
EFR increase (%)20
WT discount (%)20
PV quantity143
WT quantity1
Inverter quantity1
Acquisition price (%)15
Maintenance cost per kWh (BRL) 0.05
kWh rate 2015 0.3425
Table 7. Annual financial indicators of the hybrid energy system (in BRL).
Table 7. Annual financial indicators of the hybrid energy system (in BRL).
YearAnnual Maint.Energy PriceDiscounted ExpensesDiscounted RevenuesNet Discounted ValuePayback
00.000.00−631,255.800.00−631,255.80−631,255.80
1−18,250.8684,363.25−17,217.7979,587.9762,370.18−568,885.62
2−21,287.80107,723.43−18,946.0695,873.4776,927.40−491,958.22
3−22,990.82121,727.47−19,303.54102,204.7382,901.20−409,057.02
4−24,830.09137,552.04−19,667.75108,954.1089,286.35−319,770.67
5−26,816.49155,433.81−141,635.44116,149.19−25,486.26−345,256.93
6−28,961.81175,640.21−20,416.94123,819.41103,402.48−241,854.45
7−31,278.76198,473.43−20,802.16131,996.17111,194.01−130,660.44
8−33,781.06224,274.98−21,194.65140,712.90119,518.24−11,142.20
9−36,483.54253,430.73−21,594.55150,005.26128,410.70117,268.50
10−39,400.23286,376.72−155,511.10159,911.274400.17121,668.67
11−42,554.41323,605.69−22,417.13170,471.44148,054.31269,722.98
12−45,958.76365,674.43−22,840.09181,728.99158,888.90428,611.88
13−49,635.46413,212.11−23,271.04193,729.96170,458.92599,070.80
14−53,606.30466,929.69−23,710.12206,523.45182,813.33781,884.13
15−57,894.80527,630.54−196,398.17220,161.7923,763.62805,647.75
16−62,526.38596,222.52−24,613.28234,700.78210,087.501,015,735.25
17−67,528.49673,731.44−25,077.68250,199.89225,122.211,240,857.46
18−72,930.77761,316.53−25,550.84266,722.52241,171.681,482,029.13
19−78,765.24860,287.68−26,032.93284,336.27258,303.341,740,332.47
20−85,066.45972,125.08−187,473.68303,113.19115,639.521,855,971.99
Table 8. NPV sensitivity analysis.
Table 8. NPV sensitivity analysis.
YearTariff ( × 10 3 )Cost ( × 10 3 )Discount ( × 10 3 )Climate ( × 10 3 )
−30%30%−30%30%−30%30%−30%30%
0−631.3−631.3−626.4−636.1−576.0−686.5−631.3−631.3
1−592.8−545.0−564.1−573.7−513.6−624.2−595.5−509.2
2−544.6−439.3−487.2−496.8−436.7−547.2−551.0−359.3
3−492.4−325.8−404.2−413.9−353.8−464.3−502.9−198.1
4−435.8−203.8−315.0−324.6−264.5−375.0−451.0−24.9
5−496.1−194.4−340.4−350.1−290.0−400.5−516.539.6
6−429.8−53.9−237.0−246.7−186.6−297.1−456.0239.5
7−358.296.9−125.9−135.5−75.4−185.9−390.9454.1
8−280.9258.6−6.3−16.044.1−66.4−320.6684.4
9−197.5432.1122.1112.5172.562.0−245.0931.5
10−241.1484.4126.5116.9176.966.4−297.11062.9
11−144.2683.6274.5264.9325.0214.4−209.61347.0
12−39.8897.0433.4423.8483.9373.3−115.51651.5
1372.51125.6603.9594.3654.3543.8−14.41977.8
14193.41370.4786.7777.1837.2726.694.22327.4
15151.11460.2810.5800.8860.9750.438.62529.5
16290.81740.71020.51010.91071.0960.5163.82930.4
17440.82040.91245.71236.01296.11185.6298.13359.6
18602.02362.11486.81477.21537.31426.8442.23819.0
19775.02705.71745.11735.51795.61685.1596.74310.6
20799.72912.21860.81851.21911.21800.7601.44675.6
Tariff: electricity selling tariff; cost: EFR acquisition cost; discount: wind turbine discount; climate: climate resources.
Table 9. Updated net present value (NPV) for the evaluated projects.
Table 9. Updated net present value (NPV) for the evaluated projects.
ProjectNPV in 2015 (BRL)NPV in 2025 (BRL)
Current Project1,855,971.993,114,320.99
Previous Project1,685,529.002,828,317.66
Table 10. Comparison of the main parameters between the proposed system and the project in 2015.
Table 10. Comparison of the main parameters between the proposed system and the project in 2015.
ParameterProposed SystemProject 2015 (Delson et al. [15])
Wind energy generated (20 years)2,006,460.54 kWh1,922,800.00 kWh
PV energy generated (20 years)2,353,115.41 kWh5,122,453.00 kWh
Load demand (20 years)2,105,590.68 kWh2,105,590.68 kWh
Number of PV modules143 (245 Wp)504 (245 Wp)
Battery bank91 (12 V, 220 Ah)150 (12 V, 220 Ah)
NPV (2015)BRL 1,855,971.99BRL 1,685,529.00
NPV (2025)BRL 3,114,320.99BRL 2,828,317.66
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

Bissiriou, A.O.-S.; Pereira, J.d.C.; Rocha, E.P.d.; Pinheiro, R.F.; Villarreal, E.R.L.; Salazar, A.O. The Economic Optimization of a Grid-Connected Hybrid Renewable System with an Electromagnetic Frequency Regulator Using a Genetic Algorithm. Energies 2025, 18, 4404. https://doi.org/10.3390/en18164404

AMA Style

Bissiriou AO-S, Pereira JdC, Rocha EPd, Pinheiro RF, Villarreal ERL, Salazar AO. The Economic Optimization of a Grid-Connected Hybrid Renewable System with an Electromagnetic Frequency Regulator Using a Genetic Algorithm. Energies. 2025; 18(16):4404. https://doi.org/10.3390/en18164404

Chicago/Turabian Style

Bissiriou, Aziz Oloroun-Shola, Joale de Carvalho Pereira, Ednardo Pereira da Rocha, Ricardo Ferreira Pinheiro, Elmer Rolando Llanos Villarreal, and Andrés Ortiz Salazar. 2025. "The Economic Optimization of a Grid-Connected Hybrid Renewable System with an Electromagnetic Frequency Regulator Using a Genetic Algorithm" Energies 18, no. 16: 4404. https://doi.org/10.3390/en18164404

APA Style

Bissiriou, A. O.-S., Pereira, J. d. C., Rocha, E. P. d., Pinheiro, R. F., Villarreal, E. R. L., & Salazar, A. O. (2025). The Economic Optimization of a Grid-Connected Hybrid Renewable System with an Electromagnetic Frequency Regulator Using a Genetic Algorithm. Energies, 18(16), 4404. https://doi.org/10.3390/en18164404

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop