Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2025 Dec 29;15:44836. doi: 10.1038/s41598-025-28884-9

Bio-inspired mitochondrial energy optimization for enhanced grid-connected inverter performance in weak grid systems

Mrinal Kanti Rajak 1,, Rajen Pudur 1
PMCID: PMC12749809  PMID: 41462503

Abstract

This paper presents a novel Mitochondrial Energy Production Optimization (MEPO) algorithm for enhancing grid-connected inverter control under weak grid conditions. The proposed bio-inspired approach addresses critical challenges in maintaining power quality and system stability in low Short Circuit Ratio (SCR) environments while ensuring robust performance during grid disturbances. A comprehensive LCL filter design achieves Inline graphic magnitude attenuation with Inline graphic phase margin at the resonant frequency of Inline graphic, providing superior harmonic suppression. The MEPO controller demonstrates exceptional performance with current Total Harmonic Distortion (THD) of Inline graphic, significantly outperforming Particle Swarm Optimization (Inline graphic) and Genetic Algorithm (Inline graphic) approaches. Dynamic response tests confirm rapid settling times of Inline graphic for current control and voltage regulation within Inline graphic, while maintaining a power factor of 0.998. Experimental validation on a Inline graphic prototype verifies the algorithm’s effectiveness, achieving precise d-q axis current control with steady-state errors below Inline graphic and robust frequency tracking at Inline graphic. Rigorous statistical analysis across 100 independent trials validates the algorithm’s reliability with a Inline graphic success rate and Inline graphic faster convergence than conventional methods. The proposed MEPO solution represents a significant advancement in grid-connected inverter technology, particularly beneficial for renewable energy integration in weak grid environments.

Keywords: Grid-connected inverter, Weak grid control, MEPO algorithm, Power quality optimization, Renewable energy integration, Bio-inspired optimization

Subject terms: Electrical and electronic engineering, Computational science

Introduction

Integrating renewable energy sources into modern power grids has fundamentally transformed the landscape of power electronics and control systems design. Grid-connected inverters, serving as the crucial interface between renewable sources and the utility grid, demand increasingly sophisticated control strategies to meet stringent performance requirements1. The conventional approaches to inverter control, while providing foundational reliability, often fall short in achieving optimal performance across the broad spectrum of operating conditions demanded by contemporary grid standards24. This limitation becomes particularly evident in the context of increasing renewable energy penetration, where system dynamics are characterized by inherent nonlinearities, multiple competing objectives, and strict operational constraints5,6.

The significance of optimizing grid-connected inverter control systems extends far beyond basic functionality. In the realm of power quality, enhanced control strategies directly impact harmonic suppression, voltage regulation, and power factor correction capabilities7,8. These improvements translate into more stable grid operation, reduced equipment stress, and enhanced system reliability. From an economic perspective, optimized control systems contribute to higher energy conversion efficiency, reduced maintenance requirements, and improved return on investment for renewable energy installations9. The technical advancement brought about by sophisticated control optimization pushes the boundaries of what’s achievable in terms of system performance and grid support capabilities10.

Traditional design approaches for grid-connected inverter controllers have predominantly relied on classical control theory and empirical tuning methods1113. While these approaches have served the industry well, they often result in suboptimal performance when faced with the complexities of modern power systems. The variable nature of renewable energy sources, coupled with increasingly stringent grid codes, necessitates more adaptive and intelligent control strategies14,15. This challenge is further compounded by the need to simultaneously optimize multiple performance metrics while maintaining system stability and respecting operational constraints16.

The present work introduces the Mitochondrial Energy Production Optimization (MEPO) algorithm, a novel bio-inspired optimization approach specifically designed for grid-connected inverter control systems. The algorithm draws inspiration from cellular energy production processes, mapping biological concepts such as electron transport chains, proton gradients, and ATP synthesis to mathematical optimization mechanisms. This unique approach enables the algorithm to effectively handle the multi-objective nature of inverter control optimization while maintaining robust performance across varying operating conditions17.

The development of MEPO was motivated by several critical factors in the current power electronics landscape. Existing optimization methods often struggle to effectively balance multiple competing objectives while maintaining system stability and respecting operational constraints. The increasing stringency of grid codes and growing demand for higher efficiency and reliability have created a need for more sophisticated optimization approaches. Furthermore, advancements in computational capabilities and improved understanding of biological systems have opened new possibilities for bio-inspired optimization strategies.

The novelty of the proposed approach lies in its comprehensive integration of biological principles with control system optimization. The algorithm’s transfer operator, inspired by electron transport chain mechanisms, enables effective exploration of the solution space while maintaining solution quality. The gradient estimation method, based on proton gradient principles, provides efficient local optimization capabilities. The local search mechanism, modeled after ATP production, ensures fine-tuning of control parameters. These components work in concert to achieve superior performance compared to traditional optimization methods.

The implementation strategy for MEPO addresses several practical considerations in grid-connected inverter applications. The algorithm incorporates efficient computational structures and advanced parallelization schemes to enable real-time optimization capabilities. Novel convergence mechanisms ensure reliable optimization outcomes, while robust adaptation capabilities allow the system to respond effectively to changing operating conditions. The integration of stability preservation mechanisms and constraint handling approaches ensures practical applicability in real-world systems.

This paper presents a comprehensive analysis of the proposed MEPO algorithm, beginning with a thorough literature review examining existing optimization methods and control strategies for grid-connected inverters. The mathematical framework is then developed in detail, including system modelling, optimization variable definition, objective function formulation, and update rule derivation. Implementation details are presented, covering control signal generation, performance metric evaluation, and practical considerations. Extensive simulation results demonstrate the algorithm’s effectiveness across various operating conditions, with experimental validation verifying practical applicability.

The anticipated contributions of this work are multifaceted. The novel bio-inspired optimization algorithm represents a significant advancement in grid-connected inverter control optimization. The comprehensive mathematical framework provides a solid foundation for future developments in this field. Detailed performance analysis and experimental validation demonstrate the practical benefits of the proposed approach. Through these contributions, this work advances the state-of-the-art in power electronics control optimization while providing practical solutions for industry implementation.

