Next Article in Journal
Optimized Scheduling of Integrated Energy Systems with Integrated Demand Response and Liquid Carbon Dioxide Storage
Previous Article in Journal
Experimental Research on Deep Silicon Removal in Spent SCR Catalysts
Previous Article in Special Issue
Distributed Cooperative Tracking Control Strategy for Virtual Coupling Trains: An Event-Triggered Model Predictive Control Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Metaheuristic Optimization Algorithm Based Cascaded Control Schemes for Nonlinear Ball and Balancer System

1
Department of Electrical and Computer Engineering, Faculty of Engineering and Technology, International Islamic University Islamabad, Islamabad 44000, Pakistan
2
School of Information Science and Engineering, NingboTech University, Ningbo 315100, China
3
Software Engineering Department, College of Computer and Information Sciences, King Saud University, Riyadh 11495, Saudi Arabia
4
Computer Engineering Department, College of Computer and Information Sciences, King Saud University, Riyadh 11495, Saudi Arabia
5
Department of Electronics Engineering, Mehran University of Engineering & Technology Jamshoro, Jamshoro 76062, Pakistan
*
Author to whom correspondence should be addressed.
Processes 2024, 12(2), 291; https://doi.org/10.3390/pr12020291
Submission received: 21 December 2023 / Revised: 16 January 2024 / Accepted: 22 January 2024 / Published: 29 January 2024
(This article belongs to the Special Issue Design and Control of Complex and Intelligent Systems)

Abstract

:
The ball and balancer system is a popular research platform for studying underactuated mechanical systems and developing control algorithms. It is a well-known two-dimensional balancing problem that has been addressed by a variety of controllers. This research work proposes two controllers that are proportional integral derivative-second derivative-proportional integrator ( PIDD 2 -PI) controller and tilt integral derivative with filter (TID-F) controller in a multivariate, electromechanical, and nonlinear under-actuated ball and balancer system. Integral Time Absolute Error (ITAE) is an objective function used for designing controllers because of its ability to be more sensitive to overshooting as well as reduced settling time and steady-state error. As part of the analysis, four metaheuristic optimization algorithms are compared in the optimization of proposed control strategies for cascaded control of the ball and balancer system. The algorithms are the Grey Wolf optimization algorithm (GWO), Cuckoo Search algorithm (CSA), Gradient Base Optimization (GBO), and Whale Optimization Algorithm (WOA). The effectiveness of proposed controllers PIDD 2 -PI and TID-F is investigated to be better in terms of transient time response than proportional integral derivative (PID), proportional integral-derivative (PI-D), proportional integral-proportional derivative (PI-PD) and proportional integral derivative-second derivative-proportional derivative ( PIDD 2 -PD). Moreover, these two proposed controllers have also been compared with recently published work. During the analysis, it is shown that the proposed control strategies exhibit significantly greater robustness and dynamic responsiveness compared to other structural controllers. The proposed controller WOA- PIDD 2 -PI reduced the 73.38% settling time and 88.16% rise time compared to classical PID. The other proposed controller GWO-TID-F reduced 58.06% the settling time and 26.96% rise time compared to classical PID. These results show that proposed controllers are particularly distinguished in terms of rise time, settling time, maximum overshoot, and set-point tracking.

1. Introduction

The under actuated mechanical systems (UMS) are challenging to control as they are inherently unstable, nonlinear and have complex dynamics [1]. Because of the under actuation property UMS require reliable, efficient and fast controllers. This broad research area of UMS control can be divided into two main categories: set-point regulation and trajectory tracking, that aim to stabilize UMSs in the face of various uncertainties and external disturbances [2]. The UMS have fewer actuators than degrees of freedom to be controlled, so many traditional non-linear control methods cannot be used directly in this scenario. It is well known that UMS exists in a number of forms, such as the Acrobat, Pendubot, cart-pole systems, crane systems, rotating pendulums, inertia wheel pendulums, beam-and-ball systems, magnetic suspension systems, translational oscillators with rotational actuators (TORAs), vertical takeoff and landing (VTOL) aircraft, and surface vessels. The ball and balancer system with two degrees of freedom is one of the best-known examples of an under actuated mechanical systems. The position control of ball in this system is a major challenge that is usually addressed by applying various control methodologies. To achieve the required balancing objective, various controllers have been tested upon the ball and balancer system including feedback linearization, energy, back stepping, sliding mode, and fuzzy logic. Overall, the results of these studies have demonstrated the effectiveness and potential of advanced control methods in improving the performance of systems. A new hybridized Chaotic state of matter search with Elite opposition-based learning (CSMSEOBL) [3] algorithm is proposed to tune the gains of PID controller to improve the transient response of ball and balancer system. Their results showed that the CSMSEOBL based PID controller outperforms classical PID controllers and other optimization techniques such as PSO-PID, SFS-PID, and SMS-PID. An artificial intelligence-based deep reinforcement learning (AI-RL) PID controller and a genetic algorithm-based PID controller are compared for linearized ball and balancers [4]. Their analysis reflected that DDPG-FC-350-E-PID outperformed all other approaches and achieves the best performance. For improving time domain response fuzzy PID and Reinforcement Learning (RL) controllers are investigated in [5]. There were various fuzzy controller proposed for motion control and trajectory tracking of ball and beam system in [6,7,8,9]. Moreover a fuzzy based adaptive integral control action had been proposed that significantly reduces the steady state error because of the integral control [10]. The effect of parameters variation has been verified by introducing PD tuned fuzzy logic controller in time domain and the results are compared with classical PD controller [11]. The goal to provide a quick and accurate response with little tracking error has achieved in [12] by proposing two types of ball stabilization controllers, a classical PID controller and a Lead/Lag compensation controller and Lead/Lag controller performed the best. Traditional PID controllers face a draw back when it comes to adjusting their settings. There are different methods to help with tuning these PID parameters. There are several examples of PID tuning [13,14] with ITAE [8,15,16,17]. ITAE have strong emphasis on minimizing steady-state error and settling time. In addition it is more sensitive to overshooting compared to IAE.
Using metaheuristics to solve multi-objective problems has have been proven to be an efficient and cost-effective way. There are several popular and relatively recent metaheuristics that can be used to tune controllers. Particle Swarm Optimization (PSO), Simulated Annealing (SA) and Genetic algorithm (GA) are used to optimize the gains of PID controller to control a ball and balancer system [18]. Their results were compared with classical PID in terms of delay time, rise time, and settling time and all shown a very good percentage of improvement. A fuzzy logic controller optimized with chicken swarm optimization algorithm (CS0) has been proposed and showed improvement in transient response of the ball and balancer system [19]. Whale optimization algorithms are used [20] to regulate PID parameters for tracking control of robot manipulator. As evidenced by settling times, errors, and convergence times, as well as the robustness of the WOA-PID for tuning parameters for PID controllers for robot tracking, it had proved effective for tracking robots with or without disturbances. The control of such systems was also addressed by using intelligent controllers or autonomous decision-making methods [21,22,23,24]. The simulation results indicate that sliding mode control (SMC) control scheme excels in dynamic performance as well as disturbance rejection compared to PID, fuzzy control, and LQR control [25]. An internal model control based scheme had proposed to give zero steady state error in tracking of ball and balancer system [26,27]. A neural integrated fuzzy and its hybridization with PID had been implemented to control the position of ball and angle of plate [28]. In their work steady-state error analysis and time response analysis are used to evaluate each controller’s performance. Some fractional order controllers also contribute to stabilize ball and balancer system [29,30,31]. The FOMC performed better in terms of less chattering, improved trajectory control [32] and speed then SMC.
Fuzzy controllers are quite good in handling imprecise and nonlinear systems, but they can be complex to design and computationally intensive. Sliding mode controllers are robust to uncertainties but may exhibit chattering, and they can be sensitive to modelling errors. Neural controllers offer adaptability and effectiveness in complex systems but lack interpretability and may require significant computational resources for training.
PID controllers remain a reliable choice due to their simplicity, ease of implementation, and well-established track record in a wide range of applications. Their ability to provide stable performance make them advantageous, especially in scenarios where a precise mathematical model is available.
There are various configurations of PID are available. PIDD 2 controllers are often used to control position, velocity and acceleration feedback [33], as our aim is to control position of ball so we choose PIDD 2 . TID-F controller is easier to tune with enhanced disturbance rejection capacity, and gives outstanding durability to parameter variation [34]. Four metahueristic approaches are selected and applied for tuning the controllers with optimal gains.
This paper investigates the position control and tracking performance of ball and balancer system with a tilt integral derivative controller with filter based on GWO/WOA and a proportional integral derivative second derivative controller based on GWO/WOA. In this context, this research paper has following main contributions:
  • Design and implementation of two novel controllers TID-F and PIDD 2 -PI for stabilizing underactuated ball and balancer system and optimization with different metaheuristic algorithms like WOA, CSA, GBO and GWO.
  • The performance of the system has been analyzed using set point tracking analysis, and step response analysis of the proposed control strategies by employing ITAE as an error reducing function.
  • An evaluation of the control strategies WOA/GWO-TID-F and WOA/GWO- PIDD 2 -PI with numerous different control schemes like PID, PI-D, PI-PD, PIDD 2 -PD and optimization techniques. Robustness has been verified by analyzing some test cases with different parameters of the ball and balancer system, as well as with reference tracking to different ball positions.
