Optimal energy scheduling method for the North Cameroonian interconnected grid in response to load shedding

Renewable energy sources like sun and wind are intermittent, hence a hybrid system incorporating them is necessary. However, certain systems are more cost-effective and efficient than others, and they are not only more expensive but also far more harmful to the environment. To make up for the energy shortage in unconnected remote regions and urban areas with linked networks, renewable energies offer an alternative. This effort is focused on eliminating both load shedding and the pollution caused by conventional power plants that burn fossil fuels. In order to improve the interconnected Northern Cameroon grid, researchers looked into the possibility of using the permanently accessible sun and wind at the Waibé-Lokoro-Kalfou location in Cameroon. For the hot and humid climate of Waibé-Lokoro, Cameroon, based on four distributed generations, four combinations were established in the scenario. The goal was to maximize the net present value while minimising the energy expense. Electricity costs were found to drop from USD 0.097/kWh to USD 0.085/kWh under the PV-Wind-Grid-Battery scenario, saving a total of USD 0.54 million in net present cost. The particle swarm optimization method (PSO), genetic algorithmic algorithm (GA), cuckoo search approaches (CSA), as well as whale optimization algorithm (WOA) were utilized to calculate power losses as well as system size allocation. PSO was the only algorithm to converge quickly. The level of distortion caused by harmonics is measured experimentally to verify that power grid connectivity regulations are being followed. The standards for the IEEE 33-bus as well as IEEE 69-bus tests provide more precise voltage profiles for use in loss evaluation.


