This protocol establishes a standardized rapid control prototyping procedure to evaluate Particle Swarm Optimization-tuned backstepping tracking control within a fixed-step real-time simulation environment.
Method Article
This protocol establishes a standardized rapid control prototyping procedure to evaluate Particle Swarm Optimization-tuned backstepping tracking control within a fixed-step real-time simulation environment.
The primary objective of this protocol is to provide a reproducible fixed-step simulation framework for evaluating Particle Swarm Optimization (PSO)-based gain tuning in nonlinear control systems. The implementation begins with the formulation of a Furuta-type pendulum model, followed by the integration of a backstepping controller within a 2 ms fixed-step execution environment. The methodology involves a systematic four-stage process: characterizing non-ideal implementation constraints, defining a multi-objective Particle Swarm Optimization search space, executing automated offline tuning, and evaluating the resulting parameters through a standardized suite of trajectory-tracking and disturbance-rejection scenarios. This setup, utilizing high-performance industrial workstations and standardized signal interfaces, supports consistent repeated-trial comparisons within the same control architecture. The design compares a baseline manually tuned backstepping controller with a PSO-optimized variant that shares the exact same control structure, thereby isolating the impact of gain selection. Controller performance is assessed across three distinct operational scenarios: step-trajectory following, mixed-frequency sinusoidal tracking, and disturbance rejection. Statistical analysis of 10 repeated trials showed that PSO-based optimization reduced the step-tracking RMSE from 0.065 to 0.050 rad and attenuated peak pendulum excursions by 33.1%. These improvements were achieved alongside a 22.1% reduction in RMS control effort, indicating that the optimized parameters facilitated more efficient energy distribution within the Lyapunov-based framework. Ultimately, this methodology provides a structured simulation framework to evaluate nonlinear control strategies before any subsequent physical hardware implementation.
The Furuta-type rotary inverted pendulum represents a fundamental benchmark for validating nonlinear control algorithms due to its open-loop instability and complex underactuated dynamics1,2,3. Before implementation-oriented evaluation can be considered, these theoretical designs require rigorous simulation-based intermediary testing. Therefore, this protocol establishes a standardized, rapid control prototyping simulation framework to systematically evaluate the performance changes induced by Particle Swarm Optimization (PSO) on backstepping tracking controllers in a fixed-step simulated environment.
In the broader literature, numerous studies have explored structural modifications and parameter tuning to improve control of rotary inverted pendulums. Optimization-based designs are prevalent; for instance, PSO has been utilized to select controller parameters and has been integrated into fuzzy-hybrid control architectures4,5. Compared to other bio-inspired metaheuristics, PSO is specifically selected for this framework due to its rapid convergence in low-dimensional continuous search spaces and its minimal hyperparameter tuning requirements. Recent literature increasingly highlights the necessity of intelligent optimization algorithms in diverse and complex control scenarios. For example, advanced optimization techniques have been effectively combined with model reference adaptive control (MRAC) and fractional-order frameworks to enhance the tracking precision of nonlinear servo plants6,7. Furthermore, optimization-based tuning has proven highly advantageous in managing the coupled dynamics and inherent constraints of complex electromechanical systems8,9.
Recent studies validate that PSO and its hybridized variants significantly improve the efficacy of maximum power point tracking in photovoltaic arrays, demonstrating robust parameter identification under partial shading conditions10. In robotics, PSO has been successfully utilized to optimize augmented linear and nonlinear proportional-derivative control designs for parallel manipulators, minimizing trajectory tracking errors11. Additionally, the integration of PSO with adaptive backstepping sliding mode control has proven critical for suppressing vibrations in pneumatic artificial muscle-actuated hanging masses12. Beyond fundamental parameter selection, the integration of modern signal processing and robust optimization strategies is critical for maintaining closed-loop stability under realistic, noisy physical conditions13,14.
Recent efforts have also focused on simultaneous joint-angle tracking and pendulum stabilization under uncertain conditions using robust generalized dynamic inversion15, as well as adaptive neural estimation16. Furthermore, backstepping control architectures have been extensively evolved to handle complex disturbances across various mechanical systems, such as incorporating sliding mode designs for building vibration suppression, utilizing quasi-sliding observers for electronic throttle valves, and integrating nonlinear disturbance observers for high-precision DC motor speed regulation17,18,19. These diverse applications underscore the versatility of backstepping designs when coupled with robust estimation or optimization strategies.
A critical weakness prevailing in contemporary literature is the conflation of structural controller modifications with parameter-tuning benefits. Many comparative studies contrast entirely distinct control architectures, rendering it impossible to discern whether performance gains stem from the fundamental algorithm or merely from superior gain selection20,21. Furthermore, existing simulation studies often assume ideal operating conditions and focus solely on basic stabilization. They frequently fail to address performance degradation induced by realistic implementation constraints. This methodology directly addresses these gaps. By introducing simulated sampling delays, sensor noise, and damping mismatch within a dynamic trajectory-tracking paradigm, the proposed protocol evaluates the optimization effect of PSO on a fixed control structure.
Unlike conventional numerical integration, this protocol differentiates itself by decoupling parameter-tuning efficacy from structural controller variations while enforcing fixed-step timing constraints. Rather than introducing a novel control architecture, this method evaluates a single backstepping tracking controller within a fixed-step real-time simulation environment. By comparing a manually tuned baseline against a PSO-optimized variant of the exact same controller, the protocol is designed to attribute observed differences in step-tracking, sinusoidal-tracking, and disturbance rejection to the gain-optimization process. The primary contribution of this study is the development of a benchmark-oriented real-time simulation protocol that isolates the impact of PSO-based gain selection from structural controller variations.
Specifically, this work: (1) establishes a 2 ms fixed-step execution environment to emulate implementation constraints; (2) integrates a multifaceted evaluation suite including step, mixed-frequency sinusoidal, and torque-pulse disturbance scenarios; and (3) provides a quantitative benchmark for comparing gain-tuning effects under standardized simulated non-ideal conditions. This methodology is specifically designed for control researchers and systems engineers who require an intermediate simulation-evaluation stage for nonlinear control laws under fixed-step timing, measurement noise, delay, damping mismatch, and saturation constraints. It is particularly applicable to underactuated electromechanical systems, where tracking precision and internal-state stability must be balanced under realistic measurement noise and communication delays.
Access restricted. Please log in or start a trial to view this content.
This protocol does not involve human subjects, animal testing, or clinical specimens. The procedures are executed entirely within a fixed-step simulation environment representing a nonlinear electromechanical control system. No physical rotary inverted pendulum experiment, physical hardware-in-the-loop validation, or physical deployment test was performed in this study.
1. Plant construction and signal convention establishment
2. Initial state stipulation and prepositioning
3. Baseline backstepping controller implementation
4. Backstepping gain optimization via particle swarm optimization (PSO)
5. Real-time execution platform configuration
6. Step-tracking test execution
7. Sinusoidal tracking test execution
8. Disturbance rejection test execution
9. Data export and statistical summarization
Access restricted. Please log in or start a trial to view this content.
The particle swarm optimization (PSO) algorithm demonstrated a rapid initial reduction in the composite objective function, followed by a period of gradual convergence. Specifically, the optimal fitness value decreased to 1.8757 within the first computational cycle, while the mean-swarm fitness dropped from 2.0573 to 1.2518 by the 35th iteration. The majority of this convergence occurred during the initial 15 to 20 iterations. Beyond this stage, the trajectory of the global-best solution converged, indicating that the sw...
Access restricted. Please log in or start a trial to view this content.
The primary objective of this study is not merely to declare one controller superior to another under isolated conditions, but to demonstrate that the PSO-based gain optimization framework evaluated here can improve the performance of a backstepping controller across defined simulated non-ideal scenarios. The rotary inverted pendulum serves as an excellent benchmark for this evaluation due to its highly nonlinear, non-minimum phase, and underactuated characteristics26. Beyond performance metrics, ...
Access restricted. Please log in or start a trial to view this content.
The authors declare no conflicts of interest.
The authors acknowledge the College of Power Engineering at the Naval University of Engineering for providing the research facilities and real-time simulation platform necessary to conduct the simulations presented in this protocol. The authors also thank the laboratory technical staff for their support in maintaining the computational resources and simulation environment used for the control performance evaluations.
Access restricted. Please log in or start a trial to view this content.
| Name | Company | Catalog Number | Comments |
|---|---|---|---|
| High-performance Workstation (Windows 11 Pro) | Various / Custom Build | N/A | Host machine for fixed-step real-time simulation and post-processing. |
| MATLAB (Version R2024a) | MathWorks | https://www.mathworks.com/products/matlab.html | Nonlinear plant modeling, controller coding, data export, and parameter management. |
| Simulink (Version R2024a) | MathWorks | https://www.mathworks.com/products/simulink.html | Block-diagram model construction for the Furuta-type pendulum and controller execution. |
| Simulink Desktop Real-Time (Version R2024a) | MathWorks | https://www.mathworks.com/products/simulink-desktop-real-time.html | Fixed-step real-time kernel for desktop execution of the control model. |
| Python (Version 3.11) | Python Software Foundation | https://www.python.org/ | Secondary data processing, statistical handling, and figure preparation. |
| NumPy (Version 1.26) | NumPy Developers | https://numpy.org/ | Numerical array operations for exported trial data. |
| pandas (Version 2.2) | pandas Developers | https://pandas.pydata.org/ | Repeated-trial data organization and summary-table generation. |
| SciPy (Version 1.13) | SciPy Developers | https://scipy.org/ | Statistical testing and signal-analysis utilities. |
| Matplotlib (Version 3.8) | Matplotlib Developers | https://matplotlib.org/ | Plot generation for convergence, tracking, and distribution figures. |
Access restricted. Please log in or start a trial to view this content.
Request permission to reuse the text or figures of this JoVE article
Request Permission