Next Article in Journal
Tailored Magnetic Linear Birefringence in Wedge-Shaped Co Nanocluster Assemblies
Previous Article in Journal
Medium-Energy Synthesis Gases from Waste as an Energy Source for an Internal Combustion Engine
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving 3D Path Tracking of Unmanned Aerial Vehicles through Optimization of Compensated PD and PID Controllers

by
Nadia Samantha Zuñiga-Peña
,
Norberto Hernández-Romero
*,†,
Juan Carlos Seck-Tuoh-Mora
,
Joselito Medina-Marin
and
Irving Barragan-Vite
Área Académica de Ingeniería, Instituto de Ciencias Básicas e Ingeniería, Universidad Autónoma del Estado de Hidalgo, Carr. Pachuca-Tulancingo km. 4.5, Pachuca 42184, Hidalgo, Mexico
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Appl. Sci. 2022, 12(1), 99; https://doi.org/10.3390/app12010099
Submission received: 3 November 2021 / Revised: 11 December 2021 / Accepted: 15 December 2021 / Published: 23 December 2021

Abstract

:
The development of quadrotor unmanned aerial vehicles (QUAVs) is a growing field due to their wide range of applications. QUAVs are complex nonlinear systems with a chaotic nature that require a controller with extended dynamics. PD and PID controllers can be successfully applied when the parameters are accurate. However, this parameterization process is complicated and time-consuming; most of the time, parameters are chosen by trial and error without guaranteeing good performance. The originality of this work is to present a novel nonlinear mathematical model with aerodynamic moments and forces in the Newton–Euler formulation, and identify metaheuristic algorithms applied to parameter optimization of compensated PD and PID controls for tracking the trajectories of a QUAV. Eight metaheuristic algorithms (PSO, GWO, HGS, LSHADE, LSPACMA, MPA, SMA and WOA) are reported, and RMSE is used to measure each dynamic performance of the simulations. For the PD control, the best performance is obtained with the HGS algorithm with an RMSE = 0.037247252379126. For the PID control, the best performance is obtained with the HGS algorithm with an RMSE = 0.032594309723623. Trajectory tracking was successful for the QUAV by minimizing the error between the desired and actual dynamics.

1. Introduction

One of the most complex engineering problems is the limitation of algorithms to control unmanned aerial vehicles (UAVs). UAVs are usually referred to as drones, and are devices that can be autonomous or remotely piloted. They can also be multirotor, a manoeuvrability characteristic that enables vertical take-off and landing. Since 1970, study and development of QUAVs have been an active research topic for governments, industry, and scientists around the world [1].
Quadrotor UAV (QUAV) is the most simple UAV and contains four motors. QUAVs have a broad variety of applications, i.e., supervision and inspection, monitoring, imaging and mapping, search and rescue operations, and load carrying [2]. QUAVs complexity is mostly related to the fact that QUAVs are underactuated and nonlinear systems that respond in coupled dynamics and chaotic behaviors [3]. These features make them challenging to model and improve the design of controllers; for example, to guarantee QUAVs stability and robustness during flight.
QUAVs require high-level designing and implementation of efficient multidimensional control structures that improve their response. Controllers rely on parameters that need to be tuned in order to obtain an adequate performance. Parameterization is based on iterative experiments of different trial-and-error methods. This process is time-consuming, and it does not guarantee getting optimal parameters.
The most popular controller types are proportional-derivative (PD) and proportional-integral-derivative (PID) because of their simplicity of structure and implementation. Unfortunately, there are very few systematic methods to find optimal parameters [4,5,6]. Nowadays, PID controls add techniques such as neural networks and evolutionary algorithms, resulting in high accuracy and dynamic performance for different engineering control problems. Systems are becoming adaptive to external disturbances. For example, in [7], an adaptive PID tuning method is reported, which is pre-trained by a genetic algorithm to tune the weights of a neural network and auto-tunes online the proportional, integral, and derivative units of a PID.
The design and implementation of control laws in QUAVs consider multiple variants that are tuned for each control in a constrained-based optimization manner, similar to the path planning problem [8,9]. Those limitations motivate solutions of stochastic nature. There are different stochastic algorithms, the most popular are metaheuristics, both evolutive and population-based, with high effectiveness and easy implementation. Evolutionary metaheuristic algorithms are based on the laws of biological evolution, which do not share information with another generation. However, the best-qualified individuals composing the new group and better quality individuals will remain up to the end. Some of the most popular are genetic algorithm (GA) [10,11,12] and differential evolution (DE) [13] with many variants, refinements, and hybridization.
Population-based metaheuristics are motivated by collaboration capabilities, social interaction and sharing knowledge, present in many groups in nature. This type of metaheuristic is one of the most popular techniques to solve multiobjective optimization problems, thanks to their ability to compute multiple solutions in a single repetition [14].
The problem of tuning a PD or PID for a QUAV dynamic system results in a complex underactuated system, highly coupled in its variables, and many parameters to adjust, nonlinear, where it is not easy to apply conventional control techniques. Using these techniques, the dynamic model must meet convexity, differentiability, continuity, and linearity properties, leading to an excessive simplification of the model to obtain a global optimum, but failing to represent all the relevant features of the real system [15]. By using metaheuristic algorithms to solve this type of problem, it is impossible to show that the global optimum is reached; for this reason, a series of repetitions of the runs are carried out to verify the robustness and accuracy of the solutions obtained. Nevertheless, it generates satisfactory solutions in a reasonable time [16].
Previous studies have addressed the problem of tuning controllers applied to UAVs. In [17], a comparison between proportional (P), PD and PID controllers relating to time to tune and stability is done, applying a particle swarm optimization algorithm (PSO) for choosing the parameters to control attitude and altitude of QUAV (4 of 6 possible dynamics). Similarly, the authors in [18] have proposed the artificial bee colony (ABC) algorithm, PSO and GA to optimize PID parameters and add a comparison with Ziegler-Nichols method applied to QUAV attitude dynamics. In the same way, the optimization of a PID controller using GA, Crow Search Algorithm (CSA) and PSO only for orientation and altitude was performed in [19].
In this paper, we report the development of a dynamic model for a QUAV using the Newton–Euler formulation taking into account all the six dynamics for a QUAV. We compare eight optimization algorithms for PD and four for the PID controller. All algorithms were applied to the dynamic model. Initially, the parameters were obtained using different population-based metaheuristic algorithms, including PSO, Gray Wolf Optimization (GWO), Hunger Games Search (HGS), extended and improved SHADE (LSHADE, LSPACMA), Marine Predators Algorithm (MPA), Slime Mould Algorithm (SMA), and Whale Optimization Algorithm (WOA) [20,21,22,23,24,25,26,27,28].
Usually, a set of benchmark functions is used to demonstrate the performance of optimization algorithms by evaluating the accuracy, precision, and robustness. However, not all algorithms have the same performance capabilities for different engineering problems [29]. Thus, the main contribution of this work is to identify a set of metaheuristic algorithms that perform well in optimizing compensated PD and PID controls for trajectory tracking of a QUAV considering the mathematical model is nonlinear with aerodynamic moments and forces on the Newton–Euler formulation. Consequently, obtaining an optimized and compensated structure that overcomes the limitations of nonlinearity and instability of a full dynamics (a total of six motions and directions) of a quadcopter system with PD or PID controls.
The mathematical model derived to simulate flight dynamics of a quadcopter and detail control strategy is given in Section 2. Section 3 details the optimization of compensated PD and PID. The evaluation methods and experimental results are presented and discussed in Section 4. Section 5 presents the conclusions and further outlooks in this paper.

