Abstract
In the dynamics analysis and synthesis of a controlled system, it is important to know for what feedback gains can the controlled system decay to the demanded steady state as fast as possible. This article presents a systematic method for finding the optimal feedback gains by taking the stability of an inverted pendulum system with a delayed proportional-derivative controller as an example. First, the condition for the existence and uniqueness of the stable region in the gain plane is obtained by using the D-subdivision method and the method of stability switch. Then the same procedure is used repeatedly to shrink the stable region by decreasing the real part of the rightmost characteristic root. Finally, the optimal feedback gains within the stable region that minimizes the real part of the rightmost root are expressed by an explicit formula. With the optimal feedback gains, the controlled inverted pendulum decays to its trivial equilibrium at the fastest speed when the initial values around the origin are fixed. The main results are checked by numerical simulation.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
An inverted pendulum serves as an important model in many applications, such as in the study of the human body in a quiet standing position [1,2,3] or a biped robot locomotion [4, 5]. It is also an important part of some personal transportation devices, such as two-wheeled motorized vehicles that offer drivers enhanced mobility [6] or power-assist wheelchair robots that help patients climb steps or curbs [7]. In addition, a missile in attitude control during launch and a rocket booster “balanced” on their own thrust vector can be regarded as an inverted pendulum model [8, 9]. An inverted pendulum is a nonlinear and open-loop unstable system that can be stabilized using different control strategies. In Ref. [10], numerical simulations demonstrated that the stability border could be well predicted using the linearized approximation of an inverted pendulum. Actually, most studies involving stability analysis have been based on linear control theories, where the controllers are in the form of state feedback, such as proportional-derivative (PD) controllers [2, 11], proportional-integral-derivative (PID) controllers [3], or linear quadratic regulator (LQR) controllers [12], for example. In addition, nonlinear feedback controllers [13, 14], fuzzy controllers [15,16,17], and adaptive controllers [18] have also been used in controlling inverted pendulums.
A delay effect on controlled inverted pendulums has been discussed in many papers. In Ref. [2], it was confirmed that when a time delay exceeds some critical delay, an inverted pendulum system cannot be stabilized by a PD controller. In addition, it was shown that under an increasing time delay, a digitally controlled inverted pendulum system will be out of control [11]. A time delay is usually unavoidable in digital controllers, filters, hydraulic-servo actuators, and human–machine interactions. Time-delayed systems are described by delay differential equations and are infinite-dimensional systems, no matter how small the delays are. The feature of infinite dimensionality makes the analysis and synthesis of time-delayed systems complicated compared with delay-free ones. Although an inverted pendulum with a delayed feedback controller is essentially nonlinear, the control design in most applications is based on linear control theories. In addition, although lots of different control strategies have been developed, PID controllers constitute the main control strategy used in controlling inverted pendulums. Actually, as pointed out in Ref. [19], PID controllers are the most important class of controllers since 98% of the controllers in use in applications worldwide fall in this category. When the delay is short, a delayed proportional (P) controller can be regarded as an alternative to a PD controller because it responds quickly to input changes but is insensitive to high-frequency noise [20, 21]. Delayed PD control is useful for controlling inverted pendulums, as shown in a study of three paradigms of human balance control: mechanical inverted time-delayed pendulum, stick balancing at the fingertip, and human postural sway during quiet standing [22]. In a study of a mechanical model of postural balancing, delayed proportional-derivative-acceleration (PDA) feedback control was used, and acceleration feedback benefited the stabilization of an inverted pendulum [23]. In Ref. [24], it was shown that even in the presence of time delay, a wheeled inverted pendulum can be well stabilized with only one accelerometer as the sensor when the mechanical structure is slightly modified. In a study of human balancing, delayed PDA control proved helpful in enlarging the stable region [25, 26]. Delayed acceleration feedback was shown effective in vibration absorption [27].
Optimal feedback control has been used for controlling inverted pendulums with different control objectives. One objective is to identify feedback gains that lead to optimal responses, as shown in Ref. [28], where a fuzzy control is combined in the control strategies. Another objective is to minimize the quadratic performance index [29]. To determine the optimal weight matrices in the quadratic performance index of a LQR, a genetic algorithm (GA) can be effective [12]. A third objective is to return the pendulum from the downward to the upward position with a minimum number of swings, for which a nonlinear controller was used to swing up a pendulum attached to a cart in a minimum amount of time [30]. These optimal feedback gains (OFGs) that minimize the performance criteria are sensitive to changes in the parameter values and initial values, and they can be obtained numerically only. Thus, a question arises as to whether it is possible to define the optimal control with less sensitivity in a different sense and whether or not the optimal gains can be determined easily.
Similar to delay-free systems described by ordinary differential equations, the general solution of linear time-delay systems can be expressed in terms of characteristic functions. Thus, the decaying ratio of a solution can be determined simply by the real part of the rightmost characteristic roots (characteristic roots with the largest real parts). The smaller (the larger in absolute value) the real part of the rightmost characteristic root(s) is, the faster the solution decays to zero. In this sense, the real part of the rightmost characteristic roots can be used as an index of stability, and it can be obtained using the iteration method [31, 32] or a combination of integration and iteration [33]. However, no results have been reported in the literature on finding the OFGs that minimize the real part of the rightmost characteristic roots within a given stable region. The aim of this article is to present an approach for finding the OFGs of time-delayed systems, demonstrated on a controlled inverted pendulum under a delayed PD feedback controller.
The rest of this article is organized as follows. In Sect. 2, the problem and main results are stated. Sections 3 and 4 are devoted to the proof of the main results. In Sect. 3, first the properties of critical stable curves are discussed, and then the unique connected stable region in the gain plane is determined. In Sect. 4, based on the repeated analysis of the so-called \(\sigma \)-stability, the explicit formula for OFGs within the stable region and the minimal real part of the rightmost characteristic roots are derived. In Sect. 5, numerical simulation results are given for demonstration purposes. Finally, some concluding remarks are made in Sect. 6.
2 Problem statement and main results
An inverted pendulum is one of the most important mechanical models. In active vibration control, many systems and structures can be modeled directly using an inverted pendulum, or they can be simplified to an inverted pendulum. In dimensionless form, an inverted pendulum model can be described by
where x(t) is the angle of deviation of the inverted pendulum, \(\varOmega >0\), \(\xi \in {\mathbb {R}}\). The free vibration is unstable, and u(t) is a linear feedback control to make the closed loop stable. The linearized system around \(x(t)=0\) reads
Under a time-delayed PD control of the form \(u(t)=-k_{\mathrm{p}}x(t-\tau )-k_{\mathrm{d}}\dot{x}(t-\tau )\), the system equation becomes a retard delay differential equation
The corresponding characteristic function is
The characteristic equation \(p(\lambda )=0\) has infinitely many roots, denoted by \(\sigma _{1}+\mathrm{i}\omega _{1}, \sigma _{2}+\mathrm{i}\omega _{2}, \cdots \), and satisfying \(\sigma _{1}>\sigma _{2}> \cdots \) without loss of generality. Then the general solution of Eq. (3) can be expressed as
where \(p_n(t)\) and \(q_n(t)\) are polynomials depending on the initial conditions and the multiplicity of the characteristic root \(\lambda _n=\sigma _n+\mathrm{i}\omega _n\). For sufficiently large t, the solution is dominated by the terms in x(t) related to \(\lambda _1=\sigma _1+\mathrm{i}\omega _1\). In the case of \(\sigma _1<0\), the unique equilibrium \(x=0\) of Eq. (3) is asymptotically stable, and the smaller the real part of the rightmost characteristic roots \(\sigma _1\) is, the faster the general solution x(t) decays to zero. Thus, regarding \(\sigma _1\) as a function with respect to \((k_\mathrm{p},k_\mathrm{d})\), it is important to know under what conditions \(\sigma _1\) is negative and for what gain values within a given domain \(\sigma _1\) takes the minimum. The main objective of this article is to find a pair of \((k_\mathrm{p},k_\mathrm{d})=(k_\mathrm{p}^*,k_\mathrm{d}^*)\) in the asymptotically stable region \(S_0\) such that
Within the stable region \(S_0\), the minimum \(\sigma _1^*\) can be obtained by using a combination of the D-subdivision method [34] and stability switch theory [35] repeatedly, on the basis of the critical-stable curves determined by \(p(\sigma +\mathrm{i}\omega )=0\). The main results can be stated as follows
Theorem 1
-
(1)
For a given delay \(\tau \) (\(\tau \geqslant 0\)), the stable region \(S_0\) in the \((k_\mathrm{p},k_\mathrm{d})\)-plane of Eq. (3) is a connected domain that exists and is unique if and only if \(\varDelta _0=4\xi \varOmega \tau +2-\varOmega ^2\tau ^2>0\).
-
(2)
In the stable region \(S_0\), the minimum \(\sigma _1^*\) can be expressed explicitly
$$\begin{aligned} \sigma _1^*=\frac{-\xi \varOmega \tau -2 +\sqrt{\xi ^{2}\varOmega ^{2}\tau ^{2}+\varOmega ^{2}\tau ^{2}+2}}{\tau }, \end{aligned}$$(7)
and the corresponding gains \(k_\mathrm{p}^*\) and \(k_\mathrm{d}^*\) are given by
This theorem will be proved in the next two sections. Here, it is worth noting that the minimum \(\sigma _1^*\) given in Eq. (7) can be rewritten in the following form
As a direct application of Theorem 1, \(\varDelta _0=0\) gives the critical delay as follows
In particular, \(\tau _\mathrm{c}=\sqrt{2}/\varOmega \) if \(\xi =0\), which is the same as the one obtained in Ref. [2].
When \(\varDelta _0>0\), the stable region \(S_0\) exists uniquely, and the corresponding minimum \(\sigma _1^*\) is given in Eq. (7), depending on \(\xi \) and \(\tau \). Direct computation gives
Hence \( \mathrm{sgn}\left( \frac{\mathrm{d}\sigma _1^*}{\mathrm{d}\xi }\right) =-1<0 \). This means that \(\sigma _1^*\) decreases with respect to \(\xi \) and
Thus, \(\sigma _1^*\geqslant -2/\tau \) holds for any positive number \(\xi \), and the effects of damping on the decaying ratio of the solution of Eq. (3) are limited. Similarly,
It follows that \(\sigma _1^*\) increases with respect to \(\tau \). Moreover, \(\lim _{\tau \rightarrow +\infty }\sigma _1^*=(-\xi +\sqrt{1+\xi ^2})\varOmega >0\) and \(\lim _{\tau \rightarrow +0}\sigma _1^*=-\infty \), so there is a \(\tau ^*>0\) such that \(\sigma _1^*>0\) for all \(\tau >\tau ^*\). Thus, when the OFGs \((k_\mathrm{p}^*, k_\mathrm{d}^*)\) are fixed, increasing the delay value leads to a deterioration of the stability, and the controlled inverted pendulum must be unstable for sufficiently large delay \(\tau \) for any given gain values. A similar result is obtained when the frequency \(\varOmega \) varies.
3 Existence and uniqueness of stable region in the gain plane
3.1 Key properties of critical-stable curves
When system (3) is in a critical-stable state, namely \(p(\mathrm{i}\omega )=0\), two cases are considered. Case (1): \(\omega =0\). In this case, \(p(0)=0\) yields \(k_\mathrm{p}=\varOmega ^2\), which defines a straight line \(\tilde{L}_0\). Case (2): \(\omega \ne 0\). In this case, separating the real and imaginary parts of \(p(\mathrm{i}\omega )=0\) gives
where \(\mathfrak {R}(z)\) and \(\mathfrak {I}(z)\) denote the real and imaginary parts of the complex number z, respectively. It follows that
and
As \(\omega \) varies from 0 to \(+\infty \), Eq. (13) defines a critical-stable curve \(L_{0}\) in the \((k_\mathrm{p}, k_\mathrm{d})\)-plane, and the critical-stable curve of the closed-loop (3) is composed of \(L_{0}\) and \(\tilde{L}_{0}\). Denote the intersection points of the curve \(L_{0}\) and \(k_{\mathrm{p}}\) axis by \(P_{1},P_{2},\cdots ,P_{k},\cdots \). The corresponding values of \(\omega \) at these intersection points satisfy \(0<\omega _{1}<\omega _{2}<\cdots<\omega _{k}<\cdots \).
Lemma 1
\(L_0\) does not intersect with itself on the right side of \(\tilde{L}_0\).
Proof
Equation (11) can be rewritten as
Let \(\alpha =4\xi ^{2}\varOmega ^{2}+2\varOmega ^{2}-k_{\mathrm{d}}^{2}\) and \(\beta =\varOmega ^{4}-k_{\mathrm{p}}^{2}\); then calculating the modulus of both sides of Eq. (14) gives \(F_0(\omega )=0\), where
or is simply denoted by \(F_0(\omega )=\omega ^{4}+\alpha \omega ^{2}+\beta \). The curve \(L_0\) intersects at \((k_\mathrm{p}, k_\mathrm{d})\) with itself only if \(F_0(\omega )\) has two different positive roots. This is true if and only if
On the right side of \(\tilde{L}_0\), one has \(k_\mathrm{p}>\varOmega ^2\), which leads to \(\beta <0\). Thus, \(L_0\) cannot intersect with itself on the right side of \(\tilde{L}_0\).
Moreover, when \(\alpha>0, \beta >0\), i.e., \(k_{\mathrm{p}}^2<\varOmega ^{4}, k_{\mathrm{d}}^{2}<4\xi ^{2}\varOmega ^{2}+2\varOmega ^{2}\), which define a rectangle \(M_{0}\) in the \((k_\mathrm{p}, k_\mathrm{d})\)-plane, then \(F_0(\omega )=0\) has no positive roots. In this case, \(L_{0}\) cannot pass through \(M_{0}\).
Actually, Eq. (14) can be rewritten as
where the two matrices stand for a scaling transformation and a rotation transformation, respectively. Thus, \(L_0\) is the mapping of a parabola after a rotation transformation and a scaling transformation. In particular, when \(\tau =0\), the parabola after a scaling transformation becomes a straight line. When \(\omega \gg 1\), Eq. (15) gives
Thus, for a fixed \(\tau >0\) and sufficiently large \(\omega \), the critical stable curve \(L_0\) looks like a spiral that goes to infinity.
Lemma 2
At the intersection points \(P_n\) on the left half of the \(k_\mathrm{p}\)-axis, where the corresponding gain value \(k_\mathrm{p}^{(n)}<0\), one has
And at the intersection points \(P_n\) on the right half of the \(k_\mathrm{p}\)-axis, where \(k_\mathrm{p}^{(n)}>0\), one has
Proof
A straightforward application of the implicit function theorem gives
At \(P_{n} (n=1,2,\cdots )\), one has \(|\frac{{\partial }p(\lambda )}{{\partial }k_{\mathrm{d}}}|=|\omega _n\sin (\omega _n\tau )+\mathrm{i}\omega _n\cos (\omega _n\tau )|=|\omega _n|\ne 0\). Thus,
Because \(L_0\) does not pass through \(M_0\), which includes the origin, \(k_\mathrm{p}^{(n)}\ne 0\). Substituting Eq. (12) into the preceding equation yields
In addition, because \(\tan (\omega \tau )=\frac{2\xi \varOmega \omega }{\omega ^2+\varOmega ^{2}}\), one has
It follows that
Moreover, at \(P_n^{(n)}\), one has \(k_\mathrm{d}=0\). Owing to Eq. (12), it holds that
where \(k_{\mathrm{p}}^{(n)}\) is the corresponding value of \(k_\mathrm{p}\) at \(P_n, k_\mathrm{p}^{(n)}\ne 0\). It follows that
As a result, both Eqs. (17) and (18) are true.
Lemma 2 implies that as \(k_\mathrm{p}\) or \(k_\mathrm{d}\) varies and passes through the critical-stable curve \(L_0\) from one region to another, the number of characteristic roots with positive real parts changes by 2. That is to say, with a fixed \(k_\mathrm{d}\), the closed loop increases (or decreases) one pair of conjugate complex characteristic roots with a positive real part when \(k_\mathrm{p}\) passes through \(L_0\) from left to right on the right half-plane \(k_\mathrm{p}>\varOmega ^2\) (or the left half-plane \(k_\mathrm{p}<\varOmega ^2\)). This fact is demonstrated in Fig. 1a, where \(P_1, P_2, P_3, P_4, \cdots \) are the intersection points of \(L_0\) with the \(k_\mathrm{p}\)-axis, the arrows are tangent to the solid curve \(L_0\) at the intersection points, and the integers are the numbers of unstable characteristic roots. The plot around the origin is magnified as shown in Fig. 1b, where the dashed line is the straight line \(\tilde{L}_0\), and the connected region \(S_0\) is a possible stable region of the controlled inverted pendulum. The gray rectangle represents \(M_0\), for which the controlled inverted pendulum has exactly one unstable root.
3.2 Existence of stable region
The region \(S_0\) given in Fig. 1b is an asymptotically stable region; here \(\varDelta _0=2.03>0\) holds. Moreover, a general statement is true, namely, the first statement of Theorem 1 holds. In fact, let \(\varDelta _0=4\xi \varOmega \tau +2-\varOmega ^{2}\tau ^{2}\). On the straight line \(\tilde{L}_{0}\) defined by \(p(0)=0\), one has
The start point \((\varOmega ^{2},\varOmega ^{2}\tau -2\xi \varOmega )\) of \(L_0\) divides \(\tilde{L}_{0}\) into two parts: points on the upper part that lead to \(s_0<0\) and points on the lower part that result in \(s_0>0\). With a fixed \(k_\mathrm{d}\) satisfying \(s_0>0\) (or \(s_0<0\)), the closed loop increases (or decreases) one unstable root when \(k_\mathrm{p}\) passes through \(\tilde{L}_0\) from left to right. Note that the upper right region of the start point must be an asymptotically stable region if the start point is located on the right boundary of \(M_0\) because the number of its unstable roots must be less than \(M_0\).
The lower and upper right endpoints on the boundary of \(M_{0}\) are \((\varOmega ^2, -\varOmega \sqrt{4\xi ^2+2})\) and (\(\varOmega ^2, \varOmega \sqrt{4\xi ^{2}+2}\)). The start point must be located above the lower one owing to \(\varOmega ^2\tau -2\xi \varOmega >-\varOmega \sqrt{4\xi ^2+2}\).
On the one hand, if \(\varDelta _0>0\), then \(\varOmega ^2(4\xi ^{2}+2)-(\varOmega ^{2}\tau -2\xi \varOmega )^{2}=\varOmega ^{2}\varDelta _0>0\), which means the start point stands between the two endpoints, so that the asymptotically stable region \(S_0\) exists and is located on the upper right side of the start point.
On the other hand, the stable region \(S_0\) on the upper right side of the start point exists only if the tendency of \(L_0\) at the beginning is toward the right side of \(\tilde{L}_0\), namely, \(\frac{\mathrm{d}k_\mathrm{p}}{\mathrm{d}\omega }|_{\omega =0}>0\). A Taylor series expansion gives
for \(\omega \in B(0,\delta )\), where \(B(0, \delta )\) is a \(\delta \)-neighbor of 0 in \({\mathbb {R}}^1\). When \(\varDelta _0\leqslant 0\), the slope is negative. Thus, \(\frac{\mathrm{d}k_\mathrm{p}}{\mathrm{d}\omega }|_{\omega =0}>0\) if and only if \(\Delta _0>0\). As a result, \(\varDelta _0>0\) is the sufficient and necessary condition that governs the existence of the stable region \(S_0\).
3.3 Uniqueness of stable region
Now the uniqueness of the stable region is guaranteed if \(\varDelta _0>0\). Actually, the critical stable curves \(L_0\) and \(\tilde{L}_0\) divide the \((k_\mathrm{p}, k_\mathrm{d})\)-plane into many regions. As shown earlier, for any two adjacent regions with \(L_{0}\) as the common boundary, the number of unstable roots must differ by two. While for any two adjacent regions with \(\tilde{L}_{0}\) as the common boundary, the number of unstable roots must differ by one. That is to say, the number of unstable roots in a selected region is odd (even) when the region is in the left (right) plane of \(\tilde{L}_{0}\). So the stable region only exists on the right side of \(\tilde{L}_0\). Thus, \(S_0\) is the unique stable region in the \((k_\mathrm{p}, k_\mathrm{d})\)-plane.
Here are three examples that distinguish the case of \(\varDelta _0>0, \varDelta _0=0\), and \(\varDelta _0<0\). In Fig. 1, the start point is on the right boundary of \(M_0\). In Fig. 2b, the start point almost coincides with the upper right endpoint, the stable region \(S_0\) is nearly empty, and \(\varDelta _0=0.000816\approx 0\). In Fig. 3, the start point is in the upper part of \(M_0\), \(\varDelta _0=-2.01<0\), and the stable region \(S_0\) does not exist.
4 Determination of optimal gains within unique stable region \(S_0\)
The key idea in finding the OFGs is to shrink the stable region by repeated use of critical \(\sigma \)-stable curves, defined by the plot of \(p(\sigma +\mathrm{i}\omega )=0\) with a fixed \(\sigma <0\).
When \(\omega =0\), \(p(\sigma )=0\) defines a line \(\tilde{L}_{\sigma }\) passing through the start point \((p_{\mathrm{s}}, d_{\mathrm{s}})\), with the slope \(-\frac{1}{\sigma }\). When \(\omega \ne 0\), solving \(k_{\mathrm{p}}\) and \(k_{\mathrm{d}}\) from the critical conditions \(\mathfrak {R}(p(\sigma +\mathrm{i}\omega ))=0, \mathfrak {I}(p(\sigma +\mathrm{i}\omega ))=0\) gives
which defines a curve, denoted by \(L_{\sigma }\), as \(\omega \) increases from 0 to +\(\infty \). Let
4.1 Sufficient condition for existence of \(\sigma \)-stable region
The critical conditions \(\mathfrak {R}(p(\sigma +\mathrm{i}\omega ))=0\) and \(\mathfrak {I}(p(\sigma +\mathrm{i}\omega ))=0\) can be written as
which holds only if \(F_{\sigma }(\omega )=0\), where \(F_{\sigma }(\omega )=\omega ^{4}+\alpha _{\sigma }\omega ^{2}+\beta _{\sigma }\), with \(\alpha _{\sigma }=-\mathrm{e}^{-2\sigma \tau }k_\mathrm{d}^2+\sigma ^2+2\varOmega ^2+(2\varOmega \xi +\sigma )^2, \beta _{\sigma }=-\mathrm{e}^{-2\sigma \tau }(k_\mathrm{d}\sigma +k_\mathrm{p})^2+(-2\xi \varOmega \sigma +\varOmega ^2-\sigma ^2)^2\). \(F_{\sigma }(\omega )=0\) has two positive real roots, namely, the critical \(\sigma \)-stable curve \(L_{\sigma }\) intersects with itself if and only if
Obviously, when \(\beta _{\sigma }<0\), or \(\alpha _{\sigma }>0\), \(F_{\sigma }(\omega )=0\) does not have two different positive real roots, namely, the critical \(\sigma \)-stable curve \(L_{\sigma }\) does not intersect with itself. The latter case, with \(\alpha _{\sigma }>0\), defines a parallelogram \(M_{\sigma }\) in the \((k_\mathrm{p}, k_\mathrm{d})\)-plane. \(L_{\sigma }\) cannot pass through \(M_{\sigma }\).
Let \(S_{\sigma }\) be the \(\sigma \)-stable region, where the real part of each root of \(p(\lambda )=0\) is less than \(\sigma \); then \(S_{a}\) must be contained in \(S_{b}\) if both \(S_a\) and \(S_b\) exist, and \(a<b\).
On the line \(\tilde{L}_{\sigma }\), one has
Thus, if the start point \((p_\mathrm{s}, d_\mathrm{s})\) is on the right boundary of \(\tilde{M_\sigma }\), then \(S_\sigma \) is not empty.
The vertical ordinates of the upper right endpoint and start point are \(q_1=\mathrm{e}^{\sigma \tau }\sqrt{(2\xi \varOmega +\sigma )^2+2\varOmega ^2+\sigma ^2}\) and \(q_2=\mathrm{e}^{\sigma \tau }(-2\xi \varOmega \tau \sigma +\varOmega ^2\tau -\tau -\xi \varOmega -2\sigma )\), respectively. Let \(G=\mathrm{sgn}(q_1^2-q_2^2)\), and let
which has two roots with respect to \(\sigma \) as follows:
Then \(G=\mathrm{sgn}((-2\varOmega \sigma \xi +\varOmega ^2-\sigma ^2)\varDelta _{\sigma })\). The start point is on the boundary of \(M_\sigma \) if and only if \(G=1\).
The region \(M_{\sigma }\) is defined by
When \(-2\xi \varOmega \sigma +\varOmega ^2-\sigma ^2=0\), the second inequality gives \(k_\mathrm{d}\sigma +k_\mathrm{p}=0\); thus, \(M_{\sigma }\) is reduced to a straight line passing through the origin. But when \(-2\xi \varOmega \sigma +\varOmega ^2-\sigma ^2>0\), \(M_{\sigma }\) always has exactly one \(\sigma \)-unstable root. Using the method of stability switch, the \(\sigma \)-stable region \(S_\sigma \) exists if \(-2\xi \varOmega \sigma +\varOmega ^2-\sigma ^2>0, G=1\) and \(\sigma <0\), namely,
4.2 Optimal feedback gains
Condition (30) is not a necessary condition. To find a necessary condition, let us first calculate the slope of \(L_{\sigma }\) when \(\omega \) approaches zero as follows
where \(A_\sigma =\tau [-\tau ^2\sigma ^2+(-2\varOmega \tau ^2\xi -6\tau )\sigma +\tau ^2\varOmega ^2-6\xi \tau \varOmega -6]\), \(B_\sigma =-\tau ^3\sigma ^3+(-2\xi \varOmega \tau ^3-3\tau ^2)\sigma ^2+(\varOmega ^2\tau ^3+6\tau )\sigma -3\varOmega ^2\tau ^2+12\xi \varOmega \tau +6\). Hence, \(S_c\) (\(c<0\)) exists in \(S_0\) only if at the start point, with \(\sigma \in (c, 0)\), the slope of \(\tilde{L}_\sigma \) is greater than \(L_\sigma \), namely,
for all \(\sigma \in (c, 0)\). When \(\varDelta _0>0\), assume that \(b_1\) and \(b_2\) (\(b_2<b_1\)) are the two negative real roots of \(B_\sigma \); then \(b_2<\tilde{\sigma }_2^*<b_1<\tilde{\sigma }_1^*<0\).
In fact, substituting \(\xi \varOmega \tau =\frac{\varDelta _0+\varOmega ^2\tau ^2-2}{4}\) into \(B_\sigma \), \(\tilde{\sigma }_1^*\), and \(\tilde{\sigma }_2^*\) leads to
where \(a=\varOmega ^4\tau ^4+2\varDelta _0\varOmega ^2\tau ^2+(\varDelta _0-2)^2+32>0\). Let \(c_1=\frac{1}{8}\varDelta _0+\frac{1}{8}\varOmega ^2\tau ^2+\frac{3}{4}, c_2=-\frac{1}{8}{\varDelta _0}^2+(\frac{1}{2}-\frac{1}{4}\varOmega ^2\tau ^2)\varDelta _0-\frac{1}{8}\varOmega ^4\tau ^4-\frac{3}{2}\tau ^2\varOmega ^2-\frac{9}{2}\). Because \( B_{\tilde{\sigma }_1^*}=c_1\sqrt{a}+c_2, B_{\tilde{\sigma }_2^*}=-c_1\sqrt{a}+c_2 \) and \(c_1^2a-c_2^2=(4\varOmega ^2\tau ^2\xi ^2+4\varOmega ^2\tau ^2+8)\varDelta _0>0\), one has \(B_{\tilde{\sigma }_1^*}>0\) and \(B_{\tilde{\sigma }_2^*}<0\). Moreover, \(\lim _{\sigma \rightarrow -\infty }B_{\sigma }>0, B_0=3\varDelta _0>0\) and \(\lim _{\sigma \rightarrow +\infty }B_{\sigma }<0\), according to the Zero Theorem, the roots of the cubic polynomial \(B_{\sigma }\) must be located in the three intervals \((-\infty ,\tilde{\sigma }_2^*)\), \((\tilde{\sigma }_2^*, \tilde{\sigma }_1^*)\), and \((0, +\infty )\). Thus, \(b_2<\tilde{\sigma }_2^*<b_1<\tilde{\sigma }_1^*<0\). It follows that Eq. (31) is true only if \(\sigma \in (\tilde{\sigma }_1^*,0)\). When \(\sigma =\tilde{\sigma }_1^*\), tangency occurs, and \(S_\sigma \) disappears entirely. As a result, the minimum of \(\sigma _1\) is \(\tilde{\sigma }_1^*\), which represents the minimum of the real part of the rightmost characteristic roots in Eq. (4). Substituting the value of \(\sigma ^*\) above into Eq. (25), the corresponding value of \((p_{\mathrm{s}}, d_{\mathrm{s}})\) is optimal in the sense that the solution of Eq. (25) decays at the fastest speed.
Remark
The maximal real part of the optimal selection \(\sigma ^*\) is a repeated root. Set \(k_\mathrm{p}=k_\mathrm{p}^*, k_\mathrm{d}=k_\mathrm{d}^*\); then the derivatives of Eq. (4) at \(\lambda =\sigma ^*\) are found to be
Hence, \(\lambda =\sigma ^*\) is a triple root of \(p(\lambda )=0\).
5 Illustrative examples
Example 1
We consider the equation used for modeling human balance in Ref. [36]:
where I is the moment of inertia of the human body around the ankle, x is the tilt angle, m is the body mass, g is the gravity acceleration, h is the distance from the ankle joint to the body center of mass, u is the ankle torque, and \(I=60, m=60, g=9.81, h=1\). With \(u(t)=-Kx(t-\tau )-D\dot{x}(t-\tau )\), the closed loop reads
where \(\varOmega ^2=\frac{mg}{I}=9.81, \tau =0.1, k_\mathrm{p}=\frac{K}{I}\), and \(k_\mathrm{d}=\frac{D}{I}\). Linearizing the nonlinear controlled system gives a retarded delay differential equation
Figure 4a shows the plots of \(S_\sigma \) with different values of \(\sigma \), where the largest region is the stable region \(S_0\). As \(\sigma \) decreases, \(S_\sigma \) shrinks and finally disappears entirely at \(\sigma _1\approx -0.5515\). Figure 4b shows how \(S_\sigma \) disappears, where the integers denote the number of \(\sigma _1^*\)-unstable roots in each closed region and the gray parallelogram represents \(M_{\sigma _1^*}\). Therefore, the critical value \(\sigma _1^*\) is the minimal real part of the rightmost characteristic roots. Accordingly, the OFGs are \(k_\mathrm{p}^*\approx 16.626\), \(k_\mathrm{d}^*\approx 5.167\).
To check the results, the time histories are given in Figs. 5 and 6 for linear system (34) and nonlinear system (33), respectively, where the solutions are calculated using MATLAB code dde23, under two initial conditions: \(x(t)=-1, \dot{x}(t)=1\) or \(x(t)=1, \dot{x}(t)=1\) for \(t\in [-\tau , 0]\). The controller with OFGs stabilizes the two systems at the fastest speed.
Example 2
We include a small damping in the controlled inverted pendulum
where \(\xi =0.1, \varOmega =6, \tau =0.1\). Equation (3) is the linearized form of this system.
The plots of \(S_\sigma \) are presented in Fig. 7a, which is similar to Fig. 4a. However, the position of \(M_{\sigma }\) is different in Fig. 7b. Actually, as stated in Sect. 4, the number of \(\sigma \)-unstable roots of \(M_{\sigma }\) can be one or two. In Example 1, one has \(\sigma _1^*\approx -5.515\) and
Thus, \(M_{\sigma }\) is to the right of \(\tilde{L}_{\sigma }\) and has two \(\sigma \)-unstable roots. In this example, it goes to \(\sigma _1^*\approx -5.226\) and
Thus, \(M_{\sigma }\) is to the left of \(\tilde{L}_{\sigma }\), which has only one \(\sigma \)-unstable root. The time histories of linear and nonlinear systems with feedback gains are shown in Figs. 8 and 9, where, again, the OFG decays to 0 at the fastest speed compared with others. Moreover, by observing the eight charts of the time history, we notice that the OFG in a nonlinear system takes less time to decay than in a linear system.
6 Conclusion
Stability analysis of an inverted pendulum with a delayed PD controller is not a new problem; it has been studied by many researchers. Unlike previous studies, which address mainly stable regions or stable delay intervals, this paper presents a systematic approach to finding OFGs that minimize the real part of rightmost characteristic roots within a unique stable region, and the optimal gains make the open-loop system stable at the fastest speed. One key step is to determine when the boundary of the \(\sigma \)-stable region will disappear as \(\sigma \) varies. One major feature of this paper is that OFGs are expressed in an explicit and simple formula in closed form and can be used directly in applications, as demonstrated in human balancing problems under delayed PD control. Theoretically, the proposed procedure for finding the OFGs works also for other systems with delayed feedback.
References
Winter, D.A., Patla, A.E., Prince, F., et al.: Stiffness control of balance in quiet standing. J. Neurophysiol. 80, 1211–1221 (1998)
Stépán, G., Kollar, L.: Balancing with reflex delay. Math. Comput. Model. 31, 199–205 (2000)
Gorade, S.K., Gandhi, P.S., Kurode, S.R.: Modeling and output feedback control of flexible inverted pendulum on cart. In: International Conference on Power and Advanced Control Engineering (ICPACE), IEEE, Bengaluru, 436–440 (2015)
Kajita, S., Yamaura, T., Kobayashi, A.: Dynamic walking control of a biped robot along a potential energy conserving orbit. IEEE Trans. Robot. Autom. 8, 431–438 (1992)
Kajita, S., Tani, K.: Study of dynamic biped locomotion on rugged terrain-theory and basic experiment. In: Fifth International Conference on Advanced Robotics. Robots in Unstructured Environments (ICAR ’91), IEEE, 741–746 (1991)
Azizan, H., Jafarinasab, M., Behbahani, S., et al.: Fuzzy control based on LMI approach and fuzzy interpretation of the rider input for two wheeled balancing human transporter. In: 8th IEEE International Conference on Control and Automation (ICCA), IEEE, Xiamen, 192–197 (2010)
Takahashi, Y., Machida, S., Ogawa, S.: Analysis of front wheel raising and inverse pendulum control of power assist wheel chair robot. In: 26th Annual Conference of the Industrial Electronics Society (IECON 2000), vol. 1, IEEE, Nagoya, Aichi, 96–100 (2000)
Yamakawa, T.: Stabilization of an inverted pendulum by a high-speed fuzzy logic controller hardware system. Fuzzy Sets Syst. 32, 161–180 (1989)
Li, H., Zhihong, M., Jiayin, W.: Variable universe adaptive fuzzy control on the quadruple inverted pendulum. Sci. China Ser. E Technol. Sci. 45, 213–224 (2002)
Eedos, G., Singh, T.: Stability of a parametrically excited damped inverted pendulum. J. Sound Vib. 198, 643–650 (1996)
Kollar, L.E., Stépán, G.: Digital controlling of piecewise linear systems. In: Proceedings of the 2nd International Conference on Control of Oscillations and Chaos, vol. 2, IEEE, Saint-Petersburg, 327–330 (2000)
Wongsathan, C., Sirima, C.: Application of GA to design LQR controller for an inverted pendulum system. In: IEEE International Conference on Robotics and Biomimetics (ROBIO 2008), IEEE, Bangkok, 951–954 (2009)
Goher, K., Ahmad, S., Tokhi, O.M.: A new configuration of two wheeled vehicles: Towards a more workspace and motion flexibility. In: 4th Annual IEEE Systems Conference, IEEE, San Diego, 524–528 (2010)
Wei, Q., Dayawansa, W.P., Levine, W.: Nonlinear controller for an inverted pendulum having restricted travel. Automatica 31, 841–850 (1995)
Becerikli, Y., Celik, B.K.: Fuzzy control of inverted pendulum and concept of stability using java application. Math. Comput. Model. 46, 24–37 (2007)
Yi, J., Yubazaki, N.: Stabilization fuzzy control of inverted pendulum systems. Artif. Intell. Eng. 14, 153–163 (2000)
Hung, T.H., Yeh, M.F., Lu, H.C.: A pi-like fuzzy controller implementation for the inverted pendulum system. In: International Conference on Intelligent Processing Systems (ICIPS’97), vol. 1, IEEE, Beijing, 218–222 (1997)
Li, Z., Zhang, Y.: Robust adaptive motion/force control for wheeled inverted pendulums. Automatica 46, 1346–1353 (2010)
Datta, A., Ho, M.T., Bhattacharyya, S.P.: Structure and Synthesis of PID Controllers. Springer, Berlin (2013)
Suh, I., Bien, Z.: Proportional minus delay controller. IEEE Trans. Autom. Control 24, 370–372 (1979)
Atay, F.M.: Balancing the inverted pendulum using position feedback. Appl. Math. Lett. 12, 51–56 (1999)
Milton, J., Cabrera, J.L., Ohira, T., et al.: The time-delayed inverted pendulum: implications for human balance control. Chaos Interdiscip. J. Nonlinear Sci. 19, 026110 (2009)
Insperger, T., Milton, J., Stépán, G.: Acceleration feedback improves balancing against reflex delay. J. R. Soc. Interface 10, 20120763 (2013)
Xu, Q., Stépán, G., Wang, Z.: Balancing a wheeled inverted pendulum with a single accelerometer in the presence of time delay. J. Vib. Control 23(4), 604–614 (2017)
Insperger, T., Milton, J., Stépán, G.: Semi-discretization and the time-delayed pda feedback control of human balance. IFAC Pap. OnLine 48, 93–98 (2015)
Wang, Z., Hu, H., Xu, Q., et al.: Effect of delay combinations on stability and hopf bifurcation of an oscillator with acceleration-derivative feedback. Int. J. Non-Linear Mech. (2016) (online) doi:10.1016/j.ijnonlinmec.2016.10.008
Xu, J., Sun, Y.X.: Experimental studies on active control of a dynamic system via a time-delayed absorber. Acta Mech. Sin. 31, 229–247 (2015)
Li, Q.R., Tao, W.H., Sun, N., et al.: Stabilization control of double inverted pendulum system. In: 3rd International Conference on Innovative Computing Information and Control (ICICIC ’08), IEEE, Dalian, 417–417 (2008)
Kanazawa, M., Nakaura, S., Sampei, M.: Inverse optimal control problem for bilinear systems: application to the inverted pendulum with horizontal and vertical movement. In: Proceedings of the 48th IEEE Conference on Decision and Control, 2009 held jointly with the 2009 28th Chinese Control Conference (CDC/CCC 2009), IEEE, Shanghai, 2260–2267 (2009)
Merakeb, A., Achemine, F., Messine, F.: Optimal time control to swing-up the inverted pendulum-cart in open-loop form. In: IEEE 11th International Workshop of Electronics, Control, Measurement, Signals and Their Application to Mechatronics (ECMSM), IEEE, Toulouse, 1–4 (2013)
Wang, Z., Hu, H.: Calculation of the rightmost characteristic root of retarded time-delay systems via lambert w function. J. Sound Vib. 318, 757–767 (2008)
Breda, D., Maset, S., Vermiglio, R.: Computing the characteristic roots for delay differential equations. IMA J. Numer. Anal. 24, 1–19 (2004)
Wang, Z., Du, M., Shi, M.: Stability test of fractional-delay systems via integration. Sci. China Phys. Mech. Astron. 54, 1839–1846 (2011)
Olgac, N., Sipahi, R.: An exact method for the stability analysis of time-delayed linear time-invariant (LTI) systems. IEEE Trans. Autom. Control 47, 793–797 (2002)
Beretta, E., Kuang, Y.: Geometric stability switch criteria in delay differential systems with delay dependent parameters. SIAM J. Math. Anal. 33, 1144–1165 (2002)
Kot, A., Nawrocka, A.: Modeling of human balance as an inverted pendulum. In: 15th International Carpathian Control Conference (ICCC), IEEE, Ljubljana, 254–257 (2014)
Acknowledgements
This work was supported by the National Natural Science Foundation of China (Grant 11372354) and by the Fund of the State Key Lab of Mechanics and Control of Mechanical Structures (Grant MCMS-0116K01).
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Wang, Q., Wang, Z. Optimal feedback gains of a delayed proportional-derivative (PD) control for balancing an inverted pendulum. Acta Mech. Sin. 33, 635–645 (2017). https://doi.org/10.1007/s10409-017-0655-x
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10409-017-0655-x