Next Article in Journal
In Silico Optimization of a Fed-Batch Bioreactor for Tryptophan Production Using a Structured Hybrid Model and Several Algorithms Including a Pareto-Optimal Front
Next Article in Special Issue
Multi-Objective Majority–Minority Cellular Automata Algorithm for Global and Engineering Design Optimization
Previous Article in Journal
Pedestrian Re-Identification Based on Weakly Supervised Multi-Feature Fusion
Previous Article in Special Issue
Metaheuristic and Heuristic Algorithms-Based Identification Parameters of a Direct Current Motor
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Application of Particle Swarm Optimization to a Hybrid H/Sliding Mode Controller Design for the Triple Inverted Pendulum System

Control and Systems Engineering Department, University of Technology-Iraq, Baghdad 10001, Iraq
*
Author to whom correspondence should be addressed.
Algorithms 2024, 17(10), 427; https://doi.org/10.3390/a17100427
Submission received: 27 July 2024 / Revised: 20 September 2024 / Accepted: 22 September 2024 / Published: 24 September 2024
(This article belongs to the Special Issue Metaheuristic Algorithms in Optimal Design of Engineering Problems)

Abstract

:
The robotics field of engineering has been witnessing rapid advancements and becoming widely engaged in our lives recently. Its application has pervaded various areas that range from household services to agriculture, industry, military, and health care. The humanoid robots are electro–mechanical devices that are constructed in the semblance of humans and have the ability to sense their environment and take actions accordingly. The control of humanoids is broken down to the following: sensing and perception, path planning, decision making, joint driving, stability and balance. In order to establish and develop control strategies for joint driving, stability and balance, the triple inverted pendulum is used as a benchmark. As the presence of uncertainty is inevitable in this system, the need to develop a robust controller arises. The robustness is often achieved at the expense of performance. Hence, the controller design has to be optimized based on the resultant control system’s performance and the required torque. Particle Swarm Optimization (PSO) is an excellent algorithm in finding global optima, and it can be of great help in automatic tuning of the controller design. This paper presents a hybrid H/sliding mode controller optimized by the PSO algorithm to control the triple inverted pendulum system. The developed control system is tested by applying it to the nominal, perturbed by parameter variation, perturbed by external disturbance, and perturbed by measurement noise system. The average error in all cases is 0.053 deg and the steady controller effort range is from 0.13 to 0.621 N.m with respect to amplitude. The system’s robustness is provided by the hybrid H/sliding mode controller and the system’s performance and efficiency enhancement are provided by optimization.

Graphical Abstract

1. Introduction

