179
Views
0
CrossRef citations to date
0
Altmetric
Research Article

A novel adaptive PID controller with new seesaw algorithms using alternative derivatives

ORCID Icon, ORCID Icon, ORCID Icon, ORCID Icon & ORCID Icon
Article: 2363625 | Received 13 Sep 2023, Accepted 30 May 2024, Published online: 18 Jun 2024

ABSTRACT

The PID controller is present in at least 90% of industrial applications due to its simplicity and robustness to control linear and non-linear systems. Its main drawbacks include difficulty in achieving proper gains tuning for complex systems and lack of adaptability attributed to its fixed gains when system dynamics change. Despite the emergence of promising controllers like Neural Networks, Fuzzy Logic, Sliding Modes, or Genetic Algorithms, diverse research efforts focus on using these to improve the PID rather than replacing it, aiming for either ideal fixed gains or adaptive gains. Nevertheless, while some require system models, training data, rules establishment, extensive iterations, and demanding computational resources, the PID and the novel APID controller do not. The new seesaw algorithms propose alternative behaviours based on the current error and its derivative, which are dynamic parameters that change over time. These behaviours can be inserted into the PID to imbue it with adaptive characteristics, achieving adaptive PID (SeesawAPID) controllers with faster signal rise and stabilization times, reduction of the maximum peak, and less error accumulation compared to conventional PID.

1. Introduction

The need for adaptability in controllers arises due to the changes experienced by systems. Consider the Segway as an example. During operation, it encounters various changes such as users with distinct physical attributes or changing payloads, diverse terrains, and weather conditions, all affecting its performance. Even natural wear and tear of components alters the system and affects the controller's performance. These examples can be extended to many other controlled systems.

The PID controller is widely used in the industry (Åström & Hägglund, Citation2001), comprising 90-95% of control applications. including modern applications such as autonomous cars, unmanned aerial vehicles, and autonomous robots (Díaz-Rodríguez et al., Citation2019). This controller, with its three terms, is employed to achieve system stability and to decrease steady-state error (Johnson et al., Citation2005), addressing both transient and steady-state responses. Due to its structure, easy implementation, and maintenance (Åström & Hägglund, Citation2001), it offers simple and efficient solutions to many control problems. However, each term of the PID has a fixed gain without dynamics, making it unresponsive to changes. As a result, proper gain tuning is crucial for optimal performance (Ang et al., Citation2005; Johnson et al., Citation2005). However, even when tuned to withstand some variations, the PID lacks adaptability.

Adaptive features in control algorithms aim to improve controller performance in response to system changes. This has led research efforts to combine PID controllers with other strategies (Swarnkar et al., Citation2014), either to achieve optimal PID gain tuning or to develop adaptive PID controllers (APIDs) with dynamic PID gains.

Noordin et al. (Citation2023) developed an APID that combines Sliding Mode Control (SMC) and Fuzzy Logic (FL) for a drone's altitude control, aiming for adaptability to variable loads, achieving a 46% improvement over the PID. Its complexity involves a sliding surface proposal, parameters and gains tuning rules, and FL rules to mitigate chattering from SMC. APID and FL gains were manually adjusted. Zeng et al. (Citation2012) developed an APID that combines Neural Networks (NN) and PID to enhance control against external weather fluctuations in a greenhouse. It involves at least a system model and a Radial Basis Function (RBF) network to identify and tune the PID parameters. It was compared with an optimized PID by Genetic Algorithm (GA), an offline tuning that provides fixed gains. GA requires a mathematical model and multiple iterations involving demanding computational resources. Authors claim that the APID has better reference tracking and disturbance rejection. However, the GA-optimized PID shows better quantitative performance. Han et al. combined NN, GA, FL, and PID to achieve an APID for vehicle suspension control (Han et al., Citation2022). Diverse control strategies were employed to adjust the system model through data training and parameter optimization. Also, different approaches were used to estimate a dynamic reference and to design a competent APID for changing road scenarios. The APID had remarkable results; still, the PID controller exhibited adequate performance. Wogi et al. (Citation2022) developed an APID combining FL and PID to control an induction motor. The APID was compared with a Fuzzy SMC controller. Both controllers perform very well, although the FuzzySMC is superior. It is worth noting that the APID required 49 rules for each PID gain, and the inputs for these rules, which consequently establish the control signal, were the error, e(t), and its derivative, de(t)/dt, which coincidently are vital for the seesaw algorithms. Many other examples can be mentioned regarding adaptive PID control (Karanjkar et al., Citation2014; Khan et al., Citation2016; Mahmoodabadi & Safi Jahanshahi, Citation2021; Prabhakar et al., Citation2019; Wang et al., Citation2015).

