1 Introduction

The large scale systems are all around and exist in diverse fields such as, complex chemical processes, biomedical systems, socio-economic systems, transportation systems, ecological systems, electric power systems, aeronautics, hydraulic, pneumatic, thermal, mechanical, environment systems, etc. or a combination of these. A system is said to be large if it can be decoupled or partitioned into a number of interconnected systems or small scale/micro systems for either computational or practical reasons. The analysis of such physical systems starts by building up of a model which may be considered as a faithful representation of such systems. The task of a control engineer begins with the formulation of a model. The rest of the analysis and design can be done with this model.

Whether existing or to be designed, when a system is mathematically modelled for analysis and improvement, initially a complex model of high order is obtained. So, if the order of the system modelled is high then it may pose difficulties in its analysis, synthesis and identification. An obvious method of dealing with such type of system is to approximate it by a low/micro order model which reflects the important characteristics of the original high order system such as time constant, damping ratio, natural frequency, etc. Thus approximation techniques help in understanding the system in a better way.

System’s approximation eases the computational process and provides better understanding of complex systems. The literature is having various simplification and optimization techniques, such as; response matching techniques (Mukherjee et al. 2005), reduction of linear dynamic systems using error minimization technique (Mittal et al. 2004), Eigen spectrum analysis and pade approximation technique (Parmar et al. 2007a), factor division algorithm and Eigen spectrum analysis (Parmar et al. 2007b), etc. Simultaneously, the Routh approximation (Sambariya and Sharma 2016a, b), both Stability equation (Sambariya and Arvind 2016), Differentiation (Sambariya and Manohar 2016) methods have also been presented for deriving the reduced order models of the higher order systems which includes benchmark problems.

In recent years, nature inspired algorithms have been utilized in system’s approximation, e.g. particle swarm optimization (PSO) algorithm is a member of wide category of swarm intelligence methods available in literature which is computationally useful and easier in reduced order modelling (Parmar et al. 2007c). Invasive weed optimization (IWO) which is a bio inspired numerical optimization algorithm that basically simulates natural behavior of weeds in colonizing is also available for system’s approximation (Khalilpuor et al. 2011). Also, a new search method, namely Big Bang–Big Crunch (BB–BC) algorithm based on the theory of universe (Desai and Prasad 2013a, b; Biradar et al. 2016) and cuckoo search optimization and stability equation method (Narwal and Prasad 2015) are also available in literature. The application of soft computing technique (Sikander and Prasad 2015a), cuckoo search algorithm (Sikander and Prasad 2015b) and modified cuckoo search (MCS) algorithm (Sikander and Thakur 2017) have also been presented in literature in the field of system’s approximation. Though, these nature inspired algorithms have great potential to obtain lower order system but unfortunately suffers from the following problems (Clerc and Kennedy 2002):

  • Premature and slow speed convergence usually degrades the performance and reduces the search capability.

  • The calculation directly depends upon the parameters, such as, the initial values of the control parameters, the size of swarm value, and the maximum iteration number. Dependency on large number of control parameters reduces its search capability and computational efficiency.

In the area of controllers, PID controllers are broadly used in industrial plants due to their robustness and ease of implementation. Various algorithms are available in literature to tune the parameters of PID controllers, such as; Cohen–Coon, Ziegler Nichol and Z–N step response, etc. But, all of these classical methods have some limitations (Ang et al. 2005). Further, for the control of DC motor, a comparative analysis of PID controller tuned by PSO and IWO is also available in the literature (Khalilpuor et al. 2011).

The present work deals with application of SFS in approximation and control of LTI systems. The ISE and ITAE have been taken as fitness/objective functions as per the literature which is to be minimized by proposed algorithm. The algorithm considers convergence, accuracy and exhibits comparable results (Khanam and Parmar 2017) in comparison to the recently available techniques in literature, as shown in the simulation examples.

2 Basics of DC motor