Humanoids are robots designed in the shape of humans to carry out a variety of tasks. They are built to receive data from their environment through suitable sensors and to take actions by moving their joints in a certain way to accomplish the required task (Figure 1a). Their sophisticated control system is partitioned into smaller dedicated-purpose controllers. The most crucial part of the overall control system is the one that is responsible for generating the motors’ commands to maintain balance and stability. For this control goal, a triple inverted pendulum system is used to develop, test, and enhance the control design. Mechanically, the torso, thighs, and shanks of the humanoid are represented by three links connected by joints that are driven by electric direct current (DC) motors, as shown in Figure 1b. Hence, the triple inverted pendulum system describes the basic dynamics of a humanoid. The angles that are made by the three links with the vertical axis are to be controlled by the torques produced by two DC motors. The torques are provided by the drivers to the upper two joints through two belt pulleys. The angles are measured by three potentiometers. The horizontal bars are added to ease the balance by increasing the moment of inertia [1].
The triple inverted pendulum is an unstable system which is difficult to control. Besides being an unstable system, it is subject to perturbations, due to uncertainties in the system’s friction parameters and moments of inertia. In addition, external disturbances like wind gusts affect the system response. Noise in measurement readings is another source of uncertainty that affects the system response. In such systems, where perturbations occur, the controller used must take the uncertainties into account during its design to provide robustness against them. The other challenge of controlling multiple degrees of freedom (DOFs) by fewer control signals is encountered practically. This may occur by the failure of one actuator during operation or may even be a goal in itself for the sake of minimizing the consumed energy, cost, or size of the system. The underactuation makes disturbance rejection more difficult, because the applied disturbance to the unactuated joint would not fulfill the matching condition.
In the last few years, both optimal and non-optimal control methods have been suggested and developed to control the inverted pendulums and robotic systems. Among the researchers who utilized non-optimal control methods are Sharma et al. [3]; they presented a decoupling sliding mode algorithm to control a single inverted pendulum on a cart. The poles of the reduced order system have been placed once near the imaginary axis and in another case away from the imaginary axis, and in the dominant region. It has been shown that locating the poles in the dominant region reduces steady state error and produces better disturbance rejection. Bonifacio et al. [4] used the Attractive Ellipsoid Method (AEM) to stabilize the triple inverted pendulum and compared it to the sliding mode control (SMC) system. It was found that AEM-based control rejects external perturbations more smoothly, while the SMC consumes less energy. Nguyen [5] developed an SMC system for the two-link fully actuated robot arm. In system response, the angles of the arms reach the desired value within 1.5 s. Kharabian et al. [6] proposed a hybrid sliding mode/H-infinity control approach using a fuzzy neural network weighting method to reduce nonlinearity, provide precise trajectory tracking, and to the enhance noise rejection capability of a single-link flexible manipulator system. The proposed hybrid controller reduces the total system nonlinearity, leading to higher performance with respect to noise cancellation, compared to sliding mode controller alone. Yet, the proposed control approach was not applied on manipulators with two or three links, whereas the system’s complexity rises and its control becomes harder.
Saif et al. [7] utilized synergetic control theory and fractional calculus to develop a fractional synergetic control (FSC) strategy for a four-DOF robot manipulator; the synergetic control approach was implemented to obtain fast convergence to the equilibrium point. The results of combining synergetic control and fractional calculus in control system design showcased good tracking performance in both joint space and workspace trajectories. However, the method’s robustness had not been investigated. Ahmed et al. [8] utilized Time Delay Estimation (TDE)-based model-free control to estimate the external disturbance and the unknown friction parameters of a Puma 560 rigid manipulator, and terminal SMC to obtain system robustness. The system responses show that the control method can suppress the effect of uncertainty and produce effective tracking. However, the effect of measurement noise that can affect the overall control performance has not been considered. Likewise, the effect of measurement noise was not determined by Anjum et al. [9] when they incorporated a fixed-time adaptive sliding mode observer into the fixed-time non-singular terminal SMC design for the Puma 560 manipulator.
For the single-link manipulator, Liu et al. [10] proposed an adaptive tracking controller based on the mismatched disturbance observer. The adaptive approach and disturbance-observer design contribute to effective disturbance rejection and smoother control of the robotic manipulator link. The closed-loop signals are found to be globally uniformly bounded with asymptotically stable tracking error, though the proposed control method is not generalized to more complex multi-link systems. In the same context, Qiu et al. [11] developed a disturbance observer-based adaptive fuzzy control method for the single-link manipulator; the proposed control system acquires finite-time prescribed performance, by which the tracking error enters a prescribed bounded set within finite time, even though the prescribed performance control strategy which is debated may not fully account for all practical prospects.
Flatness-based control has been employed by Rigatos et al. [12] in successive loops for both the three-DOF rigid-link robotic manipulator and three-DOF autonomous underwater vessel. The proposed method separates the controlled system into two differentially flat subsystems, connected in cascade. The response of the two case studies exhibits fast and precise tracking of the desired set points; still, the robustness to uncertainty has not been inspected.
Jabbar et al. [13] proposed a modified backstepping control method to stabilize the rotary double-inverted pendulum, where the control law is a combination of the backstepping control action and uncertainty compensation control action. The simulation results show the control system’s ability for exponential stabilization in the presence of uncertainties and disturbances. Yet, the proposed method involves complex design steps and lacks tunability to become consistent within practical applications. Siradjuddin et al. [14] used pole placement to obtain the feedback gain that stabilizes the single-link inverted pendulum at the desired position of the cart. The results show that placing the poles at more negative locations yields faster response at the expense of higher overshoot and greater control action, yet does not afford robustness. Pristovani et al. [15] employed a Multi Input/Multi Output (MIMO) decoupled control system method to implement the push-recovery strategy for the triple inverted pendulum by simplifying the control design into three serial Single Input Single Output (SISO) systems with known and uncertain disturbance models in each inverted pendulum, where the PID controller was used in each link to damp the external force applied on it. The proposed control system achieved 85.71% success in withstanding external forces, but did not consider its suitability for under-actuated systems. Although Masrom et al. [16] implemented Interval Type-2 Fuzzy Logic Control (IT2FLC) to a triple inverted pendulum on two wheels and the developed controller managed to withstand 16% greater disturbance than the type-1 fuzzy logic controller, the researchers considered disturbance applied on the third link only. The control system’s robustness against possible disturbances on other links is missing in the study.
Since optimization provides enhancements in control system design, it has been employed in different ways to provide optimal solutions for engineering problems. Soltanpour et al. [17], for instance, presented optimal fuzzy SMC for a two-DOF robotic manipulator. In order to compensate for the information shortages with respect to the system’s uncertainties, PSO was used to adjust the parameters of fuzzy membership functions. The proposed control method outperformed the classic SMC in terms of control input smoothness, though it had slightly higher tracking errors. The two-DOF robotic manipulator has also been controlled by an optimal integral SMC based on the pseudo spectral method. Liu et al. [18] applied integral SMC to restrain disturbance and adopted the pseudo spectral method to deal with the constraints. The proposed controller demonstrated the ability to track the desired reference signals accurately within 2 s. The results illustrated that the robotic manipulator system exhibited good robustness and anti-disturbance capabilities when subjected to external disturbances. However, the measurement noise for the system has not been considered.
Oliveira et al. [19] used Grey Wolf Optimization (GWO) with chaotic basis to tune the parameters of a higher-order SMC for the position control of a two-DOF rigid robot manipulator. Tent and Singer maps were applied to the optimization method to balance the exploration/exploitation phases of the algorithm, based on the algorithm itself and the chosen cost function. It was shown that the general repeatability of the algorithm was improved using chaotic maps in the higher-order SMC optimization. However, the suitability of the proposed method has not been tested for three-DOF manipulators. For the electro–hydraulic actuator system, Soon et al. [20] applied PSO to tune the Proportional–Integral–Derivative (PID) sliding surface of the SMC. The use of optimization in controller design has improved the system’s performance by 0.6407%. However, uncertainty was not taken into consideration in the study. On the other hand, Jibril et al. [21] used a Linear– Quadratic Regulator (LQR), where the cost is defined through a quadratic function, and pole placement, where the closed-loop poles of the plant are positioned in desired locations in the s-plane. Both control methods were applied for the stabilization of a triple inverted pendulum system and compared; the comparison shows that the pole-placement controller improves the stability of the system more, but with no indications of its robustness against perturbations. As for the triple-link rotary inverted pendulum, Hazem et al. [22] made a comparative study of the Neuro-Fuzzy Friction Estimation Model (NFFEM) and Adaptive Friction Estimation Model (AFEM) methods used to estimate the friction coefficients of the plant. The NFFEMs are trained by a radial-basis function artificial neural network. It has been deduced, based on the root mean square error of the joints’ position, that NFFEMs produce much better estimation results than AFEMs, although the researchers had not address the robustness issue.
Singh et al. [23] applied H and μ-synthesis control for the double inverted pendulum on a cart to achieve disturbance rejection and robust stability. The H controller seeks to minimize the mixed-sensitivity cost function, while the μ-synthesis controller implements the D-K iteration method to find the stabilizing gain that minimizes the upper structured singular value of the system. The simulation results show that the μ-synthesis control system has a more robust performance. In [24,25], Shafeek et al. proposed a method for enhancing the H and μ-synthesis control systems’ robustness and performance for the triple inverted pendulum, by incorporating PSO and the Gazelle Optimization Algorithm (GOA), respectively, into the controllers’ design. It has been shown that utilizing the optimization in control system design allows the possibility of balancing robustness and performance aspects within the system.
Meta-heuristic optimization algorithms are known to be well-suited for a wide range of complex optimization problems. Their key power lies in their ability to handle large search spaces, constraints, and multi-objective cost functions. The following studies are recommended to researchers interested in the field of meta-heuristic optimization applications. In fact, various meta-heuristic optimization algorithms (such as PSO [26,27,28], Ant Colony Optimization [29], the Bees Algorithm [30], Grey Wolf Optimization [31], the Whale Optimization Algorithm [32], Sunflower Optimization [33], the Gorilla Troops Algorithm [34], and the Chimp Optimization algorithm [35]) have been applied successfully in many engineering problems. In addition, it is also noteworthy that Rubio et al. [36] tuned the high-gain observer and controller gains to enhance the position and velocity perturbation attenuation for inverted pendulums using a genetic optimizer. The suggested method resulted in better perturbation attenuation compared to simplex and Bat optimizers. As for robots, Rubio [37] applied the Bat Algorithm and the Modified Bat Algorithm to minimize both tracking error and control energy consumption by optimizing the control gain. Sorcia-Vázquez et al. [38] also managed the minimization of the tracking error and the control effort for the experimental two-tank system through applying the genetic algorithm for the tuning of the PID and Fractional Order PID (FOPID) controller gains. The tuned FOPID control system performed better than the tuned PID control system in terms of overshoot, settling time, and control signal smoothness.
The literature review shows a gap in a fully robust analysis of the triple inverted pendulum which considers all the possible sources of uncertainties in the system. To fill the gap, this paper contributes from three important perspectives:
  • Formulating a hybrid H/SMC design for a triple inverted pendulum system that is robust to parameter variations, external disturbances, and measurement noise;
  • Utilizing PSO to tune parameters in the control action based on the Integral Time Absolute Error (ITAE) performance index of the three controlled variable errors and the Integral Square Control Signal (ISCS) performance index of the two actuators’ torques;
  • Evaluating the robustness, performance, and efficiency of the proposed optimized control system in different cases.
The rest of the paper introduces the mathematical model of the triple inverted pendulum system in Section 2, presents the PSO algorithm in Section 3, develops the hybrid H/SMC design and optimization in Section 4, and tests the control system response to different cases in Section 5. Finally, it discusses the outcomes of the developed control system and the most noticeable findings, and suggests directions for future work in Section 6.

2. Mathematical Model of the Plant