Introduction
For almost two decades, the number of households has increased due to the growing population in the northern part of Cameron (Nsafon et al., 2020).This increase has led to a growing demand for electricity.As a result, there has been a low rate of access to electricity in households (especially in rural areas); in addition, there has been a drop in production at hydroelectric power stations due to unfavorable hydrology (as in the case of Lagdo, where the water level in the reservoirs has fallen and some turbines have stopped due to lack of maintenance) (Kitmo et al., 2021).When electrical installations are poorly dimensioned, equipment deteriorates as a result of overloading (there are considerable losses) (Jaszczur & Hassan, 2020).Another major problem is the impact of fossil fuels on the environment, leading to environmental pollution (water becomes toxic, acid rain destroys flora and fauna) (Sawle et al., 2017).Yet there is an abundance of non-polluting, non-degrading natural resources.Not only are these natural resources accessible to all, but their use does not lead to natural disasters such as flooding (Ram et al., 2022).
The sun is an appropriate source of electricity in rural areas and sunshine in the northern part of Cameroon is can produce between 5.74 and 6 kWh/m 2 /day.The work of Kidmo et al. (2015), shows that northern Cameroon has significant wind energy potential, which could provide an alternative to dependence on compromising energy.
However, the Northern Interconnected Network (NIN) has become almost obsolete due to load shedding (Bello-Pierre et al., 2023) and blackouts (Kitmo et al., 2021).In most of Cameroon's ten regions, thermal power stations have been installed to back up the grid during blackouts.Some photovoltaic plants have been installed in localities such as Banjo, Guider and Tibati, but the power installed is small and cannot cover the needs of the population.Given this difficulty, it is important to find an urgent solution, which could involve combining renewable energy sources in isolated systems in rural areas and connected networks in urban areas (Yaouba et al., 2022).Unfortunately, isolated networks do not guarantee continuity of service.What's more, knowledge and familiarity with these installations is still poor and almost non-existent.This is why solar installations are abandoned when they break down (Varma et al., 2012).As far as energy is concerned, it has not yet been used, even on an experimental basis, in the northern part of Cameroon.Some of the reasons for this are the high cost of production.However, many of the parameters surrounding the production of an energy should be taken into account to effectively assess whether certain statements are not flawed, or to see whether there are other similar solutions.Finally, once the power plant has been modelled, it could be combined with a photovoltaic power plant, which (Kitmo et al., 2022) research is presenting as an ideal solution for electrification in Cameroon.
Over the past few decades, demand for electricity has been growing as natural resources have been depleted (Al-Ghussain et al., 2021).This depletion is a consequence of climate change due to the deterioration of our universe by greenhouse gases produced by power plants such as nuclear and oil-fired power stations.Over time, resources such as uranium used in nuclear, coal and gasfired power plants will no longer be sufficient to satisfy the world's needs by 2050 (Das et al., 2022).Moreover, the use of these resources exposes the world to environmental pollution from the carbon dioxide CO 2 produced during processing (Lin et al., 2021).Waste from the processing of non-renewable resources creates the global warming responsible for floods and deserts.Renewable energies hold great promise (Nsafon et al., 2020).Green energies offer an alternative to the problem of depleting natural resources.Having recognized these advantages, many countries are now proceeding to combine natural resources (renewable energies) to guarantee continuity of service and availability of energy in the face of growing demand for electricity in several countries, and even on certain continents, using multi-source power plants or hybrid systems (Djidimbélé et al., 2022).Decentralized renewable energy production is referred to as distributed generation (Alphonse et al., 2021), and is essentially owned by third parties.Distributed generation can be grouped into two main categories: decentralized generation, where the power supplier owns the grid and consumes its own energy (Tchaya et al., 2021).The energy is sold to the national sector, which owns the country's electrification system.This energy can also be sold to private individuals, or even to certain companies when there is sufficient surplus energy.The only condition governing this transaction is compliance with the IEEE 519 standard, which imposes a harmonic distinction rate of less than 5% before injection into the national grid at the common point of coupling (PCC) (Kitmo et al., 2021;Olivares et al., 2014).At the common coupling point or distribution connection point, two electricity meters are installed for billing surplus energy that is injected externally (Kavadias & Triantafyllou, 2021), and for inputting energy to the decentralized producer in the event of an energy deficit due to the lack of availability of its production resources (Schulz et al., 2021).
Then there's centralized generation.Under this system, the supplier of electrical energy is also the owner of the national electrification network.In Cameroon, for example, the national electrification network is called ENEO (Dieudonne et al., 2022).In this work, we look at the two aspects of renewable energy production in order to meet energy demand on the entire North interconnected network, known as the RIN.The North Cameroon Interconnected Network (NCIN) is made up of different feeders: Adamaoua, North and Far North.These different sources are fed by the only source of hydroelectricity constituted, called the Lagdo hydroelectric dam located in the North region of Cameroon (Kitmo et al., 2021).
In Cameroon, photovoltaic solar energy is the second most widely used renewable energy after hydropower.It is most widely used in isolated areas of the country.Many studies on the challenges of renewable energies and the advantages of using them have encouraged the transformation of non-renewable energies into renewable energies.The hydroelectricity sector is the one that has been established in Cameroon since the first dams were built in the colonial years, in 1982.(Kitmo et al., 2021) estimate that the North Cameroon region has a significant wind energy potential compared with the other two regions of the septentrion, but their work is limited to assessing the potential in the far north of Cameroon, without taking into account a plan for the installation of hybrid sources to reinforce the northern interconnected network (NIN).
For over 15 years, the electricity sector has been experiencing serious problems (Yaouba, 2022).This problem has several causes: the first is population growth, and the second is the deterioration of the generation system.In addition, there is the problem of insufficient water to run the hydraulic turbines.The water tanks that should contain the volume needed to turn the turbines are completely and partially filled with sand.This is the case at the Lagdo hydroelectric power station.This has created a sense of urgency, as the population has been growing over the years, while electrical power has been decreasing exponentially.
Thermal power stations were installed in all 10 regions of Cameroon to meet the growing demand for energy.These are complemented by solar power plants in more isolated locations, such as Tibati and Banyo.In 2022, the grid-connected photovoltaic solar power plant in Guider, in the North Cameroon region, got a new lease of life.Thermal power plants produce carbon dioxide (CO 2 ), which is responsible for the greenhouse effect.On the other hand, fuel oil resources are not available, nor is coal for thermal power plants.In recent years, this has led to load shedding in almost all of Cameroon's ten regions.
The search for a solution to Cameroon's energy demand has so far been limited by the fact that the country's various back-up systems are unable to meet the growing demand for energy from its ever-changing population.
The work of Dieudonne et al. (2022) shows that it is possible to install wind power plants in Cameroon, especially in the northern part of the country.(Zieba Falama et al., 2022) evaluated the wind energy potential in the Adamoua, Nord and Far Nord regions.These studies showed that wind energy is abundant in the Guider locality, where the average wind speed is 5 m/s during the months of March, April and May.Similarly, in Tcholliré, there is sufficient wind energy.However, these months correspond to the period during which several localities are constantly in the dark due to the lack of electrical energy produced by the Lagdo hydroelectric power station.Unfortunately, these works were limited to assessment.Added to this is the problem of maintenance and ageing power electronics equipment.Moreover, NASA climate data clearly show that an assessment of the photovoltaic solar deposit in the Guider locality could enable the reinforcement of the North Interconnected Grid line, which could be an alternative to the depletion of energy resources (Tonsie Djiela et al., 2020).On the basis of this work, it is now possible to think of a fusion of renewable sources, namely hydroelectric dams, solar photovoltaic generators and wind farms, to achieve the level of energy required by the various localities in the northern part of Cameroon (Manjong et al., 2021).
To meet energy demand, we also need to be aware of the problems posed by renewable energy installations.The use of wind power, for example, causes many problems of harmonic distortion.This is because the signals generated (current, voltage, power) contain continuous quantities.Wind power is an abundant source of harmonic distortion (Oliveira et al., 2017).This distortion creates phase imbalance.This distortion problem is compounded by Joule effect losses, conduction losses and switching losses due to the presence of power electronics components in the power generation system.More often than not, the electrical energy production system is inefficient and does not achieve the expected duration, due to the fact that the installation is poorly dimensioned on the one hand, and when the switching means for managing the communication sources are inadequate on the other (Tamalouzt et al., 2021).This is why research into algorithms (Balan, 2022) such as particle swarm optimization (Garg, 2016), genetic algorithms, fuzzy logic, neural networks, whale swarm optimization and mouse swarm optimization are essential for reducing power losses and increasing the efficiency of electrical installations.These methods (Shanmugam et al., 2022) can also be used to evaluate the size of electrical installations and the connection nodes or buses where distributed generation should be installed, in order to avoid line phase shifting (Alturki & Awwad, 2021).
Harmonics in PV/wind/hydro power systems originate in two ways (Lujano-Rojas et al., 2012): those injected into the system by non-linear loads such as incandescent lamps, televisions, microwave ovens and dishwashers.In addition, the harmonics generated by the system in the power grid feeding loads ahead of the common coupling point.
In addition, the power factor of the plant needs to be corrected, harmonics generated by the plant need to be reduced, and the hybrid system connected to the electrical grid needs to be sized in order to reduce the cost of installation and increase the service life of components.A major concern when using multi-source power plants is the quality of the energy produced.This is because decentralized producers must comply with the IEEE 519 standard, which imposes a voltage spill rate of 5% (Mahmoud, 2022) and a current spill rate of 3% for the injection of decentralized sources into power grids.The policy of decentralized production offers the possibility of purchasing green energy to compensate for a national electricity grid, and of reducing the greenhouse gases responsible for environmental pollution and the destruction of the ozone layer.
In reality, the use of renewable energies is a solution to compensate for the energy deficit on the northern interconnected grid (Kitmo et al., 2021).The prospect of integrating multi-source photovoltaic and wind power plants with hydroelectric power plants is a solution to the problem of load shedding or blackouts in the event of phase faults or plant maintenance requirements.And to solve the problem of harmonic distortion, active filters are better suited to cleaning up electrical installations.Unfortunately, the presence of passive dipoles always leads to system overheating and short-circuits.
In addition, the inclusion of mass density as a fixed variable makes it possible to standardize the manufacture of wind turbines.In terms of multi-source system optimization, maximum power point tracking can be used to improve the efficiency of hybrid photovoltaic/wind turbine systems (Mokhtara et al., 2021).
Therefore, the stochastic nature of energy due to random population growth makes it difficult to manage electrical energy.The design of multi-source installations does not take population growth into account.And once the population increases, these installations no longer supply the subscribed or expected power.The result is partial or total destruction of these installations due to overheating of the cables and receivers located on them.In some localities, solar photovoltaic installations are abandoned due to deterioration of the equipment before the expected duration, which demonstrates a huge loss because the cost of production is not amortized.Hence the need to find a suitable sizing method.Ma et al., (2021) proposed a PSO algorithm as a partial answer to solve these complexities.As the population grows, so should the number of solar panels.Unfortunately, existing systems do not guarantee the possibility of integrating other modules such as solar panels, inverters, batteries or turbines after the installations have been set up.
The use of conventional active filtering does not guarantee considerable suppression of harmonics.As a result, there are always switch delays, Joule effect losses and conduction losses.The same applies to the loss of synchronism after the hybrid system is hooked up to the electrical networks.
The manufacturers of wind turbines do not take into account the variation in mass density from one locality to another when extrapolating the power output of a wind power plant from datasheets, yet based on the law of variation in molar mass, each locality should have its own specific parameter.And we can't provide these data, which vary according to altitude or location for each part of the earth.This explains why the power output of wind turbines set by manufacturers is not always the power actually produced.As soon as you move from one location to another, the nominal parameters of wind turbines change, resulting in poor efficiency.In addition, one of the major problems faced by wind power plants is the distance to the grid interconnection site.Hence the need to look for sites close to hydroelectric power stations or interconnection substations.
Finally, the useful power given by solar panel manufacturers does not correspond to the power produced in the field.Solar panels lose their characteristics when subjected to climatic changes: temperature and solar radiation.

