Abstract
Magnetic levitation (maglev) systems are characterized by strong nonlinearities and inherent open-loop instability, making precise position regulation of levitating bodies exceptionally challenging. These systems are highly sensitive to model uncertainties, parameter variations, and external disturbances. This demands advanced control strategies beyond conventional PID techniques. To address these challenges, this study introduces a novel two-degree-of-freedom proportional-integral-derivative-acceleration (2-DOF PIDA) controller, specifically designed to stabilize and regulate ball position in magnetic levitation systems. The controller’s structure is augmented with acceleration feedback and reference input weighting, enabling decoupled tuning for transient and steady-state performance and ensuring enhanced damping, disturbance rejection, and tracking accuracy. A core innovation of this work is integration of the controller with the enzyme action optimizer (EAO)—a recently developed bio-inspired metaheuristic algorithm that emulates adaptive catalytic behavior observed in enzymatic reactions. The EAO algorithm balances global exploration and local exploitation to efficiently optimize the 2-DOF PIDA controller parameters, minimizing the integral of absolute error (IAE) as the objective function. This optimization framework is evaluated against two recent metaheuristics: the horned lizard optimization algorithm (HLOA) and the sea-horse optimizer (SHO), using extensive time-domain simulations. Quantitative results confirm the superior performance of the proposed method, achieving 0% overshoot, a rise time of 0.0121 s, and a settling time of 0.0365 s the optimal response speed and stability among all tested algorithms. Additionally, robustness is rigorously validated under multiple scenarios of parameter perturbations, including variations in resistance and inductance, simulating real-world effects such as component aging and thermal drift. The EAO-tuned controller consistently maintains superior regulation and stability across all test cases, exhibiting high resilience to system uncertainties. Furthermore, a comprehensive comparative analysis involving 12 state-of-the-art control strategies, including PID, FOPID, and RPIDD2 variants optimized via diverse evolutionary algorithms, confirms the proposed controller’s dominance across all critical performance indices, including IAE, rise time, settling time, and overshoot. These findings underscore the effectiveness of combining 2-DOF control architectures with bio-inspired optimization algorithms for real-time implementation in nonlinear, unstable systems. Overall, the proposed EAO-optimized 2-DOF PIDA controller offers a computationally efficient, auto-tunable, and robust solution for high-precision maglev control.
Similar content being viewed by others
Introduction
Magnetic levitation systems are characterized by their inherent instability and nonlinear dynamics, presenting significant challenges in achieving precise and robust control of ball position1,2. Parameter uncertainties due to environmental factors or system aging further complicate effective stabilization and tracking performance3,4. This paper proposes a novel two-degree-of-freedom proportional-integral-derivative-acceleration (2-DOF PIDA) controller optimized using the enzyme action optimizer (EAO), a bio-inspired metaheuristic algorithm. This approach aims to enhance both transient response and robustness by leveraging the flexible 2-DOF structure and EAO’s efficient parameter tuning.
Conventional control strategies for magnetic levitation systems primarily rely on classical controllers such as proportional-integral-derivative (PID), fractional-order PID (FOPID), and real PID with derivative2 (RPIDD2). Özaydİn, et al.5, Ekinci, et al.6, Dey, et al.7, and Maheedhar and Deepa8 developed PID controllers for magnetic levitation, while Izci, et al.9, Demirören, et al.10, and Dey, et al.7, explored FOPID controllers, and Ekinci, et al.11 proposed RPIDD2 controllers. For instance, Roman, et al.12 proposed a hybrid data-driven active disturbance rejection sliding mode control validated on tower crane systems, demonstrating robustness to external disturbances but requiring complex implementation. Similarly, Wen and Wang13 introduced an improved cascade control for single-point levitation systems in maglev trains, achieving stable levitation but with limited adaptability to parameter variations. Additionally, Chi, et al.14 developed an enhanced P-type control with indirect adaptive learning from set-point updates, offering improved tracking but with increased computational complexity. These controllers are often tuned to balance stability and performance but may struggle with the nonlinear and unstable nature of maglev systems. While PID controllers are simple and widely used15,16,17, they often lack the flexibility to handle parameter variations effectively18,19, as noted by Özaydİn, et al.5 and Ekinci, et al.6. Advanced variants like FOPID and RPIDD2 introduce additional degrees of freedom but require sophisticated tuning to achieve optimal performance, particularly under disturbances or uncertainties, as highlighted by Izci, et al.9, Demirören, et al.10, Ekinci, et al.11, and Dey, et al.20.
Recent research has increasingly focused on the integration of advanced metaheuristic optimization algorithms with enhanced control structures to improve stability and dynamic response in nonlinear and uncertain systems. Izci et al.21 proposed a refined sinh cosh optimizer for tuning automatic voltage regulation controllers, demonstrating that carefully designed optimizers can significantly improve system robustness. Building on this, Izci et al.22 introduced a fractional-order PID plus double-derivative controller optimized by the mountain gazelle algorithm, highlighting the benefits of combining fractional-order dynamics and higher-order derivative terms to achieve faster convergence and better disturbance rejection. Alrashed et al.23 developed a control strategy for dynamic voltage restorers that integrated an adaptive notch filter with a PD controller tuned via an improved grey wolf optimizer, emphasizing the importance of disturbance suppression and parameter adaptation. Abualigah et al.24 applied the sinh cosh optimizer to design filtered PID controllers for aircraft pitch control, showing that bio-inspired algorithms can deliver precise tracking in inherently unstable systems. Similarly, Abualigah et al.25 employed an artificial rabbits optimizer to optimize PID-F controllers in pitch regulation applications, further illustrating the capability of metaheuristics to tune complex control schemes. Ekinci et al.26 explored parameter optimization in DC motors and liquid level systems using advanced metaheuristics, demonstrating improvements in transient response and robustness across different process dynamics. Izci et al.27 presented a control scheme for automatic voltage regulators leveraging a modified artificial rabbits optimizer, reinforcing the role of bio-inspired algorithms in achieving high-performance regulation. Abualigah et al.28 proposed a modified elite opposition-based artificial hummingbird algorithm for designing fractional-order PID controllers in cruise control systems, highlighting opposition-based learning as an effective strategy to enhance convergence and avoid local minima. Ekinci et al.29 and Ekinci et al.30 applied the sinh cosh optimizer to optimize controllers in hybrid photovoltaic-thermal power systems and steam condensers, respectively, underlining the relevance of robust tuning techniques in systems with strong nonlinearities and parameter uncertainties. Dei et al.31 designed a TID + IDN controller tuned by the coatis optimization algorithm for deregulated hybrid power systems, showcasing how hybrid controller structures can be leveraged to improve dynamic regulation. Ekinci et al.32 developed a quadratic interpolation optimization-based 2-DOF PID controller for continuous stirred-tank heater processes, emphasizing the advantage of two-degree-of-freedom architectures in decoupling transient and steady-state performance. Jabari et al.33 introduced a TDn (1 + PIDn) controller optimized with the dynamic competitive swarm algorithm to regulate pressure in nonlinear condensers, demonstrating that combining extended derivative terms and novel optimizers can yield significant performance gains. Finally, Davoudkhani et al.34 presented a load-frequency control approach for islanded microgrids using a 1PD-3DOF-PID controller incorporating mobile energy storage, highlighting the potential of multi-degree-of-freedom controllers to enhance resilience against large parameter variations and external disturbances.
Optimization algorithms play a critical role in tuning controllers for magnetic levitation systems35. Common metaheuristic approaches include the enzyme action optimizer (EAO) by Rodan, et al.36, horned lizard optimization algorithm (HLOA) by Peraza-Vázquez, et al.37, and sea-horse optimizer (SHO) by Zhao, et al.38. These algorithms explore the parameter space to minimize performance metrics such as the integral of absolute error (IAE). However, their effectiveness varies depending on the problem’s complexity, with some algorithms suffering from premature convergence or high computational costs. The choice of optimization method significantly impacts the controller’s ability to achieve robust and precise control in real-time applications.
Recent studies on magnetic levitation control have explored diverse approaches to address instability and nonlinearity. Classical PID controllers, optimized using algorithms like the sine cosine algorithm by Özaydİn, et al.5, hybrid whale optimization with simulated annealing by Ekinci, et al.6, and COOT algorithm by Maheedhar and Deepa8 and Deepa and Jayalakshmi39, achieve reasonable stability but often exhibit overshoot and prolonged settling times. Advanced controllers, such as FOPID tuned with grey wolf optimization by Dey, et al.7, artificial electric field by Demirören, et al.10, or hunger games search by Izci, et al.9, leverage fractional-order dynamics for improved tracking, though their performance depends heavily on tuning accuracy. RPIDD2 controllers optimized with manta ray foraging optimization by Ekinci, et al.11 enhance robustness but may suffer from suboptimal transient responses. Recent studies have also explored novel controller structures, such as 2-DOF PID for continuous stirred tank reactors18 and FOPID-based controllers optimized with algorithms like pelican optimization for motor control40 highlight the trend toward sophisticated tuning, though not specific to maglev systems.
Alternative approaches, such as PD controllers with metaheuristic optimization by Kouvakas, et al.41 and PID-P controllers by Bizuneh, et al.42, offer simpler or variant control structures but often lack the robustness required for precise maglev control. Active disturbance rejection control (ADRC) has also been explored by Blossom and Rao43, though its complexity limits its direct comparability to PID-based methods. Comprehensive reviews by Tewari, et al.44 and Abdalhadi and Wahid45, highlight the evolution of these strategies, noting persistent challenges like sensitivity to parameter variations and computational complexity in real-time applications. These limitations underscore the need for a control approach that combines robust performance with efficient optimization, motivating the development of the proposed 2-DOF PIDA controller tuned with EAO.
Despite substantial progress in controller design for magnetic levitation systems, existing strategies exhibit notable limitations when subjected to real-world nonlinearities and parameter uncertainties. Classical PID controllers, though widely adopted, offer limited flexibility and tend to underperform in highly unstable conditions, often resulting in overshoot and sluggish responses. Advanced variants like FOPID and RPIDD2 provide greater tuning flexibility but require intricate optimization processes and remain sensitive to noise and parameter drift. Moreover, while numerous metaheuristic algorithms—such as SCA, WOA, SHO, and HLOA—have been employed for controller tuning, they often face challenges like premature convergence, high computational overhead, and suboptimal performance consistency. This fragmentation in performance, robustness, and tuning efficiency across existing approaches underscores the need for a control framework that unifies rapid transient response, robustness to uncertainties, and computationally efficient auto-tuning. The absence of a structured integration between advanced control architectures and biologically inspired optimizers further defines the critical gap this work aims to address.
The primary novelty of this work lies in the integration of a two-degree-of-freedom proportional-integral-derivative-acceleration (2-DOF PIDA) controller with the enzyme action optimizer (EAO) a recent bio-inspired metaheuristic algorithm designed to simulate adaptive enzymatic behavior by dynamically balancing exploration and exploitation during optimization. This integration enables the efficient and automated tuning of controller parameters, addressing key limitations observed in conventional PID-based approaches when applied to inherently unstable systems like magnetic levitation. Unlike traditional PID controllers, the proposed method incorporates an acceleration feedback loop and applies reference input weighting, thereby improving damping characteristics and allowing more precise control over the transient and steady-state behavior of the system. These structural enhancements make the controller more responsive to dynamic changes while offering improved tracking accuracy and disturbance rejection. To rigorously validate its performance, the proposed EAO-tuned 2-DOF PIDA controller is compared against 12 state-of-the-art methods, including those developed by Özaydİn, et al.5, Ekinci, et al.6, and Izci, et al.9. Through extensive simulation studies, the proposed controller demonstrates superior dynamic performance, achieving 0% overshoot, a rise time of 0.0121 s, and a settling time of 0.0365 s—clearly outperforming all referenced approaches in terms of response speed and stability. Moreover, robustness analysis under varying system parameters further substantiates the controller’s reliability. Parameter perturbations such as fluctuations in resistance and inductance common in practical maglev environments due to component aging, thermal variation, or manufacturing tolerances were introduced to evaluate controller adaptability. The EAO-optimized controller consistently maintained stable operation and high precision in all cases, demonstrating its effectiveness as a highly robust and application-ready solution for magnetic levitation systems when compared to prior optimization and control strategies. The proposed 2-DOF PIDA controller, optimized by the EAO, surpasses existing methods in maglev control. Unlike PID, FOPID, and RPIDD2 controllers, its acceleration feedback and reference input weighting ensure superior damping and tracking accuracy. EAO’s bio-inspired mechanism outperforms metaheuristics like SCA, WOA, and MRFO by balancing exploration and exploitation, achieving zero overshoot, a 0.0121s rise time, and a 0.0365s settling time. Robustness under parameter variations further distinguishes it from methods with notable overshoot or slow response.
This paper is structured as follows. Section 2 introduces the EAO, detailing its bio-inspired mechanism and computational framework. Section 3 presents the mathematical modeling of the magnetic levitation system, including the open-loop dynamics and system parameters. Section 4 describes the structure and implementation of the proposed 2-DOF PIDA controller, along with the objective function used for optimization. Section 5 provides simulation results, comparing the performance of the proposed controller against other metaheuristic-based controllers through statistical analysis, time-domain metrics, robustness testing, and benchmarking with 12 state-of-the-art methods. Finally, Sect. 6 concludes the paper by summarizing the findings, outlining the limitations, and suggesting directions for future work.
Overview of optimization method
Enzyme action optimizer (EOA)
EAO is a novel bio-inspired optimization algorithm that simulates the adaptive catalytic behavior of enzymes in biological systems. Enzymes accelerate chemical reactions by selectively binding to substrates and lowering activation energy under dynamic environmental conditions. This biochemical analogy guides EAO’s mechanism of balancing exploration and exploitation in complex optimization landscapes.
Initialization
Let \(\:N\) be the number of substrates (agents), \(\:T\) the maximum iterations, \(\:dim\) the problem dimension, and \(\:f\left(X\right)\) the objective function. Each substrate \(\:{X}_{i}^{\left(0\right)}\) is initialized randomly within the bounds \(\:[LB,UB]\):
where \(\:{r}_{i}\sim{U\left[\text{0,1}\right]}^{dim}\) and \(\:\circ\:\) denotes element-wise multiplication.
Fitness evaluation and best initialization
Each candidate’s quality is evaluated:
The best candidate is saved as the initial enzyme:
Adaptive factor
The adaptive factor dynamically shifts the algorithm from exploration to exploitation:
This gradually shifts the balance from broad search (exploration) to fine-tuned search (exploitation).
Substrate update mechanism
Each substrate generates two candidates in every iteration:
Candidate 1
Sine-based exploitation (local refinement).
Where, \(\:{q}_{i}\sim{\left[\text{0,1}\right]}^{dim}\).
Candidate 2
Difference-based exploration (global search).
Where, \(\:{sc}_{1},\:{sc}_{2}\sim U\left[EC,1\right]\). This dual update enhances convergence and prevents stagnation.
Selection of best candidate
Choose the better of the two candidates based on fitness:
Position update
Update the substrate if it improves the previous value:
Best substrate update
Update the global best solution:
Boundary control
Ensure all solutions remain inside the search space:
Computational complexity
The total computational cost is:
Where, \(\:M,n,d\:and\:F\) are the number of iterations, the number of agents, dimensionality and cost of fitness evaluation respectively. EAO is efficient, scalable, and performs well across diverse optimization problems. Figure 1 shows the flowchart for EOA optimization method.
Flowchart of EOA36.
Description of the magnetic levitation system
The magnetic levitation (maglev) system under study is designed to levitate a steel ball using an electromagnet controlled by a current. The dynamics of the system are nonlinear in nature; however, for controller design and stability analysis, a linearized model around the nominal operating point is considered.
Open-loop transfer function of the system
The linearized open-loop transfer function of the system is derived based on Newton’s second law and the electrical dynamics of the electromagnet. The resulting transfer function from the control voltage input \(\:V\left(s\right)\) to the position output \(\:Y\left(s\right)\) is given by:
Definition of system parameters
The physical parameters used in the model are listed below in Table 1, based on references5,6,9,10,11:
Using these parameters and linearization around the equilibrium point, the open-loop transfer function is obtained as:
This transfer function captures the unstable behavior inherent in magnetic levitation systems and is crucial for designing a stabilizing controller.
System gain and poles
The system gain \(\:m\) is computed based on the linearization:
The poles of the system are:
The presence of a positive real pole indicates that the open-loop system is open-loop unstable, which is a well-known characteristic of magnetic levitation systems. This necessitates a robust control strategy to ensure stability and desired performance. General schematic of magnetic levitation system is shown in Fig. 2.
Novel control method proposed for magnetic levitation
Structure of the 2-DOF PIDA controller
To stabilize the inherently unstable magnetic levitation system and enhance its tracking performance, a novel 2-DOF PIDA controller is proposed. The controller structure introduces flexibility by assigning distinct weighting factors to the reference signal for the proportional and derivative actions, while incorporating acceleration feedback for improved damping and robustness.
Transfer function of proposed novel 2-DOF PIDA controller
Transfer function of proposed novel 2-DOF PIDA controller calculated and is given in follows Eq.
where, \(\:U\left(s\right),\:R\left(s\right),\:Y\left(s\right)\),\(\:\:\alpha\:,\:\beta\:\), \(\:{K}_{P},\:{K}_{I},\:{K}_{D},\:{K}_{A}\), \(\:{N}_{D}\:\)and \(\:{N}_{A}\) are controller output, reference input, system output (position of the steel ball), reference input weights for proportional and derivative terms, gains for proportional, integral, derivative, and acceleration terms and filters to regularize the derivative and acceleration terms respectively.
This structure enhances both disturbance rejection and tracking performance by decoupling the transient and steady-state behavior via the 2-DOF configuration. The corresponding block diagram of the controller is illustrated in Fig. 3, which clearly shows the parallel branches for each control term, including the low-pass filtered derivative and acceleration feedback loops.
Objective function
To evaluate and optimize the performance of the magnetic levitation system, the Integral of Absolute Error (\(\:IAE\)) is selected as the objective function. \(\:IAE\) is a widely used performance criterion in control system design as it penalizes the accumulated error over time and ensures fast and accurate convergence to the setpoint46. The objective function is mathematically defined as:
where, \(\:r\left(t\right),\:y\left(t\right),\:e\left(t\right)\) and \(\:{t}_{f}\) are reference input (desired ball position), system output (actual ball position), tracking error and final simulation time, here set to 5 s, respectively.
The goal is to minimize the \(\:IAE\), thereby achieving accurate setpoint tracking with minimal overshoot and settling time.
Implementation of the proposed control method to the magnetic levitation system
The implementation framework of the proposed 2-DOF PIDA controller for the magnetic levitation system is illustrated in Fig. 4. The diagram presents the closed-loop structure, where the control parameters are automatically optimized using the EAO algorithm.
Key steps of the control implementation are as follows:
-
1.
Initialization Random populations of controller parameters \(\:\alpha\:,\:\beta\:\), \(\:{K}_{P},\:{K}_{I},\:{K}_{D},\:{K}_{A}\), \(\:{N}_{D}\:\)and \(\:{N}_{A}\) are generated.
-
2.
Simulation for each candidate set, the system is simulated under the current controller
-
3.
Performance evaluation: The \(\:IAE\) is calculated for a fixed time interval (\(\:{t}_{f}=5\) s).
-
4.
Optimization The EAO algorithm iteratively refines the parameter set to minimize the \(\:IAE\).
-
5.
Controller update the best-performing parameters are assigned to the 2-DOF PIDA controller
The feedback loop adjusts the electromagnet’s control voltage based on the ball’s position to maintain levitation. The optimized controller ensures system stability and rapid convergence with minimal control effort.
Simulation results
To evaluate the effectiveness and robustness of the proposed optimization-based control strategy, simulations were conducted using three metaheuristic algorithms: EOA36, HLOA37, and SHO38. Each algorithm was run 25 independent times to ensure statistical reliability. The population size was set to 30, and the total number of iterations was fixed at 100 for all algorithms.
Statistical analysis
The results of the optimization process were assessed based on the \(\:IAE\) objective function. The statistical metrics summarized in Table 2 include the average, standard deviation, best, and worst values of the \(\:IAE\) across all runs. The ranking is based on overall performance, with lower IAE values indicating better control performance. Each optimization algorithm EOA, HLOA, and SHO was independently executed 25 times to assess performance consistency and robustness. A population size of 30 was maintained for each run, and the optimization procedure was carried out over 100 iterations. This ensured a balanced trade-off between convergence capability and computational cost.
These results confirm that EOA outperforms both HLOA and SHO in terms of accuracy, stability, and consistency of the obtained solutions.
Obtained controller parameters
The best set of 2-DOF PIDA controller parameters achieved by each algorithm is listed in Table 3. The parameters were bounded within predefined search intervals based on prior tuning heuristics and system limitations.
The controller parameters obtained by EOA align closely with the theoretical expectations for stabilizing the magnetic levitation system while ensuring fast and smooth tracking. EOA also demonstrates a good balance between aggressive control gains and stable filter coefficients.
Closed-loop response
To assess the dynamic performance of the magnetic levitation system under different controllers, a unit step reference input was applied, and the system’s closed-loop response was observed. The results of the simulation for the EOA, HLOA, and SHO-based 2-DOF PIDA controllers are illustrated in Fig. 5. As shown in the figure, the controller tuned using the EOA achieves the quickest and most precise response, closely tracking the setpoint with no overshoot and the shortest rise and settling times. In contrast, the HLOA and SHO controllers exhibit slightly slower responses, with minor overshoot, particularly in the SHO case.
The corresponding quantitative time-domain metrics are summarized in Table 4, including percent overshoot, rise time, and settling time. These metrics confirm the superior performance of the EOA-tuned controller in terms of both accuracy and response speed.
These results clearly demonstrate that the proposed EOA-based tuning not only improves the transient response characteristics but also ensures a faster, overshoot-free convergence to the desired levitation position, which is crucial in magnetic levitation applications requiring precision and stability.
Robustness analysis
To assess the robustness of the proposed controller under parameter uncertainties, four test cases were simulated by perturbing the nominal system parameters \(\:R\) and \(\:L\). Figures 6, 7, 8 and 9 illustrate the comparative closed-loop step responses obtained using the EOA, HLOA, and SHO-based 2-DOF PIDA controllers under each condition. In this scenario, the system resistance is slightly reduced, potentially accelerating the electrical dynamics. The EOA-based controller demonstrates a fast rise and zero overshoot, whereas HLOA and SHO show noticeable overshoot, with SHO peaking highest. Despite the variation, EOA maintains excellent tracking and settling characteristics. With a slight increase in resistance, the system becomes more sluggish. Here, EOA maintains performance with a minor overshoot (~ 0.07%) and stable convergence. In contrast, HLOA and especially SHO exhibit larger overshoot and slower convergence, highlighting the EOA’s ability to compensate for increased electrical resistance. This test represents a scenario where the system inductance is reduced. As inductance affects the rate of change of current in the electromagnet, this accelerates the system’s magnetic response. EOA again shows zero overshoot and a fast settling response, while both HLOA and SHO become sensitive, leading to increased overshoot and longer settling times, indicating reduced robustness.
Here, with increased inductance, the controller must handle a more sluggish system. The EOA-based controller preserves stability and achieves the best settling performance (~ 0.0217 s), despite a slight increase in overshoot (~ 0.17%). HLOA and SHO suffer more from this change, especially SHO, which shows overshoot exceeding 1.1%.
These observations clearly demonstrate that EOA exhibits superior robustness under all tested parameter deviations, ensuring both stability and high precision in closed-loop control. This makes it well-suited for real-time magnetic levitation applications where system parameters may vary due to heating, aging, or environmental conditions. The time-domain performance under these parameter perturbations is quantitatively summarized in Table 5.
The EOA-based controller consistently achieved superior or comparable performance under all test conditions, exhibiting minimal overshoot, shorter rise time, and faster settling time. These results confirm the robustness and adaptability of the EOA-optimized 2-DOF PIDA controller, making it a suitable candidate for practical deployment in magnetic levitation systems where parameter uncertainties cannot be avoided.
Comparison with reported control methods
To comprehensively assess the performance of the proposed EOA-based 2-DOF PIDA controller, it was compared against 12 other recently reported control strategies, including PID, FOPID, and RPIDD2 configurations tuned via different metaheuristic optimizers. The benchmarking is based on various time-domain metrics and the \(\:IAE\) objective function.
The tested methods, their references, and corresponding method numbers are summarized in Table 6.
Figure 10 presents the system response to a unit step input under each of the 13 controllers.
-
EOA-based 2-DOF PIDA (Method 1) shows an ideal behavior fast rise, no overshoot, and rapid convergence to the setpoint.
-
Other methods, especially Methods 4 and 5 (WOA-based PID and SA-based PID), exhibit large overshoots (over 40%) and oscillations before settling, which are undesirable in sensitive systems like magnetic levitation.
-
Several controllers (Methods 7–13) achieve more stable behavior but still fall short of Method 1’s precision and damping quality.
-
This figure highlights the superior transient regulation and damping characteristics of the proposed controller, which is critical for stability in highly nonlinear, open-loop unstable systems.
This bar chart in Fig. 11 quantifies how quickly each controller brings the output from 10 to 90% of the setpoint value.
-
Method 1 (EOA-based) again leads with the fastest rise time (0.0121 s), significantly better than all other approaches.
-
Methods like 4, 5, and 8 require more than 0.03 s, indicating delayed responsiveness.
-
A fast rise time is crucial in real-time applications such as magnetic levitation, where quick stabilization directly affects usability and safety. This figure confirms that the EOA-optimized controller ensures rapid action without compromising system stability.
Settling time in Fig. 12 indicates how quickly the system output stabilizes within a defined tolerance band around the setpoint.
-
EOA-based control achieves the shortest settling time of just 0.0365 s, indicating high-speed convergence with minimal oscillations.
-
In contrast, Methods 2–5 take over 0.5 s, which is unacceptable in high-precision applications.
-
Several RPIDD2-based methods (Methods 10–13) improve on the classical PID methods but still fall behind EOA.
-
This chart demonstrates the superiority of EOA not just in speed but also in damping, reinforcing its real-time suitability.
Percent overshoot in Fig. 13 reflects how much the system output exceeds the desired setpoint during transient response.
-
Method 1 is the only one with 0% overshoot, ensuring perfectly critically damped behavior.
-
Other methods especially Methods 5 and 9 exhibit substantial overshoot, with Method 5 peaking at 44.07%, indicating poor damping and risk of instability.
-
Overshoot is dangerous in magnetic levitation systems as it can lead to loss of levitation or collision with system boundaries. This plot clearly demonstrates the safety and precision advantages of the proposed controller.
\(\:IAE\) evaluates in Fig. 14 the total accumulated tracking error over time a lower \(\:IAE\) indicates better long-term tracking accuracy.
-
Method 1 outperforms all others with a minimum IAE of 0.0096, compared to 0.0794–0.0959 in Methods 4–5.
-
Controllers with high \(\:IAE\) are less effective at maintaining precise tracking over time, often due to overshoot, undershoot, or prolonged settling.
-
EOA’s low \(\:IAE\) result confirms its long-term tracking efficiency and robust setpoint convergence.
Advantages and disadvantages of proposed methods
To provide a comprehensive analysis, the advantages and disadvantages of the 2-DOF PIDA controller optimized with the EAO, HLOA, and SHO are discussed. The EAO-based method demonstrates superior performance with 0% overshoot, a rise time of 0.0121 s, and a settling time of 0.0365 s, alongside high robustness against parameter variations (Sect. 5.4). However, its computational complexity may pose challenges in real-time systems with limited hardware resources, and its performance depends on proper initial parameter settings. Additionally, as noted in Sect. 6, it has not been tested in real-world conditions, potentially making it susceptible to sensor quantization noise or hardware delays. The HLOA-based method offers acceptable performance with low overshoot (0.23117%) and a settling time of 0.049113 s but exhibits slower convergence and greater sensitivity to parameter changes (up to 0.36938% overshoot), limiting its stability in demanding applications. The SHO-based method provides simpler implementation but suffers from higher overshoot (up to 1.3938%) and reduced stability under parameter variations, making it less suitable for highly sensitive systems. The following Table 7 summarizes this comparison:
Conclusion
This This study introduced a novel 2-DOF PIDA controller optimized with the EAO for precise position regulation in magnetic levitation systems. By leveraging acceleration feedback and reference input weighting, the controller achieves independent tuning of transient and steady-state behavior, resulting in 0% overshoot, a rise time of 0.0121 s, and a settling time of 0.0365 s. Extensive simulations demonstrate that the EAO-tuned controller outperforms two recent metaheuristics HLOA and SHO as well as 12 state-of-the-art control strategies, including SCA-, WOA-, and MRFO-tuned PID, FOPID, and RPIDD2 controllers, across key metrics such as \(\:IAE\), rise time, settling time, and robustness under parameter perturbations (Sect. 5.3–5.5). Robustness testing under variations in coil resistance and inductance further confirms the controller’s adaptability to practical uncertainties like thermal drift and component aging, making it a promising solution for real-time maglev applications.
However, certain limitations must be acknowledged to contextualize the findings. The current validation is simulation-based, which does not account for real-world challenges such as sensor quantization noise, hardware-induced delays, and environmental disturbances. For instance, sensor noise could introduce errors in measuring the steel ball’s position, potentially causing oscillations or degrading the zero-overshoot performance observed in simulations (Table 4). Hardware delays, arising from processing limitations or communication latencies, may increase rise and settling times, compromising the reported 0.0121 s rise time and 0.0365 s settling time. Additionally, the computational complexity of the EAO algorithm (Eq. 12, Sect. 2.1.9), with a population size of 30 and 100 iterations, may pose challenges for real-time implementation on resource-constrained hardware, potentially limiting the controller’s ability to adapt quickly to dynamic changes in system parameters. Furthermore, the study assumes idealized parameter perturbations (± 10% variations in resistance and inductance, Sect. 5.4), whereas real-world systems may experience simultaneous and complex variations due to temperature fluctuations or electromagnetic interference. These unmodeled dynamics could reduce tracking accuracy (e.g., \(\:IAE\) of 0.0096, Table 2) or introduce overshoot, particularly if nonlinearities or faults like sensor failures or actuator saturation occur.
To address these challenges, future work will focus on hardware-in-the-loop (HIL) testing to validate the controller under realistic conditions, incorporating sensor noise and hardware delays. Optimizing the EAO algorithm for embedded systems, potentially through reduced population sizes or parallel processing, could mitigate computational constraints. Additionally, exploring adaptive control strategies, such as online parameter estimation, or robust control techniques could enhance resilience to complex parameter variations and unmodeled dynamics. Extending the controller’s application to multi-input multi-output (MIMO) and fault-tolerant maglev systems will further broaden its practical relevance. In summary, the EAO-optimized 2-DOF PIDA controller offers a computationally efficient, self-tunable, and high-precision solution for nonlinear, unstable systems like magnetic levitation platforms. Its superior performance in simulation, combined with its robustness to parameter uncertainties, positions it as a compelling framework for next-generation contactless actuation, smart automation, and maglev transportation systems. Future research addressing the identified limitations will ensure its successful deployment in real-world applications, leveraging the potential of bio-inspired optimization in modern control design.
Data availability
The datasets used and/or analyzed during the current study available from the corresponding author on reasonable request.
References
Yaseen, H. M. S., Siffat, S. A., Ahmad, I. & Malik, A. S. Nonlinear adaptive control of magnetic levitation system using terminal sliding mode and integral backstepping sliding mode controllers. ISA Trans. 126, 121–133 (2022).
Chamraz, Š., Huba, M. & Žáková, K. Stabilization of the magnetic levitation system. Appl. Sci. 11(21), 10369 (2021).
Qiang, H., Qiao, S., Huang, H., Cheng, P. & Sun, Y. Nonlinear adaptive control of maglev system based on parameter identification. Actuators 14(3), 115 (2025).
Ataşlar-Ayyıldız, B., Karahan, O. & Yılmaz, S. Control and robust stabilization at unstable equilibrium by fractional controller for magnetic levitation systems. Fractal Fract. 5(3), 101 (2021).
Özaydİn, C., Zeynelgil, H. L., Ekinci, S. & Hekimoğlu, B. PID controller design based on sine cosine algorithm for magnetic ball suspension system. in 2019 International Artificial Intelligence and Data Processing Symposium (IDAP) 1–7 (IEEE, 2019).
Ekinci, S., Demirören, A., Hekimoğlu, B. & Eker, E. Performance enhancement of magnetic ball suspension system using hybrid whale optimization algorithm with simulated annealing. in 2019 3rd International Symposium on Multidisciplinary Studies and Innovative Technologies (ISMSIT) 1–6 (IEEE, 2019).
Dey, S., Banerjee, S. & Dey, J. Design and performance analysis of optimized fractional order PID controller for magnetic levitation system. in IEEE 4th International Conference on Computing, Power and Communication Technologies (GUCON) 1–6 (IEEE, 2021).
Maheedhar, M. & Deepa, T. Design and performance analysis of a nonlinear magnetic levitation system using PID controller optimized with COOT algorithm. IEEE Access. 11, 104606–104621 (2023).
Izci, D., Ekinci, S., Eker, E. & Kayri, M. Augmented hunger games search algorithm using logarithmic spiral opposition-based learning for function optimization and controller design. J. King Saud University-Engineering Sci. 36(5), 330–338 (2024).
Demirören, A., Ekinci, S., Hekimoğlu, B. & Izci, D. Opposition-based artificial electric field algorithm and its application to FOPID controller design for unstable magnetic ball suspension system. Eng. Sci. Technol. Int. J. 24(2), 469–479 (2021).
Ekinci, S., Izci, D. & Kayri, M. An effective controller design approach for magnetic levitation system using novel improved Manta ray foraging optimization. Arab. J. Sci. Eng. 47(8), 9673–9694 (2022).
Roman, R. C., Precup, R. E., Petriu, E. M. & Borlea, A. I. Hybrid data-driven active disturbance rejection sliding mode control with tower crane systems validation. Sci. Technol. 27(1), 50–64 (2024).
Wen, J. & Wang, F. Stable levitation of single-point levitation systems for Maglev trains by improved cascade control. Rom J. Inf. Sci. Technol. 27, 3–4 (2024).
Chi, R., Li, H., Shen, D., Hou, Z. & Huang, B. Enhanced P-type control: indirect adaptive learning from set-point updates. IEEE Trans. Autom. Control. 68(3), 1600–1613 (2022).
Lurang, K. & Puangdownreong, D. Two-degree-of-freedom PIDA controllers design optimization for liquid-level system by using modified Bat algorithm. Int. J. Innovative Comput. Inform. Control. 16(2), 715–732 (2020).
Huba, M., Bistak, P., Briežnik, J. & Vrancic, D. Constrained series PI, PID and PIDA controller design inspired by Ziegler–Nichols. Power Electron. Drives 9 (2024).
Jabari, M. & Rad, A. Optimization of speed control and reduction of torque ripple in switched reluctance motors using metaheuristic algorithms based PID and FOPID controllers at the edge. Tsinghua Sci. Technol. 30(4), 1526–1538 (2025).
Ekinci, S., Izci, D., Jabari, M. & Ma’arif, A. Enhanced temperature control of continuous stirred tank reactors using QIO-based 2-DoF PID controller. J. Rob. Control (JRC). 6(3), 1340–1346 (2025).
Günther, J., Reichensdörfer, E., Pilarski, P. M. & Diepold, K. Interpretable PID parameter tuning for control engineering using general dynamic neural networks: an extensive comparison. Plos One. 15(12), e0243320 (2020).
Dey, S., Banerjee, S. & Dey, J. Practical application of fractional-order PID controller based on evolutionary optimization approach for a magnetic levitation system. IETE J. Res. 69(11), 8168–8192 (2023).
Izci, D. et al. Refined Sinh Cosh optimizer tuned controller design for enhanced stability of automatic voltage regulation. Electr. Eng. 106(5), 6003–6016 (2024).
Izci, D., Abualigah, L., Can, Ö., Andiç, C. & Ekinci, S. Achieving improved stability for automatic voltage regulation with fractional-order PID plus double-derivative controller and mountain gazelle optimizer. Int. J. Dynamics Control. 12(7), 2550–2565 (2024).
Alrashed, M. M., Flah, A., Dashtdar, M., El-Bayeh, C. Z. & Elnaggar, M. F. Improving the control strategy of the DVR compensator based on an adaptive Notch filter with an optimized PD controller using the IGWO algorithm. Int. Trans. Electr. Energy Syst. 2024(1), 5097056 (2024).
Abualigah, L., Ekinci, S. & Izci, D. Aircraft pitch control via filtered proportional-integral-derivative controller design using Sinh Cosh optimizer. Int. J. Rob. Control Syst. 4(2) (2024).
Abualigah, L., Izci, D., Ekinci, S. & Zitar, R. A. Optimizing aircraft pitch control systems: a novel approach integrating artificial rabbits optimizer with PID-F controller. Int. J. Rob. Control Syst. 4(1), 354–364 (2024).
Ekinci, S. et al. Advanced control parameter optimization in DC motors and liquid level systems. Sci. Rep. 15(1), 1394 (2025).
Izci, D. et al. A novel control scheme for automatic voltage regulator using novel modified artificial rabbits optimizer. e-Prime-Advances Electr. Engineering Electron. Energy. 6, 100325 (2023).
Abualigah, L., Ekinci, S., Izci, D. & Zitar, R. Modified elite opposition-based artificial hummingbird algorithm for designing FOPID controlled cruise control system. Intelligent Autom. Soft Computing 38(2) (2023).
Ekinci, S., Izci, D., Bajaj, M. & Blazek, V. Novel application of Sinh Cosh optimizer for robust controller design in hybrid photovoltaic-thermal power systems. Sci. Rep. 15(1), 2825 (2025).
Ekinci, S. et al. Optimized FOPID controller for steam condenser system in power plants using the sinh-cosh optimizer. Sci. Rep. 15(1), 6876 (2025).
Dei, G. et al. A novel TID + IDN controller tuned with Coatis optimization algorithm under deregulated hybrid power system. Sci. Rep. 15(1), 4838 (2025).
Ekinci, S. et al. Quadratic interpolation optimization-based 2DoF-PID controller design for highly nonlinear continuous stirred-tank heater process. Sci. Rep. 15(1), 1–7 (2025).
Jabari, M. et al. Efficient pressure regulation in nonlinear shell-and-tube steam condensers via a novel TDn (1 + PIDn) controller and DCSA algorithm. Sci. Rep. 15(1), 2090 (2025).
Davoudkhani, I. F., Zare, P., Abdelaziz, A. Y., Bajaj, M. & Tuka, M. B. Robust load-frequency control of islanded urban microgrid using 1PD-3DOF-PID controller including mobile EV energy storage. Sci. Rep. 14(1), 13962 (2024).
Jabari, M. et al. An advanced PID tuning method for temperature control in electric furnaces using the artificial rabbits optimization algorithm. Int. J. Dynamics Control. 13(5), 1–15 (2025).
Rodan, A., Al-Tamimi, A. K., Al-Alnemer, L., Mirjalili, S. & Tiňo, P. Enzyme action optimizer: a novel bio-inspired optimization algorithm. J. Supercomputing. 81(5), 686 (2025).
Peraza-Vázquez, H., Peña-Delgado, A., Merino-Treviño, M., Morales-Cepeda, A. B. & Sinha, N. A novel metaheuristic inspired by horned Lizard defense tactics. Artif. Intell. Rev. 57(3), 59 (2024).
Zhao, S., Zhang, T., Ma, S. & Wang, M. Sea-horse optimizer: a novel nature-inspired meta-heuristic for global optimization problems. Appl. Intell. 53(10), 11833–11860 (2023).
Deepa, S. & Jayalakshmi, N. Y. Optimized fuzzy-based wavelet neural network controller for a non-linear process control system. IETE J. Res. 69(3), 1363–1372 (2023).
Jabari, M., Ekinci, S., Izci, D., Bajaj, M. & Zaitsev, I. Efficient DC motor speed control using a novel multi-stage FOPD (1 + PI) controller optimized by the pelican optimization algorithm. Sci. Rep. 14(1), 22442 (2024).
Kouvakas, N. D., Koumboulis, F. N. & Xydi, K. Model following through a metaheuristic pd controller for a magnetic levitation system. in IEEE 20th International Conference on Industrial Informatics (INDIN) 413–420 (IEEE, 2022).
Bizuneh, A., Mitiku, H., Salau, A. O. & Chandran, K. Performance analysis of an optimized PID-P controller for the position control of a magnetic levitation system using recent optimization algorithms. Measurement 33, 101228 (2024).
Blossom, D. & Rao, V. S. Design of metaheuristically supervised linear ADRC for a magnetic levitation system control. in International Conference on Intelligent Computing, Smart Communication and Network Technologies 14–26 (Springer, 2023).
Tewari, V. K. et al. Magnetic levitation system control approaches and recent work on controller optimizations: A review, in International Conference on Electric Power and Renewable Energy 171–193 (Springer, 2024).
Abdalhadi, A. & Wahid, H. Control approaches for magnetic levitation systems and recent works on its controllers’ optimization: A review. Appl. Modelling Simul. 5, 173–183 (2021).
Jabari, M., Izci, D., Ekinci, S., Bajaj, M. & Zaitsev, I. Performance analysis of DC-DC Buck converter with innovative multi-stage PIDn (1 + PD) controller using GEO algorithm. Sci. Rep. 14(1), 25612 (2024).
Author information
Authors and Affiliations
Contributions
Serdar Ekinci, Davut Izci: Conceptualization, Methodology, Software, Visualization, Investigation, Writing- Original draft preparation. Mostafa Jabari: Data curation, Validation, Supervision, Resources, Writing - Review & Editing. Mohit Bajaj, Olena Rubanenko: Project administration, Supervision, Resources, Writing - Review & Editing.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Ekinci, S., Izci, D., Jabari, M. et al. Design of a novel and robust 2-DOF PIDA controller based on enzyme action optimizer for ball position regulation in magnetic levitation systems. Sci Rep 15, 29360 (2025). https://doi.org/10.1038/s41598-025-13967-4
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-025-13967-4