The remainder of this paper is organized to systematically present the theoretical development, implementation details, and validation results of the proposed approach. Following the literature review, the mathematical framework of MEPO is developed in detail. Implementation considerations and practical aspects are then discussed, followed by comprehensive simulation studies and experimental validation. The paper concludes with a discussion of results and future research directions, providing a complete examination of this novel optimization approach for grid-connected inverter control systems.

Bio-inspired optimization framework

The core innovation of MEPO lies in its systematic mapping of cellular energy production mechanisms to mathematical optimization operators. This mapping establishes a unique framework that combines biological principles with control theory to achieve robust optimization performance Fig. 1.

Fig. 1.

Fig. 1

MEPO’s biological-mathematical mapping framework. The electron transport chain (ETC) inspires solution transfer mechanisms, proton gradients guide optimization direction, and ATP synthesis processes inform local search strategies.

Fundamental mapping components

MEPO’s architecture comprises three primary biological-mathematical mappings. First, the electron transport chain (ETC) mechanism is translated into a transfer operator that enables effective solution space exploration:

graphic file with name d33e309.gif 1

where Inline graphic and Inline graphic represent candidate solutions and Inline graphic. The transfer probability follows biological principles:

graphic file with name d33e326.gif 2

with Inline graphic representing fitness difference and T controlling exploration-exploitation balance.

Second, the proton gradient across mitochondrial membranes inspires a gradient-based optimization operator:

graphic file with name d33e341.gif 3

where Inline graphic follows an adaptive schedule:

graphic file with name d33e350.gif 4

Third, ATP synthesis processes are mapped to a local search mechanism:

graphic file with name d33e355.gif 5

featuring controlled exploration through variance decay:

graphic file with name d33e360.gif 6

Integrated optimization process

These biological-mathematical mappings work in concert through a combined update rule:

graphic file with name d33e368.gif 7

This integration ensures balanced optimization by combining global exploration through the transfer operator, directed search via gradient information, and local refinement through controlled perturbations.

The framework’s convergence is guaranteed under standard conditions including function continuity and appropriate parameter scheduling. Notably, the probability of reaching the global optimum approaches unity as iterations progress:

graphic file with name d33e375.gif 8

where Inline graphic denotes the global optimum.

Mathematical formulation

Solution space definition

The optimization process is defined within a bounded search space Inline graphic:

graphic file with name d33e394.gif 9

where each component Inline graphic is bounded by:

graphic file with name d33e403.gif 10

Here, Inline graphic and Inline graphic represent the lower and upper bounds for the Inline graphic-th decision variable.

A population of Inline graphic solutions is represented as:

graphic file with name d33e427.gif 11

where each row of Inline graphic corresponds to a solution vector within the search space Inline graphic.

Transfer operator

The transfer operator is responsible for exchanging information between two solutions Inline graphic and Inline graphic. It is defined as:

graphic file with name d33e452.gif 12

where Inline graphic is a random vector sampled from Inline graphic.

The operator is applied probabilistically based on the fitness difference:

graphic file with name d33e467.gif 13

Here, Inline graphic denotes the fitness difference, Inline graphic represents the electron transfer rate, and Inline graphic is a temperature-like parameter controlling randomness.

The transfer operator ensures that better solutions are more likely to influence the population while maintaining diversity. Its properties include:

  • Conservation:
    graphic file with name d33e492.gif 14
  • Reversibility:
    graphic file with name d33e501.gif 15
  • Ergodicity: The operator ensures that all regions of the search space can be explored given sufficient time.

Gradient operator

The gradient operator is responsible for guiding solutions toward optimal regions of the fitness landscape. It is defined as:

graphic file with name d33e514.gif 16

where Inline graphic represents the gradient of the fitness function, and Inline graphic is a time-varying step size:

graphic file with name d33e527.gif 17

In population-based optimization, the gradient is approximated as:

graphic file with name d33e532.gif 18

where Inline graphic are the Inline graphic-nearest neighbors of Inline graphic, and the weights Inline graphic are defined as:

graphic file with name d33e554.gif 19

The step size Inline graphic is designed to satisfy the Robbins-Monro conditions:

graphic file with name d33e564.gif 20

ensuring convergence over iterations.

Local search operator

The local search operator introduces stochastic perturbations to refine promising solutions. It is defined as:

graphic file with name d33e573.gif 21

where Inline graphic is a Gaussian perturbation with variance Inline graphic that decreases over time:

graphic file with name d33e586.gif 22

The decay parameter Inline graphic is given by:

graphic file with name d33e596.gif 23

where Inline graphic is the total number of iterations.

The local search operator focuses on exploiting the neighborhood of promising solutions while gradually reducing exploration as the algorithm converges.

Combined update rule

The sequential application of the operators produces the complete update rule:

graphic file with name d33e611.gif 24

Alternatively, the operators can be applied in parallel with weighted contributions:

graphic file with name d33e616.gif 25

where Inline graphic and Inline graphic.

Constraint handling

For bounded decision variables, the following projection is applied:

graphic file with name d33e633.gif 26

For general constraints Inline graphic, a penalty function modifies the fitness as:

graphic file with name d33e642.gif 27

where Inline graphic is a penalty parameter.

Convergence properties

The error between the solution and the optimum decreases exponentially:

graphic file with name d33e655.gif 28

where Inline graphic.

The optimization process satisfies the first-order optimality condition:

graphic file with name d33e666.gif 29

and the second-order condition:

graphic file with name d33e671.gif 30

indicating that Inline graphic is a local minimum.

The stability of the process is ensured by the Lyapunov function:

graphic file with name d33e682.gif 31

which satisfies:

graphic file with name d33e687.gif 32

This guarantees that Inline graphic converges to Inline graphic as Inline graphic.

MEPO process

The algorithm progresses through initialization, iterative operator application, and termination phases. Each phase is systematically derived to ensure population diversity, adaptive exploration, and convergence toward the global optimum.

Initialization phase

The initial population is generated within the defined search space:

graphic file with name d33e712.gif 33

where Inline graphic for Inline graphic. Each element of Inline graphic is initialized as:

graphic file with name d33e729.gif 34

where Inline graphic and Inline graphic are the lower and upper bounds for the Inline graphic-th dimension, and Inline graphic is a uniform random variable.

Purpose: Ensures uniform coverage of the search space and promotes initial population diversity.

Main loop

The iterative process applies three operators: transfer, gradient, and local search. The population is updated in each iteration to improve the quality of solutions.

Transfer phase