Geographical location of the Lokoro site
In addition to its abundant hydrocarbon resources, Cameroon's location in the region known as the Sahel gives it a prime spot for solar energy generation.Since the northern half of Cameroon is closer to the solar equator, it benefits from more sunlight than the southern parts of the country.The country's relatively flat landscape makes optimum use of the winds's average speed, making wind power the country's second most abundant resource.If current data is any indicator, an island nation's energy mix will benefit greatly from adding renewable sources like photovoltaic (PV) solar energy and wind power.Photovoltaic systems that are grid-connected have already demonstrated their economic value and ability to meet the grid's electricity needs.Extending power lines to extremely rural locations could not be cost-effective (Amigue et al., 2021).An alternative to costly network expansion is micro-electrical distributed central stations, as proposed by Njoh et al. (2019).However, the eolian systems studied in Hermann et al. (2021) thrive in the Arctic.In addition, (Muh et al., 2018) has designed, modeled, and constructed a 1.5 kilowatt (kW) experimental solar energy conversion system employing direct current (DC) motors with a maximum point of power tracking (MPPT) relation.
In the midst of the desert, there is a huge area known as Lokoro that measures 300.368 square kilometers.It was picked as an instance study because of the great potential it has for wind and solar energy.The climate of Lokoro is dry and Sahelian (Gormo et al., 2021).The highest point in Lokoro is only 535 m above sea level, making for a fairly flat environment.Figure 1 depicts the case study area's physical location.Renewable energy sources, such as sun and wind, can be difficult to harness due to their unpredictability.This is due to the fact that maintaining a steady and trustworthy supply might be challenging.This is especially challenging in interconnected systems, where fluctuations in electricity generation from sources like solar and wind power must be managed, especially for smaller networks.Combining solar photovoltaics and wind power, for example, is a potential hybrid system that creates renewable energy at a low cost and with high reliability.The purpose of this article is to examine the process of developing, modeling, and implementing PI-optimized regulators for a grid-connected photovoltaic-electronic hybrid system (Donatus Iweh & Marius, 2019).An innovative particle swarm optimization, also known as the PSO method can be used to fine-tune the PI controller's gain settings.The proposed system was evaluated at two high-traffic times of the year to determine its potential effect on the overall network.Hourly mean climate information from the past decade was used to model the system.The system was finally analyzed economically and ecologically using the software Homer (Come Zebra et al., 2021).
Figure 1 shows the geographical location of the Lokoro locality where meteorological and spatio-temporal data are processed and analyzed.