Following is a brief outline of rest of the paper: A two-degree-of-freedom ball balancer system is described in Section 2, different controllers are described in Section 3, metaheuristic algorithms are described in Section 4 a summary of the findings and an analysis is presented in Section 5, while conclusion with future prospects are discussed in Section 6.

2. Dynamic Modeling of Ball and Balancer System

A ball and balancer system typically refers to a mechanical or dynamic arrangement involving a ball and a balancing mechanism. For a variety of applications, this system is often designed to ensure stability or equilibrium. Quanser Lab’s equipment 2D ball and balancer system is used in this research represents the system depicted in Figure 1. The plate accommodates a ball that is freely moving. A gimbal with two degrees of freedom can be used to rotate the plate in any direction. Overhead USB cameras and vision units are used to determine the ball’s position. The Quanser Rotary Servo Base Unit (SRV02) mathematical modeling instructions are as follows
In order to move a ball while preserving the servo load angle following equation can be used [35]:
M B x ¨ ( t ) = F = F u F d
As a result of inclination, the positive force is written as:
F d = M B g s i n β ( t )
Rotational forces are generated by the rotation of the ball:
F d = τ B R B = J B θ ¨ ( t ) R B
where J B is the moment of inertia of the ball is, θ is the ball angle and R B is the radius of the ball. When the moment of the ball is applied in the x-direction, we have put x = r θ θ = x R B in (3):
F d = J B x ¨ ( t ) R B 2
Putting the value of F u and F d in (1):
M B x ¨ ( t ) = M B g s i n β ( t ) J B x ¨ ( t ) R B 2
Now adding servo motor (SRV02) dynamics. The equation of motion representing the position of the ball rotation the ball of the servo motor SRV02 load gear α L ( t ) and the beam angle β ( t ) as s i n β ( t ) = 2 h L T . Where L T is the length of the table or plate and h is the height of the table or plate. Taking the sine of the load angle of the servo motor (SRV02):
s i n α ( t ) = h r a h = s i n α L ( t ) r a . Where r a is the distance between the couple joint and output gear-shaft.
s i n β ( t ) = 2 s i n α L ( t ) r a L T Put in (5):
M B x ¨ ( t ) + J B x ¨ ( t ) R B 2 = 2 M B g s i n α L ( t ) r a L T
Trigonometric value s i n α L ( t ) is a non-linear function. We use an approximation s i n α L ( t ) = α L ( t ) for linearization:
M B x ¨ ( t ) + J B x ¨ ( t ) R B 2 = 2 M B g α L ( t ) r a L T
Over all Transfer Function of ball and balancer system is denoted as G ( s ) , where the transfer function of servo motor is G S R ( s ) and ball & balancer system is G B B ( s ) as shown in Figure 2. So the transfer function of the ball and balancer system is:
G ( s ) = G S R ( s ) . G B B ( s )
From (7):
M B + J B R B 2 x ¨ ( t ) = 2 M B g α L ( t ) r a L T x ¨ ( t ) = 2 M B g r a R B 2 L T ( M B R B 2 + J B ) α L ( t )
Let model gain is the co-efficient of α L ( t ) as:
K 1 = 2 M B g r a R B 2 L T ( M B R B 2 + J B ) α L ( t )
x ¨ ( t ) = K 1 α L ( t )
The moment of inertia of the ball is calculated by using the values given in Table 1:
J B = 2 5 M B R B 2 = 2 5 ( 0.003 ) ( 1.96 ) 2 = 0.0046 kgm2. Put in (10):
K 1 = 2 ( 0.003 ) ( 9.8 ) ( 2.54 ) ( 1.96 ) 2 27.5 ( ( 0.003 ) ( 1.96 ) 2 + 0.0046 ) = 1.3
Putting this in (11) we get
x ¨ ( t ) = 1.3 α L ( t )
The Laplace transformation of the linear equation of motion is s 2 X ( s ) = 1.3 α L ( s ) X ( s ) α L ( s ) = 1.3 s 2
G B B ( s ) = X ( s ) α L ( s ) = 1.3 s 2
The angular rate of the SRV02 load shaft with w 1 ( t ) , an input voltage v 1 ( t ) , k 2 = 1.76 a steady state gain, and τ = 0.0285 s is a time constant of the motor then transfer function of the motor is:
G S R ( s ) = k 2 ( τ s + 1 ) s = 1.76 ( 0.0285 s + 1 ) s
Putting the values of G B B ( s ) and G S R ( s ) in (8):
G ( s ) = 1.76 ( 0.0285 s + 1 ) s . 1.3 s 2 = 2.28 0.0285 s 4 + s 3

3. Controller Design

Two robust control strategies including the PIDD 2 -PI, and TID-F tuned with metaheuristic optimization algorithms, WOA and GWO are propose for the position control analysis of ball and balancer systems.

3.1. PID Controller

The ball and balancer system is a classic example of a control problem, where the objective is to keep a ball balanced on a platform by controlling the motion of the platform. One of the most commonly used control techniques for such systems is PID control. PID control is a feedback control technique. In the first step, classical PID controller is implemented tuned with the proposed schemes GWO & WOA as shown in Figure 3.
A PID control method uses feedback control. Depending on the amount of difference between the actual and desired outputs of the system, the control input is adjusted employing proportional, integral, and derivative terms. Control input is adjusted according to the error with the proportional term. As time passes, the integral term adjusts for accumulated errors. By using a derivative term, errors over time can be adjusted.
Ball and balancer systems are controlled by PID by measuring the ball position and comparing it with a set point that is desired. An appropriate control input is determined based on the error in the PID controller, which then adjusts the platform position as a result. This process is repeated continuously to maintain the ball at the required position. The cascaded scheme for control is applied which is consisting of two loops. The inner loop and the outer loop as shown in Figure 4.
In order for the outer loop to be stabilized, the inner loop must first be stabilized. An inner loop keeps track of the angle of the motor Hence; the controller of inner loop should be programmed so the motor angle tracks the reference signal. Ball angles are controlled by outer loops using inner feedback loops. It is therefore necessary to begin with the inner loop. Firstly the inner loop is stabilized, with the inner loop gains Kp = 5.9462, Ki = 0.0136, and Kd = 0.0305. The closed inner loop transfer function using PID is:
G I L ( s ) = 0.05368 s 2 + 10.47 s + 0.02394 0.0285 s 3 + 1.054 s 2 + 10.47 s + 0.0239
After the reduction block, the ball and balancer system is reduced as shown in Figure 5 below:
P ( s ) = 0.06978 s 2 + 13.6 s + 0.03112 0.0285 s 5 + 1.054 s 4 + 10.47 s 3 + 0.02394 s 2
The error function E(s) of a complete system (inner and outer loop) for the PID controller:
E ( s ) = 0.0285 s 5 + 1.054 s 4 + 10.47 s 3 + 0.2394 s 2 0.0285 s 6 + 1.054 s 5 + ( A ) s 4 + ( B ) s 3 + ( C ) s 2 + ( D ) s + 0.03112 K i
A = 10.47 + 0.06978 K d
B = 0.2394 + 13.6 K d + 0.06978 K p
C = 0.03112 K d + 13.6 K p + 0.06978 K i
D = 0.03112 K p + 13.6 K i