The Mathematical model of the triple link inverted pendulum shown in Figure 1b is derived based on Lagrangian mechanics established by the scientist Joseph-Louis Lagrange. The Lagrangian (L) of many mechanical systems represents the difference between their kinetic (T) and potential (V) energies
L = T V ,
For the triple inverted pendulum model of Figure 1b, the kinetic and potential energies are defined as:
T = 1 2   m 1 d   d t h 1   sin θ 1 2 + d   d t h 1   cos θ 1 2 + 1 2   I 1 θ ˙ 1 2 + 1 2   m 2 d d t   l 1   sin θ 1 + h 2   sin θ 2 2 + d   d t l 1   cos θ 1 + h 2   cos θ 2 2 + 1 2   I 2 θ ˙ 2 2 + 1 2   m 3 [ d d t   l 1   sin θ 1 + l 2   sin θ 2 + h 3   sin θ 3 2 + d   d t l 1   cos θ 1 + l 2   cos θ 2 + h 3   cos θ 3 2 ] + 1 2   I 3 θ ˙ 3 2 ,
V = M 3   g   cos θ 1 + M 2   g   cos θ 2 + M 3   g   cos θ 3 ,
respectively, where   g represents the acceleration of gravity, and
M 1 = m 1   h 1 + m 2   l 1 + m 3   l 1 ,
M 2 = m 2   h 2 + m 3   l 2 ,
M 3 = m 3   h 3 ,
Then, by applying the stationary action principle,
d d t   ( L ρ ˙ k ) = L ρ k ,
where   ρ j represents the k t h position vector in the generalized coordinates, the equations of motion of the system are obtained [1]:
J 1 + I p 1   l 1   M 2 cos θ 1 θ 2 I p 1 l 1   M 3 cos θ 1 θ 3 l 1   M 2 cos θ 1 θ 2 I p 1 J 2 + I p 1 + I p 2 l 2   M 3 cos θ 2 θ 3 I p 2 l 1   M 3 cos θ 1 θ 3 l 2   M 3 cos θ 2 θ 3 I p 2 J 3 + I p 2 θ ¨ 1 θ ¨ 2 θ ¨ 3 + C 1 + C 2 + C p 1   C 2 C p 1 0 C 2 C p 1   C p 1 + C p 2 + C 2 + C 3 C 3 C p 2 0 C 3 C p 2 C 3 + C p 2 θ ˙ 1 θ ˙ 2 θ ˙ 3 + l 1 M 2 sin θ 1 θ 2 θ ˙ 2 2 + l 1 M 3 sin θ 1 θ 3 θ ˙ 3 2 M 1 g   s i n ( θ 1 ) l 1 M 2 sin θ 1 θ 2 θ ˙ 1 2 + l 2 M 3 sin θ 2 θ 3 θ ˙ 3 2 M 2 g   s i n ( θ 2 ) l 1 M 3 sin θ 1 θ 3 ( θ ˙ 1 2 2   θ ˙ 1 θ ˙ 3 ) + l 2 M 3 sin θ 2 θ 3 ( θ ˙ 2 2 2   θ ˙ 2 θ ˙ 3 ) M 3 g   s i n ( θ 3 ) + K 1 0 K 1 K 2 0 K 2 t m 1 t m 2 = 1 1 0 0 1 1 0 0 1   d 1 d 2 d 3
where θ = [ θ 1 θ 2 θ 3 ] T represents the vector of angles of each link from the vertical line, as depicted in Figure 1b.
J 1 = I 1 + m 1   h 1 2 + m 2   l 1 2 + m 3   l 1 2 ,
J 2 = I 2 + m 2   h 2 2 + m 3   l 2 2 ,
J 3 = I 3 + m 3   h 3 2 ,
I i ,     m i ,   h i ,   and   l i represent the i t h link’s moment of inertia around its center of gravity, mass, distance from its bottom to the its center of gravity, and length, respectively.
I p i = I p i + K i 2   I m i ,
I p i ,     and   K i represent the i t h hinge’s belt–pulley system’s moment of inertia, and ratio of teeth, respectively, I m i represents the i t h motor’s moment of inertia, and   C i represents the viscous friction coefficients of the i t h hinge,
C p i = C p i + K i 2   C m i ,
C m i ,     C P i represent the viscous friction coefficients of the i t h motor and the i t h hinge’s belt–pulley system, respectively,   t m i represents the control torque of the i t h motor, and   d i represents the disturbance torque to the i t h link.
Linearizing the model described in Equation (3) [1] around the operating point θ 1 = θ 2 = θ 3 = 0 , results in the following:
J 1 + I p 1   l 1   M 2 I p 1 l 1   M 3 l 1   M 2 I p 1 J 2 + I p 1 + I p 2 l 2   M 3 I p 2 l 1   M 3 l 2   M 3 I p 2 J 3 + I p 2 θ ¨ 1 θ ¨ 2 θ ¨ 3 + C 1 + C 2 + C p 1   C 2 C p 1 0 C 2 C p 1   C p 1 + C p 2 + C 2 + C 3 C 3 C p 2 0 C 3 C p 2 C 3 + C p 2 θ ˙ 1 θ ˙ 2 θ ˙ 3 + M 1 g 0 0 0 M 2 g 0 0 0 M 3 g θ 1 θ 2 θ 3 + K 1 0 K 1 K 2 0 K 2 t m 1 t m 2 = 1 1 0 0 1 1 0 0 1   d 1 d 2 d 3
Arranging the model in state-space representation, given that the system has two inputs ( u 1 , u 2 ) and three outputs ( θ 1 , θ 2 , θ 3 ), and substituting the nominal values of the parameters given in Table 1 [1], yields
x ˙ t = 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 12.54 8.26 0.39 0.043 2.75 0.36 4.38 36.95 3 0.086 9.57 2.29 6.82 22.94 11.93 0.034 6.82 2.86   x t + 0 0 0 0 50 6.12 174.41 38.93 124.2 48.62   u t y t = 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 x t + 0 0 0 0 0 0 u ( t )
where the state vector x is [ θ 1   θ 2   θ 3   θ ˙ 1   θ ˙ 2   θ ˙ 3 ] T , the control input vector   u is [ u 1 u 2 ] T , and the output vector y is [ θ 1   θ 2   θ 3 ] T . Then, for this MIMO system, n = 6 states and m = 2 inputs.

3. PSO Algorithm

The PSO algorithm is a population-based metaheuristic search method that is valuable in engineering design optimization (and many other applications, as stated in [35]). The algorithm was developed by James Kennedy and Russell C. Eberhart, inspired by the organized trajectory adjustment used in bird swarms and fish schools, based on their own experiences and the experiences of others in the group (Figure 2).
The algorithm (Algorithm 1) starts by spreading its agents randomly in the predefined search space, to look for the best solution. Then, in each iteration, the agents update their velocities and positions based on mathematical formulas that incorporate their current positions, velocities, and historical information. These update formulas for the agents’ velocity ( V P S O ) and position ( X P S O ) are the following:
Algorithm 1: PSO algorithm
Step 1:Initialize the algorithm’s parameters ( w P S O ,     c P S O 1 ,     r P S O 1 ,     c P S O 2 ,     r P S O 2 , dimension, bounds, number of search agents, iteration counter, and maximum number of iterations)
Step 2:Set the cost function according to the required application of optimization
Step 3:Initialize the population
Step 4:Evaluate the cost function for all candidate solutions
Step 5:Specify each candidate solution as its best personal solution primarily ( p b e s t )
Step 6:Specify the candidate solution that produces the minimum cost function among all agents as the best global solution ( g b e s t )
Step 7-a:While (iteration number < maximum number of iterations), do:
Step 7-b-1:      For (all agents of all dimensions), do the following:
Step 7-b-2:                   Update agents’ velocity (Equation (16))
Step 7-b-3:                   Update agents’ position (Equation (17))
Step 7-b-4:                   Evaluate the cost function for all candidate solutions
Step 7-b-5:                   Specify the candidate solution that produces the minimum cost
function in its history as the best personal solution obtained so far
( p b e s t )
Step 7-b-6:      End for
Step 7-c:      Specify the candidate solution that produces the minimum cost function in all agents’ history as the best global solution obtained so far ( g b e s t )
Step 7-d:Increase the iteration counter by one
Step 7-e:End while
Step 8:Return the best solution ( g b e s t )
V P S O i ( t + 1 ) = w P S O × V P S O i ( t ) + c P S O 1 × r P S O 1 × ( p b e s t i   ( t ) X P S O i ( t ) ) + c P S O 2 × r P S O 2 × ( g b e s t   ( t ) X P S O i ( t ) ) ,
and
X P S O i   ( t + 1 ) = X P S O i   ( t ) + V P S O i   ( t + 1 ) ,
respectively, where w P S O represents the inertia weight, which is, instead of being a constant value as in [41], chosen to change its value through iterations from w ¯ P S O to w _ P S O according to the formula
w P S O = w ¯ P S O ( w ¯ P S O w _ P S O ) × t m a x i m u m   n u m b e r   o f   i t e r a t i o n s ,
to provide a thorough exploration of the search space in the early stages of optimization. Then its value keeps decreasing, to reduce the particles’ tendency to move far away from their current positions, such that the optimization method converges to a solution more efficiently; r P S O 1 and r P S O 2 are random numbers between 0 and 1, c P S O 1 and c P S O 2 are cognitive and social coefficients, respectively, and   g b e s t and p b e s t i represent the best global and personal solutions, respectively. Subsequently, the continued updating guides the agents towards better solutions till a specified stopping criterion is met (usually, the maximum number of iterations). The PSO agents’ updating is visualized in Figure 3.

