1 Introduction

PID is still the workhorse of the industry when it comes to the term “control.” However, in some fields, particularly, precision motion control, there is an increasingly high demand for more precise, faster and more robust controllers. The “waterbed effect” is the fundamental and well-known limitation of linear controllers which is preventing them from meeting these demands simultaneously [1]. In terms of steady-state precision, increasing the system gain at lower frequencies while decreasing it at higher frequencies will improve the performance of the system. This is according to a well-known frequency-based design method of controllers, known as loop shaping [2]. However, according to Bode’s gain-phase relationship for linear systems and frequency response of the differentiator part of PID, this desire is in contradiction with the stability of the systems. In other words, improving the performance of the system in terms of precision, speed or stability will be at the cost of deteriorating at least one of the other two.

Nonlinear controllers can be used to circumvent this limitation. Among all of the different types of nonlinearities used by researchers to this end, a relatively simple one was first used by Clegg [3] in his special integrator. The idea was to reset the value of the integrator whenever its input crosses zero. Clegg showed that his integrator benefits from a phase lead with respect to its linear counterpart. This category of controllers, thereafter called reset controllers, has been further developed and more sophisticated elements such as first-order reset element (FORE) in [4, 5], generalised FORE (GFORE) in [6] and second-order reset element (SORE) in [7]. These reset elements were used in different capacities such as phase lag reduction, decreasing sensitivity peak, narrowband and broadband phase compensation, control of positioning systems with friction see [8,9,10,11,12,13,14,15]. Reset elements stability was also investigated in the literature [16, 17].

In almost all of the reset elements studied in the literature, all of the coupled states of the reset element reset [7, 18, 19]. In other words, there is no coupling between a reset and a non-reset state in the architecture of a reset element. However in [20], it was shown that coupling a reset state, and a linear one in an architecture of a SORE can cause the element, called “Second-Order Single State Reset Element”(SOSRE), to exhibit a linear behaviour in terms of steady-state sinusoidal response at a certain frequency. It was also shown that this phenomenon could be used to the benefit of improving steady-state precision of the overall controller at that certain frequency. However, this architecture cannot be used to suppress higher-order harmonics in a broad range of frequencies.

A new reset-based architecture was recently proposed by [18], which has a constant gain while providing phase lead in a broad range of frequencies. This architecture, named “Constant in gain, Lead in phase” (CgLp), can completely replace or take up a significant portion of derivative duties in the framework of PID. In its ideal behaviour, this element robustly stabilises the system by providing the phase lead required in the bandwidth region; however, unlike the derivative part of PID, it does not violate the loop-shaping requirements. Nonetheless, this ideal behaviour is based on the assumptions of the describing function (DF) method, which is a first-order approximation neglecting higher-order harmonics in the output of a nonlinear element. As it will be shown in this paper, DF approximation can be totally unreliable in the cases where the magnitude of higher-order harmonics are relatively large. In some cases, the magnitude of higher-order harmonics can be even larger than first-order one.

Fractional-order derivatives and integrals have been used for control designs like Fractional PID [21,22,23,24] or CRONE control [25,26,27]. Recently, fractional-order elements have also been used within reset elements [19, 28,29,30] in order to approximate complex-order behaviour.

The main contribution of this paper is to use concept of fractional order calculus within reset elements to suppress the nonlinear effects, i.e., higher-order harmonics. As an extension to SOSRE, this paper couples a fractional-order integrator with a reset one which creates the ability to selectively higher-order harmonics, in a range of frequencies where nonlinearity does not have a clear benefit. In the framework of CgLp, nonlinearity is mainly used to create phase lead in the crossover frequency region; however, it is shown that it can have ill effects for other regions, especially, lower frequencies which are important for tracking performance. Moreover, the nonlinear architecture proposed in this paper can be tuned to behave completely linear at a particular frequency which means higher-order harmonics will be zero. Suppressing higher-order harmonics at lower frequencies and eliminating them at a particular frequency will improve the performance of the system in terms of steady-state tracking precision.

The remainder of this paper is organised as follows. The second section presents the preliminaries. The following one introduces and discusses the architecture of the introduced element. The fourth section will investigate the benefits of the architecture in suppressing the higher-order harmonics at a wide range of frequencies. The following one will introduce an illustrative example and verify the discussions in simulation. Finally, the paper concludes with some remarks and recommendations about ongoing works.

2 Preliminaries

In this section, the preliminaries of this study will be discussed.

2.1 General reset controller