The transfer operator combines solutions probabilistically:

graphic file with name d33e763.gif 35

where Inline graphic. The application of the operator is controlled by:

graphic file with name d33e772.gif 36

Properties: Preserves high-quality solutions, enables exploration through controlled mixing and balances exploitation and diversity via the temperature parameter Inline graphic.

Gradient phase

The gradient operator refines solutions based on the estimated fitness landscape:

graphic file with name d33e787.gif 37

where Inline graphic is the step size:

graphic file with name d33e796.gif 38

The gradient Inline graphic is estimated using population-based dynamics:

graphic file with name d33e805.gif 39

where Inline graphic are the Inline graphic-nearest neighbors of Inline graphic, and Inline graphic are weights based on distance:

graphic file with name d33e827.gif 40

Properties: Drives solutions toward optimal regions adapts the step size dynamically for convergence and incorporates population-level information for robust gradient estimation.

Local search phase

The local search operator refines the top Inline graphic solutions:

graphic file with name d33e842.gif 41

where Inline graphic decreases exponentially over time:

graphic file with name d33e851.gif 42

The refined solution is accepted if it improves the fitness:

graphic file with name d33e856.gif 43

Properties: Focuses on exploiting promising regions of the search space, reduces exploration over time through variance decay and maintains elite solutions for convergence.

Selection and update

The population is updated by selecting the best solutions from the combined set of old and new candidates:

graphic file with name d33e867.gif 44

The selection probability is governed by the Boltzmann distribution:

graphic file with name d33e872.gif 45

Properties: Ensures elitist selection to retain high-quality solutions and maintains diversity through probabilistic selection pressure.

Termination criteria

The algorithm terminates when one of the following conditions is satisfied:

  1. The fitness improvement between consecutive iterations is below a threshold:
    graphic file with name d33e889.gif 46
  2. The maximum number of iterations is reached:
    graphic file with name d33e898.gif 47
  3. The gradient norm is sufficiently small:
    graphic file with name d33e907.gif 48

Properties: Prevents unnecessary iterations by detecting convergence and ensures algorithm stability and efficiency.

Integrated update rule

The overall update process combines the three operators sequentially:

graphic file with name d33e919.gif 49

Properties: Balances exploration and exploitation and guarantees that the population improves or maintains its quality over iterations.

The MEPO algorithm, as shown in Fig. 2 represents a systematic optimization process that begins with population initialization, where solutions are randomly distributed within the search space bounds. The main loop consists of three key biologically inspired operators: Electron Transfer (Inline graphic), which performs solution mixing with probability Inline graphic; Gradient Update (Inline graphic), which moves solutions along estimated descent directions with adaptive step size Inline graphic; and Local Search (Inline graphic), which refines solutions through controlled Gaussian perturbations Inline graphic.

Fig. 2.

Fig. 2

MEPO algorithm block diagram.

Each iteration progresses through these operators sequentially, with solutions evaluated and selected based on fitness improvement. The transfer operator enables exploration through solution mixing, while the gradient operator guides the search toward promising regions, and the local search operator fine-tunes the best solutions. Selection maintains population diversity while preserving elite solutions through a Boltzmann-based probability distribution:

graphic file with name d33e965.gif

The convergence check evaluates three criteria: fitness improvement threshold Inline graphic, maximum iterations Inline graphic, and gradient magnitude Inline graphic. If any criterion is met, the algorithm terminates; otherwise, it loops back to the transfer phase. This process continues until optimal or near-optimal solutions are found, with each operator’s parameters (Inline graphic, Inline graphic, Inline graphic) adapted over time to transition from exploration to exploitation.

The MEPO algorithm’s block diagram represents a sophisticated optimization framework starting with the initialization phase, where the population Inline graphic is generated within the bounded search space Inline graphic. Each solution vector contains control parameters structured as Inline graphic, initialized using a uniform random distribution to ensure diverse starting points. This initialization block feeds into three parallel processing phases that form the core of the MEPO algorithm.

The Electron Transfer Phase, depicted in the left branch of the diagram, implements the biological analogue of electron transport chain mechanics through the transfer operator Inline graphic. The mathematical formulation Inline graphic is governed by the acceptance probability Inline graphic, where the temperature parameter T controls the exploration-exploitation balance. This block dynamically adapts Inline graphic as Inline graphic, ensuring proper scaling of the transfer probability throughout the optimization process. The central branch represents the Gradient Update Phase, employing population-based gradient estimation for directed search. The update mechanism Inline graphic utilizes an adaptive step size Inline graphic that satisfies the Robbins-Monro conditions for convergence. The gradient approximation Inline graphic incorporates information from the K-nearest neighbours, weighted by distance-based kernels to ensure robust estimation.

The Local Search Phase, shown in the right branch, implements fine-tuning through controlled Gaussian perturbation. The operation Inline graphic, where Inline graphic, includes variance scheduling via Inline graphic to transition from exploration to exploitation. This block selectively applies the local search to the top-performing solutions, ensuring efficient refinement of promising regions in the parameter space. The Selection and Update block combines outputs from all three phases through a Boltzmann-based selection mechanism. The selection probability Inline graphic maintains population diversity while preserving elite solutions. The population update Inline graphic ensures monotonic improvement in the population’s quality over iterations. The Convergence Check diamond implements multiple termination criteria: fitness improvement threshold Inline graphic, maximum iterations Inline graphic, and gradient magnitude Inline graphic. These criteria form a logical OR operation, where the satisfaction of any criterion triggers termination. The feedback loop enables iterative improvement until convergence conditions are met.

The entire system operates under the integrated update rule

graphic file with name d33e1086.gif 50

where the sequential application of operators ensures comprehensive search capabilities. The block diagram emphasizes both the parallel nature of the core operators and their sequential integration through the selection mechanism, creating a robust framework for optimizing the complex parameter space of grid-connected inverter control systems.

Parameter control and convergence analysis

Parameter control

The MEPO algorithm incorporates adaptive parameter control mechanisms to balance exploration and exploitation dynamically, as shown in Fig. 3.

Fig. 3.

Fig. 3

MEPO parameter control block diagram.

Electron transfer rate control

The electron transfer rate Inline graphic is dynamically adjusted over iterations:

graphic file with name d33e1118.gif 51