4. Hybrid H/SMC Controller Design

The control of uncertain systems is required to provide robustness against parameter variations, external disturbances, and measurement noise. Nevertheless, seeking extreme robustness is not advised, because it leads to unnecessary conservativeness that affects the system’s performance characteristics. Optimization can be a great aid in enhancing the controller design to calibrate the system’s robustness/performance outcome. H and SMC are well known robust controllers that have shown their effectiveness in many uncertain control systems, so the controller design process is composed of the steps shown in Figure 4 and detailed below:
First, the H control is used to design the sliding manifold of the SMC to provide a more powerful hybrid controller. To account for parameter variations, the system in Equation (15) is represented as
x ˙ ( t ) = ( A + A )   x ( t ) + B   u ( t )
where ΔA represents the uncertainty matrix bounded by the Q matrix:
Q = [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 ]
In order to apply decoupling for MIMO systems, a similarity transformation is required to transform the state variable x ( t ) to a new state variable q ( t ) , defined as:
q ( t ) = H   x ( t )
where H is the n × n   similarity transformation matrix, obtained as
H = [ N B ] T
where the   n × ( n m ) matrix N is the null space of the transpose of B matrix. Thus:
H = [ 0 0.227 0.793 0.564 0 0 0 0.399 0.452 0.796 0 0 1 0 0 0 0 0 0 0.788 0.361 0.19 50 6.12 0 0.361 0.165 0.087 174.4 38.93 0 0.19 0.087 0.045 124.2 48.62 ]
The transformed state space representation is
q ˙ ( t ) = A ¯   q ( t ) + A ¯   q ( t ) + B ¯   u ( t )
where
A ¯ = H   A   H 1 ,
A ¯ = H   A   H 1 ,
B ¯ = H   B ,
The new state variable representation becomes
[ q ˙ 1 ( t ) q ˙ 2 ( t ) ] = [ A ¯ 11 A ¯ 12 A ¯ 21 A ¯ 22 ] [ q 1 ( t ) q 2 ( t ) ] + [ A ¯ 11 A ¯ 12 A ¯ 21 A ¯ 22 ] [ q 1 ( t ) q 2 ( t ) ] + [ 0 B ¯ ] u ( t )
In this representation, the m   control signals u ( t ) act as an input to the lower subsystem only (controlling the m new state variables   q 2 ( t ) directly), then, during the sliding phase, q 2 ( t ) acts as an input to the upper subsystem (controlling the remaining ( n m ) new state variables   q 1 ( t ) by feedback gain):
q 2 ( t ) = K q 1 ( t )
The m × ( n m ) feedback gain matrix K , which is related to the sliding manifold, is to be designed using H control to provide robustness to parametric uncertainty. Equation (29) and the upper subsystem:
q ˙ 1 ( t ) = ( A ¯ 11 +   A ¯ 11 ) q 1 ( t ) + ( A ¯ 12 +   A ¯ 12 ) q 2 ( t )
have to be represented in the Linear Fractional Transformation (LFT) [42] shown in Figure 5, in which the uncertainty is pulled out in the Δ block, I denotes the identity matrix, B ,   C ,     D are matrices obtained by singular value decomposition, and z and d represent the disturbed output and input, respectively.
Upper LFT is applied to the system, so that the H problem becomes one of finding the stabilizing feedback gain K that minimizes γ > 0 in the quadratic objective function:
J = 1 2 0 z T ( t )   z ( t ) γ 2   d T ( t )     d ( t )   d t .
From Figure 5,
J = 1 2 0 [ q 1 T t C T   C   q 1 ( t ) + 2 q 1 T ( t ) C T   D   q 2 ( t ) + q 2 T ( t ) D T   D   q 2 ( t ) γ 2 d T ( t ) d ( t ) ] d t .
The Ricatti-like matrix equation for this linear quadratic problem is
P A ¯ 11 A ¯ 12 O 22 1 O 12 T + A ¯ 11 T O 12 O 22 1 A ¯ 12 T P P A ¯ 12 O 22 1 A ¯ 12 T γ 2 B   B T P + O 11 O 12 O 22 1 O 12 T = 0 .
where O 11 = C T C , O 12 = C T D , O 22 = D T D . The solution of the above equation ( P ) is used to find the feedback gain K :
K = O 22 1 ( A ¯ 12 T P + O 12 T ) ,
Thus,
K = 2447 12790 14632 6474 392 2015 2301 1024 ,
which can be used to define the sliding manifold s t :
s t = K q 1 t + q 2 t  
When the state variables reach and stay on the sliding manifold ( s t = 0 ), then the system dynamics is governed by Equation (29). Equation (36) can be written as
s t = K I q t  
From Equation (21), the sliding manifold is expressed in terms of the original states as
s t = G   x t
and
G = K I H  
Next, the control law of the SMC is suggested to comprise a nominal term ( u ° t ) and a discontinuous term ( u d ( t ) ):
u t = u ° t + u d t  
The nominal term is responsible for driving the states towards the sliding manifold defined by Equation (38). It is obtained by equating the derivative of the sliding variable to zero, that is
s ˙ t = 0 = G   x ˙ ( t )
Substituting the nominal terms of Equation (19),
s ˙ t = 0 = G A   x ( t ) + G B   u ° ( t )
from which
u ° t = G B 1 G A   x ( t ) .
provided that the G B matrix is non-singular; thus, it is invertible. To obtain the reaching condition of the SMC, a candidate quadratic Lyapunov function is suggested to be
V L ( t ) = 1 2   s 2 ( t )  
To ensure the stability of the sliding manifold and the overall system rigorously, the time derivative of V L ( t )   has to be negative definite for all s ≠ 0, so that V L t keeps dec-reasing along any trajectory in the state space which, in turn, guarantees the stability of the sliding mode. It implies that
s t s ˙ t < 0  
The discontinuous term of the control law ( u d ( t ) ), which ensures the systems converge to the desired equilibrium point by imposing the negative definiteness of d V L ( t )   d t in the presence of parametric uncertainty, disturbance, and noise, can be obtained by substituting Equations (19), (40) and (43) in Equation (45) and replacing the uncertainty matrix by its upper bound Q :
s t [ G   Q x t + G B   u d ] < 0  
u d ( t ) = ( G B ) 1 ( G   Q x t + η s g n ( s t ) ] < 0  
where the sign function ( s g n ()) is used to bring the states back to the sliding manifold whenever they attempt to leave it due to uncertainty, and η ( 2 × 2 diagonal matrix in this system) is a design parameter added to provide protection against disturbance and noise:
η = η 11 0 0 η 22
Instead of using trial and error to find good values of the diagonal elements of η , optimization is suggested, to tune them by searching for their optimal values that lead to both good robustness and performance of the system.
Finally, PSO is applied to enhance the performance of the robust control system in terms of response errors and the overall energy of the needed torques. These characteristics are used to form the cost function
J O = i = 1 3 0 t f t   e i ( t ) d t + i = 0 2 0 t f t m i 2 ( t ) d t   .
where J O represents the optimization cost function,   e i ( t ) represents the i t h link’s angle response error, and t f represents the final time used in simulations.
The ITAE performance index of error is used to penalize the steady-state errors more than transient errors. Since the lower the control energy required, the more efficient the control system, then the ISCS performance index of the control signal is used.

