Next Article in Journal
A 13 µW Analog Front-End with RRAM-Based Lowpass FIR Filter for EEG Signal Detection
Previous Article in Journal
Multi-Model Running Latency Optimization in an Edge Computing Paradigm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Metaheuristics-Based Optimization of a Robust GAPID Adaptive Control Applied to a DC Motor-Driven Rotating Beam with Variable Load

by
Fábio Galvão Borges
1,
Márcio Guerreiro
2,
Paulo Eduardo Sampaio Monteiro
1,
Frederic Conrad Janzen
3,
Fernanda Cristina Corrêa
1,3,
Sergio Luiz Stevan, Jr.
1,3,
Hugo Valadares Siqueira
1,2,3,* and
Mauricio dos Santos Kaster
1,3
1
Graduate Program in Electrical Engineering (PPGEE), Federal University of Technology—Paraná (UTFPR), R. Dr. Washington Subtil Chueire, 330, Jardim Carvalho, Ponta Grossa 84017-220, PR, Brazil
2
Graduate Program in Industrial Engineering (PPGEP), Federal University of Technology—Paraná (UTFPR), R. Dr. Washington Subtil Chueire, 330, Jardim Carvalho, Ponta Grossa 84017-220, PR, Brazil
3
Electrical Engineering Department, Federal University of Technology—Paraná (UTFPR), R. Dr. Washington Subtil Chueire, 330, Jardim Carvalho, Ponta Grossa 84017-220, PR, Brazil
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(16), 6094; https://doi.org/10.3390/s22166094
Submission received: 29 June 2022 / Revised: 1 August 2022 / Accepted: 3 August 2022 / Published: 15 August 2022
(This article belongs to the Section Intelligent Sensors)

Abstract

:
This work aims to analyze two metaheuristics optimization techniques, Genetic Algorithm (GA) and Particle Swarm Optimization (PSO), with six variations each, and compare them regarding their convergence, quality, and dispersion of solutions. The optimization target is the Gaussian Adaptive PID control (GAPID) to find the best parameters to achieve enhanced performance and robustness to load variations related to the traditional PID. The adaptive rule of GAPID is based on a Gaussian function that has as adjustment parameters its concavity and the lower and upper bound of the gains. It is a smooth function with smooth derivatives. As a result, it helps avoid problems related to abrupt increases transition, commonly found in other adaptive methods. Because there is no mathematical methodology to set these parameters, this work used bio-inspired optimization algorithms. The test plant is a DC motor with a beam with a variable load. Results obtained by load and gain sweep tests prove the GAPID presents fast responses with very low overshoot and good robustness to load changes, with minimal variations, which is impossible to achieve when using the linear PID.

1. Introduction