2. Quadrotor UAV: Modeling and Control

This section presents the dynamical model of QUAV using the Newton–Euler formulation and detail control strategy.

2.1. System Description and Modeling of a QUAV

As shown in Figure 1, to describe the motion of QUAV in 3D space, this requires the definition of two frames: the inertial World frame, W, and the Body frame, B. The first is a fixed coordinate system on Earth with x W y W z W and the second is fixed on the structure of the vehicle, denoted by xyz.
The QUAV is a complex structure, and it involves different physical effects from aerodynamics and mechanic forces. The model developed assumes the following:
  • The structure of the system is rigid and symmetrical.
  • The gravity center and the B frame origin are coincident.
  • Propellers are rigid.
  • The attitude dynamics are limited to small angles and consequently slight variations of linear and angular velocities.
The absolute position of QUAV is defined as the coordinates in the B frame in regard to coordinates in the W frame, represented by position vector r = [ x , y , z ] T . The angular position, defined by the E u l e r angles ( ϕ , θ , ψ ), represent the orientation of the QUAV with respect to the W frame, these angles define the rotations of yaw, roll and pitch, they indicate how the B frame (which initially is aligned with the W frame) must be rotated to align with W frame again.
The rotation matrix from B to W, is given by W R B = c R B a R c W R a , where c R B , a R c , W R a , represents rotations about X, Y and Z axis, respectively, in that order, as shown in Figure 2.
c R B = cos ( ψ ) sin ( ψ ) 0 sin ( ψ ) cos ( ψ ) 0 0 0 1
a R c = cos ( θ ) 0 sin ( θ ) 0 1 0 sin ( θ ) 0 cos ( θ )
W R a = 1 0 0 0 cos ( ϕ ) sin ( ϕ ) 0 sin ( ϕ ) cos ( ϕ )
W R B = cos ( θ ) cos ( ψ ) cos ( ψ ) sin ( θ ) sin ( ϕ ) cos ( ϕ ) sin ( ψ ) cos ( ψ ) cos ( ϕ ) sin ( θ ) + sin ( ψ ) sin ( ϕ ) cos ( θ ) sin ( ψ ) cos ( ψ ) cos ( ϕ ) + sin ( θ ) sin ( ψ ) sin ( ϕ ) cos ( ϕ ) sin ( θ ) sin ( ψ ) cos ( ψ ) sin ( ϕ ) sin ( θ ) cos ( θ ) sin ( ϕ ) cos ( θ ) cos ( ϕ )
Before presenting the movement equations, we establish the relation between velocities in W, ( ϕ ˙ , θ ˙ , ψ ˙ ) , and velocities in B, ( p , q , r ) , from transformation vectors:
W R a a R c c R B = s ( θ ) c ( θ ) s ( ϕ ) c ( θ ) c ( ϕ ) ,
W R a a R c = 0 c ( ϕ ) s ( ϕ ) ,
W R a = 1 0 0 ,
the rotational transform matrix is R r
R r = 1 0 s ( θ ) 0 c ( ϕ ) c ( θ ) s ( ϕ ) 0 s ( ϕ ) c ( θ ) c ( ϕ ) ,
then, we can define the angular velocity in the body, ω B , as the relation
ω B = p q r = R r ϕ ˙ θ ˙ ψ ˙ ,
by using a small angle approximation, we get
ϕ ˙ θ ˙ ψ ˙ = p + r cos ( ϕ ) tan ( θ ) + q sin ( ϕ ) tan ( θ ) q cos ( ϕ ) r sin ( ϕ ) r cos ( ϕ ) sec ( θ ) + q sin ( ϕ ) sec ( θ ) p q r .
Applying, Newton–Euler formulation, equations of motion are given by (1) and (2).
m v ˙ = F g + F d + F
I B ω ˙ B + ( ω B × I B ω B ) + M a = M B
In Equation (1), the acceleration of mass ( m v ˙ = m ( x ¨ y ¨ z ¨ ) T ) , depends on gravity force ( F g = ( 0 , 0 , m g ) T ) , drag forces ( F d = d i a g ( k 1 , k 2 , k 3 ) v T ) and the total thrust of the four rotors ( F = W R B [ 0 , 0 , u 1 ] T ) . In Equation (2), the angular acceleration of the inertia ( I B ω ˙ B ), the centripetal forces ( ( ω B × I B ω B ) ) and the aerodynamic forces ( M a = d i a g ( k 4 , k 5 , k 6 ) ω B 2 ), are equal to the external torque ( M B = ( u 2 , u 3 , u 4 ) T ). Substituting forces expressions and each moment into (1) y (2) we have the following translational and rotational dynamics of the QUAV: 1.7
x ¨ y ¨ z ¨ ϕ ¨ θ ¨ ψ ¨ = 1 m cos ( ψ ) sin ( θ ) cos ( ϕ ) + sin ( ϕ ) sin ( ψ ) u 1 k 1 m x ˙ 1 m sin ( ψ ) sin ( θ ) cos ( ϕ ) sin ( ϕ ) cos ( ψ ) u 1 k 2 m y ˙ 1 m ( cos ( ϕ ) cos ( θ ) ) u 1 g k 3 m z ˙ ( I y I z ) I x θ ˙ ψ ˙ k 4 I x ϕ ˙ 2 + 1 I x u 2 ( I z I x ) I y ϕ ˙ ψ ˙ k 5 I y θ ˙ 2 + 1 I y u 3 ( I x I y ) I z ϕ ˙ θ ˙ k 6 I z ψ ˙ 2 + 1 I z u 4 .

2.2. Strategy Control of Trajectory Tracking

In order for the QUAV to follow a predetermined path in three-dimensional space, the control of trajectory tracking is proposed as Figure 3, where we introduce the desired positions x d , y d , z d to the Translational and Altitude Controller, which computes the control signal u 1 and determines the desired angles ϕ d , θ d , which in turn are the references to the Attitude Controller. The Attitude Controller calculates the control signals u 2 , u 3 and u 4 for orientation dynamics.
Due to the nonlinear nature of QUAV system, a compensated PID and PD controller for trajectory tracking is proposed [30].

2.2.1. PD Controller

The dynamics shown in (3) can be represented as a second-order system, in the form
χ ¨ = f ( χ ) + g ( χ ) u ,
where f ( χ ) , in this work, it is a nonlinear function due to the drag forces of the QUAV, χ = [ χ , χ ˙ ] , g ( χ ) 0 is a known function u, is the control signal. Control law is designed as
u = 1 g ( χ ) f ( χ ) + K T E + χ ¨ d ,
where, χ ¨ d is the second derivative of the desired trajectory, E = [ e e ˙ ] T , with e = χ d χ substituting (5) in (4), the closed-loop dynamics of the system are
e ¨ + k p e + k d e ˙ = 0 ,
  • Translational and Altitude Control