5. Results

This section presents the system and optimization settings and the results of simulating the proposed method for different cases to test its effectiveness. The developed control system is compared with the H2 control system, whose 3 × 3 performance weighting matrix is also optimized by PSO. This weighting matrix consists of three second-order transfer functions (each with three coefficients in its numerator and the same in its denominator, and a gain) on its diagonal, and is used for weighting the system’s tracking accuracy and robustness to uncertainty. The optimization problem of the two control systems is set as given in Table 2, with the cost function given by Equation (49).
The hybrid H/SMC system (built in MATLAB/Simulink R2023b) used in optimization is given in Figure 6, where, in each iteration, the candidate solutions ( η 11 and η 22 ) are passed from the optimization code (written in MATLAB script) to the controller block (written in MATLAB S-function); the control law is calculated and applied by the actuator to the system block (written in MATLAB S-function), and the states x1(t), x2(t), x3(t) and the actuator signals t m 1 (t) and t m 2 (t) are passed back to the optimization code to calculate the cost function of that candidate solution and to update the solutions accordingly. The convergence progress of the optimization algorithm is depicted in Figure 7. The PSO algorithm converges in the 59th iteration to the cost value of 1488.76. The best solution returned by PSO is [ η 11 = 168.4755, η 22 = 1.0173 × 10 3 ].
The H2 control system optimization results in the following performance weighting matrix W s :
W s = 10 51.123 s 2 + 94.763 s + 10 10 s 2 + 100 s + 10 0 0 0 39.14 17.412 s 2 + 10 s + 10 53.782 s 2 + 55.429 s + 14.368 0 0 0 10 53.8 s 2 + 100 s + 100 100 s 2 + 100 s + 73.998
The performance index of the controller is 6.102.

5.1. Nominal System Response

First, the developed control system is tested by applying it to the nonlinear model of the triple inverted pendulum given in Equation (3), with the nominal values of its parameters given in Table 1. The initial condition is 0.5 deg, 1 deg, and 2 deg for the first, second, and third angle, respectively. The three angles respond as shown in Figure 8, the phase-plane trajectories of the angles and their derivatives are shown in Figure 9, and the applied torques are shown in Figure 10. Please note that data tips in regular font correspond to hybrid H/SMC system, while data tips in italic font correspond to the H2 control system in all responses.
The θ 1 and θ 2 absolute overshoot difference between the two control systems is 0.1 deg and 1.59 deg, respectively, while θ 3 overshoots 17.323 deg higher in the H2 control system. The difference between the errors of the two systems is small: 0.062, 0.151, and 0.025 deg for θ 1 , θ 2 , and θ 3 , respectively.
The above phase-plane trajectories show the direct sliding nature of the states towards their desired equilibrium point, driven by the hybrid H/SMC control law. The H2 control system lacks this preference.
The start-up torques tm1 and tm2 in the H2 control system are 9.633 and 11.872 N.m times higher, respectively, than in the hybrid H/SMC system. On the other hand, the differences in steady torques are 0.153 and 0.404 N.m.

5.2. Robustness to Parameter Variation

Second, the developed control system is tested by applying it to the nonlinear model of the triple inverted pendulum given in Equation (3), with perturbed uncertain parameters, I 1 ,   I 2 , and I 3 = nominal value + 10%, C 1 ,   C 2 , C 3 , C m 1 , and C m 2 = nominal value + 15%. The three angles respond as shown in Figure 11, and the phase-plane trajectories of the angles and their derivatives are shown in Figure 12.
The first and third angles overshoot by 1.299 and 22.47 deg, respectively, in the H2 control system, more than in the hybrid H/SMC system. Only the second angle overshoots higher in the hybrid H/SMC system, by 1.503 deg. The difference in errors between the two systems are found to be 0.004, 0.05, and 0.027 deg.
The three phase-plane trajectories clearly depict the fluctuations at the start of the response in the H2 control system.
The applied torques are shown in Figure 13. The start-up torques tm1 and tm2 in the H2 control system are again higher than in the hybrid H/SMC system, but by 8.227 and 10.2 N.m, respectively, this time. On the other hand, the differences in steady torques are 0.13 and 0.38 N.m. In this case, the H2 controller fluctuates significantly at the beginning.

5.3. Robustness to External Disturbance

Third, the developed control system is tested by applying it to the nonlinear model of the triple inverted pendulum given in Equation (3), with external disturbance in the form of a sine wave of 0.1 N.m amplitude applied to each link. The three angles respond as shown in Figure 14; the phase-plane trajectories of the angles and their derivatives are shown in Figure 15.
The first, second and third angle responses overshoot slightly higher, moderately lower, and significantly higher, respectively, in the H2 control system, while the errors are close to each other in all responses.
The phase-plane trajectories show the direct alignment of the systems’ states with the desired point in the state space.
Figure 16a shows that tm1 at start-up in the H2 control system is higher by 13.567 N.m, and tm2 by 21.839 N.m., while the differences in steady torques of the first and second actuators are only 0.132 and 0.405 N.m, respectively.

5.4. Robustness to Measurement Noise

Finally, the developed control system is tested by applying it to the nonlinear model of the triple inverted pendulum given in Equation (3), with measurement noise in the form of random white noise and with amplitude ±0.4 V applied to each reading. The three angles respond as shown in Figure 17; the phase-plane trajectories of the angles and their derivatives are shown in Figure 18, and the applied torques are shown in Figure 19.
In this case, the hybrid H/SMC system produces less overshoot in the first and third angles’ responses and fewer errors in the second and third angles’ responses.
Figure 19 shows that, compared to the H2 controller, the proposed hybrid H/SMC controller requires much less effort at start-up, and almost the same effort is needed at steady state.
The characteristics of the proposed hybrid H/SMC system performance in all tested cases are summarized in the three charts in Figure 20, Figure 21 and Figure 22, and will be discussed in the next section.

6. Discussion and Conclusions

This section explores the interpretation and implications of the obtained results. Regarding the optimization aspect, Figure 7 shows that PSO exhibited a very fast convergence rate (majorly within 16 iterations, and completely within 59 iteration). The application of optimization to the controller design helped in improving the control system, through minimizing the response error (as shown in Figure 8, Figure 11, Figure 14 and Figure 17) and the applied torque needed for the system (as shown in Figure 10, Figure 13, Figure 16 and Figure 19).
In relation to the robustness attribute, the developed hybrid H/SMC control system was able to stabilize the nominal, perturbed by parameter variation, perturbed by external disturbance, and perturbed by measurement-noise system. In all cases, the system responded in the same manner (except for very small differences, as shown in Figure 14 and Figure 17).
Concerning performance characteristics, it has been shown in Figure 20 that, in all cases and among all the angles, the error was below 0.152 deg and the average error was 0.053 deg, which is an indication of the system’s accuracy. The overshoot in all cases is almost unaffected by the type of uncertainty, as shown in Figure 21. For the first, second, and third angle, the overshoot ranged from 6.035 to 6.472 deg, 9.263 to 10.072 deg, and 11.052 to 11.561 deg, respectively. The least overshoots were in the nominal system case, while the highest were in the perturbed-by-parameter-variation case. Figure 9, Figure 12, Figure 15 and Figure 18 show that the phase plane trajectories of the angular positions and velocities are driven successfully by the developed controller, from the initial condition to a very small neighborhood of the origin, in all cases. Figure 15 and Figure 18 show small fluctuations in the late stage of the trajectory, which come from forcing the states by the controller to reach the origin, in spite of disturbance and noise.
From the system’s efficiency point of view, the required steady controller effort in all cases ranged from 0.13 to 0.621 N.m in amplitude, owing to the inclusion of the torque in the objective function of optimization. A higher torque was required only at start-up; the average start-up torque for the first actuator is 1.663 N.m and it is 2.158 N.m for the second actuator. This contributes to a more efficient control system. The small chattering caused by the sign function in Equation (47), which is necessary for driving the states, can be attenuated to obtain a smoother control signal, through using boundary-layer or neural networks.
As compared to the H2 control system, the proposed hybrid H/SMC system produces fewer overshoots and fewer start-up torques, and smooth states driving in general. The robustness is provided in both control systems with small disparities, as illustrated in the results.
So, instead of having unnecessary conservativeness in the system, which degrades the performance with respect to providing robustness against uncertainties, the application of metaheuristic optimization to the controller design for such an under-actuated nonlinear MIMO system is beneficial in enhancing both performance and efficiency of the control system, besides its robustness.
Another point to be made is that for this specific electro-mechanical control system-design optimization problem, a swarm size of 10 was suitable, as has been presented in the results. A larger swarm size has to be considered in other optimal designs of engineering problems, especially if more parameters are required to be tuned in the application. Also, the adaptation of the cost function can be considered in future, to further enhance the optimization of the design problem, as proposed and described in [43].
Having great impact on control systems’ performance and efficiency, metaheuristic optimization algorithms are advised to be applied to enhance other control systems designs, as in the following: modelling predictive control to optimize the control sequence over a specified prediction horizon, hybrid model-based and data-driven control to adapt model parameters and controller gains in real-time, and distributed control systems to optimize the control signals’ distribution in large scale systems.

