Metaheuristics Algorithm for Tuning of PID Controller of Mobile Robot System

2022-08-24 07:01HarshGoudPrakashChandraSharmaKashifNisarMuhammadReazulHaqueAgAsriAgIbrahimNarendraSinghYadavPankajSwarnkarManojGuptaandLaxmiChand
Computers Materials&Continua 2022年8期

Harsh Goud,Prakash Chandra Sharma,Kashif Nisar,Muhammad Reazul Haque,Ag.Asri Ag.Ibrahim,Narendra Singh Yadav,Pankaj Swarnkar,Manoj Gupta and Laxmi Chand

1Indian Institute of Information Technology,Nagpur,India

2School of Computing&Information Technology,Manipal University,Jaipur,Rajasthan,India

3Faculty of Computing and Informatics,University Malaysia Sabah,Jalan UMS,Kota Kinabalu,88400,Sabah,Malaysia

4Faculty of Computing&Informatics,Multimedia University,Persiaran Multimedia,Cyberjaya,63100,Selangor,Malaysia

5Maulana Azad National Institute of Technology,Bhopal,India

6Department of Electronics and Communication Engineering,JECRC University,Jaipur,Rajasthan,India

7Department of Computer Science and Engineering,Hanyang University,Seongdong-gu,Seoul,04763,Korea

Abstract: Robots in the medical industry are becoming more common in daily life because of various advantages such as quick response,less human interference,high dependability,improved hygiene,and reduced aging effects.That is why,in recent years,robotic aid has emerged as a blossoming solution to many challenges in the medical industry.In this manuscript,meta-heuristics(MH)algorithms,specifically the Firefly Algorithm (FF) and Genetic Algorithm(GA),are applied to tune PID controller constraints such as Proportional gain Kp Integral gain Ki and Derivative gain Kd.The controller is used to control Mobile Robot System(MRS)at the required set point.The FF arrangements are made based on various pre-analysis.A detailed simulation study indicates that the proposed PID controller tuned with Firefly Algorithm(FF-PID)for MRS is beneficial and suitable to achieve desired closed-loop system response.The FF is touted as providing an easy,reliable,and efficient tuning technique for PID controllers.The most suitable ideal performance is accomplished with FF-PID,according to the display in the time response.Further,the observed response is compared to those received by applying GA and conventional off-line tuning techniques.The comparison of all tuning methods exhibits supremacy of FF-PID tuning of the given nonlinear Mobile Robot System than GA-PID tuning and conventional controller.

Keywords: Metaheuristic algorithm;genetic algorithm;PID controller;mobile robot system;firefly algorithm

1 Introduction

In the medical area,robotics is straight linked to human healthiness.The application of robotics in the medical field is becoming widespread in daily routine.It has several benefits like a fast response,minimum human interferes,high reliability,better hygiene,and less aging effect.That is why Robotic assistance came out as a burgeoning solution to many problems associated with the medical field in the last few years[1-3].An appliance class of mobile robot is track follower wheelchair.To assist and care for citizens with disabilities and specific requirements to achieve particularly advanced assignments,e.g.,spiritual customs,two ideas of planned wheelchair are presented in[4].

For many such applications,appropriate and precise controller design is a challenging task of researchers in this field.In process industries,if the process is linear and time-invariant,conventional controllers with fixed gain can be designed and implemented successfully.Calculating the PID gains using several offline tuning methods like Ziegler and Nichols(ZN)and Chien-Hrones-Reswick(CHR)has been proposed.In these conventional offline PID tuning methods,tuning of PID parameters are often not suitable for nonlinear and time-varying systems.Robotics are mainly nonlinear and time-varying systems,so conventional PID controllers with fixed gain may not be suitable for these applications.The system parameters are normally changed in such applications with times that need continuous monitoring and online PID tuning accordingly[5-8].

Due to this problem,various control techniques based on metaheuristic methods have been employed to get the optimum result and enhance the controller’s performance.These AI techniques comprise of Genetic Algorithm (GA),Particle Swarm Optimization (PSO),Artificial Bee Colony(ABC)[9-12].Even Nowadays,scientists and researchers are solving future-driven network security problems in Software-Defined Networking(SDN)[13-19],Named Data Networking(NDN)[20,21],and cloud computing network[22]with applications such as voice over IP(VoIP)[23-25],worldwide interoperability for microwave access (WiMAX) [26-28]with the support of AI,Machine Learning(ML)[29],Deep learning(DL)techniques[30],and robotic system[31].Xin-She Yang introduced a novel meta-heuristic called Firefly Algorithm (FF).As per the literature,the FF is very influential,achievable,and better than other algorithms,such as GA,to solve several mathematical problems.According to the bibliography outcomes,the situation is clear that the FF is a robust and innovative population-based technique for solving various mathematical or optimization problems[32].

Aim of this paper to design the Metaheuristic Algorithms to tune PID controller parameters.An optimization algorithm based on FA and GA is proposed and compared with conventional PID for MRS.However conventional Chien-Hrones-Reswick (CHR) method of tuning is also implemented for comparison purpose.