The speed control of DC motor means intentional change of the drive speed to a value required for performing the specific work. DC motor basically converts DC electric energy into mechanical energy. Speed control is also done manually by the operator or by the means of some automatic control devices. The model of DC motor and its equivalent circuit with PID controller have been shown in Figs. 1 and 2, respectively.

Fig. 1
figure 1

Model of DC motor

Fig. 2
figure 2

Equivalent circuit of DC motor with PID controller

The parameters of the DC motor used in present study/simulation have been given (Khalilpuor et al. 2011) in Table 1.

Table 1 Parameters of DC motor

3 Problem formulation

3.1 Approximation of LTI systems

Consider an nth order single input single output (SISO) LTI HOS system with the following transfer function:

$$G_{n} (s) = \frac{{a_{0} + a_{1} s^{2} + a_{2} s^{2} + \cdots + a_{n} s^{n - 1} }}{{b_{0} + b_{1} s + b_{2} s^{2} + \cdots + b_{n} s^{n} }}$$
(1)

Let, the rth order LOS is represented by following transfer function:

$$R_{r} (s) = \frac{{\alpha_{0} + \alpha_{1} s + \alpha_{2} s^{2} + \cdots + \alpha_{r} s^{r - 1} }}{{\beta_{0} + \beta_{1} s + \beta_{2} s^{2} + \cdots + \beta_{r} s^{r} }}$$
(2)

where, r < n. Also, \(a_{i} \,,\,\,b_{i} \,,\,\,\alpha_{i\,} \;{\text{and}}\;\,\,\beta_{i\,}\) are the coefficients of numerator and denominator’s polynomials of HOS and LOS, respectively. Now, the aim is to obtain all the unknown parameters of LOS in (2) by minimizing the objective/fitness function (which is ISE in the present work) between the transient responses of HOS and LOS using SFS subjected to unit step input. The LOS should be a good approximation of HOS. This ISE is given by (Saraswat and Parmar 2015; Sikander and Prasad 2017b):

$$ISE\,\, = \,\,\int\limits_{0}^{\infty } {[y(t) - y_{r} (t)]^{2} } dt$$
(3)

The simulink model of this problem is shown in Fig. 3. The other performance indices used in this work for the purpose of comparison are given by (Parmar et al. 2007a; Sikander and Prasad 2015b):

$$IAE\,\, = \,\int\limits_{0}^{\infty } {\left| {\,e(t)\,} \right|\,} \,dt$$
(4)
$$IRE\, = \,\int_{0}^{\infty } {g^{2} (t)\;\;dt}$$
(5)
Fig. 3
figure 3

Simulink model of scheme with ISE objective function

3.2 Control of DC motor

In control of DC motor, the objective is that the output of DC motor should follow the set point. Therefore, PID controller has been used, which is given by:

$$G_{C} = \mathop K\nolimits_{P} + \,\frac{{\mathop K\nolimits_{I} }}{s}\, + \,\,\mathop K\nolimits_{D} s$$
(6)

For obtaining the unknown parameters of PID controller in (6) for speed control of DC motor to ideal/set point state, fitness/objective function taken is ITAE, where error is the output velocity of DC motor. This ITAE is given by:

$$ITAE\, = \,\int\limits_{0}^{\infty } t \,\left| {e\left( t \right)} \right|\,dt$$
(7)

The complete simulink model of DC motor with PID controller and ITAE as fitness function has been shown in Fig. 4.

Fig. 4
figure 4

Simulink model of DC motor with PID controller and ITAE objective function

Here, the objective is to obtain the unknown parameters of PID controller in (6) for speed control of DC motor to ideal/set point state by minimizing ITAE.

4 Stochastic fractal search algorithm

Stochastic fractal search (SFS) has been designed to find a heuristic or an optimal search pattern that may give a suitably superior solution to an optimization problem. SFS employs the diffusion property present in random fractals to discover the search space. It consists of two main processes; diffusion and update (Hoos and Stiitzle 2005; Salimi 2015).