Author Contributions

Conceptualization, Y.A.S. and H.I.A.; methodology, H.I.A.; software, Y.A.S.; validation, Y.A.S., and H.I.A.; formal analysis, H.I.A.; investigation, Y.A.S.; resources, Y.A.S. and H.I.A.; data curation, Y.A.S.; writing—original draft preparation, Y.A.S.; writing—review and editing, H.I.A.; supervision, H.I.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

SymbolMeaning
LLagrangian
TKinetic energy
VPotential energy
ρ Position vector in the generalized coordinates
θ Link angle from the vertical line
I Link moment of inertia around its center of gravity
m Link mass
h Distance from Link bottom to the its center of gravity
l Link length
I p Hinge belt–pulley system’s moment of inertia
K Hinge belt–pulley system’s ratio of teeth
I m Motor moment of inertia
C Hinge viscous friction coefficient
C m Motor viscous friction coefficient
C p Hinge belt–pulley system’s viscous friction coefficient
g Acceleration of gravity
t m Motor control torque
d Disturbance torque to the link
V P S O Agent velocity
X P S O Agent position
w P S O Inertia weight
w ¯ P S O Maximum inertia weight
w _ P S O Minimum inertia weight
c P S O 1 Cognitive coefficient
c P S O 2 Social coefficient
r P S O 1 Random number in the interval (0, 1)
r P S O 2 Random number in the interval (0, 1)
p b e s t Best local solution
g b e s t Best global solution
x State vector
u Input vector
ttime
A State matrix
yOutput vector
A Uncertainty matrix
Q Bound matrix of uncertainty
B Input matrix
q New state variable
H   Similarity transformation matrix
N Null space of input matrix
A ¯ New state matrix
A ¯ New uncertainty matrix
B ¯ New input matrix
K Feedback-gain matrix in H problem
ΔDiagonal matrix of scalar perturbations
B Decomposed matrix in LFT
C Decomposed matrix in LFT
D Decomposed matrix in LFT
z Disturbed output in LFT
d Disturbed input in LFT
J Objective function in H problem
γPerformance level of H problem
O Abbreviation of two given multiplied matrices
s Sliding-manifold vector
G Matrix in sliding-manifold computation
u ° Nominal control term
u d Discontinuous control term
V L Lyapunov function
ηDesign parameter in SMC law
J O Optimization cost function
eLink angle error
t f Final time used in simulations
W Performance weighting matrix