where Inline graphic is the initial rate, Inline graphic is the maximum number of iterations, and Inline graphic is the decay factor (typically 1-2). Success-based adaptation further refines Inline graphic:

graphic file with name d33e1140.gif 52

where Inline graphic is the adaptation rate, typically 0.1-0.2.

Gradient step size control

The step size for the gradient operator is updated dynamically:

graphic file with name d33e1153.gif 53

where Inline graphic is the initial step size, and Inline graphic is the decay parameter (typically 0.01-0.1). An adaptive version adjusts Inline graphic based on gradient norm:

graphic file with name d33e1170.gif 54

where Inline graphic is the adaptation rate (typically 0.05-0.15).

Local search variance control

The variance of the local search operator decreases exponentially over time:

graphic file with name d33e1184.gif 55

where Inline graphic is the initial variance, and Inline graphic is the decay rate (typically 0.01–0.05). Success-based adaptation modifies Inline graphic as follows:

graphic file with name d33e1201.gif 56

where Inline graphic is the adaptation rate (typically 0.1–0.2).

Convergence analysis

The convergence of the MEPO algorithm is analyzed under established mathematical conditions.

Global convergence theorem

If Inline graphic is continuous and bounded below, the algorithm satisfies:

graphic file with name d33e1223.gif 57

where Inline graphic is the global optimum. Convergence requires:

  1. Inline graphic,

  2. Inline graphic,

  3. Inline graphic.

Convergence rate analysis

For local convergence, the following inequality holds:

graphic file with name d33e1261.gif 58

where Inline graphic is the strong convexity parameter. The convergence rate is linear:

graphic file with name d33e1270.gif 59

where Inline graphic are constants.

Stability analysis

Stability is ensured through a Lyapunov function:

graphic file with name d33e1283.gif 60

which satisfies:

graphic file with name d33e1288.gif 61

where Inline graphic is a positive constant.

Error bounds

The expected error satisfies:

graphic file with name d33e1301.gif 62

where Inline graphic is the Lipschitz constant of Inline graphic, and Inline graphic is the step size.

Population diversity

Diversity within the population is measured as:

graphic file with name d33e1322.gif 63

The diversity is maintained if:

graphic file with name d33e1327.gif 64

where Inline graphic is a small positive constant.

Implementation foundations

Implementing the MEPO algorithm is based on three core operators: transfer operation, gradient estimation, and local search. These operators are mathematically designed to balance exploration and exploitation in the solution space.

The algorithm progresses through initialization, iterative operator application, and termination phases. Each phase is systematically derived to ensure population diversity, adaptive exploration, and convergence toward the global optimum. The complete execution flow of the MEPO algorithm is illustrated in Fig. 4, which provides a step-by-step visualization of the optimization process from initialization through convergence.

Fig. 4.

Fig. 4

MEPO algorithm flowchart.

Core operators

Transfer operation

The transfer operation mixes two solutions Inline graphic and Inline graphic probabilistically to explore new regions of the search space. The operation is defined as:

graphic file with name d33e1366.gif 65

where Inline graphic is a mixing coefficient. The probability of transfer depends on the fitness difference:

graphic file with name d33e1375.gif 66

where Inline graphic is the fitness difference, Inline graphic is the electron transfer rate, and Inline graphic is the temperature parameter controlling acceptance probability.

Gradient estimation

The gradient estimation operator directs solutions toward promising regions based on population dynamics. The gradient at a solution Inline graphic is estimated as:

graphic file with name d33e1401.gif 67

where Inline graphic are the Inline graphic-nearest neighbors of Inline graphic, and Inline graphic are weights computed as:

graphic file with name d33e1423.gif 68

This operator combines local fitness information with distance-based weighting to approximate the descent direction.

Local search

The local search operator refines solutions by introducing stochastic perturbations. It is defined as:

graphic file with name d33e1432.gif 69

where Inline graphic is the variance of the perturbation, decreasing exponentially over iterations:

graphic file with name d33e1441.gif 70

This operator enables fine-tuning in the vicinity of high-quality solutions, balancing exploration and exploitation.

Complexity analysis

Time complexity components

The time complexity of the algorithm arises from three key operations:

  • Population operations:
    graphic file with name d33e1457.gif 71
    for pairwise interactions during the transfer operation.
  • Gradient estimation:
    graphic file with name d33e1466.gif 72
    where Inline graphic is the number of nearest neighbors used in gradient computation.
  • Local search:
    graphic file with name d33e1479.gif 73
    for perturbation and fitness evaluation.

Runtime and convergence rate

The runtime bounds and convergence rate are characterized as follows:

graphic file with name d33e1488.gif 74

where Inline graphic is the desired accuracy and Inline graphic is the strong convexity parameter. The convergence rate satisfies:

graphic file with name d33e1501.gif 75

with a linear convergence rate:

graphic file with name d33e1506.gif 76

Extensions

Multi-objective framework

The algorithm can be extended to handle multi-objective problems using Pareto dominance:

graphic file with name d33e1516.gif 77

The diversity of Pareto solutions is measured as:

graphic file with name d33e1521.gif 78

The archive of non-dominated solutions is updated dynamically:

graphic file with name d33e1526.gif 79

where Inline graphic denotes the non-dominated set operator, and the archive size is limited by Inline graphic.

Constraint handling

Constraints are handled using penalty functions:

graphic file with name d33e1543.gif 80

where Inline graphic increases over iterations. Feasibility is enforced by projecting solutions onto the feasible set:

graphic file with name d33e1552.gif 81

where Inline graphic.

Dynamic optimization

For dynamic environments, changes in the objective function are detected using:

graphic file with name d33e1565.gif 82

and variance-based metrics:

graphic file with name d33e1570.gif 83

Parameters are adapted dynamically:

graphic file with name d33e1575.gif 84

where Inline graphic and Inline graphic are adaptation rates. The memory of past solutions is updated as:

graphic file with name d33e1589.gif 85

where Inline graphic contains the best solutions in the population.

System modelling for grid-connected inverter using MEPO

Basic circuit analysis

The grid-connected inverter is modelled using an LCL filter. The differential equations governing the filter dynamics are given as:

graphic file with name d33e1604.gif 86
graphic file with name d33e1608.gif 87
graphic file with name d33e1612.gif 88