The altitude dynamics shown in (3), can be represented as (4),
z ¨ = 1 m ( cos ϕ cos θ ) u 1 g k 3 m z ˙ ,
Thus, if the control signal is designed as in (5) we get
u 1 = m cos θ cos ϕ k 3 m z ˙ + K z T E z + z ¨ d + g ,
Equation (7) is constrained ( π / 2 < ϕ < π / 2 ( and ( π / 2 < θ < π / 2 ) .
For translation dynamic in the axis X, a virtual control signal is selected as μ x = cos ϕ sin θ cos ψ + sin ϕ sin ψ , then becomes as
m x ¨ = f ( x ) + μ x u 1 ,
and the control signal is chosen as in (5)
μ x = m u 1 k 1 m x ˙ + K x T E x + x ¨ d .
Similarly, for the dynamic on the Y axis, μ y = cos ϕ sin θ sin ψ sin ϕ cos ψ , we get
m y ¨ = k 2 m y ˙ + μ y u 1 ,
with the control signal as form as (5), therefore
μ y = m u 1 k 2 m y ˙ + K y T E y + y ¨ d .
Equations (9) and (11) are true for u 1 > 0 , which is physically correct because u 1 represents the lift force generated by the rotors of the vehicle.
Virtual control signals μ x y μ y allow to calculate desired angles for attitude controller roll, ϕ d y en pitch, θ d :
cos ( ϕ ) sin ( θ ) sin ( ϕ ) = cos ( ψ ) sin ( ψ ) sin ( ψ ) cos ( ψ ) μ x μ y
ϕ d = a s i n ( sin ( ψ ) μ x cos ( ψ ) μ y ) θ d = a s i n cos ( ψ ) μ x + sin ( ψ ) μ y cos ( ϕ ) .
  • Attitude Controller
For the orientation dynamics, they can be represented as (4) and the control signal can be designed as in (5).
For the movement of roll, we have the control signal u 2 as:
u 2 = I x k 4 I x ϕ ˙ 2 ( I y I z ) I x θ ˙ ψ ˙ + K ϕ T E ϕ + ϕ ¨ d ,
For the movement of pitch, we have the control signal u 3 as:
u 3 = I y k 5 I y θ ˙ 2 ( I z I x ) I y ϕ ˙ ψ ˙ + K θ T E θ + θ ¨ d ,
Finally, for the movement of yaw, we have the control signal u 4 as:
u 4 = I z k 6 I z ψ ˙ 2 ( I x I y ) I z ϕ ˙ θ ˙ + K ψ T E ψ + ψ ¨ d .

2.2.2. PID Controller

The PID controller is designed in the same way as the PD controller. The difference lies in the addition of a variable in the error E and in the gain vector K . They both have the same structure. We recall control law in (5)
u = 1 g ( χ ) f ( χ ) + K T E + χ ¨ d ,
where, χ ¨ d is the second derivative of the desired trajectory. Now, E = [ e e e ˙ ] T , with e = χ d χ and the closed-loop dynamics of the system are
e ¨ + k p e + k i e + k d e ˙ = 0 .

3. Optimization of Compensated Controllers

Figure 4, shows the implemented scheme for the controller parameterization, where each of the metaheuristic algorithms is evaluated. Initially, the population of the algorithm is generated and evaluated. The algorithm delivers a set of gains, which are applied to the designed controller, which in turn calculates the control signals for the QUAV. Then, the dynamic performance of each of the X , Y and Z axes is measured to calculate the error between the desired dynamics and the real one. This cycle is repeated until the number of iterations initially determined is reached or until the error or cost function reaches a set value.
To obtain the parameters of each of the six UAV dynamics, through the evolutionary algorithms, the population to optimize the PD controller is:
P = { k p x k d x k p y k d y k p z k d z k p ϕ k d ϕ k p θ k d θ k p ψ k d ψ } ,
and the population to optimize the PID controller is:
P = { k p x k i x k d x k p y k i y k d y k p z k i z k d z k p ϕ k i ϕ k d ϕ k p θ k i θ k d θ k p ψ k i ψ k d ψ } ,
with the search space for each individual S = [ 0 , 10 ] , chosen that way to restrict the values of the control signals due to the physical limitations of the actuators when performing platform experiments. The cost function calculated using the root mean square error:
R M S E = 1 N i = 1 G K = 0 N ( χ d i ( k ) χ i ( k ) ) 2 ,
where N is the size of χ and G, represents each of the dynamics x , y , z , ϕ , θ , ψ of QUAV.

4. Results and Discussion

We validated a dynamic model through simulations that verified the behavior of coupled dynamics and no lineality. Calculations were performed in a Mac OS Big Sur (Intel core i9, RAM 24 GB, and 1 TB hard disk), using MATLAB 2015a (MathWorks) for each algorithm (PSO, GWO, HGS, LSHADE, SPACMA, MPA, SMA, WOA). The solution space for each parameter to optimize (total 12, Equation (16)) was constrained to [0,10]. We performed simulations for 20, 30, and 40 individuals using 20 iterations during 30 independent runs for PD controllers. We ran simulations with 80 and 100 individuals for PID controllers using 40 iterations and 30 independent runs. The evaluation performance of the algorithms is reported through statistics that considers four variables to check the dispersion or variability of the solutions, which are the best, the mean, the standard deviation and the worst. In the following tables, the best results are presented in bold, and the purpose is to quickly identify the best performing controller as well as its gains.

4.1. PD Controller

Table 1 shows the RMSE statistics for the simulation with 20 individuals, 20 evolutions and 30 repetitions of the eight algorithms under test. The HGS algorithm is the one that obtains the best value R M S E = 0.037263535506379 , the MPA algorithm is the one that obtains the best average, standard deviation and worst values. Figure 5a show the RMSE during the 20 iterations, the three best values are HGS, MPA and PSO. In the box plot, the lowest variability is obtained by GWO and MPA and the highest variability of the RMSE value is in PSO algorithm. The 12 parameters identified by each algorithm are shown in Table 2, where the HGS parameters are the best for obtaining a lower RMSE.
Table 3 contains the RMSE statistics for the simulation with 30 individuals, 20 iterations and 30 repetitions. The algorithm that obtains the best performance is again the HGS with a R M S E = 0.03725093743996 ; for this case, the GWO algorithm gets the best average, standard deviation and worst values. Figure 5b show the RMSE during the 20 iterations; the three best values are HGS, PSO and MPA. In the box plot, the lowest variability is obtained by GWO, HGS, MPA y SMA and the highest variability of the RMSE value is obtained by PSO algorithm. The 12 parameters identified by each algorithm are shown in Table 4. The HGS parameters are the best for getting the lowest RMSE.
Table 5 contains the RMSE statistics for the simulation of 40 individuals, 20 evolutions and 30 runs with the corresponding algorithms. The algorithm that obtains the best performance is the HGS with a R M S E = 0.037247252379126 . The MSA algorithm gets the best average, standard deviation, and worst values for this case. The 12 parameters identified by each algorithm are shown in Table 6. In Figure 5c, the box plot shows the lowest variability is obtained by GWO, HGS, MPA and SMA. The highest variability of the RMSE value is obtained by PSO algorithm.
We evaluated the performance of optimized parameters obtained (Table 2) for all six dynamics, (x, y, z, ϕ , θ , ψ ) and algorithms (Figure 6, Figure 7, Figure 8, Figure 9, Figure 10 and Figure 11) at 20 iterations with 20 individuals. For translational dynamics (x and y), the desired trajectory is trapezoidal and for altitude (z) and yaw ( ψ ) dynamics is a ramp. The sharp effect observed in the Z axis of Figure 8 is due to the compensation between the force of gravity and the control signal. Negative values are associated with the instant in which the value of gravity is more significant than the control signal. Please note that this effect is only visible in the simulation; in real life, this effect is observed as a time delay until the force of gravity is countered by the control signal. The best trajectory is determined by the minimal value of cost function achieved by HGS as shown in Table 1.
The highest cost function value will define an acceptable performance for all dynamics. Here, the algorithm LSPACMA reached the highest value (0.040248443990318). As we can see, HGS algorithms performed best with a minimum square error (RMSE), which is the lowest obtained for all algorithms. LSPACMA has the largest error in most of the dynamics performance.
Figure 9 and Figure 10 show the angles ( ϕ and θ ) of orientation of the QUAV. Dotted lines show the desired angles calculated as described in Section 2.2.1. Simulations show that ϕ angles are coupled with the axis Y and rotational movements of θ are coupled with axis X. When a change in direction is necessary, the controls are robust enough to generate changes in the orientation in response to the desired angles.
Figure 12 shows the control signals calculated by (7), (13)–(15). It is noted that the controllers reach their steady states during the flight. Signals u 2 and u 3 respond to changes in direction on the desired path and u 1 is affected and responds to small variations in altitude. The dynamic of ψ converges in minimum time and consequently, the control signal u 4 is kept at a small value.
In Figure 13, we can see that the trajectory tracking in XYZ space, evaluating the optimized parameters, is successfully developed. With the obtained parameters, we consider a different circuit. The desired trajectory is sinusoidal for translational dynamics (x and y), and altitude (z) is a step. We found that the QUAV can follow it, as shown in Figure 14.

4.2. PID Controller

From the previous section, the four algorithms with the best fitness during tuning of the PD controls were GWO, HGS, MPA and SMA; these are taken for the PID control. Eighteen parameters were identified (Equation (17)), so it was necessary to increase the number of individuals. Here, two simulations are reported, one with 80 and one with 100 individuals. The number of evolutions and repetitions is 40 and 30, respectively.
Table 7 shows the RMSE statistics for the simulation with 80 individuals, 40 evolutions and 30 repetitions of the four algorithms under test. The HGS algorithm obtained the best value ( R M S E = 0.032594329329481 ). We also show the best values for all algorithms for the mean, standard deviation, and worst. Figure 15a shows the RMSE during the 40 iterations. The three best values are HGS, MPA and GWO. In the box plot, the lowest variability is obtained by GWO, HGS, and SMA. The highest variability of the RMSE value is in MPA algorithm. The 18 parameters identified by each algorithm are shown in Table 8, where the HGS parameters are the best for obtaining a lower RMSE
Table 9 contains the RMSE statistics for the simulation with 100 individuals, 40 iterations and 30 repetitions. The algorithm that obtains the best performance is the HGS with a R M S E = 0.032594309723623 . The GWO algorithm obtains the best average and standard deviation for this case. The MPA obtains the worst values. Figure 15b show the RMSE during the 40 iterations. The three best values are HGS, GWO and MPA. GWO, HGS, and SMA obtain the lowest variability in the box plot. This graph shows a smaller dispersion of the optimization solutions compared to the simulation with 80 individuals. The 18 parameters identified by each algorithm are shown in Table 10. The HGS parameters are the best for obtaining the lowest RMSE. The 18 parameters identified by each algorithm are shown in Table 8, where the HGS parameters are the best for obtaining a lower RMSE.
We evaluated the performance of optimized parameters obtained (Table 10) for all six dynamics, (x, y, z, ϕ , θ , ψ ) and algorithms (Figure 16, Figure 17, Figure 18, Figure 19, Figure 20 and Figure 21) at 40 iterations with 100 individuals. The desired trajectories are the same as for the PD controller experiment. The best trajectory is determined by the minimal value of cost function achieved by HGS as shown in Table 9. The similarity of the performance of the six dynamics with the PD controller implementation can be noted, even when the number of parameters to optimize is larger and the number of individuals is bigger.
Figure 22 shows that the signals calculated by the PID controllers stabilize the dynamics. The control signals are very similar to Figure 12 since the desired path is the same. In the same way, as in the PD control, signals u 2 and u 3 respond to changes in direction on the desired path and u 1 is affected and responds to small variations in altitude. The dynamic of ψ converges in minimum time and consequently, the control signal u 4 is kept at a small value.
Finally, Figure 23 shows the successful trajectory tracking in XYZ space, evaluating the optimized parameters of PID controller using HGS algorithm with 100 individuals. With the same optimized parameters, we consider a different path. The desired trajectory is a sinewave for translational dynamics (x and y), and altitude (z) is a step. We found that the QUAV can perform it effectively, as shown in Figure 24.

5. Conclusions

In this paper, we have addressed a long-standing problem related to the tuning of compensated PD and PID controllers for path tracking of the QUAV vehicle modeled with six different dynamics. We compared eight metaheuristic algorithms ( PSO, GWO, HGS, LSHADE, LSPACMA, MPA, SMA and WOA), finding optimal parameters to select the most accurate algorithm. The HGS algorithm was the most suitable of the eight evaluated, as it obtained the lowest RMSE for the compensated PD and PID controls. The trajectory used was a square with an elevation change, with 40 individuals and 20 evolutions for the compensated PD control, RMSE = 0.03724725237912, and the number of optimized parameters is twelve. For the compensated PID control with 100 individuals and 40 evolutions, the RMSE = 0.032594309723623, the number of optimized parameters is eighteen. For the case of compensated PD control, the following best algorithms are GWO, MPA and SMA, with an RMSE close to HGS. This case corresponds to when 40 individuals are used, and for the case of compensated PID control, only the HGS, GWO, MPA and SMA were simulated. On the other hand, the algorithm LSPACMA was the most limited in optimization scope. We also found those optimized gains for the square path could take the QUAV to a different trajectory like the sinewave and step paths, resulting in the most suitable tuning for the compensated PD and PID controllers for QUAV trajectory tracking. This modeling approach is now ready and suited for implementation at an experimental level.

Author Contributions

Conceptualization, N.S.Z.-P., N.H.-R. and J.C.S.-T.-M.; methodology, N.S.Z.-P., N.H.-R. and J.C.S.-T.-M.; software, N.S.Z.-P. and N.H.-R.; validation, N.S.Z.-P., N.H.-R. and I.B.-V.; formal analysis, N.S.Z.-P., N.H.-R. and J.C.S.-T.-M.; investigation, N.S.Z.-P., N.H.-R. and J.C.S.-T.-M.; resources, J.M.-M. and J.C.S.-T.-M.; data curation, N.S.Z.-P.; writing—original draft preparation, N.S.Z.-P. and I.B.-V.; writing—review and editing, N.S.Z.-P. and I.B.-V.; visualization, N.S.Z.-P. and I.B.-V.; supervision, J.M.-M. and J.C.S.-T.-M.; project administration, J.M.-M. and J.C.S.-T.-M.; funding acquisition, J.M.-M. and J.C.S.-T.-M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Council for Science and Technology (CONACYT) with project number CB- 2017-2018-A1-S-43008. Nadia Samantha Zuñiga Peña was supported by CONACYT grant number 785376.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Desired trajectories and dynamic performance data are publicly available at https://github.com/NadiaZunigaPena/Metaheuristics-enabled-path-tracking-Optimization-in-Unmanned-Aerial-Vehicles, accessed on 26 October 2021.

Conflicts of Interest

The authors declare that they have no known competing financial interest or personal relationships that could have appeared to influence the work reported in this paper.

Nomenclature

SymbolDescription
x , y , z Position coordinates respect to World frame
x ˙ , y ˙ , z ˙ Linear velocity respect to World frame
x ¨ , y ¨ , z ¨ Linear acceleration respect to World frame
ϕ , θ , ψ Attitude coordinates respect to World frame
ϕ ˙ , θ ˙ , ψ ˙ Angular velocity respect to World frame
ϕ ¨ , θ ¨ , ψ ¨ Angular acceleration respect to World frame
W R B Rotation matrix for Body frame to World frame
p , q , r Angular velocity respect in Body frame
p ˙ , q ˙ , r ˙ Angular acceleration respect in World frame
gGravity
mMass of QUAV
M a Moments resulting from aerodynamic frictions
M b Moments generated by motors respect to mass center of vehicle.
I B Matrix of inertia moments
F B Vector of thrust
F d Vector of drag forces
F g Vector of forces due to gravity
k 1 , 2 , . . . , 6 Drag Coefficients

References

  1. Shokirov, R.; Abdujabarov, N.; Jonibek, T.; Saytov, K.; Bobomurodov, S. Prospects of the Development of Unmanned Aerial Vehicles (UAVs). Tech. Sci. Innov. 2020, 3, 4–8. [Google Scholar] [CrossRef]
  2. Valavanis, K.; Vachtsevanos, G. Handbook of Unmanned Aerial Vehicles, 1st ed.; Springer: Dordrecht, The Netherlands, 2015; pp. 43–57. [Google Scholar]
  3. Bi, H.; Qi, G.; Hu, J. Modeling and Analysis of Chaos and Bifurcations for the Attitude System of a Quadrotor Unmanned Aerial Vehicle. Complexity 2019, 2019, 6313925. [Google Scholar] [CrossRef]
  4. Ziegler, J.G.; Nichols, N.B.; Rochester, N.Y. Optimum settings for automatic controllers. ASME 1942, 64, 759–768. [Google Scholar] [CrossRef]
  5. Åström, K.J.; Hägglund, T. Revisiting the Ziegler-Nichols step response method for PID control. J. Process Control 2004, 14, 635–650. [Google Scholar] [CrossRef]
  6. Allu, N.; Toding, A. Tuning with Ziegler Nichols Method for Design PID Controller at Rotate Speed DC Motor. IOP Conf. Ser. Mater. Sci. Eng 2020, 806, 012046. [Google Scholar] [CrossRef]
  7. Liang, H.; Sang, Z.K.; Wu, Y.Z.; Zhang, Y.H.; Zhao, R. High Precision Temperature Control Performance of a PID Neural Network-Controlled Heater under Complex Outdoor Conditions. Appl. Therm. Eng. 2021, 195, 117234. [Google Scholar] [CrossRef]
  8. Yu, X.; Li, C.; Zhou, J. A constrained differential evolution algorithm to solve UAV path planning in disaster scenarios. Knowl.-Based Syst. 2020, 204, 106209. [Google Scholar] [CrossRef]
  9. Qu, C.; Gai, W.; Zhang, J.; Zhong, M. A Novel Hybrid Grey Wolf Optimizer Algorithm for Unmanned Aerial Vehicle (UAV) Path Planning. Knowl.-Based Syst. 2020, 194, 105530. [Google Scholar] [CrossRef]
  10. Kramer, O. Genetic Algorithm Essentials; Springer International Publishing AG: Berlin/Heidelberg, Germany, 2017; Volume 679, pp. 11–20. [Google Scholar]
  11. Hernandez-Romero, N.; Medina-Marin, J.; Seck-Tuoh-Mora, J.C. Introducción a Matlab para Resolver Problemas de Ingeniería Aplicando Algoritmos Genéticos; Instituto de Ciencias Básicas e Ingeniería, Universidad Autónoma del Estado de Hidalgo: Pachuca de Soto, Mexico, 2012; pp. 41–54. [Google Scholar]
  12. Subhadip, S. Genetic Algorithm: An Approach for Optimization ( Using MATLAB ). Int. J. Latest Trends Eng. Technol. (IJLTET) 2014, 3, 261–267. [Google Scholar]
  13. Tanabe, R.; Fukunaga, A. Success-history based parameter adaptation for Differential Evolution. In Proceedings of the 2013 IEEE Congress on Evolutionary Computation, CEC 2013, Cancun, Mexico, 20–23 June 2013; Volume 3, pp. 71–78. [Google Scholar]
  14. Valadi, J.; Siarry, P. Applications of Metaheuristics in Process Engineering, 1st ed.; Springer International Publishing: Cham, Switzerland; Paris, France, 2014; pp. 1–38. [Google Scholar]
  15. Sarker, R.; Kamruzzaman, J.; Newton, C. Evolutionary optimization (EvOpt): A brief review and analysis. Int. J. Comput. Intell. Appl. 2003, 4, 311–330. [Google Scholar] [CrossRef]
  16. Kumar, K.; Davim, J.P. Optimization Using Evolutionary Algorithms and Metaheuristics: Applications in Engineering; CRC Press: Boca Raton, FL, USA, 2020. [Google Scholar]
  17. Ustunkok, T.; Karakaya, M. Effect of PSO Tuned P, PD, and PID Controllers on the Stability of a Quadrotor. In Proceedings of the 2019 1st International Informatics and Software Engineering Conference (UBMYK), Ankara, Turkey, 6–7 November 2019; Volume 4, pp. 1–5. [Google Scholar]
  18. Erkol, O. Attitude controller optimization of four-rotor unmanned air vehicle. Int. J. Micro Air Veh. 2017, 10, 42–49. [Google Scholar] [CrossRef]
  19. Sheta, A.; Braik, M.; Maddi, D.R.; Mahdy, A.; Aljahdali, S.; Turabieh, H. Optimization of Pid Controller to Stabilize Quadcopter Movements Using Meta-Heuristic Search Algorithms. Appl. Sci. 2021, 11, 6492. [Google Scholar] [CrossRef]
  20. Talbi, E. Metaheuristics: From Design to Implementation, 1st ed.; Wiley: Hoboken, NJ, USA, 2009; pp. 247–254. [Google Scholar]
  21. Mirjalili, S.; Mirjalili, S.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef] [Green Version]
  22. Yang, Y.; Chen, H.; Heidari, A.A.; Gandomi, A.H. Hunger games search: Visions, conception, implementation, deep analysis, perspectives, and towards performance shifts. Expert Syst. Appl. 2021, 177, 114864. [Google Scholar] [CrossRef]
  23. Tanabe, R.; Fukunaga, A.S. Improving the Search Performance of SHADE Using Linear Population Size Reduction. In Proceedings of the 2014 IEEE Congress on Evolutionary Computation (CEC), Beijing, China, 6–11 July 2014; pp. 1658–1665. [Google Scholar]
  24. Piotrowski, A.P. L-SHADE Optimization Algorithms with Population-Wide Inertia. Inf. Sci. 2018, 468, 117–141. [Google Scholar] [CrossRef]
  25. Mohamed, A.W.; Hadi, A.A.; Fattouh, A.M.; Jambi, K.M. LSHADE with Semi-Parameter Adaptation Hybrid with CMA-ES for Solving CEC 2017 Benchmark Problems. In Proceedings of the 2017 IEEE Congress on Evolutionary Computation (CEC), Donostia, Spain, 5–8 June 2017; pp. 145–152. [Google Scholar]
  26. Faramarzi, A.; Heidarinejad, M.; Mirjalili, S.; Gandomi, A.H. Marine Predators Algorithm: A Nature-Inspired Metaheuristic. Expert Syst. Appl. 2020, 152, 113377. [Google Scholar] [CrossRef]
  27. Li, S.; Chen, H.; Wang, M.; Heidari, A.A.; Mirjalili, S. Slime mould algorithm: A new method for stochastic optimization. Future Gener. Comput. Syst. 2020, 111, 300–323. [Google Scholar] [CrossRef]
  28. Mirjalili, S.; Lewis, A. The Whale Optimization Algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  29. Wolpert, D.H.; Macready, W.G. No free lunch theorems for optimization. IEEE Trans. Evol. Comput. 1997, 1, 67–82. [Google Scholar] [CrossRef] [Green Version]
  30. Razinkova, A.; Kang, B.; Cho, H.; Jeon, H. Constant Altitude Flight Control for Quadrotor UAVs with Dynamic Feedforward Compensation. Int. J. Fuzzy Log. Intell. Syst. 2014, 14, 26–33. [Google Scholar] [CrossRef] [Green Version]
Figure 1. The QUAV and the reference frames.
Figure 1. The QUAV and the reference frames.
Applsci 12 00099 g001
Figure 2. Order of rotations from W to B.
Figure 2. Order of rotations from W to B.
Applsci 12 00099 g002
Figure 3. Proposed control structure to trajectory tracking.
Figure 3. Proposed control structure to trajectory tracking.
Applsci 12 00099 g003
Figure 4. Flowchart: controller parameter tuning process.
Figure 4. Flowchart: controller parameter tuning process.
Applsci 12 00099 g004
Figure 5. Convergence curves of RMSE and boxplot distribution of the different algorithms, iterations and individuals. (a) 20 individuals, 20 iterations; (b) 30 individuals, 20 iterations; (c) 40 individuals, 20 iterations.
Figure 5. Convergence curves of RMSE and boxplot distribution of the different algorithms, iterations and individuals. (a) 20 individuals, 20 iterations; (b) 30 individuals, 20 iterations; (c) 40 individuals, 20 iterations.
Applsci 12 00099 g005
Figure 6. Comparison of tracking performance in X–axis of the different algorithms evaluating parameters obtained with 20 individuals.
Figure 6. Comparison of tracking performance in X–axis of the different algorithms evaluating parameters obtained with 20 individuals.
Applsci 12 00099 g006
Figure 7. Comparison of tracking performance in Y–axis of the different algorithms evaluating parameters obtained with 20 individuals.
Figure 7. Comparison of tracking performance in Y–axis of the different algorithms evaluating parameters obtained with 20 individuals.
Applsci 12 00099 g007
Figure 8. Comparison of tracking performance in Z–axis of the different algorithms evaluating parameters obtained with 20 individuals.
Figure 8. Comparison of tracking performance in Z–axis of the different algorithms evaluating parameters obtained with 20 individuals.
Applsci 12 00099 g008
Figure 9. Comparison of tracking performance in ϕ –angle of the different algorithms evaluating parameters obtained with 20 individuals.
Figure 9. Comparison of tracking performance in ϕ –angle of the different algorithms evaluating parameters obtained with 20 individuals.
Applsci 12 00099 g009
Figure 10. Comparison of tracking performance in θ –angle of the different algorithms evaluating the parameters obtained with 20 individuals.
Figure 10. Comparison of tracking performance in θ –angle of the different algorithms evaluating the parameters obtained with 20 individuals.
Applsci 12 00099 g010
Figure 11. Comparison of tracking performance in ψ –angle of the different algorithms evaluating the parameters obtained with 20 individuals.
Figure 11. Comparison of tracking performance in ψ –angle of the different algorithms evaluating the parameters obtained with 20 individuals.
Applsci 12 00099 g011
Figure 12. Signals ( u 1 , u 2 , u 3 , u 4 ), calculated by PD control optimized with 100 individuals.
Figure 12. Signals ( u 1 , u 2 , u 3 , u 4 ), calculated by PD control optimized with 100 individuals.
Applsci 12 00099 g012
Figure 13. Tracking performance in three-dimensional space with optimized parameters using HGS algorithm.
Figure 13. Tracking performance in three-dimensional space with optimized parameters using HGS algorithm.
Applsci 12 00099 g013
Figure 14. Tracking performance in three–dimensional space changing desired trajectory.
Figure 14. Tracking performance in three–dimensional space changing desired trajectory.
Applsci 12 00099 g014
Figure 15. Convergence curves of RMSE and boxplot distribution of the different algorithms, 40 iterations and different individuals. (a) 80 individuals, 40 iterations; (b) 100 individuals, 40 iterations.
Figure 15. Convergence curves of RMSE and boxplot distribution of the different algorithms, 40 iterations and different individuals. (a) 80 individuals, 40 iterations; (b) 100 individuals, 40 iterations.
Applsci 12 00099 g015
Figure 16. Comparison of tracking performance in X–axis of the different algorithms evaluating parameters obtained with 100 individuals.
Figure 16. Comparison of tracking performance in X–axis of the different algorithms evaluating parameters obtained with 100 individuals.
Applsci 12 00099 g016
Figure 17. Comparison of tracking performance in Y–axis of the different algorithms evaluating parameters obtained with 100 individuals.
Figure 17. Comparison of tracking performance in Y–axis of the different algorithms evaluating parameters obtained with 100 individuals.
Applsci 12 00099 g017
Figure 18. Comparison of tracking performance in Z–axis of the different algorithms evaluating parameters obtained with 100 individuals.
Figure 18. Comparison of tracking performance in Z–axis of the different algorithms evaluating parameters obtained with 100 individuals.
Applsci 12 00099 g018
Figure 19. Comparison of tracking performance in ϕ –angle of the different algorithms evaluating parameters obtained with 100 individuals.
Figure 19. Comparison of tracking performance in ϕ –angle of the different algorithms evaluating parameters obtained with 100 individuals.
Applsci 12 00099 g019
Figure 20. Comparison of tracking performance in θ –angle of the different algorithms evaluating the parameters obtained with 100 individuals.
Figure 20. Comparison of tracking performance in θ –angle of the different algorithms evaluating the parameters obtained with 100 individuals.
Applsci 12 00099 g020
Figure 21. Comparison of tracking performance in ψ –angle of the different algorithms evaluating the parameters obtained with 100 individuals.
Figure 21. Comparison of tracking performance in ψ –angle of the different algorithms evaluating the parameters obtained with 100 individuals.
Applsci 12 00099 g021
Figure 22. Signal response ( u 1 , u 2 , u 3 , u 4 ) from PID controller optimized with 100 individuals.
Figure 22. Signal response ( u 1 , u 2 , u 3 , u 4 ) from PID controller optimized with 100 individuals.
Applsci 12 00099 g022
Figure 23. Tracking performance in three–dimensional space with optimized parameters of PID controller using HGS algorithm with 100 individuals.
Figure 23. Tracking performance in three–dimensional space with optimized parameters of PID controller using HGS algorithm with 100 individuals.
Applsci 12 00099 g023
Figure 24. Tracking performance in three–dimensional space changing desired trajectory. The optimized parameters of PID controller obtained and HGS algorithm with 100 individuals.
Figure 24. Tracking performance in three–dimensional space changing desired trajectory. The optimized parameters of PID controller obtained and HGS algorithm with 100 individuals.
Applsci 12 00099 g024
Table 1. Experimental result of RMSE with 20 individuals, 20 evolutions and 30 repetitions.
Table 1. Experimental result of RMSE with 20 individuals, 20 evolutions and 30 repetitions.
StatisticsPSOGWOHGSLSHADELSPACMAMPASMAWOA
Best0.0373961681128900.0373629558560190.0372635355063790.0389780587667570.0397411053151370.0372842398918130.0378350611210720.037370940741738
Mean0.0543763572289000.0439543232775390.0453799576565000.0525829895498090.0509220029508390.0389786461549160.0514686288275860.068998262466992
SD0.0181932440893080.0188273540371260.0128052369303670.0140382864663830.0080422961730430.0018856013760630.0179246325275720.103765679125065
Worst0.0747923362257800.1400698242318600.0745270710127580.0913255324182410.0794822106302740.0441055733386560.1072843492612790.615170818395657
Table 2. The parameter estimation of metaheuristic algorithms with 20 individuals, 20 evolutions and 30 repetitions.
Table 2. The parameter estimation of metaheuristic algorithms with 20 individuals, 20 evolutions and 30 repetitions.
ParametersPSOGWOHGSLSHADELSPACMAMPASMAWOA
k p x 5.4089362036138875.2137817929606485.4121772737554315.7152311752285596.6201225252850445.4819789266989875.7114368594337935.437501487917403
k d x 10.00000000000000010.00000000000000010.0000000000000009.3257168545871149.9936418536449589.99986302480583210.00000000000000010.000000000000000
k p y 5.0965834440106904.8914633090293165.3688886123844974.8777345692296753.7724354881314994.8967938649008094.5483121531974136.315113281984011
k d y 10.00000000000000010.00000000000000010.0000000000000009.8000865463160589.67833878797474510.00000000000000010.00000000000000010.000000000000000
k p z 10.00000000000000010.0000000000000009.9501289061956929.5907180620021786.7715552645873599.9585557773394989.77197801565829310.000000000000000
k d z 8.2853931390944248.26015960394402210.0000000000000009.7221047674528589.10162217373757110.0000000000000005.35125940183842110.000000000000000
k p ϕ 7.0585408955560904.8223811139080094.7099026654049811.4270504240258549.9629563309441616.5461597567773942.24612881742276110.000000000000000
k d ϕ 4.9430261756841628.1942158666467515.0681745911755252.1237839547991483.1862484498184439.9058109570960764.86062493251517110.000000000000000
k p θ 4.8443065190029864.7841384013769384.8211751767212794.8955254453510295.2470328868546114.9160815551717915.0471943698375324.711197637806473
k d θ 000.0000353399097760.0002444625229900.0603725576254670.0001273623859100.0000091054160330
k p ψ 5.3553721583011544.0695049033200260.0053340061480153.3053326118225695.4767714143635727.7736199834931550.94974665909216910.000000000000000
k d ψ 3.8088601617141600.1751962330253890.0431126818530790.3171322707945827.8910627631736459.9762066652703220.3618367476704478.120054392303674
Table 3. Experimental result of MSE with 30 individuals, 20 evolutions and 30 repetitions.
Table 3. Experimental result of MSE with 30 individuals, 20 evolutions and 30 repetitions.
StatisticsPSOGWOHGSLSHADELSPACMAMPASMAWOA
Best0.0372986896997190.0373863641408260.0372509374399610.0387033829132850.0393916010575740.0373056997383800.0376100744348480.037526810582112
Median0.0492928296410840.0382319264525840.1814685207730430.0480983195550920.0484474702407440.0384393585775060.0406007538870360.106439604511052
SD0.0169227026081940.0009177452199890.4800877523121570.0086713084161830.0077497114915180.0013681173845850.0064584846035160.164512311240661
Worst0.0745973793994390.0409284761034771.9728251267877480.0774067658265700.0787832021151480.0434101680701170.0668527699771000.608263592411619
Table 4. The parameter estimation of metaheuristic algorithms with 30 individuals, 20 evolutions and 30 repetitions.
Table 4. The parameter estimation of metaheuristic algorithms with 30 individuals, 20 evolutions and 30 repetitions.
ParametersPSOGWOHGSLSHADELSPACMAMPASMAWOA
k p x 5.3214804044914865.3161218486785945.5061781529026205.5730404921187546.4568950216605555.5972886731727705.3578301589218985.985862339317787
k d x 10.00000000000000010.00000000000000010.0000000000000009.7813983887836549.8385170002804449.99948000282327210.00000000000000010.000000000000000
k p y 5.3603620637493485.0225746365520785.5758961690727497.0450667265220216.3737781103234275.7776799466222015.4927171682841715.831980752133919
k d y 10.00000000000000010.00000000000000010.0000000000000009.7326036525254059.44127678054565310.00000000000000010.00000000000000010.000000000000000
k p z 10.0000000000000009.12739327944068710.0000000000000008.6404715899657248.36285678474154210.0000000000000009.98216696993483410.000000000000000
k d z 9.4673139526573858.84693943507703310.0000000000000008.4194824081663519.8499671649717449.9583036502804196.63623046438692710.000000000000000
k p ϕ 6.8140634382722023.2280976950826244.5416396048905066.8634817459718768.7362179158156909.84739302466228710.0000000000000005.796906949590673
k d ϕ 5.8749955128220948.2035473038751497.1588723439378485.4355272964563584.7364156208804519.9946821173380735.06766169950441210.000000000000000
k p θ 4.8194324445003084.7742135653043944.8619968864934115.0665110112578964.5083834342449664.9005042503745754.6978104736949744.624341847012862
k d θ 0000.0210535554956210.012780497660689000
k p ψ 6.7812393597992830.9617918426572230.8144809876968786.9726156360348673.9648769074912539.8756965451635656.7845896972870034.717551680873766
k d ψ 6.5358492747942082.4505150489815526.3537643749693301.6910085814440798.6320315918901709.95088788889701104.594521890201812
Table 5. Experimental result of RMSE with 40 individuals, 20 evolutions and 30 repetitions.
Table 5. Experimental result of RMSE with 40 individuals, 20 evolutions and 30 repetitions.
StatisticsPSOGWOHGSLSHADELSPACMAMPASMAWOA
Best0.0372553735334880.0372660150648950.0372472523791260.0393943035482090.0388309212346190.0372565926119990.0376323108444080.037353819712401
Mean0.0455252830513020.0416017972096790.0662219441305880.0435493154022960.0454557851934840.0381507105923820.0393752419400740.043928558596090
SD0.0120643906083930.0106398440560840.1542659727010730.0031147291936490.0057680925691690.0011526411671110.0021765787721370.005084363577577
Worst0.0743921223351530.0841544555628050.8829389526725540.0517048894779730.0627671211125130.0432188627368040.0459098055732450.059239414200638
Table 6. The parameter estimation of metaheuristic algorithms with 40 individuals, 20 evolutions and 30 repetitions.
Table 6. The parameter estimation of metaheuristic algorithms with 40 individuals, 20 evolutions and 30 repetitions.
ParametersPSOGWOHGSLSHADELSPACMAMPASMAWOA
k p x 5.3877759219561805.3552840091475655.3814038590433135.5133378916039765.2347326466398565.4259155235327094.9659029297444955.821726954392787
k d x 10.00000000000000010.00000000000000010.0000000000000009.9337465393833399.73304235785192910.00000000000000010.00000000000000010.000000000000000
k p y 5.5031694485304155.1576525332951965.3858427056916017.6304137117768605.0665853151201565.4310852597513106.2318502418566805.339150052042956
k d y 10.00000000000000010.00000000000000010.0000000000000009.1125750742255449.6015635971148659.99980520332454710.00000000000000010.000000000000000
k p z 10.00000000000000010.00000000000000010.0000000000000008.4520408125428018.27602562394606910.0000000000000009.75783699605524510.000000000000000
k d z 10.00000000000000010.0000000000000009.9999377793267007.8570067373541428.5332838890780219.9899244541949049.97998549633440610.000000000000000
k p ϕ 5.5094356118679586.3026274449141166.3869942219188017.9288493977965947.4731509988780308.0095737664975424.55871810420401910.000000000000000
k d ϕ 9.4320352265535298.6363351892889809.7889078447698388.6284084267702279.5972130640624269.6783654363955641.59395652167967110.000000000000000
k p θ 4.7949239965821544.9106740655574974.8260144746629185.0754588006226204.6304419016884644.8232273208819634.7539621892658324.763044802438290
k d θ 0000.0080176858791730.0277655596302360.00000351862480900
k p ψ 7.5116330829294683.0181925750716551.7663282722771261.9034343924771818.5392082966369069.9984712917681769.8142189905265239.362558661978090
k p ψ 7.9631228602971103.3603337061771010.1917153600932524.4411159123905266.0586512606090028.9203975980716313.4007233953953848.585227416173138
Table 7. Experimental result of RMSE with 80 individuals, 40 evolutions and 30 repetitions.
Table 7. Experimental result of RMSE with 80 individuals, 40 evolutions and 30 repetitions.
StatisticsGWOHGSMPASMA
Best0.0329522556276130.0325943293294810.0328864657901120.035126701196436
Mean0.0394674364155210.0387502576276020.0605655270738540.042743594234625
SD0.0248103060029390.0172702074753560.0700369801138460.036517035201977
Worst0.1887742989391310.1084500878937720.3997677831888870.264990988241978
Table 8. The parameter estimation of metaheuristic algorithms with 80 individuals, 40 evolutions and 30 repetitions.
Table 8. The parameter estimation of metaheuristic algorithms with 80 individuals, 40 evolutions and 30 repetitions.
ParametersGWOHGSMPASMA
k p x 9.9865211727569410109.99977970933963
k i x 9.430657572300559.656851371845739.960592443006139.99925593925136
k d x 5.601501697317735.478856795245685.50920483962756.2452264065116
k p y 109.99999921053496109.99246289808091
k i y 9.6395286660837610109.43597394420227
k d y 4.950912156368545.115718903628465.279886403511697.32911087094447
k p z 9.876156946507019.99999863024639104.46530734475299
k i z 2.1579549355505109.972376684360310
k d z 9.98736121621257109.9999531419058210
k p ϕ 3.010425465642222.222509783514065.856961722648841.95386097208097
k i ϕ 9.9431280023012910108.63779129530408
k d ϕ 7.125979928112417.154739331647158.205052650961459.67217493667522
k p θ 4.727961953526084.714679474320734.72403188559834.55973192469571
k i θ 0.0544330911469697000.0492159899582777
k d θ 0.0126001912603102000.0177826862585763
k p ψ 7.761643106131950.4624483620319750.05423031491094585.78562381917693
k i ψ 3.724691459305723.822263681348789.985337864739780.488908932241553
k d ψ 4.531816757469775.982133764756389.9725306109364410
Table 9. Experimental result of RMSE with 100 individuals, 40 evolutions and 30 repetitions.
Table 9. Experimental result of RMSE with 100 individuals, 40 evolutions and 30 repetitions.
StatisticsGWOHGSMPASMA
Best0.0329961457051170.0325943097236230.032825764209990.040673064569420
Mean0.0399791720654770.0423894011308730.0435221456004190.043522145600419
SD0.0185508243475450.0331237015560920.0172384850447360.026360509636230
Worst0.1086744870230020.1806997577966900.0912859747842600.205159863683217
Table 10. The parameter estimation of metaheuristic algorithms with 100 individuals, 40 evolutions and 30 repetitions.
Table 10. The parameter estimation of metaheuristic algorithms with 100 individuals, 40 evolutions and 30 repetitions.
ParametersGWOHGSMPASMA
k p x 10101010
k i x 9.671547272442539.687920811386429.927501166466220.0503735259587369
k d x 5.555075052128915.481836709191425.47194001598242.97829672909644
k p y 1010109.26519695366179
k i y 9.9439801223129810100.027492447132257
k d y 4.909152621488825.115097752008185.074306771637687.32731572860309
k p z 10101010
k i z 6.2460052329586509.98470003338010.501988975857219
k d z 1010106.96510555267074
k p ϕ 7.203490622444152.243534621179062.650856109460110
k i ϕ 6.2669806605969106.03681910327620
k d ϕ 5.39591504911067.152758683003524.556650730948648.90239259865836
k p θ 4.737096821839624.717568710889334.712219924627184.52648291628
k i θ 0.032603102801233101.51704532400754e-070
k d θ 001.92350263205458e-050
k p ψ 3.885224919953540.000134065874180949.8548607205767810
k i ψ 0.1915944359316270.1336637248836179.998672977980120
k d ψ 3.19550238953637109.996373323926545.68443608990096
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zuñiga-Peña, N.S.; Hernández-Romero, N.; Seck-Tuoh-Mora, J.C.; Medina-Marin, J.; Barragan-Vite, I. Improving 3D Path Tracking of Unmanned Aerial Vehicles through Optimization of Compensated PD and PID Controllers. Appl. Sci. 2022, 12, 99. https://doi.org/10.3390/app12010099

AMA Style

Zuñiga-Peña NS, Hernández-Romero N, Seck-Tuoh-Mora JC, Medina-Marin J, Barragan-Vite I. Improving 3D Path Tracking of Unmanned Aerial Vehicles through Optimization of Compensated PD and PID Controllers. Applied Sciences. 2022; 12(1):99. https://doi.org/10.3390/app12010099

Chicago/Turabian Style

Zuñiga-Peña, Nadia Samantha, Norberto Hernández-Romero, Juan Carlos Seck-Tuoh-Mora, Joselito Medina-Marin, and Irving Barragan-Vite. 2022. "Improving 3D Path Tracking of Unmanned Aerial Vehicles through Optimization of Compensated PD and PID Controllers" Applied Sciences 12, no. 1: 99. https://doi.org/10.3390/app12010099

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