Following is a general form of a rest controller [31]:

$$\begin{aligned} {{\sum }_{R}}:=\left\{ \begin{aligned}&{{{{\dot{x}}}}_{r}}(t)={{A}}{{x}_{r}}(t)+{{B}}e(t)&\quad \text {if }e(t)\ne 0,\\&{{x}_{r}}({{t}^{+}})={{A}_{\rho }}{{x}_{r}}(t)&\quad \text {if }e(t)=0, \\&u(t)={{C}}{{x}_{r}}(t)+{{D}}e(t) \\ \end{aligned} \right. \end{aligned}$$
(1)

where ABCD are the state space matrices of the base linear system and \(A_\rho =\text {diag}(\gamma _1,\ldots ,\gamma _n)\) is called reset matrix. This contains the reset coefficients for each state which are denoted by \(\gamma _1,\ldots ,\gamma _n\). The controller’s input and output are represented by e(t) and u(t) , respectively. In the spacial case of \(A_\rho =I\), no reset will happen and the result is called “base linear system.”

2.2 \(H_\beta \) condition

The quadratic stability of the closed loop reset system when the base linear system is stable can be examined by the following condition [31, 32].

Theorem 1

There exists a constant \(\beta \in \mathfrak {R}^{n_r\times 1}\) and positive definite matrix \(P_\rho \in \mathfrak {R}^{n_r\times n_r}\), such that the restricted Lyapunov equation

$$\begin{aligned}&P > 0,\ A_{cl}^{\mathrm{T}}P + PA_{cl} < 0 \end{aligned}$$
(2)
$$\begin{aligned}&B_0^{\mathrm{T}}P = C_0 \end{aligned}$$
(3)

has a solution for P, where \(C_0\) and \(B_0\) are defined by

$$\begin{aligned} C_0=\left[ \begin{array}{c@{\quad }c@{\quad }c} \beta C_{p}&0_{n_r \times n_{nr}}&P_\rho \end{array}\right] , \quad B_0=\left[ \begin{array}{c} 0_{n_{p} \times n_{r}}\\ 0_{n_{nr} \times n_{r}}\\ I_{n_r} \end{array}\right] . \end{aligned}$$
(4)

And

$$\begin{aligned} A_{\rho }^{\mathrm{T}}P_\rho A_{\rho } - P_{\rho } \le 0 \end{aligned}$$
(5)

\(A_{cl}\) is the closed loop A-matrix. \(n_r\) is the number of states being reset and \(n_{nr}\) being the number of non-resetting states and \({n_{p}}\) is the number states for the plant. \(A_p,B_p,C_p,D_p\) are the state space matrices of the plant.

2.3 Describing functions

Because of its nonlinearity, the steady-state response of a reset element to a sinusoidal input is not sinusoidal. Thus, its frequency response should be analysed through approximations like describing function (DF) method [6]. However, the DF method only takes the first harmonic of Fourier series decomposition of the output into account and neglects the effects of the higher-order harmonics. As shown in [20], this simplification can sometimes be significantly inaccurate. To have more accurate information about the frequency response of nonlinear systems, a method called “Higher Order Sinusoidal Input Describing Function” (HOSIDF) has been introduced in [33]. This method was developed in [34, 35] for reset elements defined by (1) as follows:

$$\begin{aligned}&G_n(\omega )=\left\{ \begin{aligned}&C{{(j\omega I-A)}^{-1}}(I+j{{\varTheta }_{D}}(\omega ))B+D\quad n=1\\&C{{(j\omega nI-A)}^{-1}}j{{\varTheta }_{D}}(\omega )B\qquad \quad \qquad \quad \text {odd }n> 2\\&0\quad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \,\quad \quad \quad \quad \text { even }n\ge 2\\ \end{aligned} \right. \nonumber \\&\begin{aligned}&{{\varTheta }_{D}}(\omega )=-\frac{2{{\omega }^{2}}}{\pi }\Delta (\omega )[{{\varGamma }_{r}}(\omega )-{{\varLambda }^{-1}}(\omega )] \\&\varLambda (\omega )={{\omega }^{2}}I+{{A}^{2}} \\&\Delta (\omega )=I+{{e}^{\frac{\pi }{\omega }A}} \\&{{\Delta }_{r}}(\omega )=I+{{A}_{\rho }}{{e}^{\frac{\pi }{\omega }A}} \\&{{\varGamma }_{r}}(\omega )={{\Delta }_{r}}^{-1}(\omega ){{A}_{\rho }}\Delta (\omega ){{\varLambda }^{-1}}(\omega ) \\ \end{aligned} \end{aligned}$$
(6)

where \(G_n(\omega )\) is the \(n{\text {th}}\) harmonic describing function for sinusoidal input with frequency of \(\omega \).

Fig. 1
figure 1

Concept of using combination of a reset lag and a linear lead element to form a CgLp element. The figure is adopted from [18]

2.4 CgLp

According to [18], CgLp is a broadband phase compensation element whose first harmonic gain behaviour is constant while providing a phase lead. Originally, two architectures for CgLp are suggested using FORE or SORE, both consisting in a reset lag element in series with a linear lead filter, namely R and D. For FORE CgLp:

(7)

For SORE CgLp:

(8)

In (7) and (8), \(\omega _{r\alpha }=\omega _r/\alpha \), \(\alpha \) is a tuning parameter accounting for a shift in corner frequency of the filter due to resetting action, \(\beta \) is the damping coefficient and \([\omega _{r},\omega _{f}]\) is the frequency range where the CgLp will provide the required phase lead. The arrow indicates that the states of element are reset according to \(A_\rho \); i.e. are multiplied by \(A_\rho \) when the reset condition is met.

The main idea behind the CgLp is taking the phase advantage of reset lag element over its linear counter part and use it in combination with a corresponding lead element to create broadband phase lead. Ideally, the gain of the reset lag element should be cancelled out by the gain of the corresponding linear lead element, which create a constant gain behaviour. The concept is depicted in Fig. 1.

It can be seen that since this idea is based on DF approximation, the ideal behaviour of CgLp will not be achieved when DF is not a reliable approximation, i.e., when the higher-order harmonics are relatively large and not negligible. Nevertheless, the main idea of CgLp is not restricted to FORE and SORE by nature and can be generalised to any reset lag and linear lead filter. This paper uses fractional ones to reduce higher order harmonics in a large range of frequencies and consequently create a CgLp element that has close-to-ideal behaviour in a larger range of frequencies.

2.5 Second-order single state reset element (SOSRE)

This reset element is a special case of a SORE, in which only one integrator resets in a specific architecture. This element is presented in [20] and is used in the framework of a CgLp as the reset lag element. The state space representation and the reset matrix of the element is as follows:

$$\begin{aligned} A&=\left[ \begin{matrix} 0 &{} \quad 1 \\ -\omega _{r\alpha }^{2} &{} \quad -2{{\beta }}{{\omega }_{r\alpha }} \\ \end{matrix} \right] ,\quad B=\left[ \begin{matrix} 0 \\ 1 \\ \end{matrix} \right] ,\quad C=\left[ \begin{matrix} \omega _{r\alpha } &{} 0 \\ \end{matrix} \right] ,\quad D{=}\left[ 0 \right] ,\nonumber \\ A_\rho&=\left[ \begin{matrix} 1 &{} \quad 0 \\ 0 &{}\quad \gamma \\ \end{matrix} \right] . \end{aligned}$$
(9)

As shown in [20], assuming a sinusoidal input at frequency of \(\omega _{r\alpha }\) to a SOSRE, the steady-state output will be a sinusoidal with the same frequency and no phase shift; thus, the magnitude of higher-order harmonics at \( \omega _{r\alpha }\) is zero.

2.6 Fractional-order calculus and CRONE approximation of \(s^\lambda \)

Fractional order calculus developed by generalising the integration and differentiation to non-integer order operators. Behaviour of such an element should be approximated for application in control. This paper uses CRONE approximation of \({{s}^{\lambda }},\text { }\lambda \in {{\mathfrak {R}}^{-}}\), which creates fractional behaviour using real stable poles and real minimum phase zeros for this purpose. The approximation is valid in a frequency range of \([{{\omega }_{l}},{{\omega }_{h}}]\). Referring to [36], the approximation will be:

$$\begin{aligned}&s^\lambda \approx C \prod _{m=1}^{N} \frac{1+\frac{s}{\omega _{z,m}}}{1+\frac{s}{\omega _{p,m}}} \end{aligned}$$
(10)
$$\begin{aligned}&\omega _{z,m} = \omega _l \left( \frac{\omega _h}{\omega _l} \right) ^{\frac{2m-1-\lambda }{2N}} \end{aligned}$$
(11)
$$\begin{aligned}&\omega _{p,m} = \omega _l \left( \frac{\omega _h}{\omega _l} \right) ^{\frac{2m-1+\lambda }{2N}} \end{aligned}$$
(12)

where N is number poles and zeros, and for an acceptable approximation, it should one unit more than the number of the decades in approximation. CRONE makes sure that the poles and zeros are placed in equal distance in logarithmic scale. C is the tuning parameter for adjusting the gain of the approximation. Considering the range where approximation is valid, CRONE is actually approximating the \(\left( \frac{\frac{s}{\omega _l}+1}{\frac{s}{\omega _h}+1}\right) ^\lambda \). Assuming a large enough \(\omega _h\), in this paper the CRONE is used to approximate \(\left( {\frac{s}{\omega _l}+1}\right) ^\lambda \).

Fig. 2
figure 2

Block diagram of the a FOSRE CgLp. \(\lambda \in (0\,{-\,1}]\)

3 Fractional-order single state reset element (FOSRE)

This sections introduces a new structure for reset elements in the framework of CgLp and discusses the architecture, frequency response and its superiority over FORE and SORE in the framework of CgLp.

3.1 Architecture

The architecture of the FOSRE is similar to that of the SORE with the difference being that the second linear integrator is replaced with a fractional one, and only first integrator, which is a linear one is reset. Figure 2 shows the block diagram of the element. The following defines the FOSRE (the reset lag element) and its corresponding lead element to form a CgLp.

(13)

A matching state space representation of FOSRE with the architecture of Fig. 2 is as follows:

$$\begin{aligned} A&=\left[ \begin{array}{ll} -2\beta {{\omega }_{r\alpha }} &{} {{0}_{1\times N}} \\ \overline{{{B}}}_{N\times 1} &{} \overline{{{A}}}_{N\times N} \\ \end{array} \right] -\omega _{r\alpha }^{2}\left[ \begin{array}{c} 1 \\ {{0}_{N\times 1}} \\ \end{array} \right] \times \left[ \begin{array}{ll} \overline{{{D}}}_{1\times 1} &{} \overline{{{C}}}_{1\times N} \\ \end{array} \right] , \nonumber \\ B&=\left[ \begin{array}{c} 1 \\ {{0}_{N\times 1}} \\ \end{array} \right] ,\quad C=\omega _{r \alpha }^2\left[ \begin{array}{ll} \overline{{{D}}}_{1\times 1} &{} \overline{{{C}}}_{1\times N} \\ \end{array} \right] , \quad D=0\nonumber \\ {{A}_{\rho }}&=\text {diag}(\gamma ,\underbrace{1,\ldots ,1}_{N}) \end{aligned}$$
(14)

where \({\overline{A}}\), \({\overline{B}}\), \({\overline{C}}\) and \({\overline{D}}\) are state space matrices of the CRONE approximation of \(\left( {\frac{s}{\omega _l}+1}\right) ^\lambda \).

3.2 Linear behaviour of FOSRE at a certain frequency

The architecture of FOSRE, along with the non-identical reset of its states, creates a peculiar phenomenon which can be used to the benefit of the performance of the system.

Lemma 1

Reset control system Eq. (1) in open loop has a globally asymptotically stable \(2\pi / \omega \)-periodic solution under sinusoid input with arbitrary frequency, \(\omega >0\) if and only if

$$\begin{aligned} \left| \lambda \left( A_\rho e^{A \delta }\right) \right| <1 \quad \forall \delta \in {{\mathfrak {R}}^{+}} \end{aligned}$$
(15)

where \(\lambda \left( .\right) \) stands for eigenvalues [6].

Fig. 3
figure 3

Assuming that the output of the base linear element for a reset element has no phase shift with respect to its input, the output of the reset element itself will match the base linear element output at steady state

Remark 1

Let us define

$$\begin{aligned} \psi (\omega ) :=\angle \frac{X_2(j\omega )}{E(j\omega )}\quad \text {for } A_\rho =I. \end{aligned}$$
(16)

Assuming a sinusoidal input, \(\sin (\omega _{lb} t)\), to a reset element, the reset action will be of no effect in steady state response, and thus the reset element can be regarded as a linear system in terms of steady state response at that certain frequency if:

$$\begin{aligned} \psi (\omega _{lb}) =0. \end{aligned}$$
(17)

The proof of this is trivial, since the reset element under such circumstances will reset its output, when its output is at zero, resulting in no change from the resetting action. Figure 3 shows an example of this situation, where steady state output of the base linear element and the reset element itself will be the same. At such circumstance, the reset element can be regarded as a linear element at that certain frequency in terms of steady state output.

Remark 2

Assuming a sinusoidal input, \(\sin (\omega _{lb} t)\), to a reset element where \(\psi (\omega _{lb})=0\), the higher-order harmonics will be zero.

Fig. 4
figure 4

HOSIDF comparison of a SOSRE and a FOSRE CgLp along with corresponding \(\psi \) which is \(\angle \frac{X_2}{E}\) of the base linear system. For FOSRE CgLp, \(\omega _{r\alpha }=3.18\text { Hz}, \beta =1, \alpha =0.94, \omega _{l}=0.8\text { Hz}\), \(\lambda =-\,0.1\) and \(\gamma =0.2\). For SOSRE CgLp, \(\omega _{r\alpha }=6.5\text { Hz}, \beta =1, \alpha =1.12\) and \(\gamma =0.2\)

Since the reset action has no effect at steady state, the steady-state output is sinusoidal. Such an output can be completely described by first harmonic of Fourier series and all higher-order harmoincs are zero.

For the case of a FOSRE, if \(e(t)=\sin (\omega _{lb} t)\), the reset action of the first integrator will be of no effect if:

$$\begin{aligned}&\psi (\omega _{lb} )=0 \Rightarrow \nonumber \\&\angle \frac{1}{j\omega _{lb} /\omega _{r\alpha }^{2}+2\beta /{{\omega }_{r\alpha }}+{{\left( j\omega _{lb} /{{\omega }_{l}}+1 \right) }^{\lambda }}}=0 \Rightarrow \nonumber \\&{{\omega }_{lb}}=-\,\omega _{r\alpha }^{2}{{\left( \frac{\omega _{lb}^{2}}{\omega _{l}^{2}}+1 \right) }^{\frac{\lambda }{2}}}\sin \left( \lambda {{\tan }^{-1}}\left( \frac{{{\omega }_{lb}}}{{{\omega }_{l}}} \right) \right) . \end{aligned}$$
(18)

Thus, FOSRE exhibits a linear behaviour at a frequency, \(\omega _{lb}\), which depends on \(\omega _{r \alpha }\), \(\beta \), \(\omega _l\) and \(\lambda \).

3.3 HOSIDF of FOSRE CgLp

Reset elements are nonlinear elements because of the discontinuity in their state values and output. This discontinuity or in other term, jumps, creates higher-order terms in Fourier decomposition of the output. These jumps also create large peaks in controller’s output which is a known characteristic for reset elements.

There are many situations where the system’s behaviour is not predictable based on DF. As an example, for the mass-spring-damper systems with a resonance peak at \(\omega _n\), the \(3\text {rd}\) HOSIDF of the open-loop system has a peak at \(\omega _n/3\) and the \(5\text {th}\) HOSIDF has a peak at \(\omega _n/5\) and so on. If the resonance peak of the system is large enough, higher-order harmonics will probably dominate the first one at \(\omega _n/3\), \(\omega _n/5\), .... (See [20, 34]). Therefore, it can be concluded that the smaller higher-order harmonics are, the closer the system is to what it is designed for.

Fig. 5
figure 5

Comparing \(x_2\) of the FOSRE CgLp and SOSRE CgLp for an input of \(\sin (2\pi t)\)

The main benefit of using FOSRE is that tuning its parameters, one can reduce higher-order harmonics at a range of frequency where nonlinearity not only does not have a clear benefit but also deteriorates the tracking precision of the system.

In [20], it was shown that eliminating higher-order harmonics using the concept of Remark 1 at one frequency in a SOSRE CgLp element, results in improvement of steady-state tracking precision. While FOSRE enjoys the same benefit, HOSIDF analysis in this section shows that structure of FOSRE allows reduction in the higher-order harmonics at a wider range of frequencies.

In FOSRE, the concept of Remark 1 can be generalised. According to Remark 1, when \(\psi \) is zero, the higher-order harmonics will be zero. On top of that it can be seen empirically that closer the \(\psi \) is to zero, smaller the gain of the higher-order harmonics is. Figure 4 shows this relation by comparing HOSIDF of FOSRE and a SOSRE CgLp along with their \(\psi \) plot. All the even harmonics are zero for reset elements, and Fig. 4 only depicts the \(1\text {st}\) and the \(3\text {rd}\) harmonic for the sake of the clarity of the figure since all the other odd harmonics will follow the same trend as the \(3\text {rd}\) one and are descending with respect to their order.

Three main conclusions can be drawn from this figure.

  • Both of the \(\psi \) plots cross zero between 6 and 7 Hz and correspondingly higher-order harmonics will be zero at \(\omega _{lb}\) which validates Remarks 1 and 2.

  • For the range of 0.1 till 500 Hz, \(\psi \) of FOSRE CgLp is closer to zero than that of SOSRE CgLp, correspondingly its magnitude of higher-order harmonics is smaller than SOSRE CgLp.

  • As the \(\psi \) approaches more negative values, the phase advantage of CgLp elements increases. Hence, comparing two CgLp elements, especially between 10 and 100 Hz, the closer value of \(\psi \) to zero results in less phase advantage.

Fig. 6
figure 6

Effect of \(\lambda \) on \(\psi \) in FOSRE. \(\omega _{r\alpha }=3.18\text { Hz}, \beta =1\) and \(\omega _{l}=0.001\text { Hz}\)

The same line of reasoning has been tested and is valid comparing any two FOSRE CgLp elements. The relation between \(\psi \) and higher-order harmonics can be justified by considering the fact that closer the \(\psi \) to zero is, smaller the jumps of the reset element will be. Furthermore, the biggest jump and thus, the largest higher-order harmonics will happen when \(\psi =\pm \,90^\circ \). This concept is shown in Fig. 5, by comparing the time response of \(x_2\) in FOSRE CgLp and SOSRE CgLp to a sinusoidal input of 1 Hz. It is readily obvious that due to the smaller value of \(\psi \) in FOSRE CgLp at this frequency, the jumps are smaller and thus justifies the smaller magnitude of higher-order harmonics.

According to aforementioned discussion, \(\psi \) plot contains important information about higher-order harmonics and phase advantage created by CgLp elements, and hence can be used to tune the FOSRE parameters so that FOSRE CgLp element has a closer-to-ideal behaviour.

The following section will discuss the effect of FOSRE parameters on \(\psi \) plot and thus higher-order harmonics.

Fig. 7
figure 7

Effect of \(\omega _l\) on \(\psi \) in FOSRE. \(\omega _{r\alpha }=3.18\text { Hz}, \beta =1\) and \(\lambda =-\,0.4\)

Fig. 8
figure 8

Stage whose transfer function is used for simulation

Fig. 9
figure 9

Designed control architecture to compare the performance of two sets of controllers

4 Suppressing higher-order harmonics at low frequencies

The main advantage of FOSRE with respect to SOSRE is that the nonlinearity effects, i.e., the higher-order harmonics, can be suppressed at low frequencies. This can be done by manipulating the \(\psi \) values at lower frequencies. This is made possible for FOSRE by additional two parameters, namely \(\lambda \) and \(\omega _{l}\). In the following, the effects of these two parameters on the \(\psi \) plot are discussed.

The effect of \(\lambda \) on higher-order harmonics and phase advantage created by a FOSRE can be depicted by plotting \(\psi \) versus input frequency for different values of \(\lambda \). See Fig. 6. As \(\lambda \) approaches \({-}\) 1, \(\psi \) deviates more from zero in lower frequencies which indicates larger higher-order harmonics at low frequencies and thus deterioration of tracking precision. Nevertheless, \(\psi \) will approach \(-\,90^\circ \) faster, in turn, phase advantage of CgLp element will be available at a wider range of frequency. For example, designing a controller for 100 Hz bandwidth, a FOSRE depicted in Fig. 6 with \(\lambda =-\,0.2\) will have less phase margin comparing to the one with \(\lambda =-\,0.8\). Notice that \(\omega _{lb}\) varies with \(\lambda \) and for \(\lambda =0\), \(\omega _{lb}=0\) which means FOSRE will not show linear behaviour for such a configuration.

Changing \(\lambda \), suppressing higher-order harmonics comes at the cost of losing phase advantage. However, tuning \(\omega _{l}\), one can circumvent this limitation. Figure 7 depicts \(\psi \) plot for different values of \(\omega _{l}\) when \(\lambda =-\,0.4\). Increasing \(\omega _{l}\) to a certain point, \(\psi \) gets closer to zero for frequencies below \(\omega _{lb}\), while it will not cause loss of phase advantage in the crossover frequency region. It should be noticed that \(\omega _{lb}\) according to (18) depends on \(\omega _{l}\).

The ideal tracking performance of a CgLp will happen at \(\omega _{lb}\) where higher-order harmonics are zero, and hence, the tracking error can be accurately calculated using DF. If tracking at a certain frequency is important for a system, one may consider designing \(\omega _{lb}\) to match that frequency. Otherwise, as suggested in [20], \(\omega _{lb}\) can be designed to match and cancel out the peak of the \(3\text {rd}\) order harmonic.

Table 1 Parameters of the designed controllers
Fig. 10
figure 10

HOSIDF of open loop for three systems designed based on a SOSRE CgLp, FOSRE CgLp and a PID

Fig. 11
figure 11

Normalised magnitude of higher-order harmonics with respect to first-order one for FOSRE and SOSRE

Fig. 12
figure 12

Steady-state error of designed systems for tacking sinusoidal inputs

4.1 Tuning guidelines

Tuning of FOSRE can be done through optimisation or several iteration of trial and error. The first parameter to choose is \(\omega _{lb}\). As aforementioned this frequency can be a working frequency of the system or peak of the \(3\text {rd}\) harmonic. The cost function to minimise is \(\psi (\omega )\) in the range of lower frequencies till \(\omega _{lb}\). Denoting cross-over frequency as \(\omega _c\), one can follow the following steps as a rule of thumb to achieve a favourable configuration:

  1. 1.

    Choose \(\omega _{lb}\).

  2. 2.

    Set \(\lambda \) to be \({-}\) 0.1.

  3. 3.

    Set \(\beta \) to be 1.

  4. 4.

    Optimise \(\omega _{l}\) and \(\omega _{r \alpha }\) to minimise \(\left| \psi (\omega )\right| \) at frequencies lower than \(\omega _{lb}\), constrained to \(\psi (\omega _{lb})=0\).

  5. 5.

    Is \(\psi (\omega _{c})<-85^\circ \)? If yes, proceed to 7, if not, decrease \(\beta \) by 0.1.

  6. 6.

    Is \(\beta =0\)? if yes, decrease \(\lambda \) by \({-}\) 0.1 and return to 3, if not, return to 4.

  7. 7.

    Choose \(\gamma \) in \([-1\quad 1)\) to achieve the phase margin required.

Table 2 RMS and IAE of steady state error for controllers in set No. 1 for tracking the sinusoidal references of 0.5, 0.8, 2 and 4 Hz
Table 3 RMS and IAE of steady state error for controllers in set No. 2 for tracking the sinusoidal references of 0.5, 0.8, 2 and 4 Hz
Fig. 13
figure 13

Control input of controllers in set No. 1 for \(r(t)=\sin (8\pi t)\)

5 An illustrative example

In order to validate the increase in performance of the system in terms of steady-state tracking by suppressing the higher-order harmonics, three controllers were designed and studied in simulation. This section presents the results of the comparison of a FOSRE CgLp with a SOSRE CgLp and a PID.

5.1 Plant

The plant which is simulated is a custom-designed precision stage that is actuated with the use of a Lorentz actuator. This stage is linear-guided using two flexures to attach the Lorentz actuator to the base of the stage and actuated at the centre of the flexures. With a laser encoder the position of the fine stage is read out with 10nm resolution. A picture of the setup can be found in Fig. 8. The identified transfer function for the plant is:

$$\begin{aligned} G(s)=\frac{3.038e4}{{{s}^{2}}+0.7413s+243.3}. \end{aligned}$$
(19)

This plant has a relatively high resonance peak around 2.5 Hz which will cause high peaks in higher-order harmonics in frequencies below 1 Hz.

5.2 Controller design approach

Two sets of controllers have been designed, each containing a FOSRE CgLp, a SOSRE CgLp and a PID. All of the controllers have designed for a bandwidth of 150 Hz and \(45^\circ \) of phase margin considering a sensitivity peak below 6 dB criteria for robustness.

In set No. 1, assuming a main working frequency of 2 Hz, FOSRE CgLp and SOSRE CgLp are designed in a manner to have \(\omega _{lb}=2\) Hz. This means the reset controllers will behave linearly in terms of steady-state output and will generate no higher-order harmonics at said frequency. In set No. 2, reset controllers are designed to have \(\omega _{lb}=0.8\) Hz, which is the frequency of the peak of the third harmonic. Considering the discussion in Sect. 4, parameters of the FOSRE are chosen in a manner that \(\psi \) stays as close as possible to zero in frequencies below \(\omega _{lb}\). mentioned, such a design is not possible for SOSRE. Figure 9 and Table 1 show the closed-loop block diagram and the parameters for each controller.

Fig. 14
figure 14

Step responce of controllers in set No. 1

In order to be able to verify the stability of the reset systems through the so-called \(H_\beta \) condition, a relatively weak derivate has been added to the design of CgLp’s to provide a phase margin of \(5^\circ \) for the base-linear system. Thus, the CgLp’s are providing the remaining \(40^\circ \) required.

The HOSIDF analysis of the open loop of the designed system sets are presented in Fig. 10. As expected, SOSRE CgLp’s produce larger higher-order harmonics at low frequencies than the FOSRE ones, while they both have the same first-order DF and provide the same phase margin. The presence of large higher-order harmonics can jeopardise the tracking performance of the controller, as it invalidates the assumption of design based on DF.

To better clarify the frequencies at which the tracking performance is weak and where it is the ideal, one can refer to normalised magnitude of higher-order harmonics with respect to first-order one in Fig. 11. According to this figure, one can predict the lower values of this plot indicates closer-to-ideal behaviour for CgLp. As a rule of thumb if the normalised magnitude if higher-order harmonics are below \({-}\) 40 dB, their effect is negligible provided that their magnitude is different enough to prevent their constructive behaviour from deteriorating the performance.

Referring to Figs. 10 and 11, it is clearly shown that using FOSRE architecture in CgLp framework, higher-order harmonics can be suppressed at lower frequencies while maintaining them at the crossover frequency region to provide the required phase margin. Notice that the normalised higher-order harmonics are almost 0 dB at their peaks for SOSRE, which shows that they are almost equal to first-order one.

Furthermore, it is shown that at \(\omega _{lb}\), higher-order harmonics will be zero and this can be used to cancel out the higher-order harmonics peaks as shown in Fig. 10b.

To validate the performance of the controllers in closed loop, a simulation has been performed in the Simulink environment of MATLAB for tracking four sinusoidal waves of 0.5, 0.8, 2 and 4 Hz. The resulted error plots are depicted in Fig. 12. Furthermore, the Root Mean Square (RMS) and Integral Absolute Error (IAE) for steady-state error is presented in Tables 2 and 3. The plots and tables verify that if higher-order harmonics are small enough, the reset controllers outperform the linear controller in terms of steady-state tracking error. A SOSRE CgLp designed for a system with high resonance peak can outperform PID around at \(\omega _{lb}\); however, it has difficulties at other frequencies. Nevertheless, FOSRE CgLp because of its much smaller higher-order harmonics has a much wider range of superiority, about 1.5 decades in this particular example.

Since the direct relation of higher-order harmonics and tracking performance can be observed, it has to be noted that 0.5 and 0.8 Hz are the degenerate cases for reset controllers, however designing \(\omega _{lb}\) to match and cancel out the peaks, the ideal tracking performance based on DF can be achieved. See Fig. 12d.

In order to compare the control actions of the designed controllers, the control input for controllers in set No.1 is depicted for a sinusoidal input of 4 Hz in Fig. 13. Reset controllers are known for having large peaks in their control actions; however, according to Fig. 13, FOSRE CgLp shows smaller peaks due to reduced higher-order harmonics. The same holds for other frequencies and controllers in set No. 2; however, they are not depicted for the sake of brevity.

At last, the step response for designed controllers in set No. 1 is shown in Fig. 14. FOSRE and SOSRE CgLp show smaller overshoot and approximately the same settling time compared to PID. Controllers in set No. 2, show approximately the same step response.

6 Conclusion

This paper presented an architecture, named FOSRE, for reset elements based on a fractional-order integrator and the concept of having only one resetting integrator. It was shown that using this architecture in framework of CgLp; the higher-order harmonics can be suppressed at lower frequencies based on tuning the phase difference of input and output of the base linear system of the element. It was shown that at a particular frequency at which the mentioned phase difference is zero, no higher-order harmonics would be produced and the reset system would behave as a linear one in terms of steady-state output. Using this architecture, one can achieve the same phase margin as CgLp’s introduced in the literature while increasing their tracking performance. The closed-loop performance of the FOSRE CgLp was compared with a SOSRE one and a PID in two different designs in simulation, and its superiority validated.

It was shown that one peak of higher-order harmonics could be cancelled out using the linear behaviour concept. However, this opens an opportunity for future researches on architectures which can behave linearly at more than one frequencies, as there are multiple peaks in higher-order harmonics. As ongoing works, the performance of the FOSRE CgLp is being will be studied in the presence of noise and disturbance and afterwards in a practical setup.