1. Introduction
Robotic manipulator systems have changed many manufacturing automation systems in a way that makes them much more accurate and efficient while still meeting high safety standards [
1,
2,
3]. However, their impact extends beyond industrial settings, finding applications in fields such as healthcare, agriculture, and research [
4]. In the 1950s and 1960s, industrial robot manipulators were introduced as substitutes for humans in hazardous tasks, resulting in improved productivity and quality. These robotics are typically designed and programmed to perform specific tasks, such as welding, object manipulation, painting, assembly, and manufacturing [
5,
6,
7].
Robotics surpasses automation by introducing physical machines capable of performing tasks with a high degree of autonomy, where robotics plays a crucial role in flexible production, particularly when tasks require precision and adaptability [
8]. The robotics are equipped with sensors and actuators systems that enable interaction with their environment [
9].
Figure 1 illustrates a two-joint robotic arm that enables the links to perform rotational movements. The positions of the two joints relative to a reference point are represented by the angles
and
. The values of these two angles determine the overall shape and orientation of the robotic arm. By controlling these two angles (state variables), it becomes possible to manipulate the robotic arm position and orientation. The capabilities of a robotic arm include performing various tasks such as reaching specific points in space, manipulating objects, or following desired trajectories.
FO-PID and standard PID controllers are gaining popularity in various industrial applications due to their advantages such as simplicity, straightforward implementation, and easy troubleshooting and maintenance [
10]. The tuning methods proposed for either PID or FO-PID controller designs include biquadratic approximation of a fractional-order differential operator [
11], constrained min–max optimization [
12], swarm optimization [
13], auto-tuning methods [
14], and robust tuning methods [
15,
16].
Intelligent controllers such as fuzzy logic controllers and neural network controllers are applied for the control of robotic manipulators. These controllers are complemented by optimization algorithms to enhance the performance of robotic manipulator systems by optimizing position, velocity, and vibration [
17].
The selection of optimal gain values for the PID controller is crucial as it directly affects the overall performance and effectiveness of the control system design, while it is more challenging in the case of the FO-PID controller. The selection of the gain values (tuning) directly results in the overall control performance against uncertainties or/and disturbances that may negatively influence the controller stability, such as in terms of tracking accuracy, transient response, overshoot, rising time, and settling time.
Traditionally, the tuning of PID or FO-PID controllers relied on trial-and-error methods, which become more time consuming as systems become more complex, especially for nonlinear systems such as in robotic arm dynamics. To address these challenges and achieve more efficient gains in the tuning process, several heuristic iterative techniques have been proposed [
18,
19] to solve the PID and FO-PID controller optimization problem in robotic manipulation.
These techniques include several optimization methods such as the particle swarm optimization (PSO) algorithm [
20,
21], improved PSO [
22,
23], the GA algorithm [
24,
25,
26], differential evolution (DE) [
27], ant colony optimization (ACO) [
28,
29], and artificial bee colony [
30,
31] algorithms. These optimization methods are able to be applied to different types of complex control systems and designs, such as in [
32,
33], where the performance of these designs can be further improved.
This paper applied the GA optimization method, one of the most commonly used and fundamental optimization techniques, to tune gain parameters for the FO-PID and traditional PID controllers. The main contributions of this paper can be outlined as follows.
The aim is to contribute to the existing body of knowledge by providing a comparative analysis of FO-PID and traditional PID controllers for nonlinear robotic arm manipulators applying GA optimization.
The unique aspect of this study lies in the comprehensive evaluation of the performance of the FO-PID and PID controllers considering different cost functions, namely, ISE, IAE, ITAE, and ITSE. The performance evaluation for each controller was conducted under two different robotic arm operating scenarios. The first scenario involved ideal conditions with nominal parameter values for the robot arm model. The second scenario assumed parameter uncertainty in the robotic arm mass, particularly , where its value changes from the nominal 5 kg to 6 kg due to an additional load of 1 kg. In this scenario, friction forces were included in the robot arm dynamics, with coefficients .
This study fills a gap in the literature by proposing a performance matrix to facilitate the selection between FO-PID and PID controllers. In this matrix, cost functions (ISE, IAE, ITAE, and ITSE) are represented as columns, while characteristic parameters (overshoot, rise time, and settling time) are represented as rows. The elements of the matrix indicate the type of controller.
The paper is organized into the following pattern:
Section 1 presented a brief introduction, while
Section 3 is dedicated to the robotic arm mathematical modeling.
Section 4 discusses the control design. Next,
Section 5 provides a detailed discussion about the GA algorithm and integration with the FO-PID controller.
Section 6 is the core part where the simulation results are obtained and critically analyzed. Finally,
Section 7 concludes the paper, followed by recommendations and future directions in
Section 8.
4. FO-PID Control Design
This section presents a detailed description of the design and implementation of the FO-PID controller. Simply, the FO-PID controller is an enhanced version of the standard PID controller which is commonly implemented in industrial applications to improve the performance of control systems. Technically, the FO-PID controller introduces a range of improvements to provide extra degrees of freedom by adding two supplementary parameters ( and ) in addition to the original three parameters (, , and ) of the standard PID controller.
The first step in control design involves defining the error dynamics equation. Given that the measured states are determined by
and
, along with their respective set points
and
, then the error dynamic equation
can be formulated as follows:
where
,
, and
.
Now, given the error dynamic equation as in (
2), then the FO-PID control law can be written either in the time domain as in (
3), or in the frequency domain as in (
4).
where
is the FO-PID output (control signal to be supplied to the robotic arm manipulator system), and
is the error signal (the difference between the measured response, and the desired signal); while
,
,
,
, and
represent the FO-PID controller’s gain parameters. The implementation of the proposed control scheme is shown in
Figure 3, where the dynamic equation of the robotic arm manipulator and FO-PID control law are given as in (
1) and (
3), respectively.
Despite the straightforward implementation of the FO-PID controller, fine-tuning its gain parameters remains a substantial challenge. This research aims to capitalize on the advantages offered by the FO-PID controller while addressing the intricate task of optimizing its gain parameters. Consequently, a significant portion of this paper is dedicated to a comprehensive analysis and implementation of the GA algorithm, as detailed in the following section, in order to tune the FO-PID controller.
5. Genetic Algorithm
A GA algorithm [
34] is an optimization technique inspired by the process of natural selection and genetics. It utilizes a population of candidate solutions, applies genetic operators such as selection, crossover, and mutation, and iteratively evolves the population to find optimal or near-optimal solutions to a given problem [
25].
The basic idea behind a GA algorithm is to represent candidate solutions to a problem as individuals in a population. Each individual is encoded as a string of genes, where each gene represents a parameter or a decision variable of the problem. The population starts with a set of randomly generated individuals.
The algorithm proceeds through a series of generations. In each generation, the individuals in the population are evaluated using a fitness function, which quantifies the quality of a generated solution. The fitter individuals, those with higher fitness values, are more likely to be selected for reproduction.
Reproduction is performed through genetic operators. Crossover involves generating offspring individuals from two parent individuals. This is typically achieved by exchanging segments of their gene strings. Mutation introduces random changes to the gene strings of individuals, which helps introduce diversity into the population.
After reproduction, the offspring individuals, along with some of the fittest individuals from the previous generation, make up the population for the next generation. This process continues until reaching a maximum number of generations [
25].
In this study, a genetic algorithm is applied to optimize the gains of an FO-PID controller. The goal is to find the optimal values for gains that result in the best control performance for a given system. The GA for the FOPID is illustrated in
Figure 4. In the following parts, we explain each part of the GA algorithm.
5.1. Initialization Part
The initialization phase of the GA algorithm is responsible for initializing the GA parameters (population size, maximum generation), and the controller parameters (
,
,
,
, and
). N solutions (N = population size) of the controllers gain parameters, as shown in
Figure 5, are generated. Then, the fitness values of the initial solutions are evaluated by assessing the performance of the fractional PID controllers gain parameters via an objective function. This process involves simulating the behavior of the controller with the initial parameter values, calculating the corresponding error values, and updating the best iterated solution.
5.2. Objective Function
The quality of the performance of the proposed control scheme is represented by a fitness value, which is calculated based on a cost or objective function. The performance of the FO-PID controller is determined by using performance criteria (requirements) such as overshoot, settling time, and rising time. Throughout the optimization process, different sets of tuning gain parameters are tested, and the main objective is to capture the minimum fitness value resulting in improving the performance requirements.
As can be observed from (
3) and (
4) the FO-PID controller is characterized by five parameters (
,
,
,
, and
), where the selection of these parameters’ values directly influences the robustness of the FO-PID controller.
In this study, the most commonly used objective functions in the field of control systems, namely, ISE, IAE, ITSE, and ITAE were employed to investigate the performance of the FO-PID controller, where the standard PID controller was chosen as benchmark to evaluate the performance FO-PID controller. The following are the mathematical expressions of the cost functions (ISE, IAE, ITAE, and ITSE).
ISE is the integral over time of the squared error between the desired response
and the actual response of the robot arm manipulator system
q, as shown in
Figure 3, where
denotes the error as in (
2) at time
t, and
is the total time.
IAE is similar to ISE but calculates the integral of the absolute error over time.
Similarly, ITAE is a variant of IAE where the absolute error is weighted by time before integration. It emphasizes minimizing the accumulation of absolute errors over time, with a preference for earlier errors.
ITSE is a variant of ISE where the squared error is weighted by time before integration. This weighting scheme gives more importance to errors occurring earlier in the response.
5.3. Create the Next Generation
The new generation is obtained from the old one through the following steps:
Selection: Select individuals from the population for reproduction based on their fitness values. Individuals with higher fitness values are selected, mimicking the process of natural selection. In PID and FO-PID controllers, the selection technique selects individuals of the PID or FO-PID controller parameters represented in
Figure 5.
Crossover: After the selection process, the crossover operation is performed on selected individuals to create offspring. Crossover involves exchanging FO-PID gains between two parents to generate new sets of gains, as illustrated in
Figure 6.
Mutation: Introduce random changes (mutations) to the offspring individuals to maintain diversity in the population. This helps explore new regions of the search space. Mutation can involve small perturbations to the FO-PID gains, as shown in
Figure 7.
Insertion and deletion: Insertion involves adding new individuals to the population from outside sources, such as randomly generated individuals or individuals from previous generations. This helps introduce new genetic material into the population. Deletion involves removing individuals from the population to control its size and prevent it from growing too large.
Finally, the next generation is created by combining the offspring individuals with some of the fittest individuals from the previous generation to form the next generation population. Once the GA algorithm terminates, extract the FO-PID gains with the best fitness value as the optimized solution.
7. Conclusions
In this research, a comparative analysis was conducted between FO-PID and traditional PID controllers for a nonlinear robotic arm manipulator system using GA optimization. The objective was to evaluate the performance of these two controllers under two different operating scenarios by tuning the gain parameters of the proposed scheme. The first scenario involved ideal nominal parameters, while the second scenario included the presence of frictional forces in the dynamical model. The performance of the controller gains, including ISE, IAE, ITAE, and ITSE, was evaluated through numerical simulations using MATLAB/SIMULINK. The results demonstrated that the FO-PID controller outperformed the standard PID controller in terms of overshoot, rise time, and settling time when evaluated against certain cost functions. The application of GA for tuning the FO-PID controller’s gain parameters proved to be effective in enhancing its performance. The proposed performance matrix, which considered different cost functions and characteristic parameters, provided valuable insights for selecting between PID and FO-PID controllers.