where:

  • Inline graphic: Inductances of the inverter and grid sides, respectively.

  • Inline graphic: Filter capacitance.

  • Inline graphic: Inverter voltage, capacitor voltage, and grid voltage, respectively.

  • Inline graphic: Inverter-side and grid-side currents, respectively.

State-space representation

Defining the state vector Inline graphic and the input vector Inline graphic, the state-space model is represented as:

graphic file with name d33e1654.gif 89

where:

graphic file with name d33e1659.gif 90
graphic file with name d33e1663.gif 91

Transfer functions

The transfer function from inverter voltage to grid current is derived as:

graphic file with name d33e1671.gif 92

Similarly, the transfer function from inverter voltage to capacitor voltage is:

graphic file with name d33e1676.gif 93

Power flow equations

The active (Inline graphic) and reactive (Inline graphic) power in the Inline graphic-frame are expressed as:

graphic file with name d33e1696.gif 94
graphic file with name d33e1700.gif 95

where Inline graphic and Inline graphic are the voltage and current components in the Inline graphic-frame.

Control system model

The current control loop dynamics are characterized by the natural frequency (Inline graphic) and damping ratio (Inline graphic):

graphic file with name d33e1730.gif 96
graphic file with name d33e1734.gif 97

where Inline graphic is the proportional gain of the current controller.

Stability analysis

The stability of the system is determined by analyzing the poles of the state-space system. The characteristic equation is:

graphic file with name d33e1747.gif 98

and the system is stable if all eigenvalues (Inline graphic) satisfy:

graphic file with name d33e1756.gif 99

MEPO optimization variables derivation

Control parameters vector

The optimization parameters for the controller are represented as:

graphic file with name d33e1766.gif 100

where the subscripts denote:

  • Inline graphic: Proportional and integral gains of the current controller.

  • Inline graphic: Proportional and integral gains of the voltage controller.

  • Inline graphic: Proportional and integral gains of the phase-locked loop (PLL).

Parameter bounds derivation

The bounds for the control parameters are determined by the system dynamics:

graphic file with name d33e1794.gif 101
graphic file with name d33e1798.gif 102
graphic file with name d33e1802.gif 103

where Inline graphic and Inline graphic are the current and voltage controller bandwidths, respectively.

Search space normalization

The parameter vector is normalized as:

graphic file with name d33e1819.gif 104

where Inline graphic and Inline graphic define the parameter bounds.

Objective functions derivation

Current control objective

The objective for the current control loop minimizes tracking error and current dynamics:

graphic file with name d33e1838.gif 105

where Inline graphic is a weighting factor for current slope.

Voltage control objective

The voltage control loop objective incorporates tracking error, voltage dynamics, and total harmonic distortion (THD):

graphic file with name d33e1851.gif 106

where THD is calculated as:

graphic file with name d33e1856.gif 107

PLL performance objective

The PLL objective minimizes phase tracking error and frequency stability:

graphic file with name d33e1864.gif 108

Combined objective function

The total multi-objective cost is:

graphic file with name d33e1872.gif 109

where Inline graphic penalizes constraint violations.

Time-domain metrics

Performance metrics include:

  • Settling time:
    graphic file with name d33e1890.gif 110
  • Overshoot:
    graphic file with name d33e1898.gif 111
  • Steady-State Error:
    graphic file with name d33e1906.gif 112

Result and disscusion

Convergence characteristics

The comparative analysis of MEPO with traditional optimization algorithms (PSO, GA, and DE) highlights its superior convergence properties, as illustrated in Fig. 5. MEPO achieves an exponential decay rate of Inline graphic, outperforming PSO (Inline graphic), GA (Inline graphic), and DE (Inline graphic), resulting in a 25% reduction in iterations to reach steady-state. The confidence bands (Inline graphic) indicate MEPO maintains the smallest variance (Inline graphic) compared to PSO (Inline graphic), GA (Inline graphic), and DE (Inline graphic), ensuring consistent optimization performance. The boxplot analysis further reveals MEPO’s median final objective value (Inline graphic) is significantly lower than PSO (Inline graphic), GA (Inline graphic), and DE (Inline graphic), with a compact interquartile range (Inline graphic) and minimal outliers, indicating highly consistent results across multiple runs.

Fig. 5.

Fig. 5

MEPO convergence analysis and comparison.

MEPO demonstrates rapid initial convergence, achieving 85% of the total objective reduction within the first 20 iterations, compared to 65%, 55%, and 70% for PSO, GA, and DE, respectively. This advantage is maintained throughout the optimization process, with MEPO requiring an average of 85 iterations to converge (Inline graphic), compared to 120, 150, and 110 for PSO, GA, and DE. Additionally, MEPO exhibits a near-Gaussian distribution of final solutions with tight clustering around the optimal value (Inline graphic) and a low coefficient of variation (0.051). The algorithm achieves a 95% success rate in reaching the global optimum, outperforming PSO (87%), GA (82%), and DE (89%), with superior robustness demonstrated across varying initial conditions and computational scenarios.

Controller parameter optimization results

The MEPO algorithm performs well in optimizing grid-connected inverter controller parameters, as shown in Fig. 6. For current control, MEPO achieves optimal gains (Inline graphic, Inline graphic) with a 7.6% improvement over traditional methods. The voltage controller parameters (Inline graphic, Inline graphic) and PLL settings (Inline graphic, Inline graphic) exhibit enhanced stability margins and dynamic response.

Fig. 6.

Fig. 6

Controller parameter optimization results.

Dynamic performance metrics reveal MEPO’s advantages with a faster rise time (0.8 ms) and reduced settling time (2.5 ms), representing a 34.2% improvement over PSO and GA, shown in Fig. 7. The overshoot is maintained at 4.2%, while the total harmonic distortion (THD) is reduced to 1.8%, ensuring superior power quality. Frequency response analysis shows an improved phase margin of Inline graphic and a bandwidth of 1.2 kHz.

Fig. 7.

Fig. 7

Step and frequency response.

The robustness index (0.95) confirms MEPO’s stability under parameter variations, maintaining performance within Inline graphic tolerance. Computational efficiency is evident with 25% faster convergence compared to conventional methods, requiring only 85 iterations to reach the optimal solution. These results validate MEPO’s effectiveness in achieving balanced control performance while meeting grid code requirements.

Technical analysis of MEPO under different grid condition