3.2. PIDD 2 -PI Controller

The Proposed controller for the ball and balancer system is PIDD 2 coupled with the PI controller as shown in Figure 6.
Proportional Integral Derivative Double Derivative ( PIDD 2 ) regulates a process variable to a desired set point. The PIDD 2 algorithm is an extension of the classical PID controller and adds a second derivative term to improve the system’s performance. The PI (Proportional Integral) controller is a basic feedback control system that uses two control actions to regulate a process variable. An integral term represents the cumulative error over time in PIDD 2 and PI controllers. Proportional terms represent the current error between the set point and the actual process variable. The combination of PIDD 2 and PI control improves the performance. The PIDD 2 algorithm adds a second derivative term to the control signal, which helps to damp any overshoot or oscillations in the system response. On the other hand, PI controller adjust the control signal continuously based on the accumulated error of the system to eliminate steady-state errors. Error signals are calculated as differences between set points and process variables. A control signal is calculated via the PIDD 2 algorithm by combining integral, proportional, derivative, and double derivative terms. The process variable is measured and compared to the desired set point. The PI controller adjusts the control signal based on the accumulated error to eliminate steady-state error. As a result of the control signal, the actuator adjusts the process variable. The control loop is repeated to continuously regulate the process variable to the desired set point based on the next measurement of the process variable.
Overall, the PIDD 2 coupled with the PI controller provides a more advanced and robust control system that can handle a wider range of process dynamics and disturbances compared to the classical PID controller.
The transfer function of PIDD 2 and PI are written as:
G P I D D 2 ( s ) = K p + K I s + K D ( N d s s + N d ) + K D ( N d s s + N d ) . K D D ( N d d s s + N d d )
G P I ( s ) = K p + K I s
The error function for ball and balancer systems using equations of PIDD 2 -PI with ball and balancer system equation is written as:
E ( s ) = ( 0.0285 s 5 + 1.054 s 4 + 10.47 s 3 + 0.02394 s 2 ) ( s + N d ) ( s + N d d ) [ s ( s + N d ) ( s + N d d ) ] ( A ) + [ K p s ( s + N d ) ( s + N d d ) + B s 2 ( s + N d d ) + C N d d s 3 ] [ D ]
A = 0.0285 s 5 + 1.054 s 4 + 10.47 s 3 + 0.02394 s 2
B = K D N d
C = K D N d K D D
D = 0.0978 s 2 + 13.6 s + 0.03112

3.3. TID-F Controller

Filtered tilt integral derivative controller is a combination of TID with filter. The control scheme is shown in Figure 7. It is a feedback controller having four parameters (Kp, N, Ki, and Kd).
TID design [36] have some similarities with PID design, but they also have some differences; PID is modified by replacing “(1/s) n” with a real number (n) in place of the proportional constant. TID-F controller is mathematically represented as follows:
G T I D F = K T s 1 n + K I s + K D ( N s s + N )
K T , K D , and K I represent proportional/tilt, integral and derivative constants on controllers, respectively. The TID controller can be characterized as a combination of fractional order (FO) and integer controllers. TID has an advantage over FO and integer controllers. This method quickly eliminates disturbances between integers and FOs Where derivative filter coefficient is defined by the parameter N.
The error function for ball and balancer system using equation of TID-F with ball and balancer equation is written as
E ( s ) = s 1 n ( s + N ) ( 0.0285 s 5 + 1.054 s 4 + 10.47 s 3 + 0.02394 s 2 ) s 1 + 1 n ( s + N ) ( A ) + [ K T s ( s + N ) + K i s 1 n ( s + N ) + K D N s 2 + 1 n ] [ B ]
A = 0.0285 s 5 + 1.054 s 4 + 10.47 s 3 + 0.02394 s 2
B = 0.06978 s 2 + 13.6 s + 0.03112 ( 24 )

4. Tuning of Controllers Using Metaheuristic Optimization Techniques

Heuristic computational techniques are important for solving optimization problems because they provide efficient and effective solutions when exact methods are impractical or too time-consuming. These techniques can be used in situations where the problem is constantly changing or dynamic, requiring quick adjustments to the solution approach. Overall, heuristic computational techniques are an essential tool for solving optimization problems in a timely and effective manner.

4.1. Whale Optimization Algorithm (WOA)

Humpback whales’ natural hunting behavior is used to design the WOA [20,37,38,39]. Figure 8 is showing the pseudo code of WOA. In order to solve complex optimization problems, population-based optimization is used. It involves two main behaviors: searching and encircling prey. The algorithm uses these two behaviors to iteratively improve the fitness of the solution set. In the search phase, the whales move randomly toward the prey, while in the encircling phase, they surround the prey to trap it. By combining these two behaviors, the WOA algorithm forms a multi-objective optimization problem, with the goal of minimizing fitness. Brief description of its working is following.

4.1.1. General Structure of WOA

The algorithm only requires a small number of control parameters to be tuned, using only one parameter (time interval) needing adjustment. It is based on the assumption that populations of humpback whales searches for food in a multidimensional space, in which individuals’ positions are represented by decision variables, and the distance between individuals and food is reflected in objective costs. There are three operational phases involved in whale action during its time-dependent location: shrinking encircling the prey, bubble-net attacks, and searching for prey. These operational processes are described and mathematically expressed in the following subsections.

4.1.2. Encircling Prey

Humpback whales have the ability to detect the location of prey and surround them. WOA assumes that the current most appropriate candidate solution represents the target prey or is near the optimal design since the exact position of the optimal design in the search space is unknown beforehand. While the algorithm seeks to identify the most efficient search agent, the remaining search agents adjust their positions around the most efficient search agent. The following equations are used to describe this behavior mathematically:
D = | C . X * ( t ) X ( t ) |
X ( t + 1 ) = X * ( t ) A . D
A = 2 a . r a
C = 2 . r
In the given equation, X denotes the overall optimal position, X * represents the position of a whale, t is the current iteration, a represents a linear reduction between 2 and 0.
Where D is the distance vector, that specifies the difference between the current position X ( t + 1 ) denotes the updated position vector for the next and A is the coefficient vector used to update the position which depends on two variables r and a where a is a parameter that controls the spiral updating mechanism. r is a random vector ranging between 0 and 1, used to introduce randomness in the algorithm.

4.2. Grey Wolf Optimization (GWO)