References

  1. Gu, D.; Petkov, P.H.; Konstantinov, M.M. Robust Control Design with MATLAB, 2nd ed.; Springer: London, UK, 2013; pp. 292–302. [Google Scholar]
  2. Photo by Maximalfocus on Unsplash. Available online: https://unsplash.com/photos/person-in-orange-and-white-robot-costume-eZWGK5sIiBM (accessed on 30 August 2024).
  3. Sharma, A.K.; Bhushan, B. Sliding mode control of inverted pendulum with decoupling algorithm. Int. J. Comput. Appl. 2018, 181, 1–5. [Google Scholar]
  4. Bonifacio, S.R.; Patricio, O.O.; Alexander, P.G. Robust stabilizing control for the electromechanical triple link inverted pendulum system. IFAC-PapersOnLine 2018, 51, 314–319. [Google Scholar] [CrossRef]
  5. Nguyen, T.T. Sliding mode control-based system for the two-link robot arm. Int. J. Electr. Comput. Eng. 2019, 9, 2771–2778. [Google Scholar] [CrossRef]
  6. Kharabian, B.; Mirinejad, H. Hybrid sliding mode/H-infinity control approach for uncertain flexible manipulators. IEEE Access 2020, 8, 170452–170460. [Google Scholar] [CrossRef]
  7. Saif, A.; Fareh, R.; Sinan, S.; Bettayeb, M. Fractional synergetic tracking control for robot manipulator. J. Control Decis. 2024, 11, 139–152. [Google Scholar] [CrossRef]
  8. Ahmed, S.; Ghous, I.; Mumtaz, F. TDE based model-free control for rigid robotic manipulators under nonlinear friction. Sci. Iran. 2024, 31, 137–148. [Google Scholar] [CrossRef]
  9. Anjum, Z.; Sun, Z.; Chen, B. Disturbance-observer-based fault-tolerant control of robotic manipulator: A fixed-time adaptive approach. IET Control Theory Appl. 2024, 18, 1398–1413. [Google Scholar] [CrossRef]
  10. Liu, Z.; He, W.; Li, X.; Liu, C.; Shao, H.; Fu, P. A mismatched composite disturbance observer-based adaptive tracking controller for robotic manipulators. IET Control Theory Appl. 2024, 18, 1357–1370. [Google Scholar] [CrossRef]
  11. Qiu, J.; Wang, T.; Sun, k.; Rudas, I.J.; Gao, H. Disturbance observer-based adaptive fuzzy control for strict-feedback nonlinear systems with finite-time prescribed performance. IEEE Trans. Fuzzy Syst. 2022, 30, 1175–1184. [Google Scholar] [CrossRef]
  12. Rigatos, G.; Abbaszadeh, M.; Pomares, J.; Cuccurullo, G. Flatness-based control in successive loops for robotic manipulators and autonomous vehicles. Int. J. Syst. Sci. 2024, 55, 954–981. [Google Scholar] [CrossRef]
  13. Jabbar, A.; Malik, F.M.; Sheikh, S.A. Nonlinear stabilizing control of a rotary double inverted pendulum: A modified backstepping approach. Trans. Inst. Meas. Control 2017, 39, 1721–1735. [Google Scholar] [CrossRef]
  14. Siradjuddin, I.; Amalia, Z.; Setiawan, B.; Wicaksono, R.P.; Yudaningtyas, E. Stabilising a Cart Inverted Pendulum System Using Pole Placement Control Method. In Proceedings of the 15th International Conference on Quality in Research (QiR): International Symposium on Electrical and Computer Engineering, Bali, Indonesia, 24–27 July 2017. [Google Scholar]
  15. Pristovani, R.D.; Sanggar, D.R.; Dadet, P. Implementation of push recovery strategy using triple linear inverted pendulum model in “T-FloW” humanoid robot. J. Phys. Conf. Ser. 2018, 1007, 012068–012081. [Google Scholar] [CrossRef]
  16. Masrom, M.F.; Ghani, N.M.; Jamin, N.F.; Razali, N.A.A. Stabilization Control of aTwo-wheeled Triple Link Inverted Pendulum System with Disturbance Rejection. In Proceedings of the 10th National Technical Seminar on Underwater System Technology, Pahang, Malaysia, 26–27 September 2018. [Google Scholar]
  17. Soltanpour, M.R.; Khooban, M.H. A particle swarm optimization approach for fuzzy sliding mode control for tracking the robot manipulator. Nonlinear Dyn. 2013, 74, 467–478. [Google Scholar] [CrossRef]
  18. Liu, R.; Li, S. Optimal integral sliding mode control scheme based on pseudospectral method for robotic manipulators. Int. J. Control 2014, 87, 1131–1140. [Google Scholar] [CrossRef]
  19. Oliveira, J.; Oliveira, P.M.; Boaventura-Cunha, J.; Pinho, T. Chaos-based grey wolf optimizer for higher order sliding mode position control of a robotic manipulator. Nonlinear Dyn. 2017, 90, 1353–1362. [Google Scholar] [CrossRef]
  20. Soon, C.C.; Ghazali, R.; Jaafar, H.I.; Hussien, S.Y.S. Sliding mode controller design with optimized PID sliding surface using particle swarm algorithm. Procedia Comput. Sci. 2017, 105, 235–239. [Google Scholar] [CrossRef]
  21. Jibril, M.; Tadese, M.; Tadese, E.A. Comparison of a triple inverted pendulum stabilization using optimal control technique. Rep. Opin. 2020, 12, 62–70. [Google Scholar]
  22. Hazem, Z.B.; Fatuhi, M.J.; Bingul, Z. A Comparative study of the joint neuro-fuzzy friction models for a triple link rotary inverted pendulum. IEEE Access 2020, 8, 49066–49078. [Google Scholar] [CrossRef]
  23. Singh, N.; Bhangal, K. Robust control of double inverted pendulum system. J. Autom. Control Eng. 2017, 5, 14–20. [Google Scholar] [CrossRef]
  24. Shafeek, Y.A.; Ali, H.I. Attaining Robust Stability and Performance for Triple Inverted Pendulum using H-infinity Control. J. Eur. Des Systèmes Autom. 2024, 57, 443. [Google Scholar] [CrossRef]
  25. Shafeek, Y.A.; Ali, H.I. Balancing of robustness and performance for triple inverted pendulum using μ-synthesis and gazelle optimization. J. Eur. Des Systèmes Autom. 2024, 57, 443–452. [Google Scholar] [CrossRef]
  26. Ali, H.I. Design of PSO based robust blood glucose control in diabetic patients. Int. J. Comput. Commun. 2014, 14, 1–9. [Google Scholar]
  27. Qaraawy, S.; Ali, H.I.; Ali, M. Particle Swarm Optimization Based Robust Controller for Congestion Avoidance in Computer Networks. In Proceedings of the 2012 International Conference on Future Communication Networks, Baghdad, Iraq, 2–5 April 2012. [Google Scholar]
  28. Aroniadi, C.; Beligiannis, G.N. Applying particle swarm optimization variations to solve the transportation problem effectively. Algorithms 2023, 16, 372. [Google Scholar] [CrossRef]
  29. Rasheed, L.T. Optimal tuning of linear quadratic regulator controller using ant colony optimization algorithm for position control of a permanent magnet DC motor. J. Comput. Commun. Control Syst. Eng. 2020, 20, 29–41. [Google Scholar]
  30. Yasser, Y.A.; Sadiq, A.T.; Alhamdani, W. Generating honeyword based on a proposed bees algorithm. J. Comput. Commun. Control Syst. Eng. 2022, 22, 177–191. [Google Scholar]
  31. Muncino, D.M.; Damian-Ramirez, E.A.; Cruz-Fernandez, M.; Montoya-Santiyanes, L.A.; Rodriguez-Resendiz, J. Metaheuristic and heuristic algorithms-based identification parameters of a direct current motor. Algorithms 2024, 17, 209. [Google Scholar] [CrossRef]
  32. Saleem, S.; Hussain, F.; Baloch, N.K. IWO-IGA—A hybrid whale optimization algorithm featuring improved genetic characteristics for mapping real-time applications onto 2D network on chip. Algorithms 2024, 17, 115. [Google Scholar] [CrossRef]
  33. Kadhim, N.N.; Abood, L.H.; Mohammed, Y.A. Design an optimal fractional order PID controller for speed control of electric vehicle. J. Eur. Des Systèmes Autom. 2023, 56, 735–741. [Google Scholar] [CrossRef]
  34. Abood, L.H.; Kadhim, N.N.; Mohammed, Y.A. Dual stage cascade controller for temperature control in greenhouse. Bull. Electr. Eng. Inform. 2023, 12, 51–58. [Google Scholar] [CrossRef]
  35. Nagadurga, T.; Devarapalli, R.; Knypiński, Ł. Comparison of meta-heuristic optimization algorithms for global maximum power point tracking of partially shaded solar photovoltaic systems. Algorithms 2023, 16, 376. [Google Scholar] [CrossRef]
  36. Rubio, J.D.J.; Hernandez, M.A.; Rosas, F.J.; Orozco, E.; Balcazar, R.; Pacheco, J. Genetic high-gain controller to improve the position perturbation attenuation and compact high-gain controller to improve the velocity perturbation attenuation in inverted pendulums. Neural Netw. 2024, 170, 32–45. [Google Scholar] [CrossRef]
  37. Rubio, J.D.J. Bat algorithm based control to decrease the control energy consumption and modified bat algorithm based control to increase the trajectory tracking accuracy in robots. Neural Netw. 2023, 161, 437–448. [Google Scholar] [CrossRef] [PubMed]
  38. Sorcia-Vázquez, F.D.J.; Rumbo-Morales, J.Y.; Brizuela-Mendoza, J.A.; Ortiz-Torres, G.; Sarmiento-Bustos, E.; Pérez-Vidal, A.F.; Rentería-Vargas, E.M.; De-la-Torre, M.; Osorio-Sánchez, R. Experimental validation of fractional pid controllers applied to a two-tank system. Mathematics 2023, 11, 2651. [Google Scholar] [CrossRef]
  39. Photo by clockinsky on Unsplash. Available online: https://unsplash.com/ (accessed on 2 August 2024).
  40. Photo by Lance Anderson on Unsplash. Available online: https://unsplash.com/photos/school-of-gray-fish-G2SDLsJp3rg (accessed on 2 August 2024).
  41. Knypiński, Ł. Constrained optimization of line-start PM motor based on the gray wolf optimizer. Eksploat. I Niezawodn. Maint. Reliab. 2021, 23, 1–10. [Google Scholar] [CrossRef]
  42. Sinha, A. Linear Systems Optimal and Robust Control, 1st ed.; CRC Press: Boca Raton, FL, USA, 2007; pp. 377–408. [Google Scholar]
  43. Knypiński, Ł. Adaptation of the penalty function method to genetic algorithm in electromagnetic devices designing. COMPEL Int. J. Comput. Math. Electr. Electron. Eng. 2019, 38, 1285. [Google Scholar] [CrossRef]