As can be seen, the label ‘adaptive’ has been used to describe controllers that can adjust their control coefficients in real-time to account for system variations (Swarnkar et al., Citation2014). However, combining two or more controllers can increase complexity in terms of understanding, implementation, and computational demands.

The proposed algorithms can endow PID controllers with adaptive features, achieving variable gains with dynamic adjustments according to e(t) and de(t)/dt. These adaptive PID controllers (SeesawAPIDs) derived from the new seesaw algorithms, do not require system models, training data, rule establishment, or extensive iterative processes. Since they are based on PID, which is well-documented, their implementation and understanding are relatively straightforward, and excessive processing requirements will not be demanded.

The rest of this article is organized as follows: Section 2 provides a visual explanation of the algorithms. Sections 3 and 4 explore the mathematical aspects of the algorithms and their implementation. Section 5 presents the modelling of an inverted pendulum on a cart (IPC), which serves as our test plant. Section 6 presents the necessary code for programming and incorporating the algorithms into the PID. Section 7 demonstrates the functionality of the algorithms and their implementation into the PID for controlling two different plants. Section 8 delves into the results. Section 9 outlines future work directions.

2. Graphic approach

Within a control strategy, the derivative of the error, de(t)/dt, can be understood as an estimation of the future behaviour of a system; in this sense, there is a behaviour inherent in the original slope value, morig (de(t)/dt), of a signal, (t,e(t)). Seesaw algorithms keep the current instant, t, as a pivot and modify the slope, morig, that exists in the control strategy (PID control) using e(t) and de(t)/dt. The results thereof will give a new slope value, a new alternative slope, malt (dalte(t)/dt), so that the perpendicularity of morig can be manipulated. When morig is modified and an alternative derivative, malt, is generated, alternative behaviour proposals will be created and can be inserted into PID formulation to make the PID gains fit to them. This work shows two ways of modifying morig from e(t) and de(t)/dt: the MS and LS seesaw algorithms. The MS seesaw algorithm will speed up the approach toward the set point, SP, and the LS seesaw algorithm will damp the approach toward the SP. Visually, changing from morig to malt will exhibit a seesaw effect, no matter which algorithm is employed.

2.1. MS seesaw algorithm

From a graphical approach (), consider the current instant, t, of the output and the original slope, morig. A point, A1, is generated over morig. A1 is defined by Vome(t). e(t) is the current error and Vom is a magnitude applied over morig; therefore, Vome(t) is e(t)'s magnitude variation over morig.

Figure 1. malt generation with MS seesaw algorithm (a) when Vome(t)=1e(t) and Voye(t)=1e(t); and (b) when morig tends to infinity.

Figure 1. malt generation with MS seesaw algorithm (a) when Vom⋅e(t)=1⋅e(t) and Voy⋅e(t)=1⋅e(t); and (b) when morig tends to infinity.

With A1, another point, A2, defined by Voye(t), is generated. Voy is a magnitude applied over the y-axis; therefore, Voye(t) is e(t)'s magnitude variation over the y-axis. With A2 and the current instant, t, an alternative slope, malt, which is different from morig, is generated. malt converges to the SP in less time (). The behaviour that malt proposes is manipulated with Vom and Voy.

2.2. LS seesaw algorithm

Considering t and morig, a point, A1 is generated at the intersection of morig and the SP. With A1, another point, A2, defined by Vpcte(t) is generated. Vpct is a percentage magnitude (between 0 and 1) applied over the y-axis; therefore, Vpcte(t) is a percentage variation of e(t)'s magnitude on the y-axis. With A2, a malt value of less than morig is generated (). The behavior that malt proposes is manipulated with Vpct.

Figure 2. malt generation with LS seesaw algorithm when (a) Vpcte(t)=0.9e(t) and when (b) Vpcte(t)=0.8e(t).

Figure 2. malt generation with LS seesaw algorithm when (a) Vpct⋅e(t)=0.9⋅e(t) and when (b) Vpct⋅e(t)=0.8⋅e(t).