Methods and materials location evaluation and resource selection
Table 1 shows monthly averages for worldwide horizontal irradiance, maximum temperatures, and humidity.

Lokoro meteorological data forecast
The information on radiation from the sun, wind speed, and temperatures was gathered from the ASECNA, the Organization for Aerial Flight Safety in Africa including Madagascar.From 2002 to 2022, the sample represents a median of the past decade.Based on these statistics, the software estimates an 11 percent inaccuracy for normal direct irradiance during the winter and spring months.In general, February and October have less sunlight than the rest of the year.Similar trends are shown in the average monthly amounts of both direct and indirect global horizontal radiation, with the maximum values occurring in June and July of each summer.Solar power systems that take into consideration tall wind turbines benefit most from May's moderate average monthly wind velocity of roughly 6 m per second, with a maximum speed of approximately 16.5 m per second.Most solar energy is produced during the summer and spring months.The average monthly temperature exhibits a clear upward trend over the summer, peaking at 37.5 °C in July.Photovoltaic generator efficiency would drop in winter, but the associated expenses and advantages would be substantially higher in summer, spring, and fall.The software has an inaccuracy of 35 Celsius degrees when reporting the temperature.

Systematical planning and parameter establishment
Lokoro's capacity for manufacturing and energy potential are used to size the system, while predicted performance as well as investment return are taken into account during the design phase.The size of the system guarantees that it can supply at least half of Lokoro's peak demand, and expanding its capacity would turn out to be financially impractical due to the hefty initial investment and the enormous amount of land that would be needed.There are many negatives to this, such as the fact that it will take a long time to remove dust from solar panels.The design also makes use of specialized topologies to maximize output power while minimizing waste and initial investment.PV Methodology.The PV generator has a 7 MW output and uses 15,330 panels, each of which has a 360 W nominal output.In order to increase power, the multi-string oscillator structure has been implemented.Five PV panel arrays are connected in series, and everyone has a DC-DC booster converter tied to an inverter.There are eight separate PV panels in each PV panel array.There are a total of 15,320 solar panels, 368 inverters to control 348 boost inverters, and 359 wires for transmission that make up the PV system.Each pair of panels in a chain faces south to maximize solar exposure while minimizing land use, and there are three meters between adjacent pairs to prevent overshadowing.An auxiliary transformer is needed to reduce the high voltage produced by the wind to the 16 kilovolts used by the connecting transmission lines.The total system's nominal power is 75 MW, however because to variations in radiation and wind, this is rarely achieved in practice.There's no denying the system will improve network performance and prevent blackouts even during high demand.

Solar energy system modelling
Four equations governing the solar generator's output current form the basis of the model (Meira Amaral da Luz et al., 2022): (1) G 1000 where I ph , I 0 , I rs , and I sc represent photocurrent, semiconductor saturation, and inverse saturating, respectively.Current coefficients (k i ), temperature (T), nominal measurement temperature (T n ), electronic charge (q), and irradiance (G) are all represented by their respective symbols.In this article, we define some key characteristics of semiconductors, including the respective series as well as parallel resistance (R s , R p ), the constant known as Boltzmann (K), the aggregate amount of parallel-connected cells in a given cell (N s ), and the electrical energy of the restricted band (E g0 ).A the monocrystalline variety module panel is judged to have passed this test because of its extremely high manufacturing capacity of 18.04%, low price of roughly 0.5 $/kW, and consistent performance in hot climates.Furthermore, contrary to common belief, monocrystalline solar cells function very well in dry climates.The panel's most salient features are detailed in (2) (3) Reverse saturation current : Output current :  Figure 2 shows the overall system.The configuration of this system takes into account households and the interconnected network, which is that of the North Cameroon network.A photovoltaic generator, a wind farm and a battery bank are connected to a DC bus.The wind farm is connected to the DC bus via an AC-DC converter.A LR filter depollutes the sources towards the common coupling point and protects the network from harmonics generated by the non-linear loads used by households.Thanks to the algorithms, energy is managed as a function of deficit and surplus at bus level.
Figure 3 shows the experimental bench used to evaluate the harmonic rate.The system is configured using an oscilloscope for curve display and a programmable controller.

DC to DC modelling
The output can be amplified by the CC converter amplifier, which is both efficient and robust.The PV generator's variable CC outputs stress is fed into the converter, where it is transformed into a constant CC boosted tension.Figure 4 depicts the analogous electrical circuit, and Eqs.(1,2) are used to model the system (Jyothi et al., 2023).where a control the process of opening and reopening of the interrupter (K2) in the circuit, the PWM signal is generated via the MPPT's cyclical relationship.