The analysis of time-domain waveforms and THD comparisons highlight significant differences in grid performance under varying conditions, as shown in Figs. 8 and 9. Strong grid scenarios exhibit minimal voltage distortion and low THD levels (voltage THD Inline graphic, current THD Inline graphic), indicating stable and high-quality power delivery. Weak grid conditions, however, show amplitude fluctuations (Inline graphicInline graphic) and increased THD levels (voltage THD up to Inline graphic, current THD exceeding Inline graphic), while very weak grids present the highest distortion, exceeding grid code limits. These findings emphasize the correlation between waveform distortions, harmonic pollution, and grid strength, with weaker grids experiencing higher harmonic content and more severe waveform degradation.

Fig. 8.

Fig. 8

Voltage and current profile under different THD.

Fig. 9.

Fig. 9

Voltage and current profile under different impedance.

The power factor and voltage profiles illustrate the diminishing stability of weak grids, where power factors drop below 0.9 and voltage levels dip to 0.9 pu or lower, as shown in Fig. 10. Fluctuation analysis confirms increased volatility, with voltage fluctuations reaching Inline graphic and power fluctuations exceeding Inline graphic in very weak grids. The visualizations collectively demonstrate that weak grid conditions exacerbate harmonic distortion, reduce power factor, and impair voltage stability. These insights underscore the critical need for enhanced voltage support and harmonic mitigation to maintain grid performance in challenging scenarios.

Fig. 10.

Fig. 10

Weak grid overall performance.

The performance comparison between MEPO, PSO, GA, and PI controllers highlights MEPO’s better performance across key metrics as shown in Tables 3, 1 and 2. MEPO achieves faster rise time (0.8 ms), settling time (2.5 ms), and minimal overshoot (4.2%), while maintaining lower THD (1.8%) and higher power factor (0.998), ensuring better grid compliance. Computationally, MEPO converges faster (1.2 s) with lower cost (45 ms per iteration), making it ideal for real-time applications. Statistical analysis over 100 trials confirms its robustness with a 95% success rate and a low objective value of Inline graphic. In grid fault scenarios, MEPO excels with faster recovery (35 ms for three-phase faults) and voltage restoration (92–95%). MEPO demonstrates a 25–65% performance improvement, making it highly suitable for grid-connected inverters, particularly in weak grid conditions.

Table 3.

Grid fault response analysis.

Fault type MEPO PSO GA PI
Three-phase fault
Recovery time (ms) 35 48 52 65
Voltage recovery (%) 92 85 82 75
THD during recovery (%) 2.8 3.5 3.8 4.5
Single-phase fault
Recovery time (ms) 28 38 42 55
Voltage recovery (%) 95 88 85 80
THD during recovery (%) 2.2 3.0 3.2 4.0
Phase-to-phase fault
Recovery time (ms) 32 45 48 60
Voltage recovery (%) 93 86 84 78
THD during recovery (%) 2.5 3.2 3.5 4.2

Table 1.

Comprehensive performance comparison of optimization methods.

Performance metrics MEPO PSO GA PI
Dynamic response characteristics
Rise time (ms) 0.8 1.2 1.5 1.8
Settling time (ms) 2.5 4.2 4.8 6.5
Overshoot (%) 4.2 7.8 8.5 12.3
Steady-state error (%) 0.2 0.4 0.5 0.8
Power quality metrics
THD (%) 1.8 2.5 2.7 3.2
Power factor 0.998 0.992 0.990 0.985
Voltage regulation (%) 1.2 1.8 2.1 2.5
Computational performance
Convergence time (s) 1.2 2.8 3.5 N/A
Computational cost (ms) 45 85 120 5
Memory usage (MB) 2.5 3.8 4.2 0.5
Robustness analysis
Success rate (%) 95 87 82 N/A
Mean objective (Inline graphic) 2.34 3.56 4.12 N/A
Standard deviation (Inline graphic) 1.2 2.8 3.5 N/A
Grid fault response
Fault recovery time (ms) 35 48 52 65
Voltage dip recovery (%) 92 85 82 75
Frequency stability (Hz) ±0.1 ±0.2 ±0.25 ±0.3
Cost function analysis
Final cost value (Inline graphic) 1.8 2.4 2.7 3.5
Iteration count 85 120 150 N/A
Convergence rate 0.95 0.88 0.85 N/A

Table 2.

Statistical performance analysis (100 Trials).

Statistical metric MEPO PSO GA PI
Success rate (%) 95 87 82 N/A
Mean total cost (Inline graphic) 2.34 3.56 4.12 N/A
Standard deviation (Inline graphic) 1.2 2.8 3.5 N/A
Minimum cost (Inline graphic) 2.15 3.28 3.85 N/A
Maximum cost (Inline graphic) 2.52 3.95 4.45 N/A
Coefficient of variation (%) 5.1 7.9 8.5 N/A
Confidence level (95%) ±0.12 ±0.28 ±0.35 N/A
Convergence reliability (%) 98 92 88 N/A

The results highlight the effectiveness of the MEPO algorithm compared to PSO and GA in d-q axis current control under fault conditions, as shown in Fig. 11. During the fault period (0.2 s to 0.3 s), the MEPO-optimized controller demonstrates superior dynamic response with minimal oscillations, faster recovery, and reduced steady-state error. This behaviour can be attributed to MEPO’s bio-inspired design, which adaptively balances global exploration and local exploitation, enabling precise parameter tuning for grid-connected inverter systems. In contrast, PSO and GA exhibit larger deviations and prolonged settling times due to their limited adaptive capabilities and slower convergence. The zoomed sections of the d-axis and q-axis current plots illustrate MEPO’s ability to suppress current spikes and stabilize the system more rapidly, maintaining grid code compliance.

Fig. 11.

Fig. 11

q and d-axis current response under fault.

MEPO’s enhanced performance is particularly evident in its smoother current transitions and reduced harmonic distortions, critical for power quality in weak or faulted grids. These results underscore MEPO’s robustness and suitability for dynamic grid conditions, making it a promising optimization approach for inverter-based renewable energy integration.

The performance of different control optimization methods—MEPO, PSO, GA, and PI—under various grid conditions, including normal operation, weak grids, and fault scenarios, is analyzed. The results are evaluated for frequency deviation, rate of change of frequency (ROCOF), and active power responses to assess each method’s stability, adaptability, and resilience.