GWOs are motivated by grey wolves’ intelligent hunting tactics [40,41,42,43,44] and social structure. It is generally believed that grey wolves are ranked at the top of their habitat’s hierarchy. It is common for grey wolves to live in groups of 5 to 12 individuals. Its primary goal is to develop the candidate solution during each iteration which makes GWO different from other metaheuristic optimization algorithms. In other words, GWO imitates grey wolf hunting behavior, which involves locating and attacking prey.
Grey wolves undergo the following stages of hunting, which has ben shown in Figure 9 in terms of pseudo code. The process of following, pursuing, and moving forward with the prey continually following, encircling, and harassing the prey. Targeting prey with an attack. According to the several wolf roles that aid in the advancement of the hunting process, the GWO pack is organized into four groups. It has been determined that alpha is the most successful hunting strategy out of the four, with beta, delta, and omega representing the others. In nature, grey wolves are divided into four groups based on their dominance structures. The creators of this algorithm carried out a thorough trial and discovered that taking. A grey wolf population is established as a random population in the GWO search procedure, similar to previous swarm intelligence algorithms. The four wolf groups and their positions are then established, and the distances to the intended prey are calculated. An update is made on each wolf as it symbolizes a potential solution during the search process. To prevent the local optima from stagnating, keep up the exploration and exploitation. Its mathematical model differs from that of other population-based algorithms in that it determines the global optimum by calculating the value of the global average.
To mimic grey wolves hunting and encircling their prey in the wild, it moves a solution around another in an n-dimensional space.

5. Simulation Results and Discussion

In this section, position control of the ball on ball and balancer model with two degrees of freedom is designed and developed in Simulink/MATLAB. The problem is defined using an objective function or fitness function for optimization process, such as convergence of a metaheuristic algorithm toward the global optima of controller adjusted parameters.
The classical PID controller is initially applied to the ball and balancer system, but the results are unsatisfactory as shown in Figure 10.
Table 2 shows that the classical PID controller has large settling time and overshoot. To overcome this situation cascaded control strategy is used for the implementation of the controller. The response of the system is deliberately divided into two sections. Firstly the response of proposed controllers with various others is analyzed by applying different metahueristic approaches like GWO, CSA, GBO and WOA respectively.
The step response comparisons of controllers tuned by GWO are shown in Figure 11.
The proposed control schemes along with the various controllers, like PID, PI-D, PI-PD and PIDD 2 -PI, are then optimized with the recent metaheuristic algorithm including GWO, CSA, GBO, and WOA and results are compared. The optimal gains for controllers tuned by GWO, CSA, GBO and WOA are shown in Table 3. These optimal gains are used further for the improved controller performances.
The GWO is used to tune the PID, PI-D, PI-PD, PIDD 2 -PD, PIDD 2 -PI and TID-F controllers with a focus on minimizing overshoot. However, despite achieving fast rise times, the PIDD 2 -PD controller exhibits a large amount of overshoot. In contrast, the proposed PIDD 2 -PI controller outperforms all other controllers in terms of performance, with a very small settling time 0.6421 s & TID-F settling time 1.0277 s along zero overshoots as shown in Table 4. It is clear that GWO- PIDD 2 -PI & GWO-TID-F perform excellent, and GWO- PIDD 2 -PI is quicker in rise and settling time than GWO-TID-F.
Figure 12 shows that when controllers are tuned using the CSA, the PID and PIDD 2 -PD controllers exhibited a very high degree of overshoot that is 31.0255% and 37.9147%. On the other hand, the PI-D controller has smaller overshoot that is 11.122%, while both the PI-PD and PIDD 2 -PI controllers achieve zero overshoot. Furthermore, the PIDD 2 -PI controller settled faster than the PI-PD controller. A very short rise time is achieved by the PIDD 2 -PD controller. TID-F has good rise and settling time with large overshoots. PI-PD and PIDD 2 -PI controllers are better tuned by CSA. Step response characteristics are shown in Table 5.
Figure 13 shows that, the proposed PIDD 2 -PI controller is optimized very efficiently using GBO settled in 1.6919 s with zero overshoot, Unlike other controllers such as PID, PI-D, and PI-PD, which are having high overshoot. The PIDD 2 -PD controller achieves a quick response with a small overshoot 5.5756%. Further step response characteristics are shown in Table 6.
Figure 14 shows that the WOA algorithm is capable of optimizing a range of controllers, including PID, PID-D, PI-PD, PIDD 2 -PD, and the proposed PIDD 2 -PI. Based on WOA optimization, the PIDD 2 -PD controller for the Ball and Balancer system achieves quick settlement in 0.3965 s and a really fast rise time that is 0.0059 s but having overshoot. On the other hand WOA- PDD 2 -PI and WOA-TID-F are giving zero overshoots with 0.7 s and 1.21 s settling time, respectively, as shown in Table 7. Hence it is clear that GWO and WOA tuning schemes exhibit the most impressive performance among all.
This section explains the response of proposed and comparison controllers tuned with different metahueristic approaches.
Figure 15 shows that PID is effectively optimized with WOA, but it tend to result in overshoots when used with CSA and GBO i-e 31.02% and 22.3% respectively. Accordingly, not all optimization algorithms are suitable for all control structures.
Figure 16 shows that the WOA efficiently optimized PI-D control method with 1.5682 s settling time but 4.6% overshoots as shown in Table 7. However, when applied to CSA and GBO, it tends to result in overshoots and take longer to settle compared to other control methods shown in Table 5 and Table 6.
Figure 17 indicates that the PI-PD control method is effectively optimized by GWO with a significantly smaller settling time than the WOA that is 1.7463 s and 4.3581 s respectively. However, it can lead to overshoots when used with CSA and GBO shown in Table 5 and Table 6.
Figure 18 shows that the PIDD 2 -PD control method is efficiently optimized with GWO, CSA, GBO and WOA with rapid rise time shown in Table 4, Table 5, Table 6 and Table 7. While it results in significant overshoots with GWO, and only minor overshoots with GBO, CSA, and WOA.
Figure 19 shows that the proposed controller PIDD 2 -PI is more effectively optimized by the GWO, CSA, GBO, and WOA shown in Table 4, Table 5, Table 6 and Table 7. This control method is associated with quick rise time and very short settling time, with no overshoots observed. These findings indicate that the PIDD 2 -PI control method can deliver satisfactory results when applied to all optimization techniques.
Figure 20 demonstrates that TID-F control method is effectively optimized by the GWO and WOA but gives some overshoots when tuned by CSA, GBO. TID-F tuned GWO, and WOA gives satisfactory results in rise and settling time with no overshoots. According to the analysis of the results, PIDD 2 -PI and TID-F performed best with WOA and GWO, respectively.
In Figure 21a, the rise time is plotted against each controller. In Figure 21b, the Settling time is plotted against each controller. In Figure 22, the maximum overshoot is plotted against each controller.

5.1. Case Study

This section provides analysis and comparison of proposed control strategies with relevant published research work. It demonstrates the improved performance and robustness. The robustness of proposed control schemes is verified by applying change in parameters of ball and balancer system. In addition step response performance and set point tracking capabilities of proposed strategies are validated.

5.1.1. Case 1

A comparison is made between the proposed controllers GWO-TID-F & GWO- PIDD 2 -PI and SMS-PID & CSMSEOBL-PID [3] by using the model parameters used in Table 1 for a ball and balancer system.

5.1.2. Step Response Comparison with SMS-PID & CSMSEOBL-PID

The step response comparison of proposed control schemes GWO-TID-F & GWO- PIDD 2 -PI with SMS-PID & CSMSEOBL-PID [3] are shown in Table 8.
Figure 23 shows the comparison of step responses for GWO-TID-F & GWO- PIDD 2 -PI versus SMS-PID & CSMSEOBL-PID. It shows that the proposed controller WOA- PIDD 2 -PI gives an excellent response in terms of rise and settling time with zero overshoot. WOA- PIDD 2 -PI reduced 79.55% rise time and decreased 70.35% settling time compared to CSMSEOBL-PID. The 2nd proposed controller GWO-TID-F reduced 53.28% settling time compared to CSMSEOBL-PID with zero overshoot.