Currently, most industrial processes still employ traditional controllers such as Proportional–Integral–Derivative (PID), which are simple, practical, have well-established design techniques, and come pre-packaged in most control devices, such as programmable logical controllers (PLCs) [1]. However, linear controllers have limited performance due to their intrinsic linearity [2,3,4]. Nonlinear controllers, in most cases, can easily overcome such limitations [5]. Adaptive control is a class of nonlinear control that takes the linear controller structure and adapts the control parameters dynamically, following a special rule that defines these parameters upon some operating conditions [6]. Other techniques use adaptive practices to adjust functional parameters, such as Fuzzy Adaptive [7,8] and Neural Adaptive [9,10,11,12] control techniques.
Several works propose adaptive PID-based techniques that enhance the controller performance, taking advantage of the robust structure of the traditional PID. One option employs Fuzzy logic to adapt the PID gains. In [13], the membership functions are described for inputs (error and derivative) and outputs ( K p , K i and K d gains); as such, these gains can adapt according to the designed membership functions. The advantage of using Fuzzy techniques relies on requiring only basic knowledge of how the adaptive gains are expected to perform in the controller. The disadvantage is that the resulting controller is likely not optimal.
Another option consists of building adaptation functions based on the error signal to adapt the PID gains dynamically. In [14], a nonlinear PID (NL-PID) is compared to a PID tuned by a Genetic Algorithm (GA) and a PID adjusted by the Ziegler–Nichols method. This NL-PID takes a Gaussian function of the error and employs linear functions as the adaptive rules for the gains. Such a procedure demands relatively low computing power, but the method to define the adaptive parameters of the NL-PID are not straightforward, and it is unlikely to lead to an optimal controller.
In [15], a nonlinear adaptive PID with parameters defined by Genetic Algorithm (GA) was described. The adaptive PID rules were determined by 11 parameters, representing a complex problem optimized by the GA. Furthermore, its operation needs to calculate five exponential functions for each control iteration which takes a considerable computational power.
The Gaussian Adaptive PID (GAPID) is a kind of adaptive control firstly proposed by this research group in 2015 [16], where the adaptive rule follows a Gaussian function of the system error. A Gaussian curve allows for transition from low to high gain in a smooth fashion. It demands light computational effort by using only one exponential function in each iteration, considering that more specific functions save lots of computing power in massive calculations.
The GAPID control technique currently has no mathematical design procedure. The problem of parameter tuning belongs to the NP-hard challenges, which cannot be addressed with traditional deterministic methods. An alternative to overcome these problems is to use bio-inspired optimization metaheuristics that allow for finding a better controller and eventually optimum parameters in a reasonable period [1]. Such an optimization task poses a particular difficulty because the problem is multi-modal, where distinct solutions have very similar performance values. Furthermore, several solutions are not robust because the system performs well only with the load defined for optimization and decreases considerably with other load values [17].
Regarding bio-inspired metaheuristics, the inspiration for the development of such methods lies, for example, in the Laws of the Darwinian Evolution (evolutionary algorithms) or the collective intelligent behavior of groups of animals (swarm-inspired methods) [18,19,20]. These algorithms are endowed with an intrinsic capability of finding local or, eventually, the globally optimum values of the coefficients of a system.
In this sense, intelligent algorithms have been successfully employed to solve multi-modal optimization tasks from various real-world problems. For example, in [21], the authors proposed the use of an improved version of the Salp Swarm Algorithm to deal with feature selection problems; variations of the Moth-flame algorithm, Particle Swarm Optimization (PSO), Genetic Algorithm (GA), and Bees Life Algorithm (BLA) were addressed for cyber-physical system applications in real fog computing; a hybrid proposition among Firefly Algorithm and PSO is proposed in [22] for optimal cluster head selection in wireless sensor networks with the goal of increasing the energy efficiency of the system; notwithstanding, nonlinear control is the target of many studies involving bio-inspired optimization, such as [23,24,25,26,27,28].
In [17,29] some applications of GAPID were explored by using bio-inspired metaheuristics optimization (Genetic Algorithm and Particle Swarm Optimization (PSO)) to find optimal parameters for the GAPID. In [30] other metaheuristics (Whale Optimization Algorithm (WOA) and Artificial Bee Colony (ABC) targeted to GAPID were also studied, using PSO as a common comparison choice to verify different metaheuristics algorithm effectiveness. This study demonstrated that WOA achieved a slightly better optimization result, but PSO converges faster and presented the smallest dispersion of the final results.
Considering the assumption mentioned above, this work aims to analyze the performances of a set of optimization algorithms in charge of finding optimal solutions for the special case of the GAPID controller. However, differently from the previous works [1,17,29], which applied optimization algorithms to GAPID for the plant with fixed load, the novelty here is that variable load is now being considered in the optimization. This demanded some modifications in the optimization process to result in a more robust controller; in this case, for each iteration and each individual, several loads within the load range were tested, and the mean of the fitness for each load was taken as the individual fitness in that iteration. In practice, such a procedure is capable of leading to a robust controller that is expected to perform optimally within a predefined load range.
To this end, six variations of the Genetic Algorithm and six variations of the Particle Swarm Optimization were selected and applied to a DC motor-driven rotating beam [31,32,33,34,35]. In the first moment, the different optimization strategies to obtain the optimal parameters of the GAPID were examined, then analyzed and compared regarding their efficiencies. Afterward, their performances in an experimental test plant were verified.
The GAPID tuned by optimization algorithms is a robust control technique canning share parameters with a previously designed PID, which facilitates its adoption in the industry but also offers some limitations. In most cases, it has the same restrictions as the PID, such as the windup problem in the integral component and noise amplification in the derived component, which is mitigated in the GAPID for minor errors. The other issue is that the plant must be stressed by a series of tests to obtain the fitness values for each individual in each iteration. It is impractical to perform such a task in a real-world plant, so an accurate model must be derived and the heavy lifting transferred to a computer simulation environment.
The remainder of the paper is divided as follows: Section 2 presents the subjects under study, which are the GAPID control and the optimization algorithms used to find optimal parameters for the GAPID. Section 3 presents the test plant model. Section 4 discusses the methodology employed for simulations and experimental analysis. Section 5 presents the results obtained from simulation, comparisons, and comments about the optimization algorithms and the experimental results obtained in the physical plant. Finally, Section 6 presents the main conclusions and future perspectives.

2. Theoretical Foundation

In this section, the GAPID controller technique and Bio-inspired Optimization algorithms that will be utilized in the work are presented, mainly the Genetic Algorithm (GA) and Particle Swarm Optimization (PSO). The Fitness function is also covered, which is very important because it directs the optimization toward the solution. This information is the key to addressing the variations applied in the Optimization algorithm, stated in Section 4, for posterior performance analysis.

2.1. GAPID Controller

It is known that nonlinear controllers are more efficient than linear controllers; the problem is that they are harder to design. This work employs the adaptive PID controller, where the proportional, integral, and derivative gains adapt according to a Gaussian function of the input error ε . The conceptual idea is to transition between two gain levels, k 0 and k 1 , using a smooth process with smooth derivatives as the adaptation rule.
Smooth functions are desirable because they avoid unexpected behavior caused by discontinuous gain transitions. The proposed function is Gaussian-like, as stated in Equation (1)
λ ( ε ) = k 1 ( k 1 k 0 ) e δ ε 2
where ε is the input error, k 0 is the gain when | ε | = 0 , k 1 is the gain when | ε | = , and δ is the openness degree of the Gaussian function. This function will describe the adaptive PID gains λ p ( ε ) , λ i ( ε ) , and λ d ( ε ) [1].
As one can see, this function has three parameters: k 0 , k 1 , and δ . So, the design process is to define the correct values for these parameters. Figure 1a,b show the function shapes for k 0 > k 1 , and k 1 > k 0 , and Figure 1c shows the adjustable concavity degree.
As no mathematical design methodology has yet been developed to find proper parameter values for the GAPID, search algorithms are a good option. In this sense, this work used meta-heuristics optimization to find an optimal solution. The problem has two approaches: the free parameters and the linked parameter cases.

2.1.1. Free Parameters Case

The three PID gains turned adaptive by Gaussian functions become a nine-parameter design ( k 0 , k 1 , and δ of Equation (1) for each of the three gains functions), representing a complex problem to solve. Furthermore, there is the multi-modal problem, where several solutions may result in a near-best controller.
However, this problem can be reduced to one parameter: it is reasonable to state the derivative gain as zero when ε = 0 , turning the PID into a PI when the output matches the input reference, helping to avoid the problem that noise provokes in the control signal due to the derivative component of PID controllers. Then, the overall problem becomes an eight-parameter design referred to as the free parameters case.

2.1.2. Linked Parameters Case

Considering that most industrial plants utilize PID controllers, several of which are hardly tuned in over long experimentation, switching to a nonlinear adaptive controller with non-tested parameters in a production plant is not easily accepted. In this sense, the proposal of setting an adaptive controller based on the already-determined PID gains is more plausible. The idea is to derive the Gaussian limits k 0 and k 1 as functions of the same parameter x in the form k 0 = x · K and k 1 = 1 / x · K , where K is the previously defined linear gain of the original PID. The derived Gaussian functions become
λ p ( ε ) = x K p x K p 1 x K p e δ p ε 2
λ i ( ε ) = y K i y K i 1 y K i e δ i ε 2
λ d ( ε ) = z K d e δ d ε 2
where K p , K i , and K d are the PID gains. Equations (2)–(4) represent a six-parameter problem design (x, y, z, δ p , δ i , δ d ), which will be referred as the linked parameters case.
As stated in [29], in most cases, the free parameters case leads to a better solution, usually representing a particular best solution that performs very well, but only with specific design conditions. If conditions change, the performance often decreases significantly. On the other hand, the case of the linked parameters, besides performing a little behind the case of the free parameters, is more tolerant to changes and exhibits better robustness to load variations. It also presents the additional advantage of being tied to the original gains that most controllers have already defined in their plants.

2.2. Bio-Inspired Optimization

Where finding an optimal solution may be impossible or impractical, heuristic techniques can speed up the process of finding a good one [36].
A meta-heuristic is defined, in computer science, as a high-level heuristic designed to find, generate, or select a search algorithm that could provide some satisfactory possible solutions [37].
In this work, two methods for optimization were used, the Genetic Algorithm (GA) and the Particle Swarm Optimization (PSO). For each of the methods, a set of six variations were examined.

2.2.1. Genetic Algorithm

The Genetic Algorithm (GA) is the first introduced bio-inspired meta-heuristic to deal with optimization problems [38]. Still, it is an essential evolutionary algorithm applied in many areas, such as clustering, time series forecasting, and control [1,17,39].
The GA was inspired by Darwinian evolution by natural selection [40]. Thus, the method is initialized, creating a population of candidate solutions (named individuals or chromosomes) that are randomly generated. Such agents are characterized by their coordinates on the problem-solving space, which means that an individual is a vector containing the values of the addressed problem parameters [41].
Each agent also receives a fitness, that is, a score representing the response quality leading to the system of interest. Bringing this idea to natural selection, solutions with higher fitness values tend to survive the selection process and maintain their genotype in the next generation. After the age of the population and fitness assignment, the first versions of the GA follow three basic steps: selection, crossover, and mutation.
The selection defines the individuals who pass through the other operations. Generally, all methods choose the best-ranked agents, the roulette wheel, and tournament [42].
In the first step, a roulette is created, in which each slice corresponds to an individual. However, the size of such a slice is proportional to the fitness, so that the best-ranked individuals present a higher probability of being selected. It is possible to choose the same agent more than once.
The tournament procedure is initiated by randomly selecting two individuals. Then, they compete in a way that the highest fitness is chosen. In this case, the selective pressure is lower than the roulette wheel [40].
After that, the crossover is applied between the two individuals of the population (parents) selected in the previous step. Such parents change some values of their genes, generating two new individuals (offspring), which replace the parents in the current population. The procedure is repeated until the population presents the same number as the original population. The most known method is the one-point crossover. The crossover is an exploitation procedure or a way to perform local search [38].
The last step is mutation. Usually, it presents a small probability of occurrence and is applied to all the genes of the entire population. Therefore, some may be changed, perturbing their values according to predefined distribution. Another possibility is to disturb the genes considering a predefined number of them. In this case, the probability of occurrence is 100% for the genes selected. This step allows for a global search to find some unexplored regions of the cost function [41]. After that, a new generation is obtained that passes through the same operations until the stop criterion. Figure 2a presents the steps of the traditional GA approach.
Another variation of the GA is based on using a sub-population formed by the sum of parents and offspring during a generation. In this case, the three steps mentioned above occur differently: crossover, mutation, and selection. This approach performs the creation of offspring after the crossover, but the parents remain, doubling the number of individuals in the population. After, the mutation is applied considering the entire population. Finally, the selection (roulette wheel or tournament, for example) is used to select the final population, considering a competition among parents and offspring. Figure 2b presents the steps of the GA-modified strategy.

2.2.2. Particle Swarm Optimization

Particle Swarm Optimization (PSO) is a swarm-based computing technique developed by Kennedy and Eberhart [43], which was inspired by the social behavior of groups of animals, such as flocks of birds and schools of fishes.
PSO is a simple yet powerful optimization tool. Its main characteristic is simple agents working together, which can arise sufficient collective intelligence to conduct the operation, respecting simple rules [44]. Each particle has a position and velocity in the search space. These two variables respect the following rules in each iteration (Equations (5) and (6)).
v i n + 1 = ω v i n + r 1 c 1 ( p b e s t x i n ) + r 2 c 2 ( g b e s t x i n )
x i n + 1 = x i n + v i n + 1
where x i n and v i n are position and speed of the i-th particle in the n-th iteration, w is the inertial weight, r 1 and r 2 are random numbers between 0 and 1, c 1 is the personal acceleration factor, c 2 is the social acceleration factor, p b e s t is the best personal position achieved so far, and g b e s t is the best global position until the current iteration.
Figure 3 presents the steps of the PSO addressed.
Two main topologies are addressed in this work: (a) Global Topology: each particle considers as global best ( g b e s t ) the best-positioned particle for the sake of the entire population; (b) Ring Topology: the particle considers as global best ( g b e s t ) the best-positioned particle among its nearest topological neighbors, which are defined previously.

2.2.3. Fitness Function

The fitness function (FF) represents another critical choice. If a selected FF is inappropriate for a particular application, the result will tend to the best fitness, which may not perform best. In this sense, some common functions that evaluate the performance of the control system were tested. The options are Integral Absolute Error (IAE), Integral Square Error (ISE), and Integral Time Square Error (ITSE).
The test system is a parameterized second-order system:
P ( s ) = ω n 2 s 2 + 2 ζ ω n s + ω n 2
When subjected to a step input, such a system presents a near-best transient when ζ 0.7 . Then, it is reasonable to select a fitness that raises the higher value around ζ = 0.7 . Figure 4 shows the plots of fitness against ζ .
The Figure 4 evidence IAE has the peak close to 0.7. It also presents a good balance between settling time and overshoot. ITSE is also a good choice but puts a heavier weight on settling time, allowing for higher overshoot. If this is not the case, IAE is the best candidate for FF. In order to normalize the value of the FF, the following definition is adopted:
Fit = 1 1 + IAE ,
where Fit approaches one as IAE tends to zero.

3. Test Plant Model

The application system comprises an axis with a rotating beam linked to a DC motor [31,32,33,34,35]. The control system must be tuned to perform well for load variation defined by different beams, which influences the total moment of inertia of the axis.
With the beams attached, the system is influenced by the drag force, as stated in Equation (9), which represents an opposite torque to the rotor movement [45].
F d = 1 2 C d ρ A v 2
where ρ is the air density, A is the area of the moving object facing the air, C d is the drag coefficient, and v is the linear speed.
The state-space equations of the system are given by Equations (10) and (11)
L d i a d t = R i a k e ω + 11 v p w m
J d ω d t = k t i a B ω k m s ω 2 k a c d 10
where L is the stator’s inductance, R is the stator’s resistance, J is the rotor’s moment of inertia, B is the rotor’s friction coefficient, k e is the current-to-torque conversion constant, k t is the speed-to-induced-voltage conversion constant, k s is the linear-to-rotational factor, k a c d is the constant equivalent to C d ρ A , i a is the stator’s current (state 1), ω is the rotor’s rotational speed (state 2), and v p w m is the input voltage in form of PWM pulses.
From Equations (10) and (11), a Simulink model was built in order to do computational simulations, as presented in Figure 5. The plant parameters are summarized in Table 1.
It is highlighted in Table 1 that the moment of inertia J is not fixed because, in this work, it depends on the beam attached to the motor that acts as a variable load. Thus, the load is composed of the moments of inertia of the axis joint and a range of different beams, as summarized in Table 2. This range is used for simulations and covers the beams available in the physical plant.

4. Methodology

The methodology for developing this work is divided into two parts: the first determines the procedures for choosing the simulation parameters, starting with the proposal of 6 different scenarios for the GA; and then the six scenarios for the PSO. The best scenario found was used for an experimental evaluation, described in the second part of the methodology.
Thus, a computational model using Matlab/Simulink was elaborated for running simulations. This model comprises the plant and the GAPID controller.
This model is used during the optimization process, where all the algorithms’ variations are executed upon this model, and the desired results are extracted at the end of each simulation.
For each algorithm, each individual (or particle) needs to run the starting transient of the model for each iteration. This means that the model was executed once for n individuals, with k iterations, considering h load variations, for all of the 12 algorithms.
The novelty here is that the load variations represent an additional variable to the optimization problem and then allow for finding an optimal and robust GAPID control. This is important because a large class of plants has variations in their operating conditions that must be considered to achieve a robust stabilization.
The final fitness results, as well as the individual evolution, were collected, tabulated and analyzed in order to verify which algorithm is more appropriate for the problem of finding the optimal parameters of the GAPID.
Some of the best results were tested in the physical plant, the DC motor-driven rotation beam, and one of them, the best one, is described in Section 5.
It is important to remark that the quantity of different loads utilized in the simulations is larger than that used in the physical plant, which allows for a greater definition of the load variation range during the optimization process, which occurs exclusively in the simulation environment.

4.1. Methodology for Simulation Analysis

4.1.1. GA Variations

In this work, 6 variations of the GA are used, all of them based on the premises described as follows [38,41,46]:
  • GA1: The first GA follows the classic version initially proposed, except considering the mutation, which always occurs at a low rate. The roulette wheel is used to select the individuals that will participate in the crossover. The same individual may be selected more than once. The one-point crossover occurs with 70% probability, and 5% of the genes considering the entire population are randomly chosen and pass thought the mutation. In this case, it is addressed as a perturbation considering a Gaussian distribution;
  • GA2: The second GA is almost identical, but the crossover probability is 100%. It means that all selected individuals will generate offspring;
  • GA3: This version uses the binary tournament instead of a roulette wheel. However, if an agent loses the game, it returns to the previous population and can be selected again;
  • GA4: This version differs from the last because the “death tournament” is used. It means that if an agent loses the tournament, it is suppressed from the population;
  • GA5: This proposal is more different from the others. The order of the operations is changed so that the crossover happens first, then the mutation, and finally the selection. With this idea, note that an intermediate subpopulation is created with the double individuals (see Section 2.2.1: Ultimately, the selection procedure (roulette wheel) is responsible for choosing the remaining agents, leaving the population with the original size. In this approach, all parents are chosen once at random to perform crossover;
  • GA6: The last GA is similar to the previous one, but a tournament replaces the roulette wheel as a selection procedure.

4.1.2. PSO Variations

Two main topologies are proposed: in the Global Topology, each particle has its social factor c 2 related to the global best ( g b e s t ), while in the Ring Topology, the particle has its social factor related to its nearest neighbors [41].
Six variations of the PSO are addressed in this study:
  • PSO1: The original proposal from Kennedy and Eberhart [43]. It uses Equations (5) and (6) considering the absent of ω , or ω = 1 . The global topology is addressed.
  • PSO2: It also uses the global topology but includes the inertial weight as a constant value between 0 and 1 [47]. Large values for the inertia are effective for global searching, while small values are better for local searching.
  • PSO3: Another global topology, with a variable inertial weight, decreasing linearly from an initial value to a final one during the iterations, according to Equation (12), where
    ω = ω m a x n × ω m a x ω m i n n m a x
    where ω m a x is the initial weight, ω m i n is the final weight, n is the iteration index and n m a x is the total iterations. This strategy provides a more efficient way to achieve a faster convergence in the last iterations due to gradually limiting the movement of the particles [48].
  • PSO4: The same as PSO1, but using the ring topology [41].
  • PSO5: The same as PSO2 with the ring topology.
  • PSO6: The same as PSO 3 with the ring topology.
The summary of the examined strategies is presented in Figure 6.
After the simulation scan tests of the scenarios addressed above, the best result will be selected to evaluate it experimentally.

4.2. Methodology for Experimental Analysis

To experimentally evaluate the proposed solution, an experimental plant based on a DC Motor with variable load was developed.
The application system comprises an axis with a rotating beam linked to a DC motor. The control system must be tuned to perform well in a broad range of operating conditions. Figure 7 depicts the simplified schematic of the system.
The experimental plant was built with a DC Motor powered by a controlled voltage source passing through the Pololu Dual VNH5019 motor driver shield module. This module is a compact breakout board for ST’s high-power motor driver IC, a fully integrated H-bridge to control the speed of a single brushed DC motor [49]. The motor is connected to an encoder to measure its rotation angle and speed. Figure 8a presents the image of both the motor drive module and the signal acquisition board, and Figure 8b shows the picture of the motor with the encoder attached.
The beams are interchangeable to simulate different loads. Three test beams were used: light slim aluminum, carbon steel, and thick heavy aluminum, as shown in Figure 9. The moments of inertia for these beams are presented in Table 3.
Data from the encoder are sent to a PLC CompactRIO®, a real-time embedded industrial Data Acquisition and controller made by National Instruments for industrial control systems. This system consists of a controller with a microprocessor and an FPGA programmable by the user. In our case, the encoder (sensor) signal is connected as a digital input and the PWM signal to control the motor speed as an analog output [50]. Figure 10 illustrates the PLC used.

5. Results

5.1. Simulation Results

As stated in Section 2.2, six GAs and six PSOs were tested to study the behavior of each algorithm. Each algorithm was run 10 times with the average results taken to compose the figures and tables reported in the following sections. The objective is to observe the characteristics, performance, advantages, and drawbacks of each strategy. Simulations were carried out in Matlab/Simulink employing GA and PSO optimization algorithms. The first step is to compare GA and PSO strategies separately. This action is needed to reach the behavior of selecting different parameters within the same algorithm. In the second step, a general comparison between these two algorithms is made, particularly for the final result, remembering that due to their nature being so different, no fair comparison can be realized regarding the evolution of each algorithm.

5.2. Comparison of GA Strategies

As stated in Section 2.2, six GAs were tested to study the behavior of each algorithm. The objective is to observe the characteristics, performance, advantages, and drawbacks. The parameters of each GA employed in the tests are summarized in Table 4.
Figure 11 presents the evolution of each GA regarding the best, the worst, and the mean of all individuals in the population.
To better analyze the overall population distribution at the end of iterations, a boxplot of each GA variant was done, shown in Figure 12.
The final results with the best fitness values are summarized in Table 5.
From Figure 12 and Table 5, some conclusions can be taken: GA3, GA4, and GA6 presented less-dispersed populations in higher fitness ranges, with a smaller dispersion in GA4. This last finding in GA4 may pose a problem because some dispersion is often expected in GAs. The main similarity of these strategies is the use of binary tournament selection. On the other hand, GA1 and GA5, which use the roulette wheel, showed worse results with higher dispersion.
It seems clear that the use of roulette wheel should be avoided to this problem. The literature is abundant in presenting the drawbacks of applying such a selection procedure because it presents a high selective pressure. It means that the individuals with the highest fitness present a high probability of being selected at each iteration. However, this procedure may prematurely guide the search for local minimum points, often far from the global optimum. In this sense, the tournament is a better candidate.
In addition, the use of the death tournament did not perform better than the traditional binary tournament due to the risk of losing potentially well-positioned agents. As seen in Figure 12, despite the dispersion being small in GA4, the top fitness is not the highest.
Regarding creating a sub-population, if the strategy is used with a binary tournament, the results revealed that the algorithm could reach better values to the parameters of the GAPID due to the existence of more individuals simultaneously. This procedure may increase the probability of finding good positions in the search space when applying the genetic operators.
Despite presenting the highest dispersion, GA2 achieved a result comparable to GA3, GA4, and GA6 in terms of the mean and the best individuals. Finally, it is important to mention that the results lie within the topmost 1% of the normalized fitness values. This means that all GAs perform quite well, with slightly different results.

5.3. Comparison of PSO Strategies

In addition to the analysis of GA algorithms, six PSO variations were evaluated. The parameters were determined by previous tests and are detailed in Table 6.
As mentioned in Section 4.1.2, PSO 1, 2, and 3 use the global topology while PSO 4, 5, and 6 use the ring topology; variants 1 and 4 use no inertial weight ω while 2 and 5 use fixed ω and 3 and 6 use the linear decreasing weight approach [41].
Table 7 presents the best fitness obtained after 10 simulations for each PSO strategy. It can be noted that the first-ranked strategies employ the global topology, which reinforces the conclusion that this is the best topology. Indeed, for this specific application, the full communication between the particles and the best-positioned one is an advantage, leading to better configurations. It seems clear that the ring topology now allowed the search for the maximum fitness points.
Considering the best combination of strategies used to set ω , linear decay proved to be the best choice, which is an important finding since the modification in the value of ω along the iterations adjusts the model to perform a kind of global search strongly at the beginning of the process (exploration) and to perform a local search refining the solutions along the process (exploitation).
Interestingly, while the global topology led the swarm to small dispersion using all chosen values of ω , its application in the ring topology degraded the performance and increased the dispersion. This is an unexpected behavior since the algorithm tends to present a problematic convergence. This finding reinforces the need to choose the best configuration, considering the specificities of the topology selected.
The Friedman test was applied to the results and resulted in a p-value of 0.0027, which means that an optimizer change leads to different results.
Considering the parameters presented in Table 5 and Table 7, simulations were carried out, and all the results were summarized in a boxplot, presented in Figure 13.
This fact evidences the dispersion of results and allows for some statistical analysis that help to assess the differences among the PSO versions.
Due to the nature of the chosen normalized fitness function in Equation (8), it is important to remark that small values of the cost function IAE result in fitness values close to 1. So, even if the values presented in the graph seem comparable, the performance differences are considerable.
At a first glance, it is clear that the global topology is better for this problem. The performances in these approaches are better than with their ring topology counterparts. The dispersion in these variants is also narrower, which means these algorithms achieve better solutions due to their exploration capability [41].
Comparing the best three proposals demonstrates that using an inertial weight with linear decrease seems to be an advantage.
Another observation is that the topology change results in special performances related to updating velocities. In the most straightforward velocity update strategy, the topology of the ring generates the best results.
Finally, PSOs 5 and 6 are the worst regarding fitness and dispersion.
Figure 14 shows the evolution of each PSO strategy for each iteration. It gives an idea of how the individuals behave during the search. The graphics show the Global Best, the best in each iteration (Iteration Best), the average best of the iteration (Average), and the worse of the iteration (Iteration Worse).
In most cases, 30 iterations are enough for convergence. By the evolution of the average best, PSO2 and PSO3 achieved faster Average and Global Best convergences, indicating fewer iterations would be necessary for the optimization.
The resulting best parameters found, in this case by PSO3, are summarized in Table 8. These parameters were selected and employed to obtain the waveforms shown in Figure 15 and the experimental tests presented in the next section.
It is known that PID has limited robust responses for parameter variations, primarily due to its linear nature, which those nonlinear controllers can overcome. Then, a load sweep was performed to analyze each behavior of the controller, PID, and GAPID, remembering that the GAPID parameters are linked to the PID gains.
In Figure 15, the output transients of the PID and GAPID controlled system subjected to variation of the moment of inertia in the range from 0.002 to 0.015 are presented. As expected, the load variation causes a significant change in behavior in the linear PID. In the GAPID, on the other hand, this behavior change is minimal, providing good robustness to load variation. In this case, there was also a considerable performance improvement. It is important to remark that, in our case, the fitness function is based on IAE, and load variation is considered, showing the robustness behavior becomes the primary objective of the optimization.

5.4. Experimental Results

For the experimental analysis, the three beams presented in Section 4.2 were used as loads to the presented physical plant. In it, the motor carries different beams which represent different loads to test the performance and robustness of the controller.
The PID and the GAPID-tuned controllers were tested to a set point of angular speed of 5 rad/s., with the startup waveforms shown in Figure 16 and Figure 17.
For the PID controller, the gain values used were 0.2578 for the proportional ( k p ), and 0.0625 for the integral ( k i ), and the output response for each of the three beams is presented in Figure 16.
In it, one can see that the output speed kept an overshoot under 5% and a settling time under 2 s with the light aluminum beam it was projected for. In contrast, the two other beams could not maintain a low overshoot and took longer to stabilize. The system was not unstable, and the PID was still able to control, but not with the same performance.
For the parameters of GAPID, the best solution (PSO3) parameters were taken, representing the set of parameters shown in Table 8.
In Figure 17, although the slower settling time is close to 4 s, the overshoot was under 5% for the three beams. It is noticeable that the output response behaves similarly even with the load mass variation in comparison to the performance of the PID.
It can be observed that the startup transients shown in Figure 16 demonstrate that only the designed PID for one specific load performs well, while the others exhibit a lack of robustness. Again, the robustness advantage of GAPID is evident, as shown in Figure 17, where the controller performs well for all loads.

6. Conclusions

This work addressed a comparative study about two bio-inspired algorithms, Genetic Algorithm (GA) and Particle Swarm Optimization (PSO), with six strategy variations each. These algorithms were used to find the optimal parameters of the Gaussian Adaptive PID control (GAPID) controller.
The test plant is a controlled rotating beam driven by a DC motor. The mathematical model was derived, enabling the building of a computational model used in simulations, and an experimentation plant was used to validate the results.
The GAPID, used to control this plant, represents an NP-Hard and multi-modal optimization problem with several distinct suboptimal solutions, then metaheuristics are used to find optimal solutions to the controller parameters.
In the PSO, the strategies were divided by topology (global or ring topology) and inertial weight factor (absent, fixed, or linearly decreasing).
The quality of the solution was evaluated by a fitness function that employs the Integral Absolute Error (IAE) value. This index covers the settling time and the overshoot of the output waveform.
The computational results were presented in boxplots which allow the analysis of the quality and dispersion of the solutions. It demonstrated that the global topology performs better than the ring topology, with higher fitness values and lower distribution.
A step response test shows how each GAPID optimization performs and how much better they are concerning PID. It is an essential conclusion since the existence of adaptive, robust, and reliable control strategies are very important in real applications.
In future works, it is planned to study a multi-objective optimization approach, which may also help us to better select robust solutions among the near best results. Moreover, other metaheuristic strategies can be tested to determine if any of them are more suitable for this problem, such as Whale Optimization Algorithm (WOA), Artificial Bee Colony (ABC), Differential Evolution (DE), Firefly Algorithm (FA), Bat Algorithm (BA), among others, should be tested in future works. Finally, other plants are also planned to be used as test plants, including higher-order and nonlinear ones.

Author Contributions

Conceptualization: H.V.S. and M.d.S.K.; methodology: F.C.J. and P.E.S.M.; validation: F.C.C., P.E.S.M. and M.d.S.K.; formal analysis: F.C.C. and M.d.S.K.; investigation: F.G.B. and M.d.S.K.; resources: F.C.C., F.C.J. and M.d.S.K.; writing—original draft preparation: M.G., P.E.S.M. and F.G.B.; writing—review and editing: S.L.S.J., M.d.S.K. and H.V.S.; visualization: S.L.S.J.; supervision: H.V.S.; funding acquisition: H.V.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Coordination for the Improvement of Higher Education Personnel (CAPES)—Financing Code 001, Brazilian National Council for Scientific and Technological Development (CNPq), processes number 40558/2018-5, 315298/2020-0, and Araucaria Foundation, process number 51497.

Acknowledgments

The authors thank the Federal University of Technology–Parana, and Brazilian agencies: Coordination for the Improvement of Higher Education Personnel (CAPES), Brazilian National Council for Scientific and Technological Development (CNPq) and Araucaria Foundation.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Puchta, E.D.P.; Siqueira, H.V.; Kaster, M.S. Optimization Tools Based on Metaheuristics for Performance Enhancement in a Gaussian Adaptive PID Controller. IEEE Trans. Cybern. 2019, 50, 1185–1194. [Google Scholar] [CrossRef] [PubMed]
  2. Atherton, D.P.; Majhi, S. Limitations of PID controllers. In Proceedings of the 1999 American Control Conference (Cat. No. 99CH36251), San Diego, CA, USA, 2–4 June 1999; Volume 6, pp. 3843–3847. [Google Scholar] [CrossRef]
  3. Sung, S.W.; Lee, I.B. Limitations and countermeasures of PID controllers. Ind. Eng. Chem. Res. 1996, 35, 2596–2610. [Google Scholar] [CrossRef]
  4. Palanikumar, A.; Saikumar, N.; HosseinNia, S.H. No more differentiator in PID: Development of nonlinear lead for precision mechatronics. In Proceedings of the 2018 European Control Conference (ECC), Limassol, Cyprus, 12–15 June 2018; pp. 991–996. [Google Scholar] [CrossRef]
  5. Hsia, T. Adaptive control of robot manipulators—A review. In Proceedings of the 1986 IEEE International Conference on Robotics and Automation, San Francisco, CA, USA, 7–10 April 1986; Volume 3, pp. 183–189. [Google Scholar] [CrossRef]
  6. Astrom, K.J.; Wittenmark, D.B. Adaptive Control, 2nd ed.; Dover Publications: New York, NY, USA, 2008. [Google Scholar]
  7. Shaocheng, T.; Jiantao, T.; Tao, W. Fuzzy adaptive control of multivariable nonlinear systems. Fuzzy Sets Syst. 2000, 111, 153–167. [Google Scholar] [CrossRef]
  8. Golea, N.; Golea, A.; Benmahammed, K. Stable indirect fuzzy adaptive control. Fuzzy Sets Syst. 2003, 137, 353–366. [Google Scholar] [CrossRef]
  9. Hunt, K.J. Neural Adaptive Control Technology; World Scientific: Singapore, 1996; Volume 15. [Google Scholar]
  10. Dracopoulos, D.C. Evolutionary Learning Algorithms for Neural Adaptive Control; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
  11. Xu, H.; Mirmirani, M.; Ioannou, P. Robust neural adaptive control of a hypersonic aircraft. In Proceedings of the AIAA Guidance, Navigation, and Control Conference and Exhibit, Austin, TX, USA, 11–14 August 2003; p. 5641. [Google Scholar]
  12. Wang, Z.; Zhang, Y.; Fang, H. Neural adaptive control for a class of nonlinear systems with unknown deadzone. Neural Comput. Appl. 2008, 17, 339–345. [Google Scholar] [CrossRef]
  13. Jinli, L. Adaptive Fuzzy PID Control for Boiler Deaerator. In Proceedings of the 2012 International Conference on Industrial Control and Electronics Engineering, Xi’an, China, 23–25 August 2012; pp. 575–578. [Google Scholar] [CrossRef]
  14. Korkmaz, M.; Aydogdu, O.; Dogan, H. Design and performance comparison of variable parameter nonlinear PID controller and genetic algorithm based PID controller. In Proceedings of the 2012 International Symposium on Innovations in Intelligent Systems and Applications, Trabzon, Turkey, 2–4 July 2012; pp. 1–5. [Google Scholar] [CrossRef]
  15. Qi, W.M.; Cai, W.Y.; Ji, Q.L.; Cheng, Y.C. A Design of Nonlinear Adaptive PID Controller Based on Genetic Algorithm. In Proceedings of the 2006 Chinese Control Conference, Harbin, China, 16–18 August 2006; pp. 175–178. [Google Scholar] [CrossRef]
  16. Lucas, R.; Oliveira, R.M.; Nascimento, C.B.; Kaster, M.S. Performance analysis of an adaptive Gaussian nonlinear PID control applied to a step-down CC-CC converter. In Proceedings of the 2015 IEEE 24th International Symposium on Industrial Electronics (ISIE), Rio de Janeiro, Brazil, 3–5 June 2015; pp. 1022–1026. [Google Scholar] [CrossRef]
  17. Puchta, E.D.P.; Lucas, R.; Ferreira, F.R.V.; Siqueira, H.V.; Kaster, M.S. Gaussian adaptive PID control optimized via genetic algorithm applied to a step-down DC-DC converter. In Proceedings of the 2016 12th IEEE International Conference on Industry Applications (INDUSCON), Curitiba, Brazil, 20–23 November 2016; pp. 1–6. [Google Scholar]
  18. Guerreiro, M.T.; Guerreiro, E.M.A.; Barchi, T.M.; Biluca, J.; Alves, T.A.; de Souza Tadano, Y.; Trojan, F.; Siqueira, H.V. Anomaly Detection in Automotive Industry Using Clustering Methods—A Case Study. Appl. Sci. 2021, 11, 9868. [Google Scholar] [CrossRef]
  19. Tao, L.; Yang, X.; Zhou, Y.; Yang, L. A novel transformers fault diagnosis method based on probabilistic neural network and bio-inspired optimizer. Sensors 2021, 21, 3623. [Google Scholar] [CrossRef]
  20. Santos, P.; Macedo, M.; Figueiredo, E.; Santana, C.J.; Soares, F.; Siqueira, H.; Maciel, A.; Gokhale, A.; Bastos-Filho, C.J. Application of PSO-based clustering algorithms on educational databases. In Proceedings of the 2017 IEEE Latin American Conference on Computational Intelligence (LA-CCI), Arequipa, Peru, 8–10 November 2017; pp. 1–6. [Google Scholar] [CrossRef]
  21. Zivkovic, M.; Stoean, C.; Chhabra, A.; Budimirovic, N.; Petrovic, A.; Bacanin, N. Novel improved salp swarm algorithm: An application for feature selection. Sensors 2022, 22, 1711. [Google Scholar] [CrossRef]
  22. Pitchaimanickam, B.; Murugaboopathi, G. A hybrid firefly algorithm with particle swarm optimization for energy efficient optimal cluster head selection in wireless sensor networks. Neural Comput. Appl. 2020, 32, 7709–7723. [Google Scholar] [CrossRef]
  23. Devan, P.A.M.; Hussin, F.A.; Ibrahim, R.B.; Bingi, K.; Nagarajapandian, M.; Assaad, M. An arithmetic-trigonometric optimization algorithm with application for control of real-time pressure process plant. Sensors 2022, 22, 617. [Google Scholar] [CrossRef] [PubMed]
  24. Lin, J.; Zheng, R.; Zhang, Y.; Feng, J.; Li, W.; Luo, K. CFHBA-PID Algorithm: Dual-Loop PID Balancing Robot Attitude Control Algorithm Based on Complementary Factor and Honey Badger Algorithm. Sensors 2022, 22, 4492. [Google Scholar] [CrossRef] [PubMed]
  25. Huba, M.; Vrancic, D. Performance Portrait Method: An Intelligent PID Controller Design Based on a Database of Relevant Systems Behaviors. Sensors 2022, 22, 3753. [Google Scholar] [CrossRef] [PubMed]
  26. Kang, C.; Park, B.; Choi, J. Scheduling PID Attitude and Position Control Frequencies for Time-Optimal Quadrotor Waypoint Tracking under Unknown External Disturbances. Sensors 2021, 22, 150. [Google Scholar] [CrossRef] [PubMed]
  27. Belotti, J.T.; Castanho, D.S.; Araujo, L.N.; da Silva, L.V.; Alves, T.A.; Tadano, Y.S.; Stevan, S.L., Jr.; Corrêa, F.C.; Siqueira, H.V. Air pollution epidemiology: A simplified Generalized Linear Model approach optimized by bio-inspired metaheuristics. Environ. Res. 2020, 191, 110106. [Google Scholar] [CrossRef]
  28. Puchta, E.D.P.; Bassetto, P.; Biuk, L.H.; Itaborahy Filho, M.A.; Converti, A.; Kaster, M.S.; Siqueira, H.V. Swarm-inspired algorithms to optimize a nonlinear gaussian adaptive PID controller. Energies 2021, 14, 3385. [Google Scholar] [CrossRef]
  29. Puchta, E.P.; Lucas, R.; Siqueira, H.V.; Kaster, M.S. Application of a Nonlinear Gaussian Adaptive PID with PSO Optimization to a Buck Conveter. In Proceedings of the Congresso Brasileiro de Automatica. Sociedade Brasileira de Automatica, Vitoria, Brazil, 3–7 October 2016. [Google Scholar]
  30. Bassetto, P.; Puchta, E.D.P.; Biuk, L.H.; Itaborahy Filho, M.A.; Kaster, M.S.; Siqueira, H.V. Metaheuristic-based optimization applied to GAPID controller. In Proceedings of the 2021 14th IEEE International Conference on Industry Applications (INDUSCON), Sao Paulo, Brazil, 15–18 August 2021; pp. 820–827. [Google Scholar] [CrossRef]
  31. Janzen, F.C.; Tusset, A.M.; Balthazar, J.M. Positioning Control of a Flexible Slewing Structure by Applying Sliding Mode Control. In Proceedings of the International Design Engineering Technical Conferences and Computers and Information in Engineering Conference, Charlotte, NC, USA, 21–24 August 2016. [Google Scholar] [CrossRef]
  32. Hein, R.; Orlikowski, C. Simplified dynamic model of rotating beam. Diagnostika 2013, 14, 43–48. [Google Scholar]
  33. Nandi, A.; Neogy, S.; Irretier, H. Vibration Control of a Structure and a Rotor Using One-sided Magnetic Actuator and a Digital Proportional-derivative Control. J. Vib. Control 2009, 15, 163–181. [Google Scholar] [CrossRef]
  34. Sarkar, S.; Nandi, A.; Neogy, S. Control of Simulink Based Jeffcott Rotor Model. In Proceedings of the 6th International Conference on Vibration Engineering and Technology on Machinery (VETOMAC 2010), New Delhi, India, 13–15 December 2010. [Google Scholar]
  35. Matyja, T.; Lazarz, B. Modeling the coupled flexural and torsional vibrations in rotating machines in transient states. J. Vibroeng. 2014, 16, 1911–1924. [Google Scholar]
  36. Ippoliti, E. Heuristic Reasoning; Springer: Berlin/Heidelberg, Germany, 2014; Volume 16. [Google Scholar]
  37. Bianchi, L.; Dorigo, M.; Gambardella, L.M.; Gutjahr, W.J. A survey on metaheuristics for stochastic combinatorial optimization. Nat. Comput. 2009, 8, 239–287. [Google Scholar] [CrossRef]
  38. Holland, J.H. Adaptation in Natural and Artificial Systems; MIT Press: Cambridge, MA, USA, 1992. [Google Scholar]
  39. Figueiredo, E.; Macedo, M.; Siqueira, H.V.; Santana, C.J., Jr.; Gokhale, A.; Bastos-Filho, C.J. Swarm intelligence for clustering—A systematic review with new perspectives on data mining. Eng. Appl. Artif. Intell. 2019, 82, 313–329. [Google Scholar] [CrossRef]
  40. Michalewicz, Z. Genetic Algorithms + Data Structures = Evolution Programs; Springer: Berlin/Heidelberg, Germany, 1996. [Google Scholar]
  41. Castro, L.N. Fundamentals of Natural Computing: Basic Concepts, Algorithms and Applications; Chapman & Hall/CRC: Boca Raton, FL, USA, 2006. [Google Scholar]
  42. Goldberg, D. The Design of Innovation (Genetic Algorithms and Evolutionary Computation); Springer: London, UK, 2002. [Google Scholar]
  43. Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the IEEE International Conference on Neural Networks IV, Perth, Australia, 27 November–1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar]
  44. Clerc, M.; Kennedy, J. The particle swarm-explosion, stability, and convergence in a multidimensional complex space. IEEE Trans. Evol. Comput. 2002, 6, 58–73. [Google Scholar] [CrossRef]
  45. Janzen, F.C. Positioning and Vibration Control of a Flexible Structure in Slewing Motion by Applying Shape Memory Alloys. Ph.D. Thesis, Universidade Estadual Paulista, São Paulo, Brazil, 2016. [Google Scholar]
  46. Siqueira, H.; Belotti, J.T.; Boccato, L.; Luna, I.; Attux, R.; Lyra, C. Recursive linear models optimized by bioinspired metaheuristics to streamflow time series prediction. Int. Trans. Oper. Res. 2020. [Google Scholar] [CrossRef]
  47. Eberhart, R.C.; Shi, Y. Comparing inertia weights and constriction factors in particle swarm optimization. In Proceedings of the 2000 Congress on Evolutionary Computation. CEC00 (Cat. No. 00TH8512), La Jolla, CA, USA, 16–19 July 2000; Volume 1, pp. 84–88. [Google Scholar] [CrossRef]
  48. Khan, T.A.; Taj, T.A.; Asif, M.K.; Ijaz, I. Modeling of a standard Particle Swarm Optimization algorithm in MATLAB by different benchmarks. In Proceedings of the Second International Conference on the Innovative Computing Technology (INTECH 2012), Casablanca, Morocco, 18–20 September 2012; pp. 271–274. [Google Scholar] [CrossRef]
  49. Pololu. Pololu Dual VNH5019 Motor Driver Shield for Arduino. 2019. Available online: https://www.pololu.com/product/2507 (accessed on 17 May 2019).
  50. Instruments, N.N. CompactRIO Systems. 2019. Available online: http://www.ni.com/pt-br/shop/compactrio.html (accessed on 22 May 2019).
Figure 1. (a) Upwards; (b) downwards Gaussian function shapes; (c) Adjustable concavity.
Figure 1. (a) Upwards; (b) downwards Gaussian function shapes; (c) Adjustable concavity.
Sensors 22 06094 g001
Figure 2. Flowcharts of GA strategies: (a) traditional strategy; (b) modified strategy.
Figure 2. Flowcharts of GA strategies: (a) traditional strategy; (b) modified strategy.
Sensors 22 06094 g002
Figure 3. Flowchart of PSO.
Figure 3. Flowchart of PSO.
Sensors 22 06094 g003
Figure 4. Fitness behavior of IAE, ISE, and ITSE as function of ζ .
Figure 4. Fitness behavior of IAE, ISE, and ITSE as function of ζ .
Sensors 22 06094 g004
Figure 5. Simulink model of the motor system.
Figure 5. Simulink model of the motor system.
Sensors 22 06094 g005
Figure 6. Six PSO strategies.
Figure 6. Six PSO strategies.
Sensors 22 06094 g006
Figure 7. Schematic of the control system.
Figure 7. Schematic of the control system.
Sensors 22 06094 g007
Figure 8. (a) Motor system with beam; (b) motor with encoder.
Figure 8. (a) Motor system with beam; (b) motor with encoder.
Sensors 22 06094 g008
Figure 9. Test beams: light slim aluminum, carbon steel, and thick heavy aluminum.
Figure 9. Test beams: light slim aluminum, carbon steel, and thick heavy aluminum.
Sensors 22 06094 g009
Figure 10. DC motor driver hardware.
Figure 10. DC motor driver hardware.
Sensors 22 06094 g010
Figure 11. Evolution of GA strategies.
Figure 11. Evolution of GA strategies.
Sensors 22 06094 g011
Figure 12. Boxplot of the six GA strategies.
Figure 12. Boxplot of the six GA strategies.
Sensors 22 06094 g012
Figure 13. Boxplot of the six PSO strategies.
Figure 13. Boxplot of the six PSO strategies.
Sensors 22 06094 g013
Figure 14. Evolution of PSO strategies.
Figure 14. Evolution of PSO strategies.
Sensors 22 06094 g014
Figure 15. Transient responses of the system with PID and GAPID controllers subjected to variation of the moment of inertia J from 0.002 to 0.015.
Figure 15. Transient responses of the system with PID and GAPID controllers subjected to variation of the moment of inertia J from 0.002 to 0.015.
Sensors 22 06094 g015
Figure 16. DC motor angular speed with PID control for different loads, to set point of 5 rad/s.
Figure 16. DC motor angular speed with PID control for different loads, to set point of 5 rad/s.
Sensors 22 06094 g016
Figure 17. DC motor angular speed with GAPID control for different loads, to set point of 5 rad/s.
Figure 17. DC motor angular speed with GAPID control for different loads, to set point of 5 rad/s.
Sensors 22 06094 g017
Table 1. Motor parameters.
Table 1. Motor parameters.
ParameterValue
L a 0.0032 H
R a 4.57 Ω
B0.001405
Jdepends on the beam
k s 0.25
k a c d 0.02508
k t 0.23309
k e 0.23309
Table 2. Moments of inertia used in simulations.
Table 2. Moments of inertia used in simulations.
ParameterValue [kg·m2]
J j o i n t 0.00026
J 1 0.00250
J 2 0.00400
J 3 0.00550
J 4 0.00700
J 5 0.00850
Table 3. Moments of inertia for the three beams for experimental tests.
Table 3. Moments of inertia for the three beams for experimental tests.
Beam (Load)Inertia Value (J) [kg·m2]
Light slim aluminum0.0035
Carbon steel beam0.0077
Heavy thick aluminum beam0.0080
Table 4. GA parameters.
Table 4. GA parameters.
ParameterGA1GA2GA3GA4GA5GA6
Sequence 1S+C+MS+C+MS+C+MS+C+MC+M+SC+M+S
Selection 2RWRWBTDTRWBT
Crossover probability70%100%70%70%100%100%
Mutation5%
Population30
Repetitions10
1 S = selection, C = crossover, M = mutation. 2 RW = roulette wheel, BT = binary tourneament, DT = death tourneament.
Table 5. The best fitness of each GA.
Table 5. The best fitness of each GA.
GA modelFitnessRank
GA10.9935745
GA20.9936614
GA30.9938982
GA40.9936803
GA50.9934326
GA60.9939991
Table 6. PSO parameters.
Table 6. PSO parameters.
ParameterPSO1PSO2PSO3PSO4PSO5PSO6
TopologyGlobalRing
ω 10.50.9→0.410.50.9→0.4
Search space100
Population30
Dimensions6
Maximum iterations50
c 1 and c 2 2.05
Repetitions10
Table 7. The best fitness of each PSO.
Table 7. The best fitness of each PSO.
PSO ModelBest FitnessRank
PSO10.9925413
PSO20.9925652
PSO30.9925881
PSO40.9922804
PSO50.9907755
PSO60.9904276
Table 8. Best GAPID parameters found (by PSO3).
Table 8. Best GAPID parameters found (by PSO3).
Gain typeGaussian Parameters
Proportional k p 0 = 0.2 k p 1 = 100 q p = 0.9
Integral k i 0 = 0.0637 k i 1 = 0.071 q i = 0.9
Derivative k d 1 = 14 q d = 0.001
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Borges, F.G.; Guerreiro, M.; Sampaio Monteiro, P.E.; Janzen, F.C.; Corrêa, F.C.; Stevan, S.L., Jr.; Siqueira, H.V.; Kaster, M.d.S. Metaheuristics-Based Optimization of a Robust GAPID Adaptive Control Applied to a DC Motor-Driven Rotating Beam with Variable Load. Sensors 2022, 22, 6094. https://doi.org/10.3390/s22166094

AMA Style

Borges FG, Guerreiro M, Sampaio Monteiro PE, Janzen FC, Corrêa FC, Stevan SL Jr., Siqueira HV, Kaster MdS. Metaheuristics-Based Optimization of a Robust GAPID Adaptive Control Applied to a DC Motor-Driven Rotating Beam with Variable Load. Sensors. 2022; 22(16):6094. https://doi.org/10.3390/s22166094

Chicago/Turabian Style

Borges, Fábio Galvão, Márcio Guerreiro, Paulo Eduardo Sampaio Monteiro, Frederic Conrad Janzen, Fernanda Cristina Corrêa, Sergio Luiz Stevan, Jr., Hugo Valadares Siqueira, and Mauricio dos Santos Kaster. 2022. "Metaheuristics-Based Optimization of a Robust GAPID Adaptive Control Applied to a DC Motor-Driven Rotating Beam with Variable Load" Sensors 22, no. 16: 6094. https://doi.org/10.3390/s22166094

APA Style

Borges, F. G., Guerreiro, M., Sampaio Monteiro, P. E., Janzen, F. C., Corrêa, F. C., Stevan, S. L., Jr., Siqueira, H. V., & Kaster, M. d. S. (2022). Metaheuristics-Based Optimization of a Robust GAPID Adaptive Control Applied to a DC Motor-Driven Rotating Beam with Variable Load. Sensors, 22(16), 6094. https://doi.org/10.3390/s22166094

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