The steps of the SFS algorithm are as under:

  • Initialization First of all, the position of each particle (points) is randomly initialized depending on the problem constrains by specifying maximum and minimum bounds as:

    $$P = LB + rand(UB - LB)$$
    (8)
  • Diffusion procedure Gaussian walk is employed to generate each point in the diffusion process. The series of Gaussian Random Walks (GRW) used are given by:

    $$GRW_{1} = Gaussian(\,|BP|\;,\;SD) + (rand \times BP - rand_{1} \times P_{i} )$$
    (9)
    $$GRW_{2} = Gaussian(\,|P_{i} |\;,\;SD)$$
    (10)

    where, SD is the standard deviation, which is calculated as:

    $$SD\,\, = \,\,\left| {\frac{\log (g)}{g}\,\, \times \,\,(P_{i} \,\, - \,\,BP)} \right|$$
    (11)
  • Update procedure All the particles are ranked according to the value of the objective/fitness function and each particle i is assigned a probability value given by:

    $$P_{pi} = \frac{{rank(P_{i} )}}{N}$$
    (12)

The modified position of \(P_{i} ,P_{i}^{\prime } (j)\) is calculated as:

$$P_{i}^{\prime } (j) = P_{x} (j) - {\text{rand}}\,[P_{y} (j) - P_{i} (j)]$$
(13)

All the points obtained from the above process are ranked again and a probability value is assigned as before. For a new point \(P_{i}^{\prime }\), the current position is modified to \(P_{i}^{\prime \prime }\), if the condition \(P_{ai}^{\prime } < rand\) is satisfied, otherwise it remains same. The points are calculated as:

$$P_{i}^{\prime \prime } = P_{i}^{\prime } - rand_{g} \,[P_{x}^{\prime } - BP]|rand_{g} \le 0.5$$
(14)
$$P_{i}^{\prime \prime } = P_{i}^{\prime } + rand_{g} \,[P_{x}^{\prime } - P_{y}^{\prime } ]|rand_{g} > 0.5$$
(15)

The new point \(P_{i}^{\prime \prime }\) replaces \(P_{i}^{\prime }\), if the fitness value of \(P_{i}^{\prime \prime }\) is better than \(P_{i}^{\prime }\).

Stochastic fractal search algorithm is quite simple to use in control system. The flow chart representation of the SFS algorithm is shown in Fig. 5. The flow chart describes each stage, which is performing the whole process.

Fig. 5
figure 5

Flow chart of SFS algorithm

The parameters used for simulation of SFS algorithm have been given in Table 2.

Table 2 Parameter used for SFS algorithm

5 Implementation of SFS in approximation of systems

To exemplify the SFS in present work, two simulation examples of different order have been taken from the literature.

Example 1

Consider a 6th order SISO LTI HOS given by (Singh et al. 2014; Vishwakarma 2009):

$${\text{G}}_{6} (s)\, = \,\frac{{2s^{5} + 3s^{4} + \,\,16s^{3} + 20s^{2} + 8s + 1}}{{2s^{6} + 33.6s^{5} + 155.9s^{4} + \,\,209.5s^{3} + 102.4s^{2} + 18.3s + 1}}$$
(16)

The SFS has been applied to the above system as per the scheme shown in Fig. 3 and the parameters of numerator and denominator polynomials of LOS are obtained. The SFS has been run for 30 iterations and the value of obtained ISE is 5.1534 × 10−4. The obtained reduced denominator and numerator polynomials of LOS are:

$$D_{2} (s) = 4.4617s^{2} + 4.7307\,s + \,\,0.4110$$
(17)
$$N_{2} (s) = 0.4753s + 0.4110$$
(18)

Therefore, the 2nd order LOS obtained by SFS is:

$$R_{2} \,(s)\, = \,\frac{0.4753\,s + \,\,0.4110}{{4.4617\,s^{2} + 4.7307s + 0.4110}}$$
(19)