5.1.3. Set Point Tracking with SMS-PID & CSMSEOBL-PID

The set point tracking performance is compared by using the reference track signal used in [3]. Comparison of the tracking performance is made with GWO-TID-F & WOA- PIDD 2 -PI versus SMS-PID & CSMSEOBL-PID [3].
Figure 24 shows the comparison of tracking responses for GWO-TID-F & WOA- PIDD 2 -PI versus SMS-PID & CSMSEOBL-PID. It is evident that the proposed controller WOA- PIDD 2 -PI tracks the input signal ideally. The other proposed controller GWO-TID-F tracks the input signal excellently compared to SMS-PID & CSMSEOBL-PID with zero overshoot. Figure 25 shows the comparison of step responses for GWO-TID-F & WOA- PIDD 2 -PI versus DDPG-FC-350-R-PID [4]. Figure 26 is showing the comparison of proposed controllers versus SMS-PID & CSMSEOBL-PID.

5.1.4. Case 2

In CASE 02, the proposed controllers are tested with another related controller deep deterministic policy gradient based PID DDPG-FC-350-R-PID [4] by taking different model parameters. The motor is treated as a first-order system and denote it as G m ( s ) . The gain compensator k m = 0.6854 and time constant T m = 0.187 [4]. Servo Motor transfer function is:
G m ( s ) = k m T m s + 1 = 0.6854 0.187 s + 1
Transfer function of Ball Balancer is:
G B B = 5 g 7 s 2 = 7.007 s 2
Combine transfer function of the Plant is [4]:
G p ( s ) = G m ( s ) G B B ( s ) = 4.803 0.187 s 3 + s

5.1.5. Step Response Comparison with DDPG-FC-350-R-PID

The step response comparison of proposed control schemes GWO-TID-F & WOA- PIDD 2 -PI using the transfer function of ball and plate system as given in (25) with DDPG-FC-350-R-PID [4] is shown in Table 9.
It is clear that proposed controller WOA- PIDD 2 -PI gives an excellent response in terms of rise and settling time with zero overshoot. WOA- PIDD 2 -PI reduced 94.81% rise time and decreased 95% settling time compared to DDPG-FC-350-R-PID, as plotted in Figure 27. The other proposed controller GWO-TID-F reduced 92.76% rise time & decreased 89.50% settling time compared to DDPG-FC-350-R-PID with zero overshoot.

6. Conclusions & Future Work

In this work, the PIDD 2 with PI and TID with filter (TID-F) are proposed control strategies for a ball and balancer system with ITAE as the objective function. The proposed controllers are optimized with CSA, GWO, GBO and WOA. The findings of this research are:
  • PIDD 2 -PI is best tuned with WOA as compared other optimization algorithms like CSA, GWO, and GBO.
  • Optimal tuning of TID-F is achieved with GWO over other optimization algorithms like CSA, WOA, and GBO.
  • The WOA- PIDD 2 -PI and GWO-TID-F controller gives the best response in terms of settling time, rise time and overshoots then others PID, PI-D, PI-PD & PIDD 2 -PD.
  • The proposed controller WOA- PIDD 2 -PI reduced 73.38% settling time, 88.16% rise time compared to classical-PID with zero overshoot
  • The proposed controller GWO-TID-F reduced 58.06% settling time, 26.96% rise time compared to classical-PID with zero overshoot
  • WOA- PIDD 2 -PI reduced 83.96% rise time and 68.94% settling time compared to SMS-PID [3] with zero overshoot
  • GWO-TID-F reduced 51.06% settling time compared to SMS-PID [3] with zero overshoot.
  • WOA- PIDD 2 -PI reduced 79.55% rise time and 70.35% settling time compared to CSMSEOBL-PID [3] with zero overshoot.
  • GWO-TID-F reduced 53.28% settling time compared to CSMSEOBL-PID [3] with zero overshoot.
  • WOA- PIDD 2 -PI reduced 94.81% rise time and 95% settling time compared to DDPG-FC-350-R-PID [4] with zero overshoot.
  • GWO-TID-F reduced 92.76% rise time & 89.03% settling time compared to DDPG-FC-350-R-PID [4] with zero overshoot.
As a result of this research study, it can be concluded that TID-F is best tuned with GWO, and that PIDD 2 -PI is perfectly tuned with WOA. In comparison with related recent published work, GWO-TID-F and WOA- PIDD 2 -PI control schemes are robust and provide superior performance in terms of rising and settling times with zero overshoot with a ball and balancer system. The ball and balancer system likely aims to maintain stability while efficiently controlling the position or movement of the ball. Numerical improvements indicate better stability and enhanced performance of the proposed controllers compared to other methods. This is particularly important in applications where precise control is required, such as in robotics, manufacturing, or even in consumer electronics.
Controllers that exhibit numerical improvements may result in more energy-efficient systems. This is especially relevant in battery-powered devices or systems where minimizing energy usage is essential for prolonged operation. In real-world applications, especially those involving dynamic environments or interacting with external factors, a faster response time can be crucial. For example, in autonomous vehicles or robotic systems, quick and precise control responses are essential for avoiding obstacles or adapting to changing conditions. The ball and balancer system may encounter external disturbances or uncertainties. If the proposed controllers demonstrate numerical improvements in terms of robustness, it implies a better ability to handle disturbances and uncertainties. In practical applications, this robustness can be critical for ensuring reliable performance in varied and unpredictable environments.
Both control strategies provide excellent set point tracking. There are following few future recommendations: There may be room for further optimization of the controller parameters to improve its performance in specific scenarios and implemented to other under actuated systems. The PIDD 2 -PI and TID-F controller can be hybridized with other metaheuristic algorithms such as the Teaching–Learning-Based optimization (TLBO), League Championship Algorithms (LCA), exchange market algorithm (EMA), seeker optimization algorithm (SOA) and social-based algorithm (SBA) etc., to solve complex control problems. Real-time implementation of the PIDD 2 -PI and TID-F controller on embedded hardware platforms can be a future research direction to explore its efficacy in industrial automation systems.

Author Contributions

