1 Introduction

Time-delay systems are also called systems with aftereffect or dead-time, hereditary systems, equations with deviating argument or differential-difference equations. Opposed to ordinary differential equations (ODEs), they belong to the class of functional differential equations (FDEs) which are infinite dimensional[1]. The analysis of the time-delay systems is one of the difficult but hot points in control theory and control engineering domain. The reasons for this can be grouped into two major kinds. The first one is that time delay is an applied problem. Time delay problem is becoming increasingly more widespread in control systems because of the convergence of communication and computational systems with traditional control engineering. Controller communication, especially communication over local-area networks (LANs) or wide-area networks (WANs), and complex computations resulting from digital controller implementations result in large time delays. Many practical systems such as automotive powertrain systems[2], combustion systems[3], chemicalreactors[4, 5], teleoperators[6], and master-slave manipulator systems[7] are described by time-delay models. The second reason is that control systems with non-negligible time delays exhibit complex behaviors because of their infinite dimensionality. When expressed in the continuous time domain, even a linear time invariant system with a constant time delay in the input or state has infinite dimensionality. For continuous time systems, the time delay problems can in principle be treated by the infinite dimension system theory approach. However, it is generally not easy to understand the approach and obtain the corresponding controller which is given in terms of operator Riccati equations[8]. And controller design techniques developed over the last several decades for finite dimensional systems are difficult to apply to time delay systems. Thus it is necessary to develop a control system design scheme that resolves the time delay problem.

Since time delay often occurs in various engineering systems and causes serious deterioration of the stability and performance of the systems, considerable research has been done for the control of time delay systems[9]. Ji[10] proposed an adaptive neural network control method for a class of perturbed strict-feedback nonlinear systems with time delays. Tang and Ding[11] concerned with the model predictive control of networked control systems with time delay and data packets disorder. Zhu et al.[12] dealt with the problem of tracking control for a class of high order nonlinear systems with input delay. Mu and Gao[13] discussed the problem of global input-to-state stability for discrete time piecewise affine systems with time delay. Bedoui et al.[14] proposed an approach for simultaneous online identification of the time delay and dynamic parameters of discrete time delay systems[14]. Balasubramaniam and Senthilkumar[15] discussed the delay-dependent robust stabilization and H control for uncertain stochastic Takagi-Sugeno fuzzy systems with discrete interval and distributed time-varying delays. Ahmida and Tissir[16] discussed the delay-dependent exponential stability of a class of uncertain T-S fuzzy switched systems with time delay. Phat et al.[17] addressed the exponential stability for a class of nonlinear hybrid time-delay systems.

In practice, nonlinear control strategies are usually implemented using a microcontroller or a digital signal processor. As a direct consequence of this, the associated control algorithms must operate using discrete time intervals. The continuous-time control law is designed based on a continuous-time system model and then is discretized. Or a continuous-time system model is discretized and then the discrete time control law is designed based on it. It should be emphasized that in both design approaches, the time discretization of either the controller or the system model is necessary. In the field of the discretization, for the time free continuous time systems the traditional numerical techniques such as Euler and Runge-Kutta method have been used to obtain the sampled-date representations. However, these methods require a small sampling interval. But due to the physical and technical limitations slow sampling is becoming inevitable. For large sample period case, the Taylor series method was used to improve the performance of the controller[18]. However, in previous papers, the zero-order hold (ZOH) and first-order hold (FOH) assumptions were used in the discretization method[19]. The performance of the discretization methods using these assumptions is highly dependent on the input signal, and the sampling period should be short enough for the desired control precision.

A high-order method is the one that provides increased accuracy with only a modest increase in the computational cost[20].Wei and Liu[21] studied the problem of output feedback fault-tolerant control design for continuous-time linear time-invariant systems via high-order hold sampleddata controllers. Tornero and Tomizuka[22] considered the problem of the computation of a dual-rate high-order-hold discrete equivalent controller. Lampe and Rosenwasser[23] studied the digital control problem for a continuous-time linear time-invariant (LTI) process with generalized higherorder hold and time delay. Zhan[24] discussed sampleddata control design problem by the first-order hold input.

This paper proposes a time discretization method for nonlinear input-driven dynamic systems with time delayed non-affine input. This method is based on the Taylor series and second-order hold (SOH) assumption. This discretization method can provide a finite dimensional representation, which allows the direct application of the existing nonlinear control system design techniques. Secondly, the performance evaluation of the proposed algorithm is presented using a numerical simulation with different sampling periods, time-delays and inputs, and the results are compared to those obtained by using the ZOH and FOH method.