Figure 1. Resemblance of humanoid structure to triple inverted pendulum: (a) humanoid structure [2]; (b) triple inverted pendulum structure [1].
Figure 1. Resemblance of humanoid structure to triple inverted pendulum: (a) humanoid structure [2]; (b) triple inverted pendulum structure [1].
Algorithms 17 00427 g001
Figure 2. Social behavior of (a) bird swarm [39] and (b) fish school [40].
Figure 2. Social behavior of (a) bird swarm [39] and (b) fish school [40].
Algorithms 17 00427 g002
Figure 3. PSO agent update.
Figure 3. PSO agent update.
Algorithms 17 00427 g003
Figure 4. Controller design and optimization.
Figure 4. Controller design and optimization.
Algorithms 17 00427 g004
Figure 5. LFT configuration of the system Equations (34) and (36).
Figure 5. LFT configuration of the system Equations (34) and (36).
Algorithms 17 00427 g005
Figure 6. Control system used in optimization.
Figure 6. Control system used in optimization.
Algorithms 17 00427 g006
Figure 7. Cost-function convergence of PSO.
Figure 7. Cost-function convergence of PSO.
Algorithms 17 00427 g007
Figure 8. Nominal system response: (a) first link’s angle; (b) second link’s angle; (c) third link’s angle.
Figure 8. Nominal system response: (a) first link’s angle; (b) second link’s angle; (c) third link’s angle.
Algorithms 17 00427 g008
Figure 9. Nominal system phase-plane trajectory: (a) ( θ 1 ,   θ ˙ 1 ); (b) ( θ 2 ,   θ ˙ 2 ); (c) ( θ 3 ,   θ ˙ 3 ).
Figure 9. Nominal system phase-plane trajectory: (a) ( θ 1 ,   θ ˙ 1 ); (b) ( θ 2 ,   θ ˙ 2 ); (c) ( θ 3 ,   θ ˙ 3 ).
Algorithms 17 00427 g009
Figure 10. Nominal system torque: (a) first motor; (b) second motor.
Figure 10. Nominal system torque: (a) first motor; (b) second motor.
Algorithms 17 00427 g010
Figure 11. Perturbed by parametric uncertainty-system response: (a) first link’s angle; (b) second link’s angle; (c) third link’s angle.
Figure 11. Perturbed by parametric uncertainty-system response: (a) first link’s angle; (b) second link’s angle; (c) third link’s angle.
Algorithms 17 00427 g011
Figure 12. Perturbed by parametric uncertainty-system phase-plane trajectory: (a) ( θ 1 ,   θ ˙ 1 ); (b) ( θ 2 ,   θ ˙ 2 ); (c) ( θ 3 ,   θ ˙ 3 ).
Figure 12. Perturbed by parametric uncertainty-system phase-plane trajectory: (a) ( θ 1 ,   θ ˙ 1 ); (b) ( θ 2 ,   θ ˙ 2 ); (c) ( θ 3 ,   θ ˙ 3 ).
Algorithms 17 00427 g012
Figure 13. Perturbed by parametric uncertainty-system torque: (a) first motor; (b) second motor.
Figure 13. Perturbed by parametric uncertainty-system torque: (a) first motor; (b) second motor.
Algorithms 17 00427 g013
Figure 14. Perturbed by external-disturbance system response: (a) first link’s angle; (b) second link’s angle; (c) third link’s angle.
Figure 14. Perturbed by external-disturbance system response: (a) first link’s angle; (b) second link’s angle; (c) third link’s angle.
Algorithms 17 00427 g014
Figure 15. Perturbed by external-disturbance system phase-plane trajectory: (a) ( θ 1 ,   θ ˙ 1 ); (b) ( θ 2 ,   θ ˙ 2 ); (c) ( θ 3 ,   θ ˙ 3 ).
Figure 15. Perturbed by external-disturbance system phase-plane trajectory: (a) ( θ 1 ,   θ ˙ 1 ); (b) ( θ 2 ,   θ ˙ 2 ); (c) ( θ 3 ,   θ ˙ 3 ).
Algorithms 17 00427 g015
Figure 16. Perturbed by external-disturbance system torque: (a) first motor; (b) second motor.
Figure 16. Perturbed by external-disturbance system torque: (a) first motor; (b) second motor.
Algorithms 17 00427 g016
Figure 17. Perturbed by measurement-noise system response: (a) first link’s angle; (b) second link’s angle; (c) third link’s angle.
Figure 17. Perturbed by measurement-noise system response: (a) first link’s angle; (b) second link’s angle; (c) third link’s angle.
Algorithms 17 00427 g017
Figure 18. Perturbed by measurement-noise system phase-plane trajectory: (a) ( θ 1 ,   θ ˙ 1 ); (b) ( θ 2 ,   θ ˙ 2 ); (c) ( θ 3 ,   θ ˙ 3 ).
Figure 18. Perturbed by measurement-noise system phase-plane trajectory: (a) ( θ 1 ,   θ ˙ 1 ); (b) ( θ 2 ,   θ ˙ 2 ); (c) ( θ 3 ,   θ ˙ 3 ).
Algorithms 17 00427 g018
Figure 19. Perturbed by measurement-noise system torque: (a) first motor; (b) second motor.
Figure 19. Perturbed by measurement-noise system torque: (a) first motor; (b) second motor.
Algorithms 17 00427 g019
Figure 20. Overview of the three angles’ errors in all tested cases.
Figure 20. Overview of the three angles’ errors in all tested cases.
Algorithms 17 00427 g020
Figure 21. Overview of the three angles’ overshoots in all tested cases.
Figure 21. Overview of the three angles’ overshoots in all tested cases.
Algorithms 17 00427 g021
Figure 22. Overview of the two motors’ torques in all tested cases.
Figure 22. Overview of the two motors’ torques in all tested cases.
Algorithms 17 00427 g022
Table 1. Nominal values of model’s parameters [1].
Table 1. Nominal values of model’s parameters [1].
ParameterValueUnit
I 1 0.654kg.m2
I 2 0.117kg.m2
I 3 0.535kg.m2
m 1 3.25kg
m 2 1.9kg
m 3 2.23kg
h 1 0.35m
h 2 0.181m
h 3 0.245m
l 1 0.5m
l 2 0.4m
I p 1 7.95 × 10−3kg.m2
I p 2 3.97 × 10−3kg.m2
K 1 30.72dimensionless
K 2 27dimensionless
I m 1 2.4 × 10−5kg.m2
I m 2 4.90 × 10−6kg.m2
C 1 6.54 × 10−2N.m.s
C 2 2.32 × 10−2N.m.s
C 3 8.80 × 10−3N.m.s
C m 1 2.19 × 10−3N.m.s
C m 2 7.17 × 10−4N.m.s
C p 1 0N.m.s
C p 2 0N.m.s
g 9.81m.s−2
Table 2. Setting of the PSO algorithm.
Table 2. Setting of the PSO algorithm.
ParameterValues for
Hybrid H/SMC
Control System
Optimization
Values for
H2
Control System
Optimization
dimension221
lower bound10010
upper bound2000100
number of search agents1010
maximum number of iterations100100
w ¯ P S O 0.70.7
w _ P S O 0.20.2
c P S O 1 22
c P S O 2 22
r P S O 1 random number
in the interval (0, 1)
random number
in the interval (0, 1)
r P S O 2 random number
in the interval (0, 1)
random number
in the interval (0, 1)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Shafeek, Y.A.; Ali, H.I. Application of Particle Swarm Optimization to a Hybrid H/Sliding Mode Controller Design for the Triple Inverted Pendulum System. Algorithms 2024, 17, 427. https://doi.org/10.3390/a17100427

AMA Style

Shafeek YA, Ali HI. Application of Particle Swarm Optimization to a Hybrid H/Sliding Mode Controller Design for the Triple Inverted Pendulum System. Algorithms. 2024; 17(10):427. https://doi.org/10.3390/a17100427

Chicago/Turabian Style

Shafeek, Yamama A., and Hazem I. Ali. 2024. "Application of Particle Swarm Optimization to a Hybrid H/Sliding Mode Controller Design for the Triple Inverted Pendulum System" Algorithms 17, no. 10: 427. https://doi.org/10.3390/a17100427

APA Style

Shafeek, Y. A., & Ali, H. I. (2024). Application of Particle Swarm Optimization to a Hybrid H/Sliding Mode Controller Design for the Triple Inverted Pendulum System. Algorithms, 17(10), 427. https://doi.org/10.3390/a17100427

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

Article Metrics

Back to TopTop