Conceptualization, F.Z., S.A.A. and A.M.A.; Data curation, T.A., A.D. and F.B.; Formal analysis, T.A.; Funding ac-quisition, S.A.A. and A.M.A.; Investigation, T.A. and A.D.; Methodology, F.Z. and A.D.; Project administration, S.A.M. and S.A.A.; Resources, S.A.A.; Software, F.Z., T.A. and F.B.; Supervision, S.A.M.; Validation, F.B.; Writing—original draft, F.Z.; Writing—review & editing, S.A.M., T.A., A.D., F.B., A.M.A. and S.A.A. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by Research Supporting Project Number (RSP2024R421), King Saud University, Riyadh, Saudi Arabia.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Mehmood, N. Non-Linear Control Techniques for Stabilization of Underactuated Mechanical Systems. Ph.D. Thesis, Capital University, Bexley, OH, USA, 2019. [Google Scholar]
  2. Boscariol, P.; Richiedei, D. Robust point-to-point trajectory planning for nonlinear underactuated systems: Theory and experimental assessment. Robot. Comput.-Integr. Manuf. 2018, 50, 256–265. [Google Scholar] [CrossRef]
  3. Khanduja, N.; Bhushan, B. Hybrid State of Matter Search Algorithm and its Application to PID Controller Design for Position Control of Ball Balancer System. Iran. J. Sci. Technol. Trans. Electr. Eng. 2022, 46, 785–804. [Google Scholar] [CrossRef]
  4. Okafor, E.; Udekwe, D.; Ibrahim, Y.; Bashir Mu’azu, M.; Okafor, E.G. Heuristic and deep reinforcement learning-based PID control of trajectory tracking in a ball-and-plate system. J. Inf. Telecommun. 2021, 5, 179–196. [Google Scholar] [CrossRef]
  5. Shuprajhaa, T.; Sujit, S.K.; Srinivasan, K. Reinforcement learning based adaptive PID controller design for control of linear/nonlinear unstable processes. Appl. Soft Comput. 2022, 128, 109450. [Google Scholar] [CrossRef]
  6. Fan, X.; Zhang, N.; Teng, S. Trajectory planning and tracking of ball and plate system using hierarchical fuzzy control scheme. Fuzzy Sets Syst. 2004, 144, 297–312. [Google Scholar] [CrossRef]
  7. Ivanov, V. A review of fuzzy methods in automotive engineering applications. Eur. Transp. Res. Rev. 2015, 7, 707. [Google Scholar] [CrossRef]
  8. Rastin, M.A.; Talebzadeh, E.; Moosavian, S.A.A.; Alaeddin, M. Trajectory tracking and obstacle avoidance of a ball and plate system using fuzzy theory. In Proceedings of the 2013 13th Iranian Conference on Fuzzy Systems (IFSC), Qazvin, Iran, 27–29 August 2013; pp. 1–5. [Google Scholar] [CrossRef]
  9. Robayo Betancourt, F.I.; Brand Alarcon, S.M.; Aristizabal Velasquez, L.F. Fuzzy and PID controllers applied to ball and plate system. In Proceedings of the 2019 IEEE 4th Colombian Conference on Automatic Control (CCAC), Medellin, Colombia, 15–18 October 2019; pp. 1–6. [Google Scholar] [CrossRef]
  10. Pattanapong, Y.; Deelertpaiboon, C. Ball and plate position control based on fuzzy logic with adaptive integral control action. In Proceedings of the 2013 IEEE International Conference on Mechatronics and Automation, Takamatsu, Japan, 4–7 August 2013; pp. 1513–1517. [Google Scholar] [CrossRef]
  11. Nikita, N.; Bhushan, B. Effect of Parameter Variation of Ball Balancer System Using PD and Fuzzy Control. In Proceedings of the 2022 IEEE Delhi Section Conference (DELCON), New Delhi, India, 11–13 February 2022; pp. 1–6. [Google Scholar] [CrossRef]
  12. Oussama, H.; Mohamed, B.; Abdennour, Z.; Hİchem, S. Tracking control of a ball on plate system using PID controller and Lead/Lag compensator with a double loop feedback scheme. Eur. J. Sci. Technol. 2021, 28, 375–380. [Google Scholar] [CrossRef]
  13. Lawrence, B. Tuning of A PID Controller for Optimal Performance of Ball and Beam System. Int. J. Eng. Res. 2020, V9, 1–5. [Google Scholar] [CrossRef]
  14. Ahamad, N.; Uniyal, S.; Sikander, A.; Singh, G. A comparative study of PID controller tuning techniques for time delay processes. UPB Sci. Bull. Ser. C Electr. Eng. 2019, 81, 129–142. [Google Scholar]
  15. Rao, C.S.; Santosh, S.; V, D.R. Tuning optimal PID controllers for open loop unstable first order plus time delay systems by minimizing ITAE criterion. IFAC-PapersOnLine 2020, 53, 123–128. [Google Scholar] [CrossRef]
  16. Buchi, R. Optimal ITAE Criterion PID Parameters for PTn Plants Found with a Machine Learning Approach. In Proceedings of the 2021 9th International Conference on Control, Mechatronics and Automation (ICCMA), Belval, Luxembourg, 11–14 November 2021; pp. 50–54. [Google Scholar] [CrossRef]
  17. Martins, F.G. Tuning PID controllers using the ITAE criterion. Int. J. Eng. Educ. 2005, 21, 867. [Google Scholar]
  18. Surana, A.; Bhushan, B. Design and Comparison of PSO, SA and GA tuned PID Controller for Ball Balancer Arrangement. In Proceedings of the 2021 Fourth International Conference on Electrical, Computer and Communication Technologies (ICECCT), Erode, India, 15–17 September 2021; pp. 1–5. [Google Scholar] [CrossRef]
  19. Oglah, A.A.; Msallam, M.M. Real-time implementation of Fuzzy Logic Controller based on chicken swarm optimization for the ball and plate system. Int. Rev. Appl. Sci. Eng. 2022, 13, 263–271. [Google Scholar] [CrossRef]
  20. Loucif, F.; Kechida, S.; Sebbagh, A. Whale optimizer algorithm to tune PID controller for the trajectory tracking control of robot manipulator. J. Braz. Soc. Mech. Sci. Eng. 2020, 42, 1280. [Google Scholar] [CrossRef]
  21. Liu, H.; Liang, Y. Trajectory tracking sliding mode control of ball and plate system. In Proceedings of the 2010 2nd International Asia Conference on Informatics in Control, Automation and Robotics (CAR 2010), Wuhan, China, 6–7 March 2010; pp. 142–145. [Google Scholar] [CrossRef]
  22. Bang, H.; Lee, Y.S. Embedded Model Predictive Control for Enhancing Tracking Performance of a Ball-and-Plate System. IEEE Access 2019, 7, 39652–39659. [Google Scholar] [CrossRef]
  23. Tudić, V.; Kralj, D.; Hoster, J.; Tropčić, T. Design and Implementation of a Ball-Plate Control System and Python Script for Educational Purposes in STEM Technologies. Sensors 2022, 22, 1875. [Google Scholar] [CrossRef] [PubMed]
  24. Knuplez, A.; Chowdhury, A.; Svecko, R. Modeling and control design for the ball and plate system. In Proceedings of the IEEE International Conference on Industrial Technology, Maribor, Slovenia, 10–12 December 2003; pp. 1064–1067. [Google Scholar] [CrossRef]
  25. KASSEM, A.; HADDAD, H.; ALBITAR, C. Commparison Between Different Methods of Control of Ball and Plate System with 6DOF Stewart Platform. IFAC-PapersOnLine 2015, 48, 47–52. [Google Scholar] [CrossRef]
  26. Han, G.X.; Meng, S.J.; Huang, D.D.; Hu, Y.F. Zero Steady-state Error Tracking Control for Ball and Plate System Based on Principle of Internal Model. Int. J. Control Autom. Syst. 2023, 21, 890–899. [Google Scholar] [CrossRef]
  27. Pinagapani, A.K.; Mani, G.; K R, C.; Pandian, K. Composite Disturbance Rejection Control for Ball Balancer System. Procedia Comput. Sci. 2018, 133, 124–133. [Google Scholar] [CrossRef]
  28. Singh, R.; Bhushan, B. Real-time control of ball balancer using neural integrated fuzzy controller. Artif. Intell. Rev. 2020, 53, 351–368. [Google Scholar] [CrossRef]
  29. Borah, M.; Majhi, L.; Roy, P.; Roy, B. Design of a Fractional Order PD Controller Tuned by Firefly Algorithm for Stability Control of the Nonlinear Ball and Plate System. In Proceedings of the 2014 IEEE International Conference on Advanced Communication Control and Computing Technologies (ICACCCT), Tamilnadu, India, 8–10 May 2014. [Google Scholar]
  30. Borah, M.; Roy, P.; Roy, B.K. Enhanced Performance in Trajectory Tracking of a Ball and Plate System using Fractional Order Controller. IETE J. Res. 2018, 64, 76–86. [Google Scholar] [CrossRef]
  31. Roy, P.; Das, A.; Roy, B.K. Cascaded fractional order sliding mode control for trajectory control of a ball and plate system. Trans. Inst. Meas. Control 2018, 40, 701–711. [Google Scholar] [CrossRef]
  32. Das, A.; Roy, P. Improved Performance of Cascaded Fractional-Order SMC over Cascaded SMC for Position Control of a Ball and Plate System. IETE J. Res. 2017, 63, 238–247. [Google Scholar] [CrossRef]
  33. Siciliano, B.; Sciavicco, L.; Villani, L.; Oriolo, G. Mobile robots. In Robotics: Modelling, Planning and Control; Spring: Berlin/Heidelberg, Germany, 2009; pp. 469–521. [Google Scholar]
  34. Lurie, B.J. Three-Parameter Tunable Tilt-Integral-Derivative (TID) Controller. U.S. Patent 5,371,670, 6 December 1994. [Google Scholar]
  35. Innovate educate, Q. Rotary Motion Servo Plant: SRV02 Rotary Experiment #17:2D Ball Balancer 2D Ball Balancer Control Using QUARC. Available online: https://nps.edu/documents/105873337/0/56+-+2D+Ball+Balancer+Control+-+Instructor+Manual.pdf/709c97d2-0fae-426c-9e2a-4b36e8411edf?t=1436282347000 (accessed on 20 January 2024).
  36. Esgandanian, A.; Daneshvar, S. A Comparative Study on a Tilt-Integral-Derivative Controller with Proportional-Integral-Derivative Controller for a Pacemaker. Int. J. Adv. Biotechnol. Res. 2016, 7, 645–650. [Google Scholar]
  37. Sun, W.z.; Wang, J.s.; Wei, X. An Improved Whale Optimization Algorithm Based on Different Searching Paths and Perceptual Disturbance. Symmetry 2018, 10, 210. [Google Scholar] [CrossRef]
  38. Chakraborty, S.; Kumar Saha, A.; Sharma, S.; Mirjalili, S.; Chakraborty, R. A novel enhanced whale optimization algorithm for global optimization. Comput. Ind. Eng. 2021, 153, 107086. [Google Scholar] [CrossRef]
  39. Nadimi-Shahraki, M.H.; Zamani, H.; Asghari Varzaneh, Z.; Mirjalili, S. A Systematic Review of the Whale Optimization Algorithm: Theoretical Foundation, Improvements, and Hybridizations. Arch. Comput. Methods Eng. State Art Rev. 2023, 30, 4113–4159. [Google Scholar] [CrossRef]
  40. Hou, Y.; Gao, H.; Wang, Z.; Du, C. Improved Grey Wolf Optimization Algorithm and Application. Sensors 2022, 22, 3810. [Google Scholar] [CrossRef] [PubMed]
  41. Precup, R.E.; Voisan, E.I.; Petriu, E.M.; Tomescu, M.L.; David, R.C.; Szedlak-Stinean, A.I.; Roman, R.C. Grey Wolf Optimizer-Based Approaches to Path Planning and Fuzzy Logic-based Tracking Control for Mobile Robots. Int. J. Comput. Commun. Control 2020, 15. [Google Scholar] [CrossRef]
  42. Djerioui, A.; Houari, A.; Machmoum, M.; Ghanes, M. Grey Wolf Optimizer-Based Predictive Torque Control for Electric Buses Applications. Energies 2020, 13, 5013. [Google Scholar] [CrossRef]
  43. Sharma, I.; Kumar, V.; Sharma, S. A Comprehensive Survey on Grey Wolf Optimization. Recent Adv. Comput. Sci. Commun. 2022, 15, 1. [Google Scholar] [CrossRef]
  44. Şen, M.A.; Kalyoncu, M. Grey wolf optimizer based tuning of a hybrid LQR-PID controller for foot trajectory control of a quadruped robot. Gazi Univ. J. Sci. 2019, 32, 674–684. [Google Scholar]