The paper is organized as follows. Section 2 contains some mathematical preliminaries and Section 3 includes the main results of this paper, in which a new time discretization method for nonlinear systems with time delayed nonaffine input is introduced. Finally, one numerical simulation with different sampling periods, time-delays, and kinds of inputs is presented in Section 4 to demonstrate the effectiveness of the proposed discretization method, and Section 5 provides a few concluding remarks drawn from this study.

2 Preliminaries

In the present study the nonlinear continuous time control systems with time delayed non-affine input are considered using a state-space representation form [25]:

$$\matrix{{\dot x(t) = {f_0}(x(t)) + {g_1}(x(t))u(t - D) + } \hfill \cr {{g_2}(x(t))u{{(t - D)}^2} + \cdots + {g_m}(x(t))u{{(t - D)}^m}} \hfill \cr }$$
(1)

and

$$\dot x(t) = f(x(t),\,u(t - D))$$

where xR n is the vector of the states representing an open and connected set, uR is the input variable, m is an integer which indicates the order of the input u, and D is the system constant time-delay (dead-time) that directly affects the input. It is assumed that f 0 : R nR n, g i : R nR n, i = 1, 2, ⋯ , m and f : R n ×RR n are smooth mappings.

An equidistant grid on the time axis with mesh T = t k+ 1t k > 0 is considered where sampling interval is [t k, t k+ 1) = [kT, (k + 1)T) and T is the sampling period. Furthermore, we suppose the time-delay D and mesh T are related as follows

$$D = qT + \gamma $$
(2)

where q ∈ {0, 1, 2, ⋯} and 0 ⩽ γ< T. That is, the time-delay D is customarily represented as an integer multiple of the sampling period adding a fractional part of T[26]. In this paper, it is also assumed that system (1) is driven by an input that is piecewise quadratic over the sampling interval, i.e., the SOH assumption holds true.

For the ZOH assumption, it is assumed that system (1) is driven by an input that is piecewise constant over the sampling interval. And for the FOH assumption, it is assumed that the original piecewise continuous input function is approximated by a piecewise linear one over the sampling interval. Let us consider ZOH, FOH and SOH assumptions in more detail.

Under the ZOH assumption, in the delay free case, while D = 0, we have

$${u_Z}(t) = u(k) = {\rm{constant}},\,{\rm{for}}\,kT\leqslant t < kT + T$$
(3)

where u(k)=u(kT). Based on the above notation one can deduce that for D>0 the delayed input variable attains the following two distinct values within the sampling interval:

$${u_Z}(t - D) = \left\{ {\matrix{{u(k - q - 1),} \hfill & {{\rm{if}}\,kT\leqslant t < kT + \gamma, } \hfill \cr {u(k - q),} \hfill & {{\rm{if}}\,kT + \gamma \leqslant t < kT + T.} \hfill \cr } } \right.$$
(4)

Here, subscript Z denotes that input approximation is performed under the ZOH assumption.

Under the FOH assumption, while D = 0, we have

$${u_F}(t) = u(k) + v(k)(t - kT),\quad {\rm{for}}\,kT\leqslant t < kT + T.$$
(5)

Here, subscript F denotes that input approximation is performed under the FOH assumption, and in what follows:

$$\matrix{{v(k) = {{u((k + 1)T) - u(kT)} \over T}\quad {\rm{or}}} \hfill \cr {v(k) = {{{\rm{d}}u(t)} \over {{\rm{d}}t}}{|_{t = kT}},k = 0,1,2, \cdots } \hfill \cr }$$
(6)

For D> 0, it is rather straightforward to verify that the delayed input variable attains the following values within the sampling interval.

(7)

Under the SOH assumption and in the case of delay free case, in the time interval kT⩽t<kT+T the input can be expressed as follows.

$$\matrix{{u(t) = u(k) + {{u(k) - u(k - 1)} \over T}(t - kT) + } \hfill \cr {{1 \over 2}{{u(k) - 2u(k - 1) + u(k - 2)} \over {{T^2}}}{{(t - kT)}^2}.} \hfill \cr }$$
(8)

Furthermore, let

$$a(k) = {{v(k) - v(k - 1)} \over T}$$
(9)

where a(k) represents the second-order derivation at the instant kT.

Equation (8) is shortly represented as

$$u(t) = u(k) + v(k)(t - kT) + {1 \over 2}a(k){(t - kT)^2}.$$
(10)

In the case of D> 0, we have

(11)

3 Discretization of nonlinear systems with time delayed non-affine input

3.1 Discretization in the case of the delay free input

At this point, it would be methodologically appropriate to succinctly present and delineate the time-discretization method available for delay-free (D = 0) nonlinear control systems. The ensuing brief description of the time discretization method for delay-free nonlinear systems will serve as a natural point of departure for the development of a discretization method for nonlinear systems with time delayed non-affine input.

When D = 0, within the sampling interval and under the SOH assumption, the solution of system (1) is expanded into a uniformly convergent Taylor series:

$$x(k + 1) = x(k) + \sum\limits_{l = 1}^\infty {{A^{[l]}}(x(k),u(k),v(k),a(k)){{{T^l}} \over {l!}}} $$
(12)

where A [l](x, u, v, a) are determined recursively by

$$\matrix{{{A^{[1]}}(x,u,v,a) = f(x,u)} \hfill \cr {{A^{[2]}}(x,u,v,a) = {{\partial {A^{[1]}}(x,u,v,a)} \over {\partial x}}{A^{[1]}}(x,u,v,a) + } \hfill \cr {{{\partial {A^{[1]}}(x,u,v,a)} \over {\partial u}}v} \hfill \cr {{A^{[l + 2]}}(x,u,v,a) = {{\partial {A^{[l + 1]}}(x,u,v,a)} \over {\partial x}}{A^{[1]}}(x,u,v,a) + } \hfill \cr {{{\partial {A^{[l + 1]}}(x,u,v,a)} \over {\partial u}}v + {{\partial {A^{[l]}}(x,u,v,a)} \over {\partial u}}a} \hfill \cr }$$
(13)

where l = 1, 2, 3, ⋯. Notice that the resulting coefficients A[l] (x(k), u(k), v(k), a(k)) can be easily computed by taking successive partial derivatives of the right hand-side of (1).

Therefore, an exact sampled-data representation (ESDR) of system (1) can be derived by retaining the full infinite series of (12), namely

$$\matrix{{x(k + 1) = {\Phi _T}(x(k),u(k),v(k),a(k)) = } \hfill \cr {x(k) + \sum\limits_{l = 1}^\infty {{A^{[l]}}(x(k),u(k),v(k),a(k)){{{T^l}} \over {l!}}}.} \hfill \cr }$$
(14)

Simultaneously, an approximate sampled-data representation (ASDR) of (1) is obtained from a truncation of the Taylor series order N, i.e.,

$$\matrix{{{x^N}(k + 1) = \Phi _T^N({x^N}(k),u(k),v(k),a(k)) = } \hfill \cr {{x^N}(k) + \sum\limits_{l = 1}^N {{A^{[l]}}({x^N}(k),u(k),v(k),a(k)){{{T^l}} \over {l!}}} } \hfill \cr }$$
(15)

where subscript T of mapping \(\Phi _T^N\) denotes the dependence on the sampling period, and superscript N denotes the finite series truncation order associated with the ASDR of (15).

3.2 Discretization in the case of the time delayed non-affine input

When D> 0, by applying the Taylor discretization method for system (1) over the subinterval [kT, kT + γ) and taking into account (11), one can obtain the state vector evaluated at kT + γ as a function of x(k), u(kq − 1),

$$\matrix{{x(kT + \gamma ) = x(k) + } \hfill \cr {\sum\limits_{l = 1}^\infty {{A^{[l]}}} (x(k),u(k - q - 1),v(k - q - 1),a(k - q - 1)){{{\gamma ^l}} \over {l!}}.} \hfill \cr }$$
(16)

Similarly, the application of the Taylor discretization method to the [kT + γ, kT + T) subinterval yields the state vector evaluated at (k + 1)T as a function of x(kT + γ), u(kq), v(kq) and a(kq).

$$\matrix{{x(k + 1) = x(kT + \gamma ) + } \hfill \cr {\sum\limits_{l = 1}^\infty {{A^{[l]}}} (x(kT + \gamma ),u(k - q),v(k - q),a(k - q)){{{{(T - \gamma )}^l}} \over {l!}}.} \hfill \cr }$$
(17)

The ASDR of (16) and (17) are obtained from the truncation of the Taylor series order N, as shown below,

$$\matrix{{{x^N}(kT + \gamma ) = {x^N}(k) + } \hfill \cr {\sum\limits_{l = 1}^N {{A^{[l]}}} ({x^N}(k),u(k - q - 1),v(k - q - 1),a(k - q - 1)){{{\gamma ^l}} \over {l!}}} \hfill \cr }$$
(18)
$$\matrix{{{x^N}(k + 1) = {x^N}(kT + \gamma ) + } \hfill \cr {\sum\limits_{l = 1}^N {{A^{[l]}}} ({x^N}(kT + \gamma ),u(k - q),v(k - q),a(k - q)){{{{(T - \gamma )}^l}} \over {l!}}.} \hfill \cr }$$
(19)

The subsequent calculation of the corresponding Taylor coefficients A [l](x, u, v, a) can be realized by using (13).

Theorem 1. Let x 0 be an equilibrium point of the original non-affine input nonlinear continuous-time system:

$$\dot x = f(x(t),u(t))$$
(20)

that belongs to the equilibrium manifold:

$${E^c} = \{ x \in {{\bf{R}}^n}|\exists u \in {\bf{R}}:f(x,u) = 0\} $$
(21)

and u = u 0 be the corresponding equilibrium value of the input variables: \(f({x^0},{u^0}) = 0,\,{\textstyle{{{\rm{d}}u} \over {{\rm{d}}t}}}{|_{{u_0}}} = 0\) Then x 0 belongs to the equilibrium manifold: \({\textstyle{{{{\rm{d}}^2}u} \over {{\rm{d}}{t^2}}}}{|_{{u_0}}} = 0\) of the ESDR: \({E^d} = \{ x \in {{\bf{R}}^n}|\exists u \in {\bf{R}}\,:\Phi _T^D(x,u) = x\}\) and ASDR: \(x(k + 1) = \Phi _T^D(x(k),u(k - q - 1),u(k - q),v(k - q - 1),v(k - q),a(k - q - 1),a(k - q))\) obtained under the proposed Taylor discretization method, with u = u 0 being the corresponding equilibrium values of the input variables: \(\Phi _T^D({x^0},{u^0}) = {x^0}\) and \(\Phi _T^{N,D}({x^0},{u^0}) = {x^0}\).

Proof. x 0 is the equilibrium point and u 0 is the corresponding equilibrium values of the input variables \( \Rightarrow {A^{[1]}}({x^0},{u^0}) = f({x^0},{u^0}) = 0,\quad {A^{[2]}}({x^0},{u^0},{v^0},{a^0}) = {{\partial {A^{[1]}}({x^0},{u^0},{v^0},{a^0})} \over {\partial x}}{A^{[1]}}({x^0},{u^0}) + {{\partial {A^{[1]}}({x^0},{u^0},{v^0},{a^0})} \over {\partial u}}{v^0} = 0 \Rightarrow {A^{[l + 2]}}({x^0},{u^0},{v^0},{a^0}) = {{\partial {A^{[l + 1]}}({x^0},{u^0},{v^0},{a^0})} \over {\partial x}}{A^{[1]}}({x^0},{u^0}) + {{\partial {A^{[l + 1]}}({x^0},{u^0},{v^0},{a^0})} \over {\partial u}}{v^0} + {{\partial {A^{[l]}}({x^0},{u^0},{v^0},{a^0})} \over {\partial u}}{a^0} = 0\) all \(l \in \{ 1,2,3, \cdots \} \Rightarrow {\Phi _\gamma }({x^0},{u^0},{v^0},{a^0}) = {x^0} + \sum\nolimits_{l = 1}^\infty {({A^{[l]}}} ({x^0},{u^0},{v^0},{a^0}){{{\gamma ^l}} \over {l!}}) = {x^0},\quad \Phi _T^D({x^0},{u^0},{v^0},{a^0}) = {\Phi _{T - \gamma }}({\Phi _\gamma }({x^0},{u^0},{v^0},{a^0}),{u^0},{v^0},{a^0}) = {x^0}\).

Similar arguments apply to the \(\Phi _T^{N,D}\) map of the ASDR. Therefore, x 0 belongs to the equilibrium manifold E d of the ESDR and ASDR for any finite truncation order N. That is, the proposed discretization method does not change the equilibrium point of the original non-affine input nonlinear continuous-time system. □

4 Simulation

The performance of the proposed time discretization method is evaluated by applying it to a nonlinear system with the time delayed non-affine input. Reference solutions for the system are required to validate the proposed time discretization method. In this paper, the Matlab ODE solver is used to obtain the reference solutions. The discrete values obtained at every time step using the proposed time discretization method are compared to the values obtained using the Matlab ODE solver at the corresponding time steps. The partial derivative terms involved in the Taylor series expansion are determined recursively. In the simulation, these partial derivative terms are calculated using Maple.

The system considered in this paper is assumed to be a nonlinear control system[27].

$$\matrix{{{{\dot x}_1} = - x_1^3 + {x_1}{{\rm{e}}^{{x_2}}}u{{(t - D)}^2}} \hfill \cr {{{\dot x}_2} = x_2^2u(t - D).} \hfill \cr }$$
(22)

Since for system (22) N = 3 is good enough for getting the accurate discretization results, in the simulation the truncation of the Taylor series order N is chosen as 3. First we compare the proposed discretization method with the traditional Euler method. In this case, the parameters are chosen as x 1 (0) = 1.0, x 2(0) = − 1.0, T = 0.2 s and D = 0.32 s. In this case q = 1 and γ = 0.12 s. The input is assumed to be a constant one, u = 1.5. The results obtained by the Matlab ODE solver and the proposed discretization method with SOH assumption are shown in Fig. 1. Fig. 2 shows the errors of states x 1 and x 2 by using the proposed discretization method with SOH assumption and the traditional Euler method, respectively. From Fig. 2, it can be seen that the proposed discretization method can provide better discretization results than the traditional Euler method.

Fig. 1
figure 1

The discretization results for Case 1

Fig. 2
figure 2

State errors of SOH and Euler method for Case 1

Secondly, we choose the parameters as x 1(0) = 1.0, x 2(0) = −1.0, T = 0.04s and D = 0.018s. In this case q = 0 and γ = 0.018s. The input is assumed to be a constant one, u = 1. 2. The results obtained by the Matlab ODE solver and the proposed discretization method with SOH assumption are shown in Fig. 3. Fig. 4 shows the errors of states x 1 and x 2 in the case of ZOH, FOH and SOH assumptions, respectively. In this case, since the input u is a constant one the performance of cases of ZOH, FOH and SOH assumptions is similar.

Fig. 3
figure 3

The discretization results for Case 2

Fig. 4
figure 4

State errors of ZOH, FOH and SOH for Case 2

Then we choose the parameters as x 1(0) = 1.0, x 2(0) = − 1.0, T = 0.05s, D = 0.22s, u = sin(1.5t); T = 0.1s, D = 0.56 s, u = 0.05t2; and T = 0.2s, D = 0.32 s, u = 0.05t 2. In these three cases q = 4, γ = 0.02s; q = 5, γ = 0.06s; and q = 1, γ = 0.12s, respectively. The results obtained by the Matlab ODE solver and the proposed discretization method with SOH assumption of these three cases are shown in Figs. 5, 7 and 9, respectively. Figs. 6, 8 and 10 show the errors of the state in the cases of ZOH, FOH and SOH assumptions of these three cases, respectively.

Fig. 5
figure 5

The discretization results for Case 3

Fig. 6
figure 6

State errors of ZOH, FOH and SOH for Case 3

Fig. 7
figure 7

The discretization results for Case 4

Fig. 8
figure 8

State errors of ZOH, FOH and SOH for Case 4

Fig. 9
figure 9

The discretization results for Case 5

Fig. 10
figure 10

State errors of ZOH, FOH and SOH for Case 5

From the simulation results, it can be seen that the proposed time discretization method with SOH assumption can provide satisfied discretization results for nonlinear systems with time delayed non-affine input. And in these three cases the inputs are not the constant ones. From Figs. 6, 8 and 10, it can be seen that when the input is not a constant one the Taylor discretization method with SOH assumption performs better than the methods with FOH and ZOH assumptions. And in the cases 1–3, the simulation time is long enough to show the system’s steady-state response. Figs. 1, 3 and 5 show that the proposed time discretization method does not change the original system’s stability.

The computational costs are considered at the end of this section, where Table 1 shows the computing times used to get the discretization results of the proceeding simulations using Taylor series with the SOH assumption, FOH assumption and the ZOH assumption, respectively. The computing time is calculated on a computational process with 5000 steps. It can be seen from Table 1 that the computing times using the Taylor series with the SOH assumption are moderately longer than those when we use FOH and ZOH assumptions but the accuracy is much better for the process with SOH assumption.

Table 1 Computing times for the simulations

5 Conclusion

A scheme based on the Taylor series combined with the SOH assumption is proposed for the derivation of a discrete-time representation of the nonlinear systems with time delayed non-affine input. The mathematical structure of the new discretization scheme is explored. The derived time discretization method provides a finite-dimensional representation for nonlinear control systems with time delayed non-affine input, thereby enabling the application of existing nonlinear controller design techniques for such systems. The effect of sampling on system equilibrium property of nonlinear systems with time delayed non-affine input is examined. The performance of the proposed time discretization method is evaluated using a nonlinear system with time delayed non-affine input. In order to verify the accuracy of the proposed method the simulation results are compared with those given by Matlab ODE solver. At the same time, some comparisons are made between the method using SOH assumption with the traditional Euler method, and those using FOH and ZOH assumptions. The results show that the discretization method using SOH assumption is better than the traditional Euler method and is also better than the methods using FOH and ZOH assumptions when the input is not a constant one. Finally, the simulation results show that the proposed discretization method does not change the original system stability nor increase much computational burden.