The evaluation of grid control methods highlights the distinctive advantages of the MEPO controller across diverse grid conditions, as shown in Fig. 12. MEPO’s adaptive gain mechanism in frequency response analysis enables superior performance, particularly under challenging scenarios. For normal grid conditions (SCR = 20), MEPO maintains frequency deviations within Inline graphic Hz. In weak grids (SCR = 2), MEPO effectively limits deviations to Inline graphic Hz, a 40% improvement compared to the conventional PI controller, which exhibits deviations of Inline graphic Hz. Optimization-based methods such as PSO and GA provide intermediate performance, achieving frequency nadirs of Inline graphic Hz and Inline graphic Hz, respectively, in weak grid conditions.

Fig. 12.

Fig. 12

Frequency response comparison of MEPO, PSO, GA, and PI under varying grid conditions.

ROCOF (Rate of Change of Frequency) analysis reveals MEPO’s enhanced system stability. By leveraging dynamic feedback and feed-forward compensation, MEPO limits ROCOF to Inline graphic Hz/s across all grid conditions, as shown in Fig. 13. This robustness is particularly evident during fault scenarios, where its augmented damping coefficient (Inline graphic) effectively suppresses oscillatory behaviour. Conversely, PSO and GA controllers exhibit higher ROCOF peaks of Inline graphic Hz/s and Inline graphic Hz/s during fault recovery. The PI controller faces significant challenges, with ROCOF spikes reaching Inline graphic Hz/s, indicating potential instability.

Fig. 13.

Fig. 13

ROCOF response comparison of MEPO, PSO, GA, and PI under varying grid conditions.

Power response evaluations further underscore MEPO’s advantages. The adaptive feedback mechanism (Inline graphic) integrated within MEPO achieves settling times of 0.8-1.2 seconds across varying grid conditions, as shown in Fig. 14. Power oscillations are controlled within Inline graphic of steady-state values, demonstrating rapid disturbance rejection capabilities. In contrast, PSO and GA controllers exhibit longer settling times of 1.5-2.0 seconds, while the PI controller requires 2.5-3.0 seconds to stabilize, especially under weak grid scenarios (SCR Inline graphic).

Fig. 14.

Fig. 14

Power response comparison of MEPO, PSO, GA, and PI under varying grid conditions.

Fault resilience analysis highlights MEPO’s robust performance under severe conditions, such as three-phase faults with voltage dips to 0.1 pu. MEPO effectively maintains stability, limiting frequency deviations to Inline graphic Hz through condition-specific gain adaptation. Its dynamic response optimally balances disturbance rejection and stability margins via a multi-loop control framework. Compared, PSO and GA methods show slower recovery and 25-30% higher settling times, while the PI controller exhibits pronounced deviations and prolonged instability.

The direct-axis current (d) primarily governs active power control, while the quadrature-axis current (q) regulates reactive power, as shown in Fig. 15. A transient oscillatory response is observed upon connection due to the control system adjusting to stabilize the inverter currents. The system achieves a steady state with minimal ripples in both currents, indicating successful active and reactive power decoupling. The d-axis current stabilizes around its reference value, ensuring consistent active power delivery. In contrast, the q-axis current remains near zero, reflecting minimal reactive power exchange, as shown in Fig. 16. The transient behavior results from dynamic load balancing and control loop adaptation, and the steady-state performance demonstrates efficient power exchange with minimal impact on grid voltage stability.

Fig. 15.

Fig. 15

The direct-axis (d) and quadrature-axis (q) currents.

Fig. 16.

Fig. 16

Transient responses of active and reactive power.

Figures 17 and 18 show the grid voltage and inverter current. The waveforms closely match the grid frequency ( 49.9 Hz), demonstrating synchronization with the grid. The result confirms that the inverter’s synchronization mechanisms effectively track the grid frequency and minimize disturbances during power injection.

Fig. 17.

Fig. 17

Grid voltage waveform.

Fig. 18.

Fig. 18

Inverter current waveform.

Figure 19 shows that the inverter current and voltage were both in phase. The sine PWM is shown in Fig. 20, where the modulation index is close to 9. The LCL filter’s frequency response exhibits critical performance characteristics across multiple frequency bands, as shown in Fig. 21. At low frequencies (100 Hz – 1 kHz), it maintains stable attenuation between -70 dB and -80 dB with phase oscillation between Inline graphic and Inline graphic, ensuring fundamental frequency tracking. The resonant point occurs near 100 kHz, showing a magnitude of -53.31 dB and a phase angle of Inline graphic, requiring careful stability consideration. High-frequency behavior (above 1 MHz) demonstrates strong harmonic attenuation below -30 dB with a -60 dB/decade slope, confirming effective third-order filtering performance.

Fig. 19.

Fig. 19

Inverter current and voltage waveforms.

Fig. 20.

Fig. 20

Sine PWM waveform with a modulation index 0.9.

Fig. 21.

Fig. 21

Frequency response of the LCL filter.

Detailed system, filter, controller, and algorithm parameters are provided in the supplementary materials. Table S1 presents the complete system parameters including grid frequency, voltage levels, and rated power specifications. Table S2 details the LCL filter design parameters with inverter-side and grid-side inductances, filter capacitance, and resonant frequency characteristics. Table S3 lists the optimized controller gains for current control, voltage regulation, and phase-locked loop obtained through the MEPO algorithm. Table S4 provides the MEPO algorithm hyperparameters including initial step size, decay rate, transfer rate, and local search radius. Table S5 summarizes the grid operating conditions ranging from very weak (SCR = 1.5) to strong (SCR = 20) grid scenarios used in the validation studies.

Conclusion

This paper has introduced the Mitochondrial Energy Production Optimization (MEPO) algorithm, an innovative bio-inspired optimization approach that significantly advances the state-of-the-art in grid-connected inverter control systems. Through systematic mathematical formulation and comprehensive experimental validation, MEPO demonstrates substantial improvements in both optimization performance and grid stability enhancement, particularly in challenging weak grid scenarios.

The proposed algorithm exhibits remarkable convergence characteristics, achieving an exponential decay rate of Inline graphic and maintaining the lowest variance (Inline graphic) among contemporary optimization methods. This performance represents a significant advancement over existing approaches, with MEPO demonstrating a 25% reduction in optimization time compared to Particle Swarm Optimization (Inline graphic), Genetic Algorithm (Inline graphic), and Differential Evolution (Inline graphic). The algorithm’s superior dynamic response is evidenced by its achievement of Inline graphic rise time and Inline graphic settling time, marking a 34.2% improvement over traditional control methodologies.

In weak grid conditions (SCR = 2), MEPO demonstrates exceptional stability characteristics, effectively limiting frequency deviations to Inline graphic and Rate of Change of Frequency (ROCOF) to Inline graphic. This performance represents a 40% improvement over conventional PI controllers, while maintaining superior power quality metrics with Total Harmonic Distortion (THD) at Inline graphic and power factor at 0.998. The algorithm’s robustness index of 0.95 confirms its stability under parameter variations, consistently maintaining performance within Inline graphic tolerance across diverse operating conditions.

Extensive statistical validation through 100 independent trials establishes MEPO’s reliability with a 95% success rate and consistent achievement of the lowest objective value (Inline graphic). The algorithm’s computational efficiency, evidenced by its Inline graphic convergence time, validates its applicability for real-time grid control applications. These results collectively establish MEPO as a robust solution for grid-connected inverter optimization, particularly in scenarios demanding high reliability and rapid adaptation to grid disturbances.

Future research directions should explore three key areas: the extension of MEPO to coordinate multiple inverters within microgrid environments, its integration with hybrid energy storage systems, and the development of adaptive real-time optimization capabilities. These advancements would further enhance MEPO’s practical utility in increasingly complex grid environments and contribute to the robust integration of renewable energy sources in modern power systems.

Supplementary Information

Acknowledgements

The authors sincerely thank the ReX Lab, National Institute of Technology Arunachal Pradesh, for providing essential hardware for this study’s experiments.

Author contributions

Mrinal Kanti Rajak: Conceptualization of the research problem and methodology; development of mathematical models and algorithms; software implementation and simulation; formal analysis and validation of results; writing—original draft preparation; writing—review and editing; visualization and data presentation. Rajen Pudur: Supervision and project administration; methodology verification; resources and funding acquisition; validation of mathematical formulations; writing—review and editing; investigation support.

Funding

No external funding was received for this research.

Data availability

The data presented in this study are available from the corresponding author upon reasonable request.

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

The online version contains supplementary material available at 10.1038/s41598-025-28884-9.

References

  • 1.Boscaino, V. et al. Grid-connected photovoltaic inverters: Grid codes, topologies and control techniques. Renew. Sustain. Energy Rev.189, 113903 (2024). [Google Scholar]
  • 2.Zhong, Q. C. & Hornik, T. Control of Power Inverters in Renewable Energy and Smart Grid Integration (John Wiley & Sons, 2012). [Google Scholar]
  • 3.Kenyon, R. W. et al. Stability and control of power systems with high penetrations of inverter-based resources: An accessible review of current knowledge and open questions. Solar Energy210, 149–168 (2020). [Google Scholar]
  • 4.Xu, S., Xue, Y. & Chang, L. Review of power system support functions for inverter-based distributed energy resources-standards, control algorithms, and trends. IEEE Open J. Power Electron.2, 88–105 (2021). [Google Scholar]
  • 5.ElDemery, H. A., Hasanien, H. M., Alharbi, M., & Sun, C. Dynamic performance improvement of oscillating water column wave energy conversion system using optimal walrus optimization algorithm-based control, Ain Shams Engineering Journal, (2024).
  • 6.Bouhadji, F., Bouyakoub, I., Mehedi, F., & Kacemi, W. M.: Optimization of grid power quality using third order sliding mode controller in PV systems with multilevel inverter, Energy Reports, (2024).
  • 7.Guo, W. & Xu, W. Research on optimization strategy of harmonic suppression and reactive power compensation of photovoltaic multifunctional grid-connected inverter. Int. J. Elect. Power & Energy Syst.145, 108649 (2023). [Google Scholar]
  • 8.Reveles-Miranda, M., Flota-Bañuelos, M., Chan-Puc, F., Ramirez-Rivera, V. & Pacheco-Catalán, D. A hybrid control technique for harmonic elimination, power factor correction, and night operation of a grid-connected PV inverter. IEEE J. Photovolt.10(2), 664–675 (2020). [Google Scholar]
  • 9.Zhang, X., Gong, L. J., Zhang, Y., Ma, X., & Han, L.: A Novel Virtual Inductor Optimization Methodology of Virtual Synchronous Generators for Enhanced Power Decoupling, SSRN, (2024).
  • 10.Annaswamy, A. M. & Amin, M. Smart Grid Research: Control Systems–IEEE Vision for Smart Grid Controls: 2030 and Beyond. IEEE, pp. 1–168, (2013).
  • 11.Babu, T. S. et al. A comprehensive review of hybrid energy storage systems: Converter topologies, control strategies and future prospects. IEEE Access8, 148702–148721 (2020). [Google Scholar]
  • 12.Babu, N. Adaptive grid-connected inverter control schemes for power quality enrichment in microgrid systems: Past, present, and future perspectives. Electric Power Syst. Res.230, 110288 (2024). [Google Scholar]
  • 13.Ward, L., Subburaj, A., Demir, A., Chamana, M. & Bayne, S. B. Analysis of grid-forming inverter controls for grid-connected and islanded microgrid integration. Sustainability16(5), 2148 (2024). [Google Scholar]
  • 14.Badrudeen, T. U., Nwulu, N. I. & Gbadamosi, S. L. Low-inertia control of a large-scale renewable energy penetration in power grids: A systematic review with taxonomy and bibliometric analysis. Energy Strategy Rev.52, 101337 (2024). [Google Scholar]
  • 15.Ma, M. Grid-connected PV system modelling based on grid-forming inverters, (2024).
  • 16.Yan, L., Zhao, Z., Ullah, Z., Deng, X., & Zhang, Y. Optimization of optical storage VSG control strategy considering active power deviation and virtual inertia damping parameters, Ain Shams Engineering Journal, (2024).
  • 17.Abdolrahimi, H., & Khaburi, D. A. Model predictive control of a Brushless Cascade Doubly-Fed Induction Generator with torque regulation for stand-alone applications, Heliyon, (2024).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

The data presented in this study are available from the corresponding author upon reasonable request.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES