Hostname: page-component-745bb68f8f-kw2vx Total loading time: 0 Render date: 2025-02-06T19:51:40.491Z Has data issue: false hasContentIssue false

Stabilization and tracking control of an x-z type inverted pendulum system using Lightning Search Algorithm tuned nonlinear PID controller

Published online by Cambridge University Press:  02 December 2021

Nurhan Gürsel Özmen*
Affiliation:
Karadeniz Technical University, Department of Mechanical Engineering, 61080 Trabzon, Turkey
Musa Marul
Affiliation:
Artvin Çoruh University, Borçka Acarlar Vocational School, Department of Electronics and Automation, Artvin, Turkey
*
*Corresponding author. E-mail: gnurhan@ktu.edu.tr
Rights & Permissions [Opens in a new window]

Abstract

Inverted pendulum systems (IPSs) are mostly used to demonstrate the control rules for keeping the pendulum at a balanced upright position due to a slight force applied to the cart system. This paper presents an application for nonlinear control of an x-z type IPS by using a proportional-integral-derivative (PID) controller with newly established evolutionary tuning method Lightning Search Algorithm (LSA). A single, double and triple PID controller system is tested with the conventional and the self-tuning controllers to get a better understanding of the performance of the given system. The mathematical modelling of the x-z type IPS, the theoretical explanation of the LSA and the simulation analysis of the x-z type IPS is put forward entirely. The LSA algorithm solves the optimization problem of PID controller in an evolutionary way. The most effective way of making comparisons is evaluating the performance results with a well-known optimization technique or with the previous accepted results. We have compared the system’s performance with particle swarm optimization and with a classical control study in the literature. According to the simulation results, LSA-tuned PID controller has the ability to decrease the overshoot better than the conventional-tuned controllers. Finally, it can be concluded that the LSA-supported PID can better stabilize the pendulum angle and track the reference better for non-disturbed and the slightly disturbed systems.

Type
Research Article
Copyright
© The Author(s), 2021. Published by Cambridge University Press

1. Introduction

Most of the physical systems have nonlinear dynamics so that it could be difficult to model and control them compared to the linear ones. Understanding the nonlinearity and finding theoretical ways to overcome that challenge enabled technical improvements. We selected the inverted pendulum, which is one of the benchmark nonlinear problems in control theory, with its unstable, nonminimum phase and underactuated characteristics [Reference Boubaker1]. Since the inverted pendulum system (IPS) is easily influenced by the inner system and outer disturbances, it is regarded as a highly nonlinear and unstable platform. So that it is a suitable tool to apply nonlinear control methodologies on it, since those methodologies are used to implement many technological devices, [Reference Vigentini, Ghidelli and Martinelli2Reference Zielinska, Rivera Coba and Ge4] virtual model-based remote control laboratories [Reference Benrejeb and Boubaker5Reference Yao, Dai, Tian and Zhang9] and several biological examples [Reference Dini and Majd10]. Many practical problems in engineering need to be solved by a group of ordinary differential equations [Reference Boubaker and Iriarte11,Reference Ogata12]. People mostly researched to control the swing-up behaviour of inverted pendulums at the desired positions, [Reference Boubaker and Iriarte11,Reference Bradshaw and Shao13] but the stabilization [Reference Boubaker and Iriarte11] and tracking control of inverted pendulums are more crucial for real-life applications such as space vehicles and gait control on humanoid robots [Reference Dini and Majd10].

Although the inverted pendulum has a quite simple structure in its basic form, many standard techniques in control theory do not work when applied to an IPS. Because of the geometric properties and the changing stabilization points of fulcrum during the upright movement, the study of the system and building a control structure becomes more complex. There are various types of inverted pendulums in its geometric structure which allow kinds of interesting control challenges. We can list the pendulum types that were commonly studied on, such as the rotational single-arm pendulum, [Reference Boubaker1] the inverted pendulum on a cart [Reference Boubaker and Iriarte11,Reference Ogata12] with rotary and planar types, double [Reference Moysis14] and multiple-link types [Reference Furuta, Ochiai and Ono15Reference Li, Miao and Wang17] and 3D or spherical types [Reference Shen, Sanyal, Chaturvedi, Bernstein and McClamroch18,Reference Sakka, Hayot and Lacouture19].

The basic inverted pendulum on a cart moving horizontally should keep its upright balance position due to an external force. The classical pendulum in a plane can be montaged in three different configurations that are the x type which moves in x horizontal direction, [Reference Ogata12] the x-y type that moves in x-y horizontal plane and the x-z type which is proposed by Maravall [Reference Maravall, Zhou and Alonso20,Reference Maravall, Tarn, Chen and Zhou21] moves in the x-z horizontal plane [Reference Wang22]. The control action destabilizes the pendulum due to a small angular deviation causing instability in the system. Regardless of the type, various control methods from basic to complex were developed and tested on the linear or nonlinear inverted pendulums for research and educational use [Reference Boubaker and Iriarte11]. The most used control method for the stability and robustness of IPs is the conventional proportional-integral-derivative (PID) control which enables the ease of use and efficiency. Linear quadratic regulator (LQR) is another popular classical method which enables optimally controlled feedback gains to the system for stabilizing its action [Reference Prasad, Tyagi and Gupta23]. People also used sliding mode control and model predictive control in order to balance the upright position and stabilize the cart system [Reference Dini and Majd10,Reference Rong-Jong and Li-Jung24Reference Kalayci and Yiğit26]. With the invention of artificial intelligence-based methods, many of them have been tested on this nonlinear, underactuated IPS. Different types of fuzzy controllers, [Reference Marzi27Reference Tao, Taur, Wang and Chen29] neural controllers [Reference Anderson30Reference Daley and Liu33] and hybrid neuro-fuzzy controllers [Reference Maravall, Zhou and Alonso20] were used on the control of IPS. A general inference can be made about studied control approaches that the use of a linearized model may cause instability and poor closed-loop system response. On the other hand, energy-based methods with the application of the nonlinear control techniques are much complicated in theory and difficult to implement control algorithms. Fuzzy logic and neural control are easy to implement and fast iteration methods; however, they are not good at satisfying stability conditions. It is stated that optimal control and predictive control may produce quite well results but they may also suffer about stability in some cases. There are recently applied symbolic regression methods for the automatic synthesis of the stabilization system [Reference Ted Su, Samad, Omidvar and Elliott34,Reference Diveev and Shmalko35]. These symbolic regression methods are seemed as the further development of neural networks which can automate the process of synthesis of control systems. However, there are some limitations that should be solved like non-numerical search space and the absence of a metric on it, the high level programming and the absence of publicly available software packages.

Therefore, it is commonly accepted that the PID controller is still one of the simplest and easy to implement algorithm in the stabilization of IPs. Mainly, it has a simple structure, practical to apply, robust and cost-effective. However, tuning of PID parameters which give satisfactory response for an inverted pendulum is an important and difficult task. In recent years, different optimization methods which are very capable in solving many inverse problems are being used to obtain PID parameters. Optimization is an important step in solving the inverse problems. The parameters are found by a regularized data fitting approach which chooses an optimal model by minimizing an objective function [Reference Ye, Roosta-Khorasani, Cui, Wood, de Gier, Praeger and Tao36,Reference Dereli and Köker37].

Researchers compared recently popular metaheuristic algorithms like genetic algorithm (GA), [Reference Chakraborty, Mukherjee and Mukherjee38,Reference Gupta and Srivastava39] Ant Colony Optimization (ACO) and the particle swarm optimization (PSO) [Reference Bharadwaj, Babu and Rajasekar40Reference Mousa, Ebrahim and Hassan44] with its various adaptations, and reasonably good results were obtained compared to the classical methods [Reference Valluru and Singh Chadli45Reference Chegini, Bagheri and Najafi47]. Moreover, many new techniques are being used to tune PID parameters such as artificial bee colony algorithm, [Reference Yan and Li48,Reference Caraveo, Valdez and Castillo49] current search algorithm, [Reference Puangdownreong and Sukulin50] ant colony [Reference Jacknoon and Abido51] and harmony search algorithms [Reference Mohammed, Faycel and Rochdi52,Reference Arulanand and Dhara53].

Despite the diversity and the developments in metaheuristic approaches used with PID control, there is still place to improve the performance characteristics such as the stability and the robustness. As far as the authors searched, there is no work carried out on nonlinear x-z type IPS with an LSA-tuned PID controller. In this paper, a two DOF x and the x-z type IPSs are searched and the nonlinear control scheme is designed with the two different PID controllers. Based on Maravall’s pendulum design, [Reference Maravall, Zhou and Alonso20] the IP is regarded as a combination of the vertical force with the accompanying horizontal force emerging at the stabilization points for different constructions of the system. In ref. [Reference Maravall, Zhou and Alonso20], they used a simplified model with some approximations and applied hybrid fuzzy control in the stabilization of the inverted pendulum which provided a more flexible and intuitive way. The x-z inverted pendulum is more realistic and more versatile compared to the conventional inverted pendulum, for real-life designs. Additionally, stabilization and tracking control problems find more applications for itself than that of the swing-up control. This is the strong idea behind studying with the x-z inverted pendulum. Wang [Reference Wang22] has studied the x-z type inverted pendulum with various control methods. He used double and triple PID controllers for the stabilization and the tracking control of three types of inverted pendulums. In ref. [Reference Wang54], he implemented sliding mode control for an x-z type inverted pendulum and satisfactory well results were obtained. In another study by Wang and Kumbasar, [Reference Wang and Kumbasar55] a hierarchical sliding mode control with “big bang–big crunch” optimization is studied on an x-z type inverted pendulum. A performance comparison with PSO optimized sliding mode control is given, and the effectiveness of the proposed method is shown.

Therefore, the main contribution of this paper includes a new optimization scheme with a nature-inspired meta-heuristic algorithm for the optimal tuning of nonlinear PID (NL-PID) controller on an x-z type IP. The PID parameters are concurrently optimized via LSA instead of the classical and the PSO-tuned PID controller. The uncertain part of the system and the effect of the disturbances are taken into account. The simulation results validate the system response parameters based on the stabilizing effect, the settling time and the tracking performance. The simulation results show that this NL-PID controller optimized with LSA is ahead of previous methods as the feasibility and the effectiveness. The novelty of the study is in the kind of optimization method that was used and the efficiency proved in it: LSA algorithm is used to tune a NL-PID controller for a rarely used x-z type IPS.

This paper is constructed in the way that the Section 2 analyses mathematical modelling of IPS with control structure applied on it. In Section 3, nonlinear PID Controller design with Lightning Search Algorithm (LSA) is presented. Section 4 presents the simulation results of detailed LSA-supported nonlinear PID controller. Section 5 presents the conclusion.

2. Structure and Equations of Movement for Inverted Pendulum

In a classical inverted pendulum on a cart, the pendulum is free to fall along the cart’s axis of motion. The pendulum has a limited action in the vertical direction, whereas the cart has a limited action along the horizontal direction. A horizontally applied external force controls the pendulum’s angle while also controlling the position of the cart.

2.1 Structure and equations of movement for x-type inverted pendulum

The equations of motion for an x-type (Fig. 1(a)) inverted pendulum is obtained by applying Lagrange’s Equations to the pendulum system. The cart has a translational motion when the pendulum rotates around the pivot. The only actuation of the system is the external force exerted to the cart. The total kinetic and potential energies of the pendulum system is given in Eq. (1);

(1) \begin{align}T = \frac{1}{2}M{\dot x^2} + \frac{1}{2}m\left({\dot x^2}_p + {\dot z^2}_p\right)\end{align}
(2) \begin{align}V = mg{z_p}\,\end{align}

stating that, ${x_p} = x + l\sin (\theta )$ , ${z_p} = z + l\cos (\theta )\,$ . M, m are the masses of the pivot and the pendulum, respectively. l shows the distance between the pivot and the centre of mass of the pendulum. (x,z), ( $\dot x,\;\dot z$ ) and ( $\ddot x,\ddot z$ ) are the position, velocity and accelerations in the xoz coordinate (Fig. 1(a)). Moreover, ( ${x_p},{z_p})$ , $({\dot x^{}}_p,{\dot z^{}}_p)$ and $({\ddot x^{}}_p,{\ddot z^{}}_p)$ are the position, velocity and accelerations in the x’o’z’ (Fig. 1(b)). g is the gravity constant. The inertia of the pendulum is neglected.

Figure 1. Two different versions of IP [Reference Wang and Liu56].

Then L is defined as $L = T - V$ ,

(3) \begin{align}L = \frac{1}{2}(M + m){\dot x^2} + \frac{1}{2}m{l^2}{\dot \theta ^2} + ml\dot \theta \dot x\cos (\theta ) - mgz - mgl\cos (\theta )\end{align}

After choosing x and $\theta $ as the generalized coordinates, the Lagrange’s equations become

(4) \begin{align}\frac{d}{{dt}}\left(\frac{{\partial L}}{{\partial \dot x}}\right) - \left(\frac{{\partial L}}{{\partial x}}\right) = {F_x}\end{align}
(5) \begin{align}\frac{d}{{dt}}\left(\frac{{\partial L}}{{\partial \dot \theta }}\right) - \left(\frac{{\partial L}}{{\partial \theta }}\right) = 0\end{align}

Equations of motion of the system are obtained as (6)–(7).

(6) \begin{align}(M + m)\ddot x + ml\cos \theta \ddot x - ml\sin \theta {\dot \theta ^2} = {F_x}\end{align}
(7) \begin{align}\cos \theta \ddot x + l\ddot \theta - g\sin \theta = 0\end{align}

${F_x}$ is the horizontal force. The final state equations are represented with (8)–(11);

(8) \begin{align}{\dot x_1} = {x_2}\end{align}
(9) \begin{align}{\dot x_2} = \frac{{ - mg\cos {x_3}\sin {x_3} + ml\sin {x_3}{x_4}^2 + {F_x}}}{{M + m\;{{\sin }^2}{x_3}}} + {d_1}\end{align}
(10) \begin{align}{\dot x_3} = {x_4}\end{align}
(11) \begin{align}{\dot x_4} = \frac{{ - ml\cos {x_3}\sin {x_3}{x_4}^2 - \cos {x_3}{F_x} + (M + m)g\sin {x_3}}}{{Ml + ml\;{{\sin }^2}{x_3}}} + d2\end{align}

Here, ${x_1} = x,{x_2} = \dot x,{x_3} = \theta ,{x_4} = \dot \theta ,{d_1} = {d_2} = 20\sin (20\pi t)$ , ${d_1}$ and ${d_2}$ are external disturbances.

2.2 Structure and equations of movement for x-type inverted pendulum

Maraval [Reference Maravall, Zhou and Alonso20] introduced the stabilization of an inverted pendulum by the combination of a horizontal force ${F_x}$ and a vertical force ${F_z}$ . In order to stabilize the IPS, a vertical force ${F_z}$ is applied to the system which enables a fast stabilization effect. The construction of ${F_z}$ producing effect is supported with the usual electrical cart of mass M that is depicted in Fig. 1(b). Maravall [Reference Maravall, Zhou and Alonso20] stated that the use of horizontal force can only be used as a feedback control action, whereas application of a single vertical force may lead the platform to free fall. Therefore, they proposed to use the horizontal and the vertical forces together.

By following the similar steps as in x-type inverted pendulum, we get the total kinetic and the potential energies of the x-z type pendulum system;

(12) \begin{align}T = {1 \over 2}M({\dot x^2} + {\dot z^2}) + {1 \over 2}m(\dot x_p^2 + \dot z_p^2)\end{align}
(13) \begin{align}V = mg{z_p}\end{align}

By applying $L = T - V$ ,

(14) \begin{align}L = \frac{1}{2}(M + m)({\dot x^2} + {\dot z^2}) + \frac{1}{2}m{l^2}{\dot \theta ^2} + ml\dot \theta \dot x\cos (\theta ) - ml\dot \theta \dot z\sin (\theta ) - mgz - mgl\cos (\theta )\end{align}

The Lagrange’s equations are given with (15)–(17).

(15) \begin{align}\frac{d}{{dt}}\left(\frac{\partial }{{\partial \dot x}}\right) - \left(\frac{\partial }{{\partial x}}\right) = {F_x}\end{align}
(16) \begin{align}\frac{d}{{dt}}\left(\frac{\partial }{{\partial \dot z}}\right) - \left(\frac{\partial }{{\partial z}}\right) = {F_z}\end{align}
(17) \begin{align}\frac{d}{{dt}}\left(\frac{\partial }{{\partial \dot \theta }}\right) - \left(\frac{\partial }{{\partial \theta }}\right) = 0\end{align}

The nonlinear equations of motion are depicted by Eqs. (18), (19) and (20)

(18) \begin{align}(M + m)\ddot x + ml\cos \theta \ddot x - ml\sin \theta {\dot \theta ^2} = {F_x}\end{align}
(19) \begin{align}(M + m)\ddot z - ml\sin \theta \ddot \theta - ml\cos \theta {\dot \theta ^2} = {F_z} - (M + m)g\end{align}
(20) \begin{align}\cos \theta \ddot x - \sin \theta \ddot z + l\ddot \theta - g\sin \theta = 0\end{align}

The state equations are shown as,

(21) \begin{align} {\dot x_1} = {x_2}\end{align}
(22) \begin{align}{\dot x_2} = \frac{{Mml{{\dot x}^2}_5\sin {x_5} + (M + m{{\cos }^2}{x_5}){F_x} - m{F_z}\sin {x_5}\cos {x_5}}}{{M(M + m)}} + {d_1}\end{align}
(23) \begin{align}{\dot x_3} = {x_4}\end{align}
(24) \begin{align}{\dot x_4} = \frac{{Mml{{\dot x}^2}_5 + \cos {x_5} - m{F_x}\sin {x_5}\cos {x_5} + (M + m{{\sin }^2}{x_5}){F_z} - M(M + m)g}}{{M(M + m)}} + {d_2}\end{align}
(25) \begin{align}{\dot x_5} = {x_6}\end{align}
(26) \begin{align}{\dot x_6} = \frac{{ - {F_x}\cos {x_5} + {F_z}\sin {x_5}}}{{Ml}} + {d_3}\end{align}

where ${x_1} = x,{x_2} = \dot x,{x_3} = z,{x_4} = \dot z,{x_5} = \theta ,{x_6} = \dot \theta ,{d_1} = {d_1} = {d_3} = 20\sin (20\pi t)$ , ${d_1},{d_2}\,and\,{d_3}$ are external disturbances.

From the model equations obtained, it can be seen that the system has three states ${x_1},{x_3}\,$ and $\theta $ to be controlled and have only two direct control forces ${F_x}$ and ${F_z}$ which makes the system an extremely challenging problem. It is an underactuated two inputs and three outputs MIMO system so that it needs a very precise work to design an efficient controller for the control of every state (Fig. 6). Three PID controllers are necessary to be designed. The first PID controller (PID1) can adjust the controllable range of angle of the inverted pendulum. The second PID controller (PID2) is designed for the horizontal direction control. The third PID controller (PID3) can be used to control the vertical direction to assist the vertical control force [Reference Wang22].

3. Nonlinear PID Controller Design with Lightning Search Algorithm (LSA)

In a typical PID controller, the error between the output and the desired input is corrected and then a control signal $u$ is obtained which sets the output to the desired input. The error term is basically defined as

(27) \begin{align}e(t) = r(t) - y(t)\end{align}

where r(t) shows the reference input and y(t) shows the output of the system. PID controller consists of three terms which take the error as an input and produce the control input $u(t)$ to the plant,

(28) \begin{align}u(t) = {K_p}e(t) + {K_i}\int_0^t {e(\tau )d\tau } + {K_d}\frac{{de}}{{dt}}\end{align}

where the ${K_p}$ compensates for the current error and produces a response proportional with it. ${K_i}$ uses the past errors and tries to compensate for the steady state errors. ${K_d}$ produces an anticipatory response depending on the current rate of the change of the output. It is a rigorous task to tune the best parameter values of PID when the system is unstable. Moreover, the PID controller may not work well if there is a plant with changing working conditions.

For nonlinear system, Eq. (28) is not sufficient, where an error function is introduced by Su and Dong Sun [Reference Su and Dong Sun57] as in Eq. (29);

(29) \begin{align}f(e,\alpha ,\delta ) = \left\{ \begin{matrix} {{\left| e \right|}^\alpha }sign(e)\;\;\;\;\; & \left| e \right| \ge \delta \\[5pt] \dfrac{e}{\delta ^{1 - \alpha}}\;\;\;\;\; &{\left| e \right|{\rm{ }} \lt \delta } \end{matrix} \right.\end{align}
\begin{align*}sign(e) = \left\{ \begin{matrix} {1,}\;\;\;\;\; &{e \ge 0} \\[5pt] { - 1,}\;\;\;\;\; & {e \lt 0} \end{matrix} \right.\end{align*}

$\delta $ describes the linear range of the function $f$ showing nonlinear characteristics. The control signal u of a nonlinear PID is given as;

(30) \begin{align}u(t) = {K_p}e{f_p}({e_p},{\alpha _p},{\delta _p}) + {K_i}{f_i}({e_i},{\alpha _i},{\delta _i})\int {edt} + {K_d}{f_d}({e_d},{\alpha _d},{\delta _d})\frac{{de}}{{dt}}\end{align}

The function $f(e,\alpha ,\delta )$ shows the rate of error feedback. ${\alpha _p}\, \in \,\left[ {0,1} \right]$ is selected to compensate the nonlinearity of the system, ${\alpha _i}\, \in \,\left[ { - 1,0} \right]$ and ${\alpha _d}\, \gt \,0$ is selected to decrease the differential effect.

As a solution to these complex and time-consuming tuning problems, nonlinear PID controllers which are tuned with intelligent meta-heuristic approaches were proposed [Reference Valluru and Singh Chadli45,Reference Su and Dong Sun57]. These artificial intelligence methods became popular with their quick and precise responses. The NL-PID has the ability to quickly change its parameters over time based on the system error. They may offer an extra degree of freedom for better performance. There are many bio-inspired optimization methods in literature and new approaches continue to be developed. In every newly proposed metaheuristic algorithm, there is a difference about searching mechanisms, tuning mechanisms and decision mechanisms. They offer to lessen the system matrix eigenvalues. For example in PSO, some candidate population members with lower fitness are removed with higher probability which affects the duration of the run, [Reference Gupta and Srivastava39,Reference Banks, Vincent and Anyakoha41,Reference Banks, Vincent and Anyakoha42] whereas the Genetic algorithm is regarded as omnidirectional [Reference Chakraborty, Mukherjee and Mukherjee38,Reference Gupta and Srivastava39]. We tested a newly developed Lightning Search Algorithm as a tool to tune nonlinear PID parameters on an x-z type inverted pendulum and the responses of the simulated model are observed to be optimum which are depicted as bold on the following tables.

3.1. Lightning Search Algorithm (LSA)

LSA is a recently developed optimization algorithm [Reference Shareef, Ibrahim and Mutlag58] that is efficiently used in many different field problems. In ref. [Reference Asvany, Amudhavel and Sujatha59], LSA is used for solving coverage problems in wireless sensor networks which produced highly productive results. In a comprehensive survey study on LSA, [Reference Abualigah, Elaziz, Hussien, Alsalibi, Jalali and Gandomi60] two of the benchmark engineering problems which are Pressure vessel and Tension/compression spring design problems are evaluated to present the performance of LSA comparing with commonly used optimization methods in the literature. In ref. [Reference Sarker, Mohamed, Saad and Mohamed61], LSA is used to enhance the piezoelectric energy harvesting system converter (PEHSC) using the dSPACE DS1104 controller board as the proportional integral voltage controller. In a recent study on position control of a servomechanism, an LSA-tuned fractional order PID controller is presented with a successful performance [Reference Gao, Zhao and Zhang62].

LSA mimics the travel of the projectile ejected from the thunder cell which turns into the step leader forming a channel. The projectile represents the initial population size. The final solution refers to the tip of the current step leader’s energy ${E_c}$ . LSA is a kind of step leader approach but it consists of binary tree structure of the step leader. Therefore, two leader tips at fork points enables a fast decision status compared to the classical step leader techniques. It is considered that the main discrimination of the LSA lies in the forking mechanism and the channel elimination procedure.

The search process is managed by the fast particles known as projectiles. The initial velocity of a projectile is given as,

(31) \begin{align}{V_P} = {\left[ {1 - {{\left( {\frac{1}{{\sqrt {1 - {{\left( {\dfrac{{{V_0}}}{c}} \right)}^2}} }} - \frac{{l{\alpha _i}}}{{m{c^2}}}} \right)}^{ - 2}}} \right]^{ - 1/2}}\end{align}

where Vp is current velocity of the projectile; Vo is the primary acceleration of the projectile; ${\alpha _i}$ is the ionization rate, c is the light speed; m is the mass of the projectile; and p is the length of the path travelled. Velocity in Eq. (31) is a function of leader tip position and projectile mass. Therefore, ionization or the exploring path largely depends to this factors that can be controlled by using the relative energies of the step leaders.

There are three types of projectiles which are transition, space and lead projectiles. The transition projectile actuates the population of solutions. The space projectiles explore and lead projectiles exploit at the step leader for the optimum solution or leader of the initial population.

The probability density function (PDF) of transition projectile f(x T )is given as

(32) \begin{align}f({x_T}) = \left\{ \begin{matrix} \dfrac{1}{{b - a}}\;\;\;\;\; & \!\!\!\!\!\!\!\!\!for\;a \le {x_T} \le b \\[5pt]0,\;\;\;\;\;\;\;\;\;\; & for\,{x_T} \lt a\; or\; {x_T} \gt b\end{matrix} \right.\end{align}

where ${x_T}$ is the initial tip energy ${E_{sl,i}}$ of the step leader $sl,i$ defined by a random number. a and b are the lower and upper bounds of the solution space.

The position of the space projectile ${p_s}$ can be partially modelled by a random number with the exponential distribution having a shaping parameter $D$ . The PDF of an exponential distribution is

(33) \begin{align}f({x_S}) = \left\{\!\!\!\!\!\! \begin{array}{l}\,\,\,\,\,\dfrac{1}{D}{e^{ - {x_S}/D}},\,\,\,\,\,\,\,\,\,\,for\,\,\,\,\,{x_S} \gt 0\\[5pt] \,\,\,\,\,\,\,\,\,0,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,for\,\,\,\,\,\,\,\,{x_S} \le \,0\end{array} \right.\,\end{align}

Here, $D$ is the distance between the lead projectile ${p^L}$ and the previous projectile $p_S^i$ .

(34) \begin{align}D = \,\left| {{p^L} - p_S^i} \right|\end{align}
(35) \begin{align}p_{new}^S = {p^S} \pm \exp rand(D)\end{align}

The PDF of the best solution projectile x L

(36) \begin{align}f({x_L}) = \left\{\!\!\!\!\!\! \begin{array}{l}\,\,\,\,\,\dfrac{1}{{\sigma \sqrt {2\pi } }}{e^{ - {{({x_L} - \nu )}^2}/2{\sigma ^2}}}\,\,\,\,\,\,\,\,\,\\\end{array} \right.\,\end{align}

Here, $\nu $ is the shape parameter and $\sigma $ is the scale parameter.

In each iteration, this projectile is updated as

(37) \begin{align}p_{new}^L = {p^L} + normrand(\nu ,\sigma )\end{align}

by generating a normal random number between the selected parameters. $p_{new}^L$ is the new position of the pilot projectile. In order to guarantee the propagation of the step leader, the energy of the lead projectile should be greater than the previous step leaders.

The systematic flow of the LSA method can be seen in ref. [Reference Shareef, Ibrahim and Mutlag58]. Apart from the conventional optimization algorithms, LSA uses the exponential random behaviour of the space projectile. The simultaneous creation of two leader tips at fork points using opposition theory enables a higher performance, whereas the major exploitation process is managed by the lead projectile with a normal random search [Reference Shareef, Ibrahim and Mutlag58]. The channel time is another superiority of the LSA method.

Based on the flowchart in ref. [Reference Shareef, Ibrahim and Mutlag58], the LSA pseudo code to tune NL-PID controllers for IPS is summarized as follows:

The main purpose of using LSA in this problem is to get optimal control parameters of the NL-PID controller which is responsible for stabilization and tracking control of the x-z pendulum as compared to other optimization techniques. Finding the optimal parameters would lead to fine tuning of the PID controller and simultaneously improvement in the transient as well as steady state response of the system under consideration.

A general block diagram of the LSA-based NL-PID control approach is shown in Fig. 2. Initially, LSA algorithm assigns ${K_p},{K_i},{K_d}$ values and computes the cost function and continuously update the controller parameters ${\alpha _p},{\alpha _i},{\alpha _d}$ until the objective functions are optimized. The optimization algorithm is set to satisfy the specific performance criterion which is defined by an objective or cost function. The cost function is determined for different ranges of maximum overshoot and tracking errors, and then, the optimum control parameters ${K_p},{K_i}$ and ${K_d}$ were searched with the three different algorithms to minimize the cost function. Several objective functions have been proposed in the literature to optimize the response of the controlled system, some of which are integral of absolute Error (IAE), Integral of Time Absolute Error (ITAE), Integral of Squared Error (ISE), Integral of Time Squared Error (ITSE) and Mean squared error (MSE). ITAE is a commonly preferred tuning criterion which is used to obtain PID controller parameters that penalizes long-duration transients. We have tried some of these algorithms and have seen that ITAE performance index is much more selective than the IAE or the ISE. The minimum value of its integral is much more definable as the system parameters are varied. The ITAE performance index is mathematically given by :

(38) \begin{align}ITAE = \int\limits_0^\infty {t\left| {e(t)dt} \right|} \end{align}

where t is the time and e(t) is the difference between set point and the controlled variable. LSA and the PSO are employed for adjusting their control parameters with respect to the proposed cost function. In this study, a composite objective optimization for LSA and PSO-based PID controllers are obtained by summing values of the three mentioned objective functions through the following sum method by Eq. (39) given in Table IV.

(39) \begin{align}J = \left( {ITAE(\theta ) + ITAE(x) + ITAE(z)} \right)^{\ast}\!1e10\end{align}

Figure 2. NL-PID parameters tuning using LSA.

4. Simulation Results

We simulated the dynamic behaviour of the IP system in Matlab/Simulink environment. Matlab ODE45 numerical solution method is used for the solution of equations. All of the selected parameters are given in Table I. For the simulations, some assumptions must be made. The friction of the surfaces is neglected. The system is simulated by using the nonlinear Eqs. (7)–(9) and (18)–(20). We built an optimal NL-PID controller that stabilizes the pendulum angle at its upright position due to the changing initial conditions. In order to show the effectiveness of the NL-PID controllers, we have given the simulation results of the stabilization control and the tracking control results compared with the PSO and literature for different conditions in the following part. The simulations were implemented in MATLAB 2018b, Win_64, on an Intel Core i5 Processor, 2.8 GHz speed and 8 GB RAM.

Table I. IP parameters used in simulations [Reference Wang22].

4.1. Stabilization of NL-IP

4.1.1. x-type IP control

The controller design for x-type inverted pendulum is done in two ways. The first application consists of designing single PID controller for the angle control of the pendulum. The control structure of x inverted pendulum with PID1 controller is given in Fig. 3(a). The initial angle position is set to 0.5 rad. The system was simulated first without disturbance, then an outer disturbance of ${d_1}$ as $20\sin (20\pi t)$ was applied. The tuning ranges of the parameters such as the size, the dimension, the mutation rate and the selection rate of the population, and the maximum iteration size of the algorithms for finding the best optimizing tuning parameters are given in Table II. In Table III, PID1 controller gain parameters of the all three applied algorithms are given. Any little change on the parameters of the controller may affect the pendulum angle and cart position simultaneously. The second application contains double PID controllers fed to the systems separately. Double PID controller design is depicted in Fig. 3(b). In a double PID controller case, the first PID1 controller works for the angle $(\theta )$ control and the second PID2 controller is used to stabilize the horizontal movement x.

Figure 3. Structure of x-type inverted pendulum [Reference Wang22].

Table II. Tuning parameters of nonlinear PID for PSO and LSA.

Table III. PID gain parameters.

The results of the simulations for x-type inverted pendulum with single PID controller without and with disturbance are given in Fig. 4(a)–(b). From the figures, it is observed that better stabilization performances in settling times and overshoot were achieved with LSA and PSO than the ref. [Reference Wang22]. Moreover, LSA is slightly ahead of PSO in settling times (Table V).

Figure 4. Stabilization of x-IP with single PID with and without disturbance.

Table IV. NLPID parameters.

Table V. Response parameters for the $\theta $ (allowable tolerance 0.02).

In the double PID case, Fig. 5(a)–(d) show the simulation results without and with disturbance for the $(\theta )$ and the $x$ . The simulations parameters can be seen in Tables IIIV. We set d 1 = d 2 as $20\sin (20\pi t)$ . From the simulation results in Fig. 5(a)–(b), we can see that the metaheuristic method-based PID have better stabilization performance with the minimum overshoot so that the system is stabilized in a quick and robust way. Moreover, the settling time of LSA is the best one with 1.039213 s for the angle and 2.547588 s for the x position (Table VI). In case of disturbance with $20\sin (20\pi t)$ , the metaheuristic algorithms enabled a better performance than the regular adjusted PID parameters ref. [Reference Wang22]. They have better smoothing ability. LSA is the quickest method and has the best smoothing ability which is indicated in Tables V and VI.

Figure 5. Stabilization of x-IP with double PID for the angle and the pivot position.

Table VI. Response parameters for the x and z (allowable tolerance 0.02).

4.1.2. x-z type IP control

The x-z type IP is controlled with three PID controllers. We added an extra PID block rather than the first two PID blocks, to control the position for the z-axis. PID1 and PID2 do not change much, and the parameters of PID3 controller are also optimized by metaheuristic approaches. The structure of three PID design is given in Fig. 6.

Figure 6. Structure of x-z inverted pendulum [Reference Wang22].

Figure 7(a)–(f) shows the angular and position changes by LSA, PSO and ref. [Reference Wang22] with the three PID controllers. The response parameters maximum overshoot and settling time for theta are shown in Table V and for x and z positions are given Table VI. It can be inferred from Fig. 7(a)–(b) that, for controlling the theta, LSA-tuned controller produces the fastest stabilizing effect with 0.980516 s for the no disturbed situation and. 2.863364 s in case of disturbance. Ref. [Reference Wang22] has less overshoot but its settling time is longer than LSA and PSO. In case of horizontal movement control (Fig. 7(c)–(d)), LSA is the quickest method that settles the system. The overshoot values of PSO and LSA are very close to each other and better than ref. [Reference Wang22]. In case of vertical movement control (Fig. 7(e)–(f)), LSA has the quickest response and the minimum overshoot.

Figure 7. Stabilization of x-z IP with three PID for the angle, the positions x and z with and without disturbance.

4.2. Tracking control of NL-IP

In this part, the tracking control performances are given for two PID and three PID designs. In Fig. 8(a)–(d), the tracking control and tracking errors of the x inverted pendulum with two PID controllers are given. The reference signal is ${x_d} = 0.3\sin (0.05\pi t)$ . The outer disturbances ${d_1}$ and ${d_2}$ are as $20\sin (20\pi t)$ . ${x_d}$ is the reference signal of ${x_{}}$ , ${z_d}$ is the reference signal of $z$ . ${e_x} = {x_d} - x$ is the horizontal control error, ${e_z} = {z_d} - z$ is the vertical control error. From the simulation results in Fig. 8(a)–(d), we can see that the LSA-tuned x-inverted pendulum with PID1 and PID2 have better tracking performance and more robustness than the PSO and ref. [Reference Wang22]. All of the tracking performance results are given in Table VII.

Figure 8. Tracking performance of the state variables x and the control error e x with and without the disturbance for two PID.

Table VII. Tracking control response parameters of the x-z inverted pendulum (allowable tolerance 0.02).

In Fig. 9(a)–(d), the tracking control of x-z inverted pendulum with three PID controllers for the x position is given. The reference signals are selected as follows: ${x_d} = 0.25\sin (0.05\pi t)$ and ${z_d} = 0.15\sin (0.05\pi t)$ . The outer disturbances ${d_1},{d_2}$ and ${d_3}$ are selected as $20\sin (20\pi t)$ . A good tracking performance of x-z inverted pendulum is obtained. Although the response values are so close to each other, minimum tracking errors are and the minimum settling times are obtained with LSA algorithm (Table VII) for the cases with and without disturbance.

Figure 9. Tracking performance of the state variables x and the control error e x with and without the disturbance for 3PID.

Figure 10. Tracking performance of the state variables z and the control error e z with and without the disturbance for 3PID.

In Fig. 10(a)–(d), the tracking control of x-z inverted pendulum with three PID controllers for the z position is given. It can be seen that three PIDs can realize tracking of x-z inverted pendulum with the minimum error. Minimum tracking errors and the minimum settling times are obtained by using the LSA-tuned PID controller.

In general, from the simulation results in Figs. 8, 9 and 10, we can see that the LSA-tuned x-z inverted pendulum have good tracking ability in the horizontal and vertical space. The figures show that the x-z inverted pendulum not only can track the reference curves in the horizontal and vertical space but also have robustness to slight and medium outer disturbances. This is very important for many practical realization of control systems.

4.3. Evaluation of optimization algorithms

Based on the selected population size and maximum iteration for each optimization technique, the fitness values are presented in Fig. 11. The minimum objective function value (Best Value) and elapsed time in optimizations are shown in Table VIII. This figure shows the convergence trajectory of LSA and PSO. Based on the convergence curves, we can observe that PSO has a faster convergence with single PID controller. LSA converges fast with double PID and in the case of three PID controller both algorithms perform well. Solver times for PSO are shorter than the times for LSA. The reason is, PSO has a single operator for the velocity calculation which shortens the computation time. Although the computation time of PSO is less for convergence, the parameters of LSA-tuned PID controller performs better than PSO in stabilization and tracking performance of inverted pendulum which is very important for precise engineering applications.

Figure 11. ITAE performance.

Table VIII. LSA and PSO evaluation.

We have obtained reasonable results with LSA compared to the existing literature. This is due to the LSA’s space projectile selection which uses the exponential random behaviour. The following issues can be considered for future studies. The metaheuristic algorithms have a quick response for the linear system problems, whereas the response time gets longer for nonlinear systems. For this reason, we need algorithms that are independent from the population size and the iteration number. In real-world engineering problems, several different sources of the disturbances may arise. Further studies may be conducted, taking into account various real requirements.

5. Conclusions

Inverted pendulum studies occupy a huge place in control systems literature; however, there is still place to improve the performance characteristics such as the stability and the robustness. This study searched for the application of a new type metaheuristic algorithm LSA that is used to tune a nonlinear PID controller on the x-z type IPS. The results of the system were compared with the well-known PSO algorithm and a previous study from the literature [Reference Wang22]. According to the simulation results, the LSA-tuned PID controller produced minimum overshoot and optimal system performance with the time taken for the instability to settle in all the cases as compared to the results with PSO-tuned PID and the conventional tuning. Hence, it can be considered that the LSA improves the optimal system performance of the PID controllers satisfactorily. Furthermore, these findings can be useful for researchers to apply the advantages of LSA to the complex industrial and any real-world problems such as the humanoid robot or the gait robot studies.

Author Contributions

NGÖ conceived and designed the study. MM conducted data gathering and statistical analyses. NGÖ wrote the article and supervised the study.

Conflicts of Interest

None.

Financial Support

This research did not receive any specific grant from funding agencies in the public, commercial or not-for-profit sectors.

References

Boubaker, O., “The inverted pendulum benchmark in nonlinear control theory: A survey,” Int. J. Adv. Rob. Syst. 10(5), 233 (2013).CrossRefGoogle Scholar
Vigentini, M., Ghidelli, M. and Martinelli, S., U.S. Patent No. 10,258,521. Washington, DC: U.S. Patent and Trademark Office (2019).Google Scholar
Engelhart, D., Schouten, A. C., Aarts, R. G. and van der Kooij, H., “Assessment of multi-joint coordination and adaptation in standing balance: A novel device and system identification technique,” IEEE Trans. Neural Syst. Rehabil. Eng. 23(6), 973982 (2014).10.1109/TNSRE.2014.2372172CrossRefGoogle ScholarPubMed
Zielinska, T., Rivera Coba, G. and Ge, W., “Variable inverted pendulum applied to humanoid motion design,” Robotica, 1–22 (2021) doi: 10.1017/S0263574720001228.CrossRefGoogle Scholar
Benrejeb, W. and Boubaker, O., “FPGA modeling and realtime embedded control design via LabVIEW software: Application for swinging-up a pendulum,” Int. J. Smart Sens. Intell. Syst. 5(3), 576591 (2012)Google Scholar
Sánchez, J., Morilla, F. and Dormido, S., “Teleoperation on an Inverted Pendulum Through the World Wide Web” Proceedings of the IFAC Workshop on Internet Based Control Education, Madrid (2001) pp. 3742.Google Scholar
Gillet, D., Salzmann, C. and Huguenin, P., “A Distributed Architecture for Teleoperation over the Internet with Application to the Remote Control of an Inverted Pendulum,” In: Nonlinear Control in the Year 2000, vol. 258 (Springer, London, 2001) pp. 399407.Google Scholar
Sánchez, J., Morilla, F., Pastor, R. and Dormido, S., “A Java/Matlab-based environment for remote control system laboratories: Illustrated with an inverted pendulum,” IEEE Trans. Edu. 47(3), 321329 (2004)CrossRefGoogle Scholar
Yao, Y., Dai, Y., Tian, D. and Zhang, X., “MATALB & Internet Based Remote Control Laboratory,” Proceedings of the Chinese Control and Decision Conference, Guilin (2009) pp. 12621268.Google Scholar
Dini, N. and Majd, V. J., “An MPC-based two-dimensional push recovery of a quadruped robot in trotting gait using its reduced virtual model,” Mech. Mach. Theory 146, 103737 (2020) https://doi.org/10.1016/j.mechmachtheory.2019.103737.CrossRefGoogle Scholar
Boubaker, O. and Iriarte, R., The Inverted Pendulum in Control Theory and Robotics, 1st ed. (IET, 2017) ISBN: 978-1-78561-320-3. doi: 10.1049/PBCE111E.CrossRefGoogle Scholar
Ogata, K., Modern Control Engineering, 4th ed. (Pearson Education, New Delhi; Singapore Pvt. Ltd., 2005).Google Scholar
Bradshaw, A. and Shao, J., “Swing-up control of inverted pendulum systems,” Robotica 14(4), 397405 (1996) doi: 10.1017/S0263574700019792.CrossRefGoogle Scholar
Moysis, L., Balancing a double inverted pendulum using optimal control and Laguerre functions. Aristotle University of Thessaloniki, Greece, 54124 (2016).Google Scholar
Furuta, K., Ochiai, T. and Ono, N., “Attitude control of a triple inverted pendulum,” Int. J. Control 39(6), 13511365 (1984).CrossRefGoogle Scholar
Zhang, X. L., Fan, H. M., Zang, J. Y., Zhao, L. and Hao, S., “Nonlinear control of triple inverted pendulum based on GA–PIDNN,” Nonlinear Dyn. 79(2), 11851194 (2015).CrossRefGoogle Scholar
Li, H., Miao, Z. and Wang, J., “Variable universe adaptive fuzzy control on the quadruple inverted pendulum,” Sci. China Ser. E Technol. Sci. 45(2), 213224 (2002).10.1360/02ye9026CrossRefGoogle Scholar
Shen, J., Sanyal, A. K., Chaturvedi, N. A., Bernstein, D. and McClamroch, H., “Dynamics and Control of a 3D Pendulum,” Proceedings of the 43rd IEEE Conference on Decision and Control, Nassau, vol. 1 (2004) pp. 323328.Google Scholar
Sakka, S., Hayot, C. and Lacouture, P., “A Generalized 3D Inverted Pendulum Model to Represent Human Normal Walking,10th IEEE-RAS International Conference on Humanoid Robots (IEEE, 2010) pp. 486491.Google Scholar
Maravall, D., Zhou, C. and Alonso, J., “Hybrid fuzzy control of the inverted pendulum via vertical forces,” Int. J. Intell. Syst. 20(2), 195211 (2005).CrossRefGoogle Scholar
Maravall, D., “Control and Stabilization of the Inverted Pendulum Via Vertical Forces,” In: Robotic Welding, Intelligence and Automation, Lecture Notes in Control and Information Sciences (Tarn, T. J., Chen, S. B. and Zhou, C., eds.), vol. 299 (Springer-Verlag, Berlin, 2004) pp. 190211.Google Scholar
Wang, J. J., “Simulation studies of inverted pendulum based on PID controllers,” Simul. Model. Pract. Theory 19(1), 440449 (2011) https://doi.org/10.1016/j.simpat.2010.08.003.CrossRefGoogle Scholar
Prasad, L. B., Tyagi, B. and Gupta, H. O., “Optimal control of nonlinear inverted pendulum system using PID controller and LQR: Performance analysis without and with disturbance input,” Int. J. Autom. Comput. 11(6), 661670 (2014) doi: 10.1007/s11633-014-0818-1.CrossRefGoogle Scholar
Rong-Jong, W. and Li-Jung, C., “Adaptive stabilizing and tracking control for a nonlinear inverted-pendulum system via sliding-mode technique,” IEEE Trans. Ind. Electron. 53(2), 674692 (2006) doi: 10.1109/TIE.2006.870680.CrossRefGoogle Scholar
Rigatos, G., Busawon, K., Pomares, J. and Abbaszadeh, M., “Nonlinear optimal control for the wheeled inverted pendulum system,” Robotica 38(1), 2947 (2020) doi: 10.1017/S0263574719000456.CrossRefGoogle Scholar
Kalayci, M. B. and Yiğit, İ., “Theoretical and experimental investigation of some sliding mode control techniques used in practice,” J. Fac. Eng. Archit. Gazi Univ. 30(1), 131142 (2015).Google Scholar
Marzi, H., “Multi-Input Fuzzy control of an inverted pendulum using an armature controlled DC motor,” Robotica 23(06), 785788 (2005) Cambridge University Press.CrossRefGoogle Scholar
Yamakawa, T., “Stabilization of an inverted pendulum by a high speed fuzzy logic controller hardware system,” Fuzzy Sets Syst. 32, 161180 (1989).CrossRefGoogle Scholar
Tao, C. W., Taur, J. S., Wang, C. M. and Chen, U. S., “Fuzzy hierarchical swing-up and sliding position controller for the inverted pendulum-cart system,” Fuzzy Sets Syst. 159(20), 27632784 (2008).CrossRefGoogle Scholar
Anderson, C. W., “Learning to control an inverted pendulum using neural networks,” IEEE Control Syst. Mag. 9(3), 3137 (1989).CrossRefGoogle Scholar
Lakie, M., Caplan, C. and Loram, I. D., “Human balancing of an inverted pendulum with a compliant linkage: neural control by anticipatory intermittent bias,” J. Physiol. 551(1), 357370 (2003).CrossRefGoogle ScholarPubMed
Yang, C., Li, Z., Cui, R. and Xu, B., “Neural network-based motion control of an underactuated wheeled inverted pendulum model,” IEEE Trans. Neural Networks Learn. Syst. 25(11), 20042016 (2014).10.1109/TNNLS.2014.2302475CrossRefGoogle ScholarPubMed
Daley, S. and Liu, G. P., “Optimal PID tuning using direct search algorithms,” Comput. Control Eng. J. 10(2), 5156 (1999).CrossRefGoogle Scholar
Ted Su, H. and Samad, T., “Neuro-Control Design: Optimization Aspects,” In: Neural Systems for Control (Omidvar, O. and Elliott, D. L., eds.), Chapter 10 (Academic Press, 1997) https://doi.org/10.1016/B978-012526430-3/50011-8.CrossRefGoogle Scholar
Diveev, A. and Shmalko, E., “Machine-made synthesis of stabilization system by modified cartesian genetic programming,” IEEE Trans. Cybern. 1–11 (2020) doi: 10.1109/TCYB.2020.3039693.CrossRefGoogle Scholar
Ye, N., Roosta-Khorasani, F. and Cui, T., “Optimization Methods for Inverse Problems,” In: 2017 MATRIX Annals. MATRIX Book Series (Wood, D., de Gier, J., Praeger, C. and Tao, T., eds.), vol. 2 (Springer, Cham, 2019) https://doi.org/10.1007/978-3-030-04161-8_9.Google Scholar
Dereli, S. and Köker, R., “Calculation of the inverse kinematics solution of the 7-DOF redundant robot manipulator by the firefly algorithm and statistical analysis of the results in terms of speed and accuracy,” Inverse Probl. Sci. Eng. 28(5), 601613 (2020) doi: 10.1080/17415977.2019.1602124.CrossRefGoogle Scholar
Chakraborty, K., Mukherjee, R. R. and Mukherjee, S., “Tuning of PID controller of inverted pendulum using genetic algorithm,” Int. J. Soft Comput. Eng. (IJSCE) 3(1), 2124 (2013).Google Scholar
Gupta, A. and Srivastava, S., “Comparative analysis of ant colony and particle swarm optimization algorithms for distance optimization”, Procedia Comput. Sci. 173, 245253 (2020).CrossRefGoogle Scholar
Bharadwaj, C. S., Babu, T. S. and Rajasekar, N., “Tuning PID Controller for Inverted Pendulum Using Genetic Algorithm,” In: Advances in Systems, Control and Automation (Springer, Singapore, 2018) pp. 395404.CrossRefGoogle Scholar
Banks, A., Vincent, J. and Anyakoha, C., “A review of particle swarm optimization. Part I: Background and development,” Natl. Comput. 6, 467484 (2007) https://doi.org/10.1007/s11047-007-9049-5.CrossRefGoogle Scholar
Banks, A., Vincent, J. and Anyakoha, C., “A review of particle swarm optimization. Part II: Hybridisation, combinatorial, multicriteria and constrained optimization, and indicative applications,” Natl. Comput. 7, 109124 (2008) https://doi.org/10.1007/s11047-007-9050-z.CrossRefGoogle Scholar
Hanafy, T. O., “Stabilization of Inverted Pendulum System Using Particle Swarm Optimization,” 8th International Conference on Informatics and Systems (INFOS) (BIO-207) (IEEE, 2012).Google Scholar
Mousa, M. E., Ebrahim, M. A. and Hassan, M. M., “Stabilizing and swinging-up the inverted pendulum using PI and PID controllers based on reduced linear quadratic regulator tuned by PSO,” Int. J. Syst. Dyn. Appl. (IJSDA) 4(4), 5269 (2015).Google Scholar
Valluru, S. K. and Singh Chadli, M., (Reviewing Editor), “Stabilization of nonlinear inverted pendulum system using MOGA and APSO tuned nonlinear PID controller,” Cogent Eng. 4(1) (2017) doi: 10.1080/23311916.2017.1357314.CrossRefGoogle Scholar
Chegini, S. N., Bagheri, A. and Najafi, F., “PSOSCALF: A new hybrid PSO based on Sine Cosine Algorithm and Levy flight for solving optimization problems,” Appl. Soft Comput. 73, 697726 (2018).CrossRefGoogle Scholar
Chegini, S. N., Bagheri, A. and Najafi, F., “A new adjusting technique for PID type fuzzy logic controller using PSOSCALF optimization algorithm,” Appl. Soft Comput. 85, 105822 (2019).Google Scholar
Yan, G. and Li, C., “An effective refinement artificial bee colony optimization algorithm based on chaotic search and application for PID control tuning,” J. Comput. Inf. Syst. 7(9), 33093316 (2011).Google Scholar
Caraveo, C., Valdez, F. and Castillo, O., “Optimization of fuzzy controller design using a new bee colony algorithm with fuzzy dynamic parameter adaptation,” Appl. Soft Comput. 43, 131142 (2016).CrossRefGoogle Scholar
Puangdownreong, D. and Sukulin, A., “Obtaining an optimum PID controllers for unstable systems using current search,” Int. J. Syst. Eng. Appl. Dev. 6(2), 188195 (2012).Google Scholar
Jacknoon, A. and Abido, M. A., “Ant Colony Based LQR and PID Tuned Parameters for Controlling Inverted Pendulum,” International Conference on Communication, Control, Computing and Electronics Engineering (ICCCCEE) (IEEE, 2017) pp. 18.CrossRefGoogle Scholar
Mohammed, S., Faycel, K. M. and Rochdi, B. B., “Statistical analysis of harmony search algorithms in tuning PID controller,” Int. J. Intell. Eng. Syst. 9(4), 98106 (2016).Google Scholar
Arulanand, N. and Dhara, P., “Optimizing PID parameters using harmony search,” Int. J. Mech. Mechatron. Eng. 9(4), 667672 (2015).Google Scholar
Wang, J. J., “Stabilization and tracking control of X–Z inverted pendulum with sliding-mode control,” ISA Trans. 51(6), 763770 (2012).CrossRefGoogle ScholarPubMed
Wang, J. J. and Kumbasar, T., “Big Bang-Big Crunch optimized hierarchical sliding-mode control of X-Z inverted pendulum,” Simul. Model. Pract. Theory 86(August 2018), 2535 (2018).CrossRefGoogle Scholar
Wang, J. J. and Liu, G. Y., “Hierarchical sliding-mode control of spatial inverted pendulum with heterogeneous comprehensive learning particle swarm optimization,” Inf. Sci. 495(9), 1436 (2019).CrossRefGoogle Scholar
Su, Y. X and Dong Sun, B. Y. D., “Design of an enhanced nonlinear PID controller,” Mechatronics 15, 10051024 (2005) https://doi.org/10.1016/j.mechatronics.2005.03.003.CrossRefGoogle Scholar
Shareef, H., Ibrahim, A. and Mutlag, A. H., “Lightning search algorithm,” Appl. Soft Comput. 36, 315333 (2015) https://doi.org/10.1016/j.asoc.2015.07.028.CrossRefGoogle Scholar
Asvany, T., Amudhavel, J. and Sujatha, P., “Lightning search algorithm for solving coverage problem in wireless sensor network,” Adv. Appl. Math. Sci. 17(1), 113127 (2017).Google Scholar
Abualigah, L., Elaziz, M. A., Hussien, A. G., Alsalibi, B., Jalali, S. M. J. and Gandomi, A. H., “Lightning search algorithm: A comprehensive survey,” Appl. Intell. 51(4) (2020) https://doi.org/10.1007/s10489-020-01947-2.Google Scholar
Sarker, M. R., Mohamed, R., Saad, M. H. M. and Mohamed, A., “dSPACE controller-based enhanced piezoelectric energy harvesting system using PI-lightning search algorithm,” IEEE Access 7, 36103626 (2019) doi: 10.1109/ACCESS.2018.2888912.CrossRefGoogle Scholar
Gao, W., Zhao, Y. and Zhang, Y., “Optimal Design of Fractional Order PID Controller Using Lightning Search Algorithm,” EITCE, China (2020) pp. 68. https://doi.org/10.1145/3443467.3443851.CrossRefGoogle Scholar
Figure 0

Figure 1. Two different versions of IP [56].

Figure 1

Figure 2. NL-PID parameters tuning using LSA.

Figure 2

Table I. IP parameters used in simulations [22].

Figure 3

Figure 3. Structure of x-type inverted pendulum [22].

Figure 4

Table II. Tuning parameters of nonlinear PID for PSO and LSA.

Figure 5

Table III. PID gain parameters.

Figure 6

Figure 4. Stabilization of x-IP with single PID with and without disturbance.

Figure 7

Table IV. NLPID parameters.

Figure 8

Table V. Response parameters for the $\theta $ (allowable tolerance 0.02).

Figure 9

Figure 5. Stabilization of x-IP with double PID for the angle and the pivot position.

Figure 10

Table VI. Response parameters for the x and z (allowable tolerance 0.02).

Figure 11

Figure 6. Structure of x-z inverted pendulum [22].

Figure 12

Figure 7. Stabilization of x-z IP with three PID for the angle, the positions x and z with and without disturbance.

Figure 13

Figure 8. Tracking performance of the state variables x and the control error ex with and without the disturbance for two PID.

Figure 14

Table VII. Tracking control response parameters of the x-z inverted pendulum (allowable tolerance 0.02).

Figure 15

Figure 9. Tracking performance of the state variables x and the control error ex with and without the disturbance for 3PID.

Figure 16

Figure 10. Tracking performance of the state variables z and the control error ez with and without the disturbance for 3PID.

Figure 17

Figure 11. ITAE performance.

Figure 18

Table VIII. LSA and PSO evaluation.