Transformer, three-phase
A voltage inverter links the PV array to the conventional power grid.The output of the converter supplies a constant voltage to the three-phase inverter in the elevator.The output of these inductors constitutes a pulse-widthmodulated (PWM) set of three phases voltages (va, vb, and vc), and they are only utilized in high-power applications.Impulse width modulation is the process of adjusting the width of an impulse train in response to a relatively tiny control input.In Fig. 5, the RL filter (Kebbati & Baghli, 2023) is depicted as an integral part inside the electric oscillator circuit.
There are three reference frames that can be used to manage the three-phase inductors in Fig. 5: the rotating synchronized connection frame (d-q), the reference frame that stays stationary (-), as well as the equilibrium reference frame (a-b-c).Triphasic electrical currents and voltages can be regulated by rotating the Park-type transformation inside the d-q basis reference in time with the stress in the network.Because of this, triangular variables expand indefinitely.Multiple filtering methods are available due to the continuous nature of the control variables.In addition, we'll go into the specifics of how a brand-new PSO-PI was developed with the express goal of outperforming the control benchmark in question.These equations characterize the converter model: where k is the phase relationship between the oscillators, S is the state of the upper commutators, and R is the serial resistance of the filter.The inductance of the filter is denoted by L, while the potential difference between ground and Vdc is written as Vn.We can write Eq. because we have absolute certainty that both circuit breakers will be functional during every oscillator phase. (5) Equation ( 19) summarizes the turbulent flow model, which takes into consideration mass in addition the forces affecting a, b, and c.
For Modulation control, the network's tilt is determined by monitoring strains with a phase-locking loop (PLL).The PLL technique is extensively described.The Park transformation uses the grille angle to map the a-b-c component of the grille stresses to the d-q reference structure, simplifying the control and resulting in Vgd and Vgq.The oscillator's output tensions are transformed in the same way to produce Vid et Viq (the elements of the d-q oscillator).A description of Park's strategy has been:

RL filtering
Using a vectorial control strategy, a RL filter produces active as well as reactive powers that can be converted in d-q tension phase through the converter and the network (Kebbati & Baghli, 2023).These equations form the basis of the RL filter's design in Fig. 5 (10) where L represents the filter's inductance (Lf ) and R stands for its resistance (Rf ).The RL filter connects the inductance (Lf ) and resistance (Rf ) of the filter are denoted by the letters L and R, respectively.Because of their different impedances and phases, the RL filter creates a stress gap when connecting its inductive element with the electrical network.Additionally, it lessens electronic harmonics produced by the system.In order to prevent reactive power generation and guarantee a zerodegree phase mismatch between the supply voltage and the load current, active power is determined by comparing the observed reactive output (P*) to a reference value (Q*) equal zero.On the other side, the output of the PV generator determines P*.To fix the problems, the PSO-PI controller makes corrections to the d-q inverter's reference voltages (Vd* and Vq*). Figure 5 depicts the discovery's underlying mechanism, which consists of Vd* and Vq*.
To operate the motor's interrupters, the resulting voltages are inverted using the Park transformation creating three-phase on-off-reference values (Va*, Vb*, and Vc*), which are subsequently contrasted to a running MATLAB sequence.Upper commutator state, represented by PWM signals, is specified by the Eq. ( 9).The Park transformation can be inverted by using the following equation, which is also known as the "d-q to a-b-c" transformation.

Energy system modeling
The turbines, also known as wind plant, can be alternatively dynamic as well as mechanical in design, Electricity for the wind farm is generated by turbines, often called wind plants, which may be either mechanical or dynamic in construction and are linked to a pair of double-fed induction generators (or "multipliers").Figure 6 shows that the DFIG stator is connected immediately to the network and is synchronized with it, while the rotor links to the network via two back-to-back converters that each (15) � contain a correcting device, an inductive element used to power a bus, and a filter.

TSR being defined as
Cp and R stand for the power coefficient and the radius of the turbine blades, while stands for the density of the air.V denotes the velocity of the wind, t is the rotational speed of the turbine, and the angular tilt of the turbine.The maximum power coefficient depends on the values of and.To write down the highest possible power efficiency for a 7 MW wind, we have: where

Mechanical turbine model of wind
The speed (m) is calculated by comparing the generator and turbine temperatures (T m and T t , respectively).Classical rotational dynamics equation governs mechanical system behavior: (19) where J t and J m are the inertia moments of the turbine and alternator, and fv is the friction coefficient of the alternator.MPPT controller for solar energy systems.The main points motor's rotational speed is adjusted in relation to a reference pair using the highest feasible power point Tracking method to ensure maximum power extraction.In order to achieve the maximum power coefficient (Cpmax), it is crucial to maintain the TSR at its optimal value (opt).Maximum Power Point Tracking, also known as MPPT, and turbine supervision are depicted in Fig. 7.

