SoftFRAC Matlab Library For Realization
SoftFRAC Matlab Library For Realization
SoftFRAC Matlab Library For Realization
1 Introduction
The research of non-integer systems usage blooms. While it gravitates towards
modeling and design aspects, we shouldnt neglect their implementation. For
computer simulation, the popular FOMCON toolbox [20] covers most of the
needs. The real-time control applications need more care especially in the aspects
of numerical stability and errors accumulation. In this paper we present initial
results on a new library - SoftFRAC - which will offer real-time ready solutions.
Popular methods for implementing fractional systems are Oustaloup filter
method [14] and continuous fraction expansion (CFE, see eg. [15,17]). Discretiz-
ing them however causes instability, especially at high sampling frequencies or
approximation orders [16]. For Oustaloup method, thanks to its structural prop-
erties, it is possible to remedy that issue. We discussed its sensitivity and sta-
bility problems during discretization in [4,5] and developed a new method -
Time Domain Oustaloup approximation. Other avenues for warranting numeri-
cal stability require different methods. One approach focused on using Laguerre
c Springer Nature Switzerland AG 2020
A. Bartoszewicz et al. (Eds.): PCC 2020, AISC 1196, pp. 1189–1198, 2020.
https://doi.org/10.1007/978-3-030-50936-1_99
1190 W. Bauer et al.
where
Ak = − ωk
Bk = ωk′ − ωk
Ck = 1
Dk = 1
or in brief
ẋ = Ax + Bu
(4)
y = Cx + Du
What can be immediately observed is that the matrix A is triangular. This is
an extremely important in the case of this problem, as all its eigenvalues (poles
of transfer function (1) are on its diagonal, so there is no need for eigenvalue
products, which would lead to rounding errors. That is why discretization of (3)
should have a structure preserving property.
where g(t) is an inverse Laplace transform of ĝ(s). it was shown that for bounded
g(t) ∈ L1 (0, ∞) ∩ L2 (0, ∞) solution (6) can be approximated by a solution of a
system of linear ordinary differential equation.
Approximating system has a form (for approximation order n + 1, x =
T
ξ0 . . . ξn ):
ẋ(t) = Ax(t) + Bu(t)
(7)
y(t) = Cx(t)
⎧
⎨−µ, i = j
⎪
√
with matrices A = [aij ], aij = −2µ, i > j , B = [bi ], bi = 2µ, C = [cj ],
⎪
0, otherwise
⎩
cj = βj where βk is given
√ k
2µ k k
βk = c (µ)ĝ (k−j) (µ) (8)
k! j=0 j j
where the coefficients of the sum are calculated on the basis of numerical quadra-
tures. In the works [3,6] the convergence of such approximation was analyzed
using both quadrature for finite [6] and infinite [3] intervals.
Analysis of these results has concluded that since the approximation of (11)
is the sum of the first order lowpass filters, the approximation quality will depend
SoftFRAC 1193
x = 10θ
For the interval x ∈ [10δ1 , 10δ2 ] (the unconstrained space can not be used because
of the large scattering of values) integration is reduced to
δ2
sin γπ 1
log(10)10θ(1−γ) dθ. (12)
π s + 10θ
δ1
This integral, although the integrand is more complex, allows the balance of all
frequencies (high and low) to be balanced.
The Gauss-Legendre quadrature and Clenshaw-Curtis quadrature were ana-
lyzed in this context. In both cases the formulas for approximation coefficients
have the same form, i.e.
∗
xj = 10xj
sin γπ ∗ (13)
bj = log(10)10xj (1−γ) wj∗
π
where for ∗ appropriately GL or CC has to be inserted. The diference is in
determination of weights and nodes of quadratures. In case of Gaussa-Legendre
quadrature they are
xGL
j = λ(T )
GL 2
(14)
wj = 2v1j
where
0 √ 1 ... 0 0
⎡ ⎤
1−2−2
⎢√ 1 0 ... 0 0 ⎥
⎢ 1−2−2 ⎥
1⎢ .. .. .. .. .. ..⎥ −1
T = ⎢ . . . . . .⎥ = V diag(λ(T ))V
⎥
2⎢
⎣ 0 0 ... 0 √ 1
⎢ ⎥
1−n−2
⎦
0 0 ... √ 1 0
1−n−2
w∗ = ifft(g + v) (16)
1194 W. Bauer et al.
while w0CC = (n2 − 1 + mod(n, 2))−1 . The advantage of this quadrature is that
it significantly reduces the computational complexity of the coefficients, equal
to the complexity of the fast Fourier transform.
3.1 SoftFRAC
Developed library SoftFRAC on this moment gives user functionality to cre-
ate state-space fractional model and transfer function fractional model of the
non-integer dynamic element sα based on approximations described in second
section. State-space fractional model class (ssf) inherit from standard state-
space model class (ss) and have all functionality of this class. While transfer
function fractional model class (ssf) inherit form transfer function model. In
both cases to standard properties added variables described approximation:
implementation, the user can use all functionalities of parent classes ss and tf.
In particular, user can use this realization to Simulink simulation, system behav-
ior analysis and easy plotting of dynamic characteristics. Additional to we have
added to the classes a construction method for easy conversion between those
types, from ssf to ssf and vice versa. UML diagram of the ssf class implemen-
tation is presented in the Fig. 1.
Interface implementation of ssf class presents Matlab code:
classdef ssf < ss
properties
alpha
omega min
omega max
approximation order
end
methods
f u n c t i o n o b j = s s f ( alpha , . . .
a p p r o x i m a t i o n o r d e r , omega min , . . .
omega max , Ts )
end
f u n c t i o n o b j = c o n v e r t 2Q u d r a t u r e ( o b j )
end
end
end
4 Conclusion
This paper present early stages of realization of the project SoftFRAC “Devel-
opment of efficient computing software for simulation and application of non-
integer order systems”. The aim of the project is to develop a commercialization
concept and carry out the development work to use the results of the already
completed project “Designing and applying subsystems of a fraction of order
in control systems”. The essence of the planned commercialization is software
that allows the implementation of non-integer order systems (regulators, filters)
in real automation and signal processing systems. Competing (and available
in open source form) software is characterized by either low accuracy or lack
of numerical stability. SoftFRAC relies on algorithms developed as part of the
SoftFRAC 1197
References
1. Bania, P., Baranowski, J.: Laguerre polynomial approximation of fractional order
linear systems. In: Mitkowski, W., Kacprzyk, J., Baranowski, J. (eds.) Advances
in the Theory and Applications of Non-integer Order Systems: 5th Conference on
Non-integer Order Calculus and Its Applications, Cracow, Poland, pp. 171–182.
Springer (2013)
2. Bania, P., Baranowski, J., Zagórowska, M.: Convergence of Laguerre impulse
response approximation for non-integer order systems. Math. Prob. Eng. 2016,
13 (2016). https://doi.org/10.1155/2016/9258437. Article ID 9258437
3. Baranowski, J.: Quadrature based approximations of non-integer order integra-
tor on finite integration interval. In: Babiarz, A., Czornik, A., Klamka, J., Niez-
abitowski, M. (eds.) Theory and Applications of Non-integer Order Systems, Lec-
ture Notes in Electrical Engineering, vol. 407, pp. 11–20. Springer International
Publishing (2017). https://doi.org/10.1007/978-3-319-45474-0 2
4. Baranowski, J., Bauer, W., Zagórowska, M.: Stability properties of discrete time-
domain oustaloup approximation. In: Domek, S., Dworak, P. (eds.) Theoretical
Developments and Applications of Non-Integer Order Systems, Lecture Notes in
Electrical Engineering, vol. 357, pp. 93–103. Springer International Publishing
(2016). https://doi.org/10.1007/978-3-319-23039-9 8
5. Baranowski, J., Bauer, W., Zagórowska, M., Dziwiński, T., Piatek, ֒ P.: Time-
domain Oustaloup approximation. In: 2015 20th International Conference On
Methods and Models in Automation and Robotics (MMAR), pp. 116–120. IEEE
(2015)
6. Baranowski, J., Zagórowska, M.: Quadrature based approximations of non-integer
order integrator on infinite integration interval. In: 2016 21st International Con-
ference On Methods and Models in Automation and Robotics (MMAR) (2016)
7. Bauer, W., Baranowski, J., Dziwiński, T., Piatek,
֒ P., Zagórowska, M.: Stabilisa-
tion of magnetic levitation with a PIλ Dμ controller. In: 2015 20th International
Conference On Methods and Models in Automation and Robotics (MMAR), pp.
638–642. IEEE (2015)
1198 W. Bauer et al.
8. De Keyser, R., Muresan, C., Ionescu, C.: An efficient algorithm for low-order direct
discrete-time implementation of fractional order transfer functions. ISA Trans. 74,
229–238 (2018)
9. Kapoulea, S., Psychalinos, C., Elwakil, A.: Single active element implementation of
fractional-order differentiators and integrators. AEU - Int. J. Electron. Commun.
97, 6–15 (2018)
10. Kawala-Janik, A., Bauer, W., Al-Bakri, A., Haddix, C., Yuvaraj, R., Cichon, K.,
Podraza, W.: Implementation of low-pass fractional filtering for the purpose of
analysis of electroencephalographic signals. Lect. Notes Electr. Eng. 496, 63–73
(2019)
11. Monje, C.A., Chen, Y., Vinagre, B.M., Xue, D., Feliu, V.: Fractional-order sys-
tems and controls: Fundamentals and applications. Advances in Industrial Control.
Springer-Verlag, London (2010)
12. Monteghetti, F., Matignon, D., Piot, E.: Time-local discretization of fractional
and related diffusive operators using gaussian quadrature with applications. Appl.
Numer. Math. (2018)
13. Mozyrska, D., Wyrwas, M.: Stability of linear systems with Caputo fractional-,
variable-order difference operator of convolution type (2018)
14. Oustaloup, A., Levron, F., Mathieu, B., Nanot, F.M.: Frequency-band complex
noninteger differentiator: characterization and synthesis. IEEE Trans. Circuits
Syst. I Fundam. Theory Appl. 47(1), 25–39 (2000)
15. Petráš, I.: Fractional-Order Nonlinear Systems: Modeling, Analysis and Simulation.
Nonlinear Physical Science. Springer (2011)
16. Piatek,
֒ P., Zagórowska, M., Baranowski, J., Bauer, W., Dziwiński, T.: Discretisa-
tion of different non-integer order system approximations. In: 2014 19th Interna-
tional Conference on Methods and Models in Automation and Robotics (MMAR),
pp. 429–433. IEEE (2014)
17. Podlubny, I.: Fractional Differential Equations: An Introduction to Fractional
Derivatives, Fractional Differential Equations, to Methods of Their Solution and
Some of Their Applications. Mathematics in Science and Engineering. Elsevier
Science (1998)
18. Rydel, M., Stanislawski, R., Latawiec, K., Galek, M.: Model order reduction of
commensurate linear discrete-time fractional-order systems. IFAC-PapersOnLine
51(1), 536–541 (2018)
19. Stanislawski, R., Latawiec, K.J., Galek, M., L ukaniszyn, M.: Modeling and identifi-
cation of fractional-order discrete-time laguerre-based feedback-nonlinear systems.
In: Latawiec, K.J., L ukaniszyn, M., Stanislawski, R. (eds.) Advances in Modelling
and Control of Non-integer-Order Systems, Lecture Notes in Electrical Engineer-
ing, vol. 320, pp. 101–112. Springer International Publishing (2015)
20. Tepljakov, A., Petlenkov, E., Belikov, J.: FOMCON: a MATLAB toolbox for
fractional-order system identification and control. Int. J. Microelectron. Comput.
Sci. 2, 51–62 (2011)
21. Trigeassou, J., Maamri, N., Sabatier, J., Oustaloup, A.: State variables and-
transients of fractional order differential systems. Comput. Math. Appl. 64(10),
3117–3140 (2012). https://doi.org/10.1016/j.camwa.2012.03.099. http://www.
sciencedirect.com/science/article/pii/S0898122112003173. Advances in FDE, III