Figure 1. Diagram of Ball and balancer [35].
Figure 1. Diagram of Ball and balancer [35].
Processes 12 00291 g001
Figure 2. Open loop block diagram of Ball and balancer.
Figure 2. Open loop block diagram of Ball and balancer.
Processes 12 00291 g002
Figure 3. Control scheme of PID.
Figure 3. Control scheme of PID.
Processes 12 00291 g003
Figure 4. Block diagram of Ball and Balancer.
Figure 4. Block diagram of Ball and Balancer.
Processes 12 00291 g004
Figure 5. Reduced Block diagram of Ball and Balancer.
Figure 5. Reduced Block diagram of Ball and Balancer.
Processes 12 00291 g005
Figure 6. Control scheme of PIDD 2 -PI.
Figure 6. Control scheme of PIDD 2 -PI.
Processes 12 00291 g006
Figure 7. Control scheme of TID-F.
Figure 7. Control scheme of TID-F.
Processes 12 00291 g007
Figure 8. Pseudo code of WOA.
Figure 8. Pseudo code of WOA.
Processes 12 00291 g008
Figure 9. Pseudo code of GWO.
Figure 9. Pseudo code of GWO.
Processes 12 00291 g009
Figure 10. Control of the simulated position of the ball by using classical PID controller.
Figure 10. Control of the simulated position of the ball by using classical PID controller.
Processes 12 00291 g010
Figure 11. Step responses of the controllers tuned by GWO.
Figure 11. Step responses of the controllers tuned by GWO.
Processes 12 00291 g011
Figure 12. Step responses of the controllers tuned by CSA.
Figure 12. Step responses of the controllers tuned by CSA.
Processes 12 00291 g012
Figure 13. Step responses of the controllers tuned by GBO.
Figure 13. Step responses of the controllers tuned by GBO.
Processes 12 00291 g013
Figure 14. Step responses of the controllers tuned by WOA.
Figure 14. Step responses of the controllers tuned by WOA.
Processes 12 00291 g014
Figure 15. PID controller response with CSA/GWO/GBO/WOA.
Figure 15. PID controller response with CSA/GWO/GBO/WOA.
Processes 12 00291 g015
Figure 16. PI-D controller responses with CSA/GWO/GBO/WOA.
Figure 16. PI-D controller responses with CSA/GWO/GBO/WOA.
Processes 12 00291 g016
Figure 17. PI-PD controller response with CSA/GWO/GBO/WOA.
Figure 17. PI-PD controller response with CSA/GWO/GBO/WOA.
Processes 12 00291 g017
Figure 18. PIDD 2 -PD controller response with CSA/GWO/GBO/WOA.
Figure 18. PIDD 2 -PD controller response with CSA/GWO/GBO/WOA.
Processes 12 00291 g018
Figure 19. PIDD 2 -PI response with CSA/GWO/GBO/WOA.
Figure 19. PIDD 2 -PI response with CSA/GWO/GBO/WOA.
Processes 12 00291 g019
Figure 20. TID-F controller responses with CSA/GWO/GBO/WOA.
Figure 20. TID-F controller responses with CSA/GWO/GBO/WOA.
Processes 12 00291 g020
Figure 21. Controllers comparison. (a) Graphs of controllers versus rise time. (b) Graph of controller response versus setting time.
Figure 21. Controllers comparison. (a) Graphs of controllers versus rise time. (b) Graph of controller response versus setting time.
Processes 12 00291 g021
Figure 22. Graphs of controllers versus maximum overshoot.
Figure 22. Graphs of controllers versus maximum overshoot.
Processes 12 00291 g022
Figure 23. Step response comparisons of GWO-TID-F & WOA- PIDD 2 -PI versus SMS-PID & CSMSEOBL-PID [3].
Figure 23. Step response comparisons of GWO-TID-F & WOA- PIDD 2 -PI versus SMS-PID & CSMSEOBL-PID [3].
Processes 12 00291 g023
Figure 24. Tracking response comparisons of GWO-TID-F & GWO- PIDD 2 -PI versus SMS-PID & CSMSEOBL-PID [3].
Figure 24. Tracking response comparisons of GWO-TID-F & GWO- PIDD 2 -PI versus SMS-PID & CSMSEOBL-PID [3].
Processes 12 00291 g024
Figure 25. Step response comparisons of GWO-TID-F & GWO- PIDD 2 -PI versus DDPG-FC-350-R-PID [4].
Figure 25. Step response comparisons of GWO-TID-F & GWO- PIDD 2 -PI versus DDPG-FC-350-R-PID [4].
Processes 12 00291 g025
Figure 26. Comparison b/w proposed controller vs. SMS-PID & CSMSEOBL-PID [4].
Figure 26. Comparison b/w proposed controller vs. SMS-PID & CSMSEOBL-PID [4].
Processes 12 00291 g026
Figure 27. Comparison b/w proposed controller vs. DDPG-FC-350-R-PID [4].
Figure 27. Comparison b/w proposed controller vs. DDPG-FC-350-R-PID [4].
Processes 12 00291 g027
Table 1. Parameter values for the proposed system [35].
Table 1. Parameter values for the proposed system [35].
ParameterSymbolValue
Length of table or plate L t 27.5 cm
Distance between couple joint and output gear shaft r a 2.54 cm
Radius of ball R B 1.96 cm
Mass of the ball M B 0.003 Kg
Table 2. Characteristics of step response for classical PID.
Table 2. Characteristics of step response for classical PID.
Name of ControllerController ParametersStep Response Characteristics
KpKiKdRise Time (s)Settling Time (s)Max. Overshoot
Classical-PID3.450.00122.110.77212.45057.9829
Table 3. Control parameters tuned by GWO, CSA, GBO and WOA.
Table 3. Control parameters tuned by GWO, CSA, GBO and WOA.
ControllerControl Parameters
Kp1Ki1KdNdKddNddKp2Ki2kd2n/nf
GWO-PID5.05480.0172.8546-------
GWO-PI-D7.45720.0543.5443-------
GWO-PI-PD2.32.57032.54---2.2227---
GWO- PIDD 2 -PD1.6484.9213.89562200.0267115.525.7921.4241-128.6
GWO- PIDD 2 -PI0.00035460.041513.9834355.460.1007124.550.3760.0137--
GWO-TID-F12.2380.0000432.1444554.234-----126.532
CSA-PID33.72391.05656.8412-------
CSA-PI-D49.92322.523212.5026-------
CSA-PI-PD21.36242.98437.6519---1.324-
CSA_ PIDD 2 -PD12.6483.9212.89563250.134253.792 2.4241335
CSA_ PIDD 2 -PI0.00035460.041514.9834355.460.1124.550.3780.0137
CSA- TID-F757.72910.41939.2916494.1739-----680.9719
GBO-PID0.01210.01036.5043-------
GBO-PI-D0.010.01076.4416-------
GBO-PI-PD31.29980.03168.8136---0.01---
GBO- PIDD 2 -PD1.87614.6763.8324250.02350013.957-2.437229
GBO- PIDD 2 -PI1.15 × 10 6 0.01155.66773500.159350.3780.0137--
GBO-TID-F632.94030.00015014.9453966.157-----966.157
WOA-PID3.5750.03882.7664-------
WOA-PI-D7.34750.34253.4567-------
WOA-PI-PD4.36754.36755.54---3.815---
WOA- PDD 2 -PD25401.71713240.147514.253-2.6500
WOA- PDD 2 -PI1.20 × 10 6 0.0011515.1775500.159750.4750.0023--
WOA- TID-F32.99780.0011.9445962.4152-----316.5016
Table 4. Step response characteristics tuned by GWO.
Table 4. Step response characteristics tuned by GWO.
ControllerPerformance Parameters
Rise Time (s)Settling Time (s)% Overshoot
GWO-PID0.68521.86863.6163
GWO-PI-D0.54371.37472.9435
GWO-PI-PD1.0671.74630.6184
GWO- PIDD 2 -PD0.01470.266954.6068
GWO- PIDD 2 -PI0.2870.64210
GWO-TID-F0.56381.02770
Table 5. Step response characteristics tuned by CSA.
Table 5. Step response characteristics tuned by CSA.
ControllerPerformance Parameters
Rise Time (s)Settling Time (s)% Overshoot
CSA-PID0.19722.324231.0255
CSA-PI-D0.18922.392211.122
CSA-PI-PD0.33221.07970
CSA- PIDD 2 -PD0.00390.954537.9147
CSA- PIDD 2 -PI0.35160.79980
CSA- TID-F0.12311.180829.6977
Table 6. Step response characteristics tuned by GBO.
Table 6. Step response characteristics tuned by GBO.
ControllerPerformance Parameters
Rise Time (s)Settling Time (s)% Overshoot
GBO-PID0.15540.851322.3784
GBO-PI-D0.22551.97917.2446
GBO-PI-PD0.2371.43013.8612
GBO- PIDD 2 -PD0.01082.52345.5756
GBO- PIDD 2 -PI0.08781.69190
GBO-TID-F0.20410.65589.9344
Table 7. Step response characteristics tuned by WOA.
Table 7. Step response characteristics tuned by WOA.
ControllerPerformance Parameters
Rise Time (s)Settling Time (s)% Overshoot
WOA-PID1.05261.83880.1134
WOA-PI-D0.53951.56824.6004
WOA-PI-PD1.57554.35812.2757
WOA- PDD 2 -PD0.00590.39656.1159
WOA- PDD 2 -PI0.09140.65210
WOA-TID-F0.65041.21390
Table 8. Performance Comparison of purposed controllers with SMS-PID & CSMSEOBL-PID [3].
Table 8. Performance Comparison of purposed controllers with SMS-PID & CSMSEOBL-PID [3].
ControllerPerformance Parameters
Rise Time (s)Settling Time (s)% Overshoot
SMS-PID [3]0.572.10.496
CSMSEOBL-PID [3]0.4472.20
GWO-TID-F0.56371.02770
WOA- PIDD 2 -PI0.09140.65210
Table 9. Performance Comparison of proposed controllers versus DDPG-FC-350-R-PID [4].
Table 9. Performance Comparison of proposed controllers versus DDPG-FC-350-R-PID [4].
ControllerPerformance Parameters
Rise Time (s)Settling Time (s)% Overshoot
DDPG-FC-350-R-PID [4]3.04405.68650.01170
GWO-TID-F0.22010.62370
WOA- PIDD 2 -PI0.15790.28410
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zafar, F.; Malik, S.A.; Ali, T.; Daraz, A.; M. Alamri, A.; AlQahtani, S.A.; Bhatti, F. Metaheuristic Optimization Algorithm Based Cascaded Control Schemes for Nonlinear Ball and Balancer System. Processes 2024, 12, 291. https://doi.org/10.3390/pr12020291

AMA Style

Zafar F, Malik SA, Ali T, Daraz A, M. Alamri A, AlQahtani SA, Bhatti F. Metaheuristic Optimization Algorithm Based Cascaded Control Schemes for Nonlinear Ball and Balancer System. Processes. 2024; 12(2):291. https://doi.org/10.3390/pr12020291

Chicago/Turabian Style

Zafar, Farhan, Suheel Abdullah Malik, Tayyab Ali, Amil Daraz, Atif M. Alamri, Salman A. AlQahtani, and Farkhunda Bhatti. 2024. "Metaheuristic Optimization Algorithm Based Cascaded Control Schemes for Nonlinear Ball and Balancer System" Processes 12, no. 2: 291. https://doi.org/10.3390/pr12020291

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