Design of a dual-fuel induction generator
The DFIG takes inspiration from Park's playbook to facilitate the anti-victory strategy's deployment.The mutual inductive devices of both the rotor and the stator fluctuate a sinusoidal pattern as an estimate of the electric angle, but otherwise this model is a simplification of the one given in Kebbati and Baghli (2023) Stator as well as rotor voltages are regulated by the Park reference formulas (24-38).
where D-Q Tension (Vsd, Vsq), D-Q Current (Isd, Isq), D-Q Tension (Vrd, Vrq), and D-Q The current (Ird, irq) all need to be specified.Rotor and stator d-q and d-r fluxes; rotor and stator resistances; radial and angular displacements of the rotor and stator; Rr and Rs.Stator as well as rotor flow d-q components are established by: (23 where the inductance of the stator (Ls), the rotor (Lr), and the magnet (Lm) are denoted by their respective symbols.Lfs and Lfr stand for the leakage inductances of the stator and rotor, whereas m represents the transformation ratio.Using the formulas (33-36), we can calculate the stator and rotor active and reactive powers.
In Eq., Tm is the electromagnetic torque.
where p is the total amount of pole pairs.

DFIG control theory
In order to produce the reduced DFIG model used in the d-q reference, the winding of the stator resistance is disregarded.
Through solving for the stator and rotor fluxes, we can calculate the stator currents as: This leads to the following form for the rotor flux equations: (33) For the leakage coefficient, let's write: The rotor fluxes are obtained by exchanging the impact of direct and quadrature components: where ( 45) (51) e rq = σ .L r .ωr .ird The electromagnetic torque becomes as follows: Therefore, the equations below describe the reactive and active forces.
These formulae make it clear that selecting a d-q chassis makes the power output of the stator proportional to the q-component of the rotor's current, while the d-component has no bearing on the reactive power output.This means that the rotor's current d-q components can be used to regulate power without affecting the stator's active or reactive components.Reference d-q rotor currents are required for controlling d-q rotor current components.These values are calculated using the rotor's magnetic flux and the given formula: Then, the components of the reference's rotor current are created as follows: The DFIG's control mechanism, guaranteed through the rotor sides converter (RSC), is depicted in Fig. 8.
An output voltage-based modulation of pulse width (PWM) output regulates the converter's operation.

Inverter and filter that can connect to the grid
In order to control the reactive injection of electricity and bus CC voltage, the GSC is wired into the system via an RL filter, as shown in Fig. 9.It is assured that the single-factor power will be present when the reactive power of the system is zero (Q = 0).
Grid-side circuit three-phase equations are given in Eqs.
(52) The d-q representation is obtained by translating the equations into the synchronized rotating frame, which yields the following: where Using the reference values ifd* and ifq*, the PSO-PI controller is able to independently adjust the RL filter currents using the GSC.The GSC's active and reactive powers are known to be supplied by: Since it is assumed that the stresses vector is vertical to the q-axis within the synchronously rotating frame, the resistance phase that makes up the RL filter can be disregarded when estimating the d-q component parts of the tension: (60) Similar to how both active alongside reactive energies can be used as references, the reverse is also true: The DC bus's power is subdivided into: When power losses in the condenser are ignored, the voltage across the converters and the load line (RL) is equalized, and Pf control translates to Pc control, which in turn translates to Vdc control.As can be seen in Fig. 10 of the GSC Simulink model, the rotor's q-component current controls the CC-connection's voltage.

Controlling using PSO-PI
PI controllers are used extensively in industry because to their user-friendliness and dependability.Based on this error signal, the controller issues a directive according to the following equation: (68) where k p , k i , and e(t) represent the proportional, integral, and absolute gains, errors, and t, respectively.The trapezoidal discretization method is used to get the control law for our discrete version of PI, and Ts is the sampling time.Considering improvements to controllers are notoriously challenging to configure appropriately, the optimum proportional and integral responses are improved using a superior PSO.This meta-heuristic strategy is efficient and effective.Several particles represent potential solutions, and the method is founded on the notion of social interactions in a test tube.The goal is to find the velocity that allows for all of the particles together to form the best feasible arrangement, given their individual positions (represented by pi) and velocities (represented by vi).The position as well as velocity update equations guide the process, and more details can be found in Li et al., (2020) where c1 and c2 are well-established coefficients of cognitive and social acceleration, and is a well-established measure of introversion's weight.Gb and Pb stand for the best global and local positions in the current generation of swarm of particles, respectively; r1,2 [0,1] are random constants.The inertia weight, as well as the social and cognitive accelerations, are fixed parameters in traditional PSO. (76) For a decay rate which happens exponential from "max" to "min" (the largest and lowest inertia masses, respectively), the numbers "C1, C2" are constants that have been adjusted, where "g" and "G" stand for the current generation and the generation before it, respectively.This variant's global search capability greatly exceeds that of previous variants due to the exponential decrease, which hastens settlement toward the best global solution.Increasing c1 aids exploration by hastening particle movement toward Pb, while increasing c2 aids exploitation.The suggested PSO optimizes the overall model by performing PI kp, ki procedures.The standard deviation from the average squared error is used as the function of fitness in the PSO algorithm, as shown in Fig. 11.The PSO technique performs model optimizations in an iterative manner, maximizing the simulation's usefulness each time.PSO was used to optimize an anticipated controller framework for use in the trajectory tracking of autonomous vehicles.Like the PID controller utilized by the self-driving system.
This research focuses on a massive-scale hybrid technology with the potential to pump power directly into the grid.Such systems require a substantial initial investment, but they pay off in the long run.The project's viability and cost-effectiveness are heavily influenced by the system's scale.A system's total cost is the sum of its purchase price and the money spent on its upkeep and operation over its lifetime.The whole initial investment (78) Fig. 11 Park transformation dq-abc must incorporate not just the cost of the system but also transportation, packing, and set-up.The formula below can be used to calculate the amount spent on capital expenditures.

Use of the planning system HOMER
Homer (Kebbati & Baghli, 2023) is used to analyze the financial and ecological impacts of fully connecting the system to the network.All of the generated electricity will be added to the regional distribution system.Homer is a tool that can calculate rough estimates of recurring expenses as those found in tech upkeep, repair, and replacement.Operating and maintenance costs include things like insurance premiums, salaries, taxes, and other periodic expenditures.They are presented as a percentage of the total seed money.Components of a system have replacement costs anytime they are updated due to their varying degrees of dependability and the possibility of numerous replacements over the course of their service life.When doing economic evaluations, the leveling cost of energy (LCOE) is the most important factor to consider when assessing the profitability of energy systems.This final price takes into account all energy units produced by the components of the system over the course of its lifetime.
To determine the LCOE, we divide the total energy produced by the system from the sum that includes the LCOE and the costs of setup, operation, and upkeep.The discounted cash flow method can be used to determine the LCOE.The LCOE is calculated by dividing the total expenditures of the system by its total income.where I0, A t , and M t,el stand for the initial investment, annual cost, and production (in megawatt-hours), respectively.Interest rate per year (i), economic cycle length (n), and calendar year (t) are all indicated by their corresponding abbreviations.The VAN calculates the overall profit and true worth of the construction endeavor at any time by discounting the future benefit and expenditure flows to the present.The VAN is calculated by subtracting outgoing cash flows from incoming cash flows over a specified time frame.In order to determine a project's total cost, the VAN formula employs value equivalents.
(79) where R t along with C t are sales and costs in year t; i is the compound annual growth rate; and I0 is the initial investment.The time that it requires for a system to get its money back from the project in the form of cash flows is known as the recovery period.The faster you can repay your initial investment, the better.After the end of the recovery period, cash flow distribution are often planned.Below is a formula that can be used to approximate how long it will take to recover: (81) Payback period = Initial Investment Cash inflow per period Figure 12 shows the configuration of the overall system in the HOMER software.From this configuration we can see the different parts which make up the scenarios: PVwind, PV-wind-battery, PV-wind-battery-grid.The cost evaluation of this overall system in HOMER gives an idea of the optimization or feasibility before the operations are implemented.

Results and discussion
Figure 13 shows the household load profile, the photovoltaic power, the wind power and the grid power profile.These power profiles are presented over a 24-h period with loads running at full capacity.An average of 35 MW is available over a 24-h period thanks to the combination of different sources.
Figure 14 shows the cost of energy for an average day.From this curve we can see that the cost of producing energy evolves as a function of demand over a 24-h period.This figure shows that the cost of production has decreased considerably thanks to the algorithms chosen for this optimization.
Figure 15 shows the voltage profile of the inverter that is assumed to be connected before calculating the rate of harmonic distortion at the common coupling point (PCC).Thanks to this inverter and the quality of the filter, a reduction in the rate of harmonic distortion can be observed.We can see that the profile of this voltage is closer to the sinusoid.
Figure 16 shows the regulation of the forward voltage after the three-phase two-phase transformation and the two-phase three-phase transformation.It can be seen that the current follows its reference and overshoot is not too noticeable.This shows good regulation using the PI controller from the PPL phase-locked loop.Figure 17 shows the power generated by the wind farm and its Cp coefficient on the same graph.It can be seen that the power has a good profile and a production of 2200 kW is observed for a maximum of Cpmax at 54%.This curve shows the power profile and the level reached by the Cp coefficient as a function of speed over a 24-h period.
Figure 18 shows the current voltage and power voltage characteristics.It can be seen that power is delivered under normal conditions.This will not be the same when the system is subjected to stochastic disturbances such as variations in sunshine or temperature due to shading.This figure shows the power and current profile in the absence of total or partial shading.
Figure 19 shows the voltage profile of photovoltaic and wind energy sources.These voltage profiles are obtained by hybridizing the PSO algorithms with the algorithms.It can be seen that when the algorithms have improved performance, they are combined to manage the constraints and complexities of chaotic systems.In the absence of a combination of two primary sources, we find that the voltage profile is unstable whereas when we merge photovoltaic and wind sources, we have a good voltage profile.A bad voltage profile is when there is only one voltage source.The voltage level is unstable when only one source is used, whereas it is stable when the two sources are merged.The curve shows voltage stability when two sources are merged.This is observed at buses 15, 17, 19 and 24, where nonlinear loads can be connected without creating network instability.For voltage level compensation in the event of a deficit, the integration of a battery bank makes it possible to regulate these voltage dips.
Figure 20 shows the voltage profile of different configurations using the PSO, WOA, Cuckoo search and GA algorithms.In this section we are interested in observing the merging behavior of two renewable energy sources, commonly known as distributed generation (DG).For the present work, the two DGs are the photovoltaic source and the wind source.For this figure, the voltage profile is presented for its photovoltaic and wind hybrid sources.With a single distributed generation (DG), the voltage profile is low and unstable compared with that for which there is a combination of two distributed generations (2DG).It can be seen that different DGs can be allocated to buses 25, 30, 35, 41 and 50 without disturbing the system.This voltage profile shows that the system is stable between bus 26 and bus 58.However, the system is unstable on buses 10, 20, 55 and 65.This test is based on the IEEE 69-bus standard.
Figure 21 shows the speed of convergence of the cost function which evaluates the size of the whole system and the allocation of its secondary sources to the different configuration buses of the radial point system, since the system configures on the non-radial interconnected network.We can see that the function converges towards the best scores for an iteration of n = 10.Convergence is total and reaches the minimum cost from iteration n = 70.
Table 3 shows the power level at the various nodes of the radially configured 33 bus.The size of the different distributed generations is given and the power losses are evaluated on the different buses.The same applies to reactive power losses on the same voltage profile of the standard 33 bus.An average power of 5 MW is observed on almost all the buses.These buses represent the network connection nodes.It is therefore possible to connect to these different location's sizes consuming an average of 5 MW.This capacity is sufficient for 24-h operation without any stability or blackout.
Figure 22 shows the variation in current voltage and power voltage characteristics for a photovoltaic system connected to the DC bus when some modules are subjected to partial shading.Shading of 55% gives a power of 33.12 W on a module.This corresponds to a voltage of 18.47 V and a current of 1.79 A.
Figure 23 shows the search for a point of maximum power using the MPPT algorithm based on PSO, GA, WOA and Cuckoo search.It can be seen that for a variation in rotation speed at angles 11 degrees 9 degrees 7 degrees, 3 degrees and minus 3 degrees, the maximum torque cp is obtained.We note that for negative or positive variation of these coefficients, the maximum is always obtained and the curve describes a function which follows the law of variation of the non-linear loads.
When the loads are connected, Fig. 24 shows the profile of grid power, solar power, wind power and household demand.Over a 24-h period, demand peaks are observed at 7 am and 6 pm.These phenomena correspond to household needs.From 6 pm onwards, people start to return home from work.
Figure 25 shows the configuration of the different combinations of hybrid sources with battery.It can be seen that the PV-Wind-grid-Battery scenario can satisfy demand compared with the other scenarios.This voltage profile is presented on the IEEE 33-bus standard test, which corresponds to the architecture of the radial system of the North Cameroon interconnected network, especially in the Lokoro locality.This shows that the wind and photovoltaic energy resources at this site are sufficient to produce a large amount of capacity to reinforce the electricity networks in this area.This capacity can meet the needs of households and be injected into neighboring areas.
Figure 26 shows the result observed on the test bench.This figure shows the shape of the inverter voltage and  the disturbance observed on the three three-phase lines.There are harmonic disturbances due to fluctuations and variations in frequency following peaks in demand from non-linear loads and shortfalls from primary sources (photovoltaic generator, wind power plant, battery discharges or network blackouts).
Figure 27 shows the rate of harmonic distortion for a 1958 kV fundamental amplitude at 50 Hz.The rate of harmonic distortion is obtained for THD = 0.25%, which is much lower than the rate authorized for the integration of primary sources: photovoltaic and wind power, into an interconnected grid.This result complies with the connection standard and the norms in force.Evaluation of the harmonic distortion rate gives an idea of the quality of the energy and the voltage level observed at the common coupling point (CCP).We can see that the combination of these primary photovoltaic and wind sources does not produce too many network malfunctions, and that the filter has been able to clean up the distortions and pollution generated by the loads from households.This rate of harmonic distortion shows that the filter has played an important role on the one hand and that the size of the overall system has been well dimensioned on the other.This was achieved thanks to the PSO algorithms, which showed a good convergence speed for an iteration of less than n = 10.Thanks to these algorithms, the allocation or connection of non-linear loads could be integrated into the various buses of the radial network.It can be seen that PSO algorithms combined with genetic algorithms are better suited to the allocation and sizing of distributed generation plants.

Conclusion
After evaluating the size of the entire photovoltaicwind-battery-grid system using the PSO, WOA, GA and Cuckoo search algorithms, the technical and economic optimization was carried out in the software.The production cost of the system was observed at a discount for a 96% integration efficiency of the distributed generators.In other words, the algorithms were compared and analyzed.The PSO algorithms showed the best performance thanks to the convergence of the cost function.From data observed in HOMER and on the IEEE 33-bus and IEEE 69-bus test, it is reliable to carry out the configuration of the PV wind-battery-grid system to meet the demand at the locality of Lokoro, Cameroon.This system could not only meet the energy demand of the locality, but also compensate for the energy deficit in order to reinforce the North Cameroon interconnected grid.This proves that once the system is up and running, it will be possible to eliminate the load shedding and untimely power cuts that have been observed for more than five years in the northern part of Cameroon.In this part of the country, a number of localities and households have been unable to get electricity for three days out of every seven for almost five years.An assessment of the cost of the installation and the power loss will enable us to analyze the feasibility of the system and the impact of integrating it into the northern interconnected grid.However, this work could be limited because the parameters that currently influence the hydroelectric plant are not taken into account.There may be a shortage of water in the dam.This shortage can be seen as a prospect for meeting considerable demand and eliminating load shedding by reinforcing all the power lines in Cameroon.

Fig. 5
Fig. 5 DC-AC with LR filter configuration

Fig. 6
Fig. 6 System of PLL control

Fig. 12
Fig. 12 System configuration using HOMER software

Fig. 14
Fig. 14 System configuration using HOMER software

Fig. 16
Fig. 16 System configuration using HOMER software

Fig. 18
Fig. 18 I-V and P-V characteristics of PV module

Fig. 22 I
Fig. 22 I-V characteristics under partial shading of PV modules

Table 1
Solar irradiation data

Table 2
Cell parameters Fig. 2 Configuration of overall System

Table 2 .
The formulae for determining series (R s ) and shunt (R p ) resistances are.

Table 3
Evaluation of power losses on IEEE 33 bus