The convergence of objective function with number of iterations has been shown in Figs. 6 and 7 for the program at starting and ending. It can be seen in Fig. 7 that all the fractals/points come together to give the optimal values. The analysis of 6th order HOS and 2nd order LOS in terms of performance indices and transient response’s parameters has been shown in Table 3. It can be observed in Table 3, that the parameters of obtained 2nd order LOS by SFS are comparable with that of original 6th order HOS. Also, the SFS based LOS has lowest values of performance indices; ISE and IAE in comparison to other existing techniques and the value of IRE is closer to that of original HOS.

Fig. 6
figure 6

Convergence of point’s movement and objective function at start

Fig. 7
figure 7

Convergence of point’s movement and objective function at end

Table 3 Performance analysis of HOS and LOS for Example 1

The comparison of responses of 6th order HOS and 2nd order LOS with other techniques has also been shown in Figs. 8 and 9. It can be observed in Figs. 8 and 9, that response of LOS by SFS has close approximation with that of original HOS.

Fig. 8
figure 8

Comparison of step response with existing techniques

Fig. 9
figure 9

Comparison of frequency response with existing techniques

Example 2

This simulation example has been chosen to show the superiority of SFS algorithm over other existing/available methods in the literature. Consider an 8th order SISO LTI HOS given by (Parmar et al. 2007a; Sikander and Prasad 2015a; Sambariya and Sharma 2016a):

$$G_{8} (s)\, = \,\frac{{18s^{7} + 514s^{6} + 5982s^{5} + 36380s^{4} + 122664s^{3} \, + \,\,222088s^{2} + 185760s + 40320}}{{s^{8} + 36s^{7} + 546s^{6} + 4536s^{5} + 22449s^{4} + \,\,67284s^{3} + 118124s^{2} + 109584s + 40320}}$$
(20)

The SFS has been applied to the above system as per the scheme shown in Fig. 3 and the obtained reduced order denominator and numerator polynomials by SFS are:

$$D_{2} (s)\,\, = \,\,0.956\,9\,8\,\,s^{2} + \,\,6.55351\,\,s + 5.03619$$
(21)
$$N_{2} (s)\,\, = \,\,16.14315\,\,s + \,\,5.03619$$
(22)

Therefore, the 2nd order LOS by SFS is given by:

$$R\,_{2} \,(s)\,\,\, = \,\,\frac{16.14315\,\,s\,\, + \,\,5.03619}{{0.95\,6\,9\,8\,\,s^{2} + \,\,6.5\,5\,3\,51\,\,s\,\, + \,\,5.0\,3\,619}}$$
(23)

and the value of obtained ISE is 7.033 × 10−4. The convergence of objective function with number of iterations has been shown in Figs. 10 and 11 for the program at starting and ending.

Fig. 10
figure 10

Convergence of point’s movement and objective function at start

Fig. 11
figure 11

Convergence of point’s movement and objective function at end

The step and frequency responses of original 8th order HOS and SFS based 2nd order LOS have been compared in Figs. 12 and 13, respectively. It can be seen in Figs. 12 and 13, that the error gap between HOS and SFS based LOS is quite small in comparison to other existing techniques. The analysis of 8th order HOS and 2nd order LOS in terms of performance indices and transient response’s parameters has also been given in Table 4, from which it can be observed that the parameters of obtained 2nd order LOS by SFS are comparable with that of original 8th order HOS. Also, the SFS based LOS gives low values of performance indices; ISE and IAE in comparison to existing techniques and the value of IRE is closer to that of original HOS.

Fig. 12
figure 12

Comparison of step response with existing techniques

Fig. 13
figure 13

Comparison of frequency response with existing techniques

Table 4 Performance analysis of HOS and LOS for Example 2

6 Implementation of SFS/PID approach in control of DC motor

The SFS has been applied to the system as per the scheme shown in Fig. 4 and the obtained parameters of PID controller are given by:

$${\text{K}}_{\text{P}} = { 1}. 6 3 1 5;\quad {\text{K}}_{\text{I}} = \, 0. 2 7 9 8;\quad {\text{K}}_{\text{D}} = \, 0. 2 3 9 5$$
(24)

Therefore, the PID controller is given by:

$$G_{C} = \,1.6315 + \,\,\frac{0.2798}{s}\, + \,\,0.2395\,\,s$$
(25)

For obtaining the above parameters of PID controller, the convergences of objective function by SFS at starting and ending is shown in Figs. 14 and 15. Now, by multiplying the transfer functions of both PID controller and DC motor, the open loop forward path transfer function is given by:

$$G_{F} = \,\,PID\,\,Controller\,(G_{C} )\,\, \times \,\,DC\,\,Motor\,(G_{M} )$$
(26)
Fig. 14
figure 14

Convergence of point’s movement and objective function at start

Fig. 15
figure 15

Convergence of point’s movement and objective function at end

Therefore,

$$G_{F} \,\,\, = \,\,\,\,\,\frac{{3.5925\,s^{2} \, + \,24.4725\,s\, + \,4.197}}{{1.08\,s^{3} \, + \,6.1\,s^{2} \, + \,1.63\,s}}$$
(27)

The closed loop transfer function of DC motor with PID and unity feedback can be obtained from:

$$G_{CL} = \frac{{G_{F} }}{{1\, + \,H(s)\,\,G_{F} }}\,\,$$
(28)

where, H(s) = 1.

Graphically, the comparison of DC motor without and with PID controller tuned by SFS with ITAE as an objective function is shown in Fig. 16. It can be seen in Fig. 16 that, the speed of DC motor approaches to set point immediately without any overshoot with the PID controller tuned by SFS. The parameters of PID controller obtained by SFS along with other existing approaches have also been given in Table 5. Also, in Fig. 17, comparison of speed of DC motor with other existing approaches has also been shown. It can be seen in Fig. 17 that, SFS/PID approach with ITAE gives no overshoot in comparison to existing techniques.

Fig. 16
figure 16

Speed comparison of DC motor without and with PID controller

Table 5 Parameters of PID controller obtained by SFS, IWO & PSO
Fig. 17
figure 17

Speed comparison of DC motor with existing techniques

Therefore,

$$G_{CL} (SFS)\, = \,\frac{{3.5925\,s^{2} \, + \,24.4725\,s\, + \,4.197}}{{1.08\,s^{3} \, + \,9.6925\,s^{2} \, + \,26.1025\,s\, + \,4.197}}$$
(29)

Further, the transient response’s parameters for the closed loop responses are also given in Table 6 which shows that the proposed SFS/PID approach gives no overshoot when compared with other existing approaches.

Table 6 Comparison of transient response’s parameters

7 Conclusions

The present work deals with application of SFS algorithm in approximation and control of LTI systems. In system’s approximation, the SFS has been used to minimize the ISE in between the transient responses of HOS and LOS in order to get all the unknown parameters of LOS. The systems available in the literature have been taken as test/simulation examples. The step and frequency responses of HOS and LOS have been compared with each other along with the recently published methods in the literature. Also, in simulation examples, comparisons of ISE, IAE and IRE have been shown with existing methods to show the effectiveness of SFS algorithm. The obtained ISE and IAE values by SFS algorithm are very low and the IRE value of SFS based LOS is very close to HOS when compared with existing methods. The transient response’s parameters of HOS and LOS by SFS and other existing techniques have also been compared.

The application of SFS algorithm in control of LTI system has also been shown in which standard DC motor is used as test system. The ITAE has been taken as an objective/fitness function. Comparison of proposed SFS/PID approach has also been shown with other existing techniques; such as IWO/PID and PSO/PID. The simulation results reveal that SFS/PID scheme with ITAE as an objective function gives no overshoot and other parameters such as; settling and rise times are also comparable with existing techniques.