2 Related Work

In the past decade,researchers within MRS have been growing fast,particularly due to their several advantages over their disadvantages regarding the workplace.It’s well known that mobile robots are nowadays used within the medical field,different industries,and for many purposes to develop the technologies necessary to obtain mobile robots that support or substitute certain operations performed by humans[33].Numerous complex control algorithms used in robotics,such as adaptive control theory and/or robust control theory,have been projected and executed for natural systems.However,these complex and delicate control algorithms present a less complicated PID system than the popularly utilized controller in robotics and process industries[34].Such a category of algorithms has already been shown to provide adequate functioning in controlling various linear and nonlinear processes.However,the asking of improved approaches to enrich the PID is an emerging domain of investigation.In recent times,the Metaheuristics Algorithm-based PID controller is getting a growing interest along with its suitability and practicality through various explorations.The applications of PID controllers have been described in recent literature[35].

Traditional controllers offer secure and suitable functions for linear time-invariant processes.Nevertheless,when the procedure is performed in the scope sufficiently near to a provided functioning point,this may not guarantee a decent control performance by variants in functional points or ecological situations.For solving such an issue,a considerable attempt has been placed on merging intellectual characteristics of Genetic Algorithm,PSO,FF to fine-tune factors for regulators(controllers)involuntarily.A stochastic,deterministic,population-based,and iterative optimization procedure is recognized as a population-based tuning technique.In current literature,several optimization methods may be found that enhance process operation and transaction with vagueness throughout the process operation.According to the allied literature,PID tuning in robotics and process industries is suitable and academic supports are described in articles.Although various Metaheuristics algorithm-based PID controller techniques are existing in the literature,according to[36-39].

3 System Under Consideration

This section presents the mathematical model of MRS for designing and tuning of PID controller to investigate the system performance under various situations.Without a controller,the existing system’s model gives the oscillatory response and shows high steady-state error,which is undesirable for an application like a wheelchair for the physically challenged person.Tuning of conventional controllers for such systems is a bit challenging.

This paper considers MRS,which consists of electrical and mechanical components with electrical input and speed as output.The transfer function of MRS is shown by Eq.(1).Different controllers will be now designed to enhance the performance of the system.

4 Proposed Control Strategies

The schematic design of the control scheme for MRS is presented in Fig.1.In this article,the main aim is to regulate or control the speed of the wheel.The desired step input voltage Vin(s)is applied and speed wMRS (s) of the MRS is controlled with suggested controllers and through feedback loop.Consequently,an error e(t)is generated through comparison between required speed and real speed of MRS which is given to the PID controller.The optimized values of controller parameters are calculated by GA and FF using the objective function defined by Eq.(3).

Figure 1:A schematic diagram of control action

The corresponding response is the new setpoint of the MRS.Then MRS is operated accordingly to set a new set point until the error is minimized.The performance of the MRS is analyzed in the context of response time conditions settling time.The performance of the MRS is analyzed in context of response time conditions settling time ts,rise time trand maximum overshootMp.The control signal u(t)produced by the controller is the function of three tuning parameters(Kp,Ki,Kd)is shown by Eq.(2).

where

Kp:Proportional Gain

Ki:Integral Gain

Kd:Derivative Gain

t:Time

These PID parameters are chosen to meet prescribed performance criteria for system response.The system performance mainly depends on the appropriate tuning of the controller parameters.In this paper,FF and GA algorithms are proposed to calculate the controller gain(Kp,Ki,Kd)of the controller for MRS.GA is a procedure of optimization which comes in the law of heuristic strategy.As per the principle of Darwin’s theory of survival of the healthiest,that technique has been proposed for starting optimization issues around the area of soft computing.The FF is a novel metaheuristic algorithm that is based on the blinking light presence of fire beetle in the environment.The design of flickers is usually different for a specific class of fire beetle.There are two elementary purposes of these flashes.These are used to invite coupling associates or interact with them and then invite possible victims.Furthermore,this blinking can be used in the form of a guarding alert system.

Here,the objective function is to reduce Integral Time Absolute Error (ITAE) given by Eq.(3)for controller gains.Individually chromosome (in GA),swarm (in FF) for the population would be chosen through the fitness function just one time.Swarm&chromosomes are created through 3 values that relate to the three controller improvements to be set for keeping a satisfactory performance of the PID control.The assessments made up for calculating the functionalities of an individual element of the swarm&chromosome.

5 Results and Discussion

This section provides the design procedure of the tuning method along with the detailed simulation study.The MRS was considered and simulated in a MATLAB environment and controlled by applying CHR-PID,GA-PID,and FF-PID tuning methods,the time responses of the MRS were plotted and analyzed.

5.1 MRS Performances with Conventional PID Tuning with Chien-Hrones-Reswick(CHR)Using SISOTOOL

‘SISOTOOL’is one of the advanced features in the Control System Toolbox in MATLAB that facilitates software-based controller configuration for single-input-single-output (SISO) systems.A typical design workflow with the SISOTOOL involves the following steps:

• Run the transfer function of an inherently unstable system in the editor or command window of MATLAB.

• Type‘SISOTOOL’at the command prompt.

• A new window SISO Design task is open.

• Import the system model(transfer function)of an inherently unstable system.

• Design controllers using PID Tuning method in Classical design formulas(CHR)Automated Tuning and update compensator.

• Now Eq.(4)of compensator is found.

• Click on show analysis plot and investigate control system designs using frequency-domain responses and time-domain such as step responses graphs.

The time response characteristic of the MRS with CHR-PID tuning is shown in Fig.2.It can be observed by Fig.2 that with the CHR technique,the system shows the higher overshoot and oscillation in the response curve,which is not acceptable.In such a situation,we require a series of fine-tuning techniques until a satisfactory outcome is obtained.

Figure 2:Time response graph with tuned CHR tuning technique

5.2 MRS Performance Analysis Using Metaheuristics Algorithm

In this section,system response or outcomes are found by MATLAB encoding,and the comparative investigation is shown to prove the utility of the GA-PID and FF-PID Controller design for the following values of MRS variables.Tabs.1 and 2 presents the initial constraints selected for GA and FF,respectively.

Table 1:Constraints(Parameters)of GA-PID technique

Table 2:Constraints of FF-PID Technique

5.3 Fitness’s Convergence for GA and FF

Next,Fig.3 exhibits the graph between the best fitness and mean fitness for genetic algorithm.It can be observed that in 20 generations,experimental reading points of the best fitness and mean fitness appear nearby each other.Further,the mean fitness stops near the best fitness value,which does not vary with addition in generations,hence presenting the optimal or estimated optimal outcomes for the controller constraints specified values.Fig.4 exhibits the iterations of the best fitness value for FF.Next to 6 iterations,the best fitness does not fluctuate by additional iterations,therefore,giving optimal or near-optimal results for the PID parameter values.Tab.3 confers the values of the controller parameters obtained by GA and FF PID tuning technique.

Figure 3:Convergence of fitness for GA-PID

Figure 4:FF-PID’s convergence of fitness

Table 3:Parameters for GA PID and FF PID for the MRS

Fig.5 shows the performance investigation of MRS with PID controller tuned with metaheuristic algorithms.A comparative analysis of the system has been performed for MRS without the controller,with GA-PID and FF-PID.GA-PID and CHR-PID have faster peak times compared when no controller is employed,which is 1.1401 s.Further,FF-PID tuning has a faster settling time and less maximum overshoot than GA-PID,2.0065 s and 1.4365%,respectively.

Hence FF-PID proves perfection in other time response specifications.Tab.4 compares system performance in relation to time outcome conditions like rising time,peak times,overshoot,and settling time for CHR PID,GA-PID,and FF-PID.

The resulting frequency response(Bode plot)of an MRS with CHR controller is given in Fig.6,in which the Gain margin and Phase margin of the MRS with CHR controller are positive,so the system is stable.Similarly,Fig.7 shows the Bode plot of an MRS without a controller with GA-PID and FF-PID.The gain margin and Phase margin of the MRS without a controller are infinite,so the system is unstable.While using suggested controllers,the gain margin and phase margin are positive,so the system is stable.Minimum stability criterion of MRS calculated from Bode plots presented in Tab.5.

Figure 5:Comparative analysis of MRS performance with GA-PID and FF-PID

Table 4:Assessment of various PID tuning technologies for response specifications

Figure 6:Bode plot for MRS unstable system with CHR controller

Figure 7:Bode plot for stability analysis of MRS performance with GA-PID and FF-PID

Table 5:Minimum stability condition of different PID tuning technologies

6 Conclusions

The paper exhibits optimal tuning of controller parameters,utilizing metaheuristic algorithm GA and the newly advanced FF algorithm.The controller is employed to regulate the speed of MRS and keep it up to reference value.It is described that the FF provides an easy,reliable,and efficient procedure for tuning of PID controller.According to the display in the time response,the most suitable optimal performance is achieved with FF-PID.The system with FF-PID took less time to reach the desired set-point.Hence,stable MRS performance is obtained.To examine the obtained results with other GA-PID and FF-PID controller techniques,CHR-PID is also designed and implemented.Based on the time response specification,it could be resolved that FF-PID exhibits excellent performance for fine-tuning the analyzed nonlinear MRS control system.Eventually,this is confirmed that the PID tuning through FF may be counted when an adequate procedure for the execution of better appearance and unusual quality of the designed control scheme for Mobile Robot System is available.

Acknowledgement:The authors would like to thank the editors of CMC and anonymous reviewers for their time and for reviewing this manuscript and Professor Dr.Yong-Jin Park(IEEE Life member and former Director IEEE Region 10)for his valuable comments and suggestions on improving the paper.

Funding Statement:This research work is fully supported by Universiti Malaysia Sabah(USM).Fund received by K.Nisar.Sponsors’Websites:https://ums.edu.my.

Conflicts of Interest:The authors declare that they have no conflicts of interest to report regarding the present study.