3. Math formulation: Seesaw algorithms

The procedures of both seesaw algorithms are shown, and for both, the rectangular coordinates (xactual,yactual) of the current instant, t, are established – (t,e(t)) – and act as a pivot: (1) Pactual(xactual,yactual)=Pactual(t,e(t)(1)

3.1. MS seesaw algorithm

The angle θorig corresponding to morig at t is calculated: (2) tan(θorig)=morigθorig=tan1(morig)(2)

A new vector with polar coordinates (r,θ) is generated; here, r is defined by Vome(t) and θ is defined by θorig: (3) (r,θ)=(Vome(t),θorig)(3)

Polar coordinates (Vome(t),θorig) are converted to rectangular coordinates (xom,yom): (4) xom=Vome(t)cos(θorig)(4) (5) yom=Vome(t)sin(θorig)(5)

Although it presents magnitude, direction, and sense, the vector (Vome(t),θorig) is established to not correspond to the position of the current instant, (t,e(t)); the same goes for (xom,yom).

Pactual(xactual,yactual) is added to the rectangular coordinates (xom,yom) to generate a point Palt1(xalt1,yalt1) over morig that is different from (t,e(t)): (6) xalt1=xom+xactualxalt1=Vome(t)cos(θorig)+t(6) (7) yalt1=yom+yactualyalt1=Vome(t)sin(θorig)+e(t)(7)

A new point, Palt2, is generated from Palt1 by the alteration of the yalt1 coordinate. This alteration is achieved with the addition or subtraction of Voye(t) according to (t,e(t)). If e(t) is negative, an addition must be made; if it is positive, a subtraction must be made. e(t) is established to be negative when (t,e(t)) exceeds the SP, and e(t) is positive if, at that instant, (t,e(t)) is below the SP.

In the case of addition, when e(t) is negative, consider Palt2 to be. (8) xalt2=xalt1=Vome(t)cos(θorig)+t(8) (9) yalt2=yalt1+Voye(t)yalt2=Vome(t)sin(θorig)+e(t)+Voye(t)(9)

To generate malt in the case of addition, the slope between points Pactual and Palt2 is calculated: (10) malt=y2y1x2x1=yalt2yactualxalt2xactualmalt=Vome(t)sin(θorig)e(t)+Voye(t)e(t)Vome(t)cos(θorig)+ttmalt=morig+VoyVom1cos(θorig)(10)

In the case of subtraction, when e(t) is positive, consider Palt2 as (11) xalt2=xalt1=Vome(t)cos(θorig)+t(11) (12) yalt2=yalt1Voye(t)yalt2=Vome(t)sin(θorig)+e(t)Voye(t)(12)

To generate malt in the case of subtraction, the slope between points Pactual and Palt2 is calculated: (13) malt=y2y1x2x1=yalt2yactualxalt2xactualmalt=Vome(t)sin(θorig)+e(t)Voye(t)e(t)Vome(t)cos(θorig)+ttmalt=morigVoyVom1cos(θorig)(13)

3.2. LS seesaw algorithm

The angle θorig corresponding to the morig of t is calculated: (14) tan(θorig)=morigθorig=tan1(morig)(14)

The rectangular coordinates of the intersection are set to be (xcross,ycross): (15) Pcross(xcross,ycross)=Pcross(xcross,SP)(15)

The x-coordinate of the intersection between morig and SP is calculated: (16) morig=ycrossyactualxcrossxactual=SPe(t)xcrosst(16) (17) xcross=SPe(t)morig+t(17)

A new point, Palt1, is generated from Pcross, altering ycross: (18) Palt1(xalt1,yalt1)(18) ycross alteration is achieved with the addition of Vpcte(t). The coordinates (xalt1,yalt1) are defined as (19) xalt1=xcross=SPe(t)morig+t(19) (20) yalt1=ycross+Vpcte(t)=SP+Vpcte(t)(20)

Point Palt1 can be rewritten as (18) Palt1(xcross,ycross+Vpcte(t))(18)

To generate malt, the slope between points Pactual and Palt1 is calculated: (21) malt=yalt1yactualxalt1xactual=SP+(Vpcte(t))e(t)SPe(t)morig+ttmalt=morig(SP+e(t)(Vpct1)SPe(t))(21)

4. Math formulation: SeesawAPID control

4.1. Alternative kP (kPalt)

PID control (textbook PID) is used as the foundation (Johnson et al., Citation2005): (22) CO=P+I+DCO=kPe(t)+kI0te(t)dt+kDde(t)dtCO=kPe(t)+kPτI0te(t)dt+kPτDde(t)dtCO=kPe(t)+kPτI0te(t)dt+kPτDmorig(22) where CO is the controller output, e(t) is the error (SP--PV), SP is the set point, PV is the measured process variable y(t), kP is the proportional gain, kI is the integral gain, kD is the derivative gain, τI is the integral time, and τD is the derivative time. All of these are known values.

As shown, it is possible to propose malt using morig and e(t): (23) malt=dalte(t)dt(23)

Once malt is generated, only the D term from the PID is considered (EquationEq. 22): (24) D=kPτDmorig(24)

morig from Equation (24) is replaced with malt from Equation (23): (25) D=kPτDmaltkPτDmalt=Dalt(25) where Dalt corresponds to a desired behaviour, and the Dalt value acts as a reference target.

kP from Equation (24) is isolated as an incognita, and D is replaced with the value of Dalt from Equation (25). This calculation results in an alternative gain, kPalt: (26) kP=DτDmorigDaltτDmorig=kPalti(26)

Equation (26) was developed: (27) kPalti=DaltτDmorig=kPτDmorigτDmorig=kPmaltmorig(27) kPalti varies relative to e(t) and morig (de(t)/dt), which are dynamic values; kPalti adapts to changes, but exhibits indeterminacy when morig=0 and nullity when malt=0. To avoid indeterminacy, a number, ε, is added to the denominator, thereby creating an applicable alternative gain, kPalt: (28) kPalt=ΛkPmaltmorig+ε(28)

4.2. Adaptive kP (kPAdapt)

As kPalt is a dynamic value, eventually, malt=0 and, consequently, kPalt=0, so, when nullified, the kPalt gain cannot support control by itself. To avoid nullification and preserve the adaptive dynamics, kPalt is added to kP. The sum of kP and kPalt forms an adaptive gain, kPAdapt; however, adding kPalt to kP might lead to instability. To avoid instability, a boundary called Λ is assigned to kPalt as a scale factor: (29) kPAdapt=kP+kPalt=kP(1+Λmaltmorig+ε)(29)

4.3. Adaptive PID gains

kPAdapt replaces kP in the PID formula. The bounding Λ is used individually in each term, with ΛP, ΛI, and ΛD: (22) CO=P+I+D(22) (30) P=kPe(t)kPAdapte(t)=PAdapt=kP(1+ΛPmaltmorig+ε)e(t)PAdapt=kPAdapte(t)(30) (31) I=kPτI0te(t)dtkPAdaptτI0te(t)dt=IAdapt=kP(1+ΛImaltmorig+ε)τi0te(t)dtIAdapt=kIAdapt0te(t)dt(31) (32) D=kPτDmorigkPAdaptτDmorig=DAdapt=kP(1+ΛDmaltmorig+ε)τDde(t)dtDAdapt=kDAdaptde(t)dt(32)

An adaptive PID or SeesawAPID controller is obtained: (33) SeesawAPID=COAdapt=PAdapt+IAdapt+DAdapt(33)

5. Test plant

shows a diagram of an IPC.

Figure 3. IPC.

Figure 3. IPC.

Here, M is the cart's mass, m is the pendulum's mass, p is the pivot, L is the pendulum's length, x is the horizontal axis, u is the driving force, and θ is the angle from the vertical (y). The position of M is defined by q0, and the position of m is defined by q1. The system and modelling are based on cited references (Prasad et al., Citation2011; Prasad et al., Citation2012; Prasad et al., Citation2014).

x¨ and θ¨ are obtained: (34) x¨=u+mLθ˙2sin(θ)mgcos(θ)sin(θ)M+msin2(θ)(34) (35) θ¨=ucos(θ)mLθ˙2sin(θ)cos(θ)+(m+M)gsin(θ)ML+mLsin2(θ)(35)

A change in variables is made and the corresponding derivatives are obtained: (36) x˙1=x2Cartsvelocity(36) (37) x˙2=x¨2=x¨Cartsacceleration(37) (38) x˙3=x4Pendulumsangularvelocity(38) (39) x˙4=θ¨Pendulumsangularacceleration(39)

The variable change is completed: (40) x˙2=u+mLx42sin(x3)mgcos(x3)sin(x3)M+msin2(x3)(40) (41) x˙4=ucos(x3)mLx42sin(x3)cos(x3)+(m+M)gsin(x3)ML+mLsin2(x3)(41)

6. Programming

In practice, morig can be replaced with the derivative of the negative process variable: dPV(t)dt. It allowed us to avoid a phenomenon known as derivative kick (Johnson et al., Citation2005). Mathematically, since SP is constant, its derivative is zero. Considering e(t)=SPPV, derivation proceeds: (42) de(t)dt=dSPdtdPVdtde(t)dt=0dPVdt(42) To keep track of the already presented theory, morig will be used instead of dPV(t)dt for all of the following codes.

6.1. MS seesaw algorithm code

The following code must be implemented to increase the slope when the signal is convergent to the SP:

If

Condition: e(t)>0 & morig<0 %positive error.

Action: morig(Voy/Vom)(1/cos(tan1(morig)))

Output: malt

Else If

Condition: e(t)<0 & morig>0 %negative error.

Action: morig+(Voy/Vom)(1/cos(tan1(morig)))

Output: malt

Else

Action: morig

Output: morig

6.2. LS seesaw algorithm code

The following code must be implemented to decrease the slope when the signal is convergent to the SP:

If

Condition: e(t)>0 & morig<0%positive error.

Action: morig(SP+e(t)(Vpct1)/SPe(t))

Output: malt

Else If

Condition: e(t)<0 & morig>0 %negative error.

Action: morig(SP+e(t)(Vpct1)/SPe(t))

Output: malt

Else

Action: morig

Output: morig

6.3. Seesaw algorithms code for PID control

The previous codes are suitable for the visualization of the calculation of malt. However, when the seesaw algorithms are applied in the PID, the very nature of each algorithm must be considered, such as whether it is desired to act at all times of the convergent signal toward the SP or in specific intervals. If specific intervals are chosen, it is necessary (when programming) to change the ‘If and else Conditions’ when calculating malt. For the plants evaluated in this article, a change in the ‘If and else Conditions’ – (e(t)>0.025 & morig<0 and e(t)<0.025 & morig>0) – was performed in the MS seesaw algorithm code. Both algorithms can be ‘Conditions’ modified for the calculation of malt if appropriate.

6.4. Alternative kP (kPalt) code

Regardless of the algorithm used for malt, the following function is used for kPalt:

Function: kPalt=kP(malt/(morig+ε))

6.5. Adaptive PID gain code

To calculate kPAdapt, kIAdapt, and kDAdapt, the following functions are used:

Function:kPAdapt=kP+(kPaltΛP)

Function:kIAdapt=kI+(kPalt/τI)ΛI)

Function:kDAdapt=kD+(kPaltτD)ΛD)

6.6. Controllers structures

shows a comparison between the PID parallel structure and the proposed SeesawAPID parallel structure.

Figure 4. Controllers: (a) PID with D from PV; (b) SeesawAPID with D from PV.

Figure 4. Controllers: (a) PID with D from PV; (b) SeesawAPID with D from PV.

6.6.1. Parameters tuning

The gains of the PID controllers used as a base were tuned using the PID Tuner of Simulink®. Once these values were obtained, they remained unchanged for the adaptive controllers APIDMS and APIDLS. The parameters for each algorithm were manually adjusted, following a Model-Based Tuning approach similar to heuristic PID tuning:

  • APIDMS. Initial adjustment of Vom and Voy, followed by a progressive activation and adjustment sequence of ΛP, ΛD, and ΛI.

    • o Vom and Voy. Commencing with a 25/1 ratio, progressively decreasing it to 1/1.

  • APIDLS. Initial adjustment of Vpct, followed by a progressive activation and adjustment sequence of ΛP, ΛD, and ΛI.

    • o Vpct. Commencing with a value of 0.99. It can be increased or decreased within the suggested range between 7 and 0.1.

Progressive activation and adjustment involve setting the limiter to 1 and gradually decreasing the value for enhanced control. The process is repeated for subsequent parameters. If optimal results aren't achieved, readjust the APID parameters and then the limiters again.

7. Simulation results

7.1. Algorithms demonstrations

In all demonstrations, the e(t), morig, and malt values of the corresponding algorithms were graphed, (e(t) is represented as a sine wave). Consider SP=0.

7.1.1. malt generation with MS seesaw algorithm

shows the malt values from Equations (10) and (13). It merely depicts the static calculation of the alternative slope (malt) with the MS seesaw algorithm (for both converging and diverging signals) for positive and negative errors.

Figure 5. MS seesaw algorithm (a) when e(t), Voy=1, and Vom=2. malt>morig and (b) when +e(t), Voy=1, and Vom=2. malt<morig.

Figure 5. MS seesaw algorithm (a) when −e(t), Voy=1, and Vom=2. malt>morig and (b) when +e(t), Voy=1, and Vom=2. malt<morig.

7.1.2. malt generation with LS seesaw algorithm

shows the malt values from Equation (21). It merely shows the calculation of malt with the LS seesaw algorithm for diverging signals when there are positive and negative errors.

Figure 6. LS seesaw algorithm (a) when e(t), +morig, and Vpct=0.2. malt<morig and (b) when +e(t), morig, and Vpct=0.2. malt>morig.

Figure 6. LS seesaw algorithm (a) when −e(t), +morig, and Vpct=0.2. malt<morig and (b) when +e(t), −morig, and Vpct=0.2. malt>morig.

7.2. Generic plant control with APIDMS and APIDLS

A transfer function, TF, is proposed: (43) TF=1(s+2)(s+3)(s+4)=1s3+9s2+26s+24(43)

shows the parameters for the PID, the APIDMS, and the APIDMS controllers.

Table 1. Controllers parameters.

shows the responses to a step input (with a value of 1) of the open-loop and PID-controlled system.

Figure 7. (a) Free response of the system; (b) PID controller response.

Figure 7. (a) Free response of the system; (b) PID controller response.

and show the transient and stationary responses to a step input (with a value of 1) of the PID and the SeesawAPID controllers. shows a quantitative comparison based on standard evaluation metrics obtained from the controller's signals (Abbas & Mustafa, Citation2023; Ogata, Citation2010).

Figure 8. (a) PID vs. APIDMS; (b) PID vs. APIDLS.

Figure 8. (a) PID vs. APIDMS; (b) PID vs. APIDLS.

Table 2. Controllers comparison.

shows a slope comparison between the PID and the SeesawAPID controllers. The APIDMS slope shows a more aggressive slope, and the APIDLS slope shows a softened one, both correspond to its very nature.

Figure 9. (a) PID slope vs. APIDMS slope; (b) PID slope vs. APIDLS slope.

Figure 9. (a) PID slope vs. APIDMS slope; (b) PID slope vs. APIDLS slope.

7.3. Equilibrium control of the IPC with APIDMS and APIDLS

shows the system parameters for the IPC.

Table 3. Parameters for the IPC.

The parameters are substituted into Equations (40) and (41). (40) x˙2=u+0.0828x42sin(x3)2.2563cos(x3)sin(x3)2.4+0.23sin2(x3)(40) (41) x˙4=ucos(x3)0.0828x42sin(x3)cos(x3)+25.8003sin(x3)0.864+0.0828sin2(x3)(41)

Tables and show the parameters of the controllers.

Table 4. Equilibrium control parameters.

Table 5. Position control parameters.

shows the responses of the free system and the equilibrium and position PID-controlled system. Equilibrium's SP was set to 0°, a fully vertical standing, and the position's SP was set to 1.

Figure 10. (a) Free response of the system; (b) PID equilibrium control and PID position control responses.

Figure 10. (a) Free response of the system; (b) PID equilibrium control and PID position control responses.

compares the equilibrium control between the PID and SeesawAPID controllers. shows an equilibrium control quantitative comparison using evaluation metrics for transient and stationary response stages (Abbas & Mustafa, Citation2023; Ogata, Citation2010).

Figure 11. Equilibrium control of (a) PID vs. APIDMS and (b) PID vs. APIDLS.

Figure 11. Equilibrium control of (a) PID vs. APIDMS and (b) PID vs. APIDLS.

Table 6. Equilibrium control comparison.

shows a slope comparison of the equilibrium control between the PID and SeesawAPID controllers. The APIDMS generates a malt value greater than morig and The APIDLS generates a malt value of less than morig, which corresponds to its expected functionality.

Figure 12. (a) PID slope vs. APIDMS slope; (b) PID slope vs. APIDLS slope.

Figure 12. (a) PID slope vs. APIDMS slope; (b) PID slope vs. APIDLS slope.

The use of algorithms for the equilibrium control affected the position control accordingly; graphs the corresponding affectation of each algorithm. show the transient and stationary responses affected by the SeesawAPID controllers (Abbas & Mustafa, Citation2023; Ogata, Citation2010).

Figure 13. PID position control affected by (a) APIDMS equilibrium control and by (b) APIDLS equilibrium control.

Figure 13. PID position control affected by (a) APIDMS equilibrium control and by (b) APIDLS equilibrium control.

Table 7. Affected position control comparison.

8. Discussion

The seesaw algorithms focus on convergent signals towards an SP, adapting to system changes but not necessarily controlling entirely different systems. They build upon a pre-existing PID to enhance its functionality.

The MS seesaw algorithm aims to achieve faster response than the original, accelerating signal approximation and facilitating quicker attainment of the SP. However, it can lead to aggressive behaviour and oscillations rather than stabilization. It's advisable to deactivate it near the SP (6.3 Seesaw algorithms code for PID control).

The LS seesaw algorithm aims to reduce signal perpendicularity, smoothing its approach to the SP and mitigating oscillations around it. The maximum Vpct value intended for the LS algorithm was 0.99 (99%). However, it was observed during development that this limit could be exceeded, resulting in significant improvements with values as high as 700%.

Throughout the development of the algorithms, ΛI tended to destabilize the system, so minimal values were usually employed, resulting in similar outcomes between using kI or kIAdapt. Despite these experiences, setting ΛI to 0.5 significantly improved the IPC equilibrium control with the APIDLS controller. Setting ΛI at the minimum shouldn't be considered a steadfast rule.

For the tested systems, SeesawAPID controllers improved all signal rising and settling metrics and diminished maximum peak and error accumulation for both systems, fulfilling its goal and exhibiting its logic. For instance, the APIDMS exhibits more oscillations and a longer settling time, ts, but a shorter rising time, tr, compared to the APIDLS. Conversely, the APIDLS shows fewer oscillations and a shorter ts, but a longer tr, than the APIDMS.

Based on the IAE, ISE, ITAE, and ITSE criteria used for evaluating controllers, the APIDLS demonstrated superior performance for both plants. The seesaw algorithms enable the creation of faster and more accurate controllers compared to the PID.

9. Future work

  • The Seesaw algorithms can be applied within a convergent signal, enabling their use concurrently in a single instance.

  • While it's understandable how changing the emerging parameters from the seesaw algorithms could affect outcomes, exploring tuning methods is essential.

  • While it's clear how the seesaw algorithms’ emerging parameters can impact results, exploring tuning methods is crucial.

  • The controllers can be systematically implemented by considering transfer functions from first to higher degrees.

  • Addressing performance comparisons and combinations with other controllers is crucial. Given that these controllers are PID-based, the range of options is extensive.

  • The MS and LS algorithms provide two methods for proposing a slope. Exploring numerous other approaches could potentially yield better results.

Acknowledgements

The authors acknowledge CONAHCYT for providing a doctoral fellowship and CIDESI for the facilities, equipment, and software provided. Conceptualization, J.P.M.H. and J.C.S.V.; methodology, J.P.M.H.; software, J.P.M.H., C.H.S.S., and J.M.B.F; validation, J.P.M.H., D.M.O., and J.M.B.F.; investigation, J.P.M.H.; original draft preparation, J.P.M.H.; review and editing, J.P.M.H. and J.C.S.V.; supervision, J.C.S.V. All authors have read and agreed to the published version of this manuscript.

Disclosure statement

No potential conflict of interest was reported by the author(s).

References

  • Abbas, I. A., & Mustafa, M. K. (2023). A review of adaptive tuning of PID-controller: Optimization techniques and applications. International Journal of Nonlinear Analysis and Applications, 15(2), 29–37. https://doi.org/10.22075/ijnaa.2023.21415.4024
  • Ang, K. H., Chong, G., & Li, Y. (2005). PID control system analysis, design, and technology. IEEE Transactions on Control Systems Technology, 13(4), 559–576. https://doi.org/10.1109/TCST.2005.847331
  • Åström, K. J., & Hägglund, T. (2001). The future of PID control. Control Engineering Practice, 9(11), 1163–1175. https://doi.org/10.1016/S0967-0661(01)00062-4
  • Díaz-Rodríguez, I. D., Han, S., & Bhattacharyya, S. P. (2019). Analytical design of PID controllers. Springer International Publishing. https://doi.org/10.1007/978-3-030-18228-1
  • Han, S.-Y., Dong, J.-F., Zhou, J., & Chen, Y.-H. (2022). Adaptive Fuzzy PID control strategy for vehicle active suspension based on road evaluation. Electronics, 11(6), 921. https://doi.org/10.3390/electronics11060921
  • Johnson, M. A., Moradi, M. H., & Crowe, J. (2005). PID control: New identification and design methods; probability and its applications. Springer.
  • Karanjkar, D. S., Chatterji, S., Kumar, A., & Shimi, S. L. (2014). Fuzzy adaptive proportional-integral-derivative controller with dynamic set-point adjustment for maximum power point tracking in solar photovoltaic system. Systems Science & Control Engineering, 2(1), 562–582. https://doi.org/10.1080/21642583.2014.956267
  • Khan, L., Qamar, S., & Khan, U. (2016). Adaptive PID control scheme for full car suspension control. Journal of the Chinese Institute of Engineers, 39(2), 169–185. https://doi.org/10.1080/02533839.2015.1091427
  • Mahmoodabadi, M. J., & Safi Jahanshahi, S. (2021). Optimal design of an adaptive robust proportional-integral-derivative controller based upon sliding surfaces for under-actuated dynamical systems. Cogent Engineering, 8(1), 1886738. https://doi.org/10.1080/23311916.2021.1886738
  • Noordin, A., Mohd Basri, M. A., & Mohamed, Z. (2023). Real-time implementation of an adaptive PID controller for the quadrotor MAV embedded flight control system. Aerospace, 10(1), 59. https://doi.org/10.3390/aerospace10010059
  • Ogata, K. (2010). Modern control engineering. Pearson.
  • Prabhakar, G., Selvaperumal, S., & Nedumal Pugazhenthi, P. (2019). Fuzzy PD plus I control-based adaptive cruise control system in simulation and real-time environment. IETE Journal of Research, 65(1), 69–79. https://doi.org/10.1080/03772063.2017.1407269
  • Prasad, L. B., Tyagi, B., & Gupta, H. O. (2011). Optimal control of nonlinear inverted pendulum dynamical system with disturbance input using PID controller & LQR. In 2011 IEEE International Conference on Control System, Computing and Engineering (pp 540–545). https://doi.org/10.1109/ICCSCE.2011.6190585.
  • Prasad, L. B., Tyagi, B., & Gupta, H. O. (2012). Modelling and simulation for optimal control of nonlinear inverted pendulum dynamical system using PID controller and LQR. In 2012 Sixth Asia Modelling Symposium (pp. 138–143). https://doi.org/10.1109/AMS.2012.21.
  • Prasad, L. B., Tyagi, B., & Gupta, H. O. (2014). Optimal control of nonlinear inverted pendulum system using PID controller and LQR: Performance analysis without and with disturbance input. International Journal of Automation and Computing, 11(6), 661–670. https://doi.org/10.1007/s11633-014-0818-1
  • Swarnkar, P., Jain, S. K., & Nema, R. K. (2014). Adaptive control schemes for improving the control system dynamics: A review. IETE Technical Review, 31(1), 17–33. https://doi.org/10.1080/02564602.2014.890838
  • Wang, W., Xu, L., & Hu, H. (2015). Neuron adaptive PID control for greenhouse environment. Journal of Industrial and Production Engineering, 32(5), 291–297. https://doi.org/10.1080/21681015.2015.1048752
  • Wogi, L., Ayana, T., Morawiec, M., & Jąderko, A. (2022). A comparative study of fuzzy SMC with adaptive fuzzy PID for sensorless speed control of six-phase induction motor. Energies, 15(21), 8183. https://doi.org/10.3390/en15218183
  • Zeng, S., Hu, H., Xu, L., & Li, G. (2012). Nonlinear adaptive PID control for greenhouse environment based on RBF network. Sensors, 12(5), 5328–5348. https://doi.org/10.3390/s120505328