Научная статья на тему 'ANALYTICAL DESIGN OF CONTROLLERS FOR DISCRETE-CONTINUOUS SYSTEMS WITH LINEAR CONTROL'

ANALYTICAL DESIGN OF CONTROLLERS FOR DISCRETE-CONTINUOUS SYSTEMS WITH LINEAR CONTROL Текст научной статьи по специальности «Компьютерные и информационные науки»

CC BY
17
6
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
DISCRETE-CONTINUOUS SYSTEMS / SUFFICIENT OPTIMALITY CONDITIONS / ADOCS PROBLEM

Аннотация научной статьи по компьютерным и информационным наукам, автор научной работы — Rasina Irina Viktorovna, Fesko Oles Vladimirovich, Usenko Oleg Valerievich

The study focuses on a certain kind of discrete-continuous systems (DCS): the linear hybrid DCS with state-dependent coefficients. The authors proposed a problem similar to the analytical design of optimal controllers (ADOC). For this study, we generalized the Krotov sufficient optimality conditions. The paper includes several examples.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «ANALYTICAL DESIGN OF CONTROLLERS FOR DISCRETE-CONTINUOUS SYSTEMS WITH LINEAR CONTROL»

CSCSTI 27.37.17,8 UDC 517.977

Irina V. Rasina, Oles V. Fesko, Oleg V. Usenko

Analytical design of controllers for discrete-continuous systems with linear control

Abstract. The study focuses on a certain kind of discrete-continuous systems (DCS): the linear hybrid DCS with state-dependent coefficients. The authors proposed a problem similar to the analytical design of optimal controllers (ADOC). For this study, we generalized the Krotov sufficient optimality conditions. The paper includes several examples.

Key words and phrases: discrete-continuous systems, sufficient optimality conditions, ADOCs problem.

2020 Mathematics Subject Classification: 49M30; 49N10

Introduction

In some of the widely used control processes [1-7], the definitions of controlled differential or discrete systems change over time. One class of such processes is discrete-continuous systems [2]. For this study, we generalized the Krotov sufficient optimality conditions [8,9]. The simulation model of a discrete-continuous system is presented in [2,10-12]. It is a two-level model. The upper level contains the definitions of individual stages of uniform continuous processes. The lower (discrete) level combines these definitions into a single process and controls the entire system to minimize the functional.

This study focuses on a certain kind of discrete-continuous systems (DCS) linearly dependent on the state and control variables. The coefficient matrix elements of this DCS depend on the upper and lower level state variables. Such systems are the closest to the so-called weakly nonlinear systems [15-17].

This work was supported by the Russian Science Foundation, project no. 21-11-00202.

© I. V. RASINA< , O. V. FESKO< , O. V. USENKO< , 2021 © Ailamazyan Program Systems Institute of RAS(1, , 2021 © Irkutsk Rehabilitation College! , 2021

© Program Systems: Theory and Applications (design), 2021

DO 10.25209/2079-3316-2021-12-2-121-135^^^^^^^^^^^^^^^^^^^! BYj&i

Below we describe a model of a linear discrete-continuous system with state-dependent coefficients and formulate a problem similar to the well-known analytical design of optimal controllers (ADOC) [14]. To solve it, we generalized the Krotov sufficient optimality conditions [8,9]. The Riccati equation containing a matrix of the Krotov function second-order derivatives is conventionally used [8]. We should find the vector-matrix system solution for both first- and second-order Krotov function derivatives at both levels with similar reasoning. In such systems, the coefficient matrices for the above-specified derivatives (just like in the original problem) depend on the state variables at the same levels.

We proposed a possible approach to solving the problem. The resulting algorithm and some examples are shown below.

1. Model of linear discrete-continuous system with state-dependent coefficients

We consider a special case of discrete control system [9]: x(k + 1) = A(k,x(k))x(k) + B(k,x(k))u(k),

(1) x0(k + 1) = x0(k) + 1 ((x)TS(k, x)x + (u(k))TQ(k, x)u(k)) ,

k e K = {k/, k/ + 1, ...,kF},

where k is the step (stage) number, time is not necessarily physical, x is the state and u is the conrol; A and S are the m(k) x m(k) matrices; B is the m(k) x p(k) matrics and Q is the p(k) x p(k) matrics; k/ is the initial step and kF is the final step;

x(k) e Rm(k), u(k) e Rp(k).

On some subset of the set of linearity segments K' c K, kF e K', there is a continuous system of the lower level

(2)

dxC

xc = — = Ac(k,t,xc)xc + Bc(k, t, xc)uc, t e T (k) = [t/(k),tF (k)],

where Ac is a n(k) x n(k) matrix and Bc is a n(k) x r(k) matrix, xc(k,t) e Rn(k), uc(k,t) e Rr(k).

Set an intermediate goal objective for the system (3) on the interval [tj(k),tF(k)] in the form of a functional:

dxc

(3) xc = -= Ac(k, t, xc)xc + Bc(k, t, xc)uc,

dt

t e T (k) = [tj(k),tF(k)],

Here Sc and Ac are a n(k) x n(k) matrices, Qc is a n(k) x n(k) matrix, and Ac is an n(k)-dimensional vector. For each k e K' the right-hand side operator (1) is given by

c

x(k +1) = e(k)x

where Q(k) is an m(k) x n(k) matrix and xc(k,tj) = £(k)x. Here £(k) is the given matrix. We suppose the matrices Q, Qc to be negative definite for each k and each pair (k,t).

The solution of this two-level system is such the element m = (x(k),u(k)), that for each k e K',

u(k) = mc(k), mc(k) e Dc(k),

where mc(k) = (xc(k,t),uc(k,t)) is a continuous on t e T(z) process. Here Dc(k) is the set of permissible processes mc satisfying the specified differential system (3).

Let us denote the set of elements m satisfying all the above conditions by D and call it a set of permissible linear discrete-continuous processes with state-dependent coefficients.

For the model (1), (3), we consider the problem of finding the minimum on D of the functional

t 1

I = F(xf) = (A(Xf)) Xf + ^(Xf)TA(Xf)Xf

under fixed kj = 0, kF = K, x(kj). Here xF = x(kF); A and A are m(k) x 1 and m(k) x m(k) matrices, respectively.

Note that a heuristic approach represents the researcher's preferences for constructing an upper-level discrete model that unites uniform continuous systems operating over different time intervals. There can be more than one model. The researcher selects information about completing a step to send to the upper level and control values to send from the upper to the lower. There are no available sources about selecting the only upper-level model.

2. Sufficient optimality conditions

The considered optimal control problem is a modification of the classical ADOC problem [14]. It is also a special case of the optimal control problem for DCS with intermediate criteria [13]. Its peculiar feature is that the elements of the A, B, 6, A, Ac, Bc, Ac, Sc, Qc and the A vector depend on the upper and lower level process states, and are not constant.

Subsequently, we use a modification of the Krotov sufficient optimality conditions for the DCS with intermediate criteria. The conditions are formulated as a theorem.

Theorem 1. [13]. Let there be a sequence of discrete-continuous processes {ms} c D and functionals p, pc such that

(1) pc (k,t) is piecewise continuous for each k;

(2) R (k, xs (k), us (k)) ^ p (k), k e K;

(3) f (Rc (k,t,xS (t) ,uS (k,t)) — pc (k,t)) dt ^ 0, k e K',t e T (k);

T(k)

(4) Gc (k, xcFs,xcIs) - lc (k) ^ 0, k e K';

(5) G (xs (tF)) ^ l.

Then the sequence {ms} is a minimizing sequence for I on D.

Let us write down these conditions for the problem under consideration. Below we define the upper and lower level Krotov functions as

p (k) = ^>T (k) x + ixTa (k) x — x0, pc (z, t, xc) = i>cT(k, t)xc + 1 xcTac (k, t) xc,

where k) is a m-dimensional vector function, ^>c(k,t) is a n-dimensional vector function, ac(k,t) is a n x n-matrix, a(k) is a m x m-matrix. We have

R(k, x(k), u(k)) = ^T(k + 1) (A(k, x(k))x(k) + B(k, x(k))u(k)j

1 / \ t

+ ^ (A(k,x(k)) x(k) + B(k,x(k)) u(k)j a(k + 1)

x (A(k,x(k))x(k) + B(k,x(k))u(k)

+ 1 (xT(k)S(k, x)x(k) + uT(k)Q(k, x)u(k))

— ipT(k)x — 1 xT&(k)x, k € K, Rc(k,t,xc(k,t),uc(k,t))

= (Pc(k, t) + ac(k, t)xc)T (Ac(k, t, xc)xc + Bc(k, t, xc)uc)

— 1 ({xc)T Sc(t, k, xc)xc + (uc(k, t))T Qc(k, t, xc)uc(k, t)j

+ Pc(k, t)xc + 1 xcT&c(k, t)xc, k € K', GG ^k, x, xp, x

1 T

= —PT (k + i)e(k)xcF +1 {e(k)xcFy &(k + i)e(k)xcF + 1pT (k)x + 1 xT&(k)x + PcT (k,tF)xp + 1 xf&c (k,tF )xp

— Pcl (k, tI)xcI — -xf &c(k, tI)xcI, k € K

G(x) = (\)T xf + 1(xf )T ^xf + pT (kF )xf + 1 xF&(kp )xf

— pT (ki )xi — 1 xf&(ki )xi, ^c(z, t) = sup {Rc(z, t, xc, uc): xc, uc}, lc(z)=inf {Gc(k,x,xp,xcI): xcF,xcI},

ip{R(k,x,u): x,u}, k € K\K',

sup

I-in

u(k) =

' — inf{lc(z): x}, k € K'

l = inf{G(x): x}.

3. Solution algorithm

For brevity, we will suppress the arguments of functions whenever needed and the context is clear. Suppose that the elements of the matrices A, B, Q, S for all k € K and Ac, Bc, Qc, Sc, e for all k € K', t € [tI(k),tF(k)] are constant and xc(k,tI) = £(k)x where £(k) is a given n x m matrix. Note that the interval [tI(k),tF(k)] can be divided into partial intervals, and for each of them the elements of the matrices are constant. In this case, the number of lower-level continuous subsystems and the number of the K set elements are increased.

According to the sufficient optimality conditions formulated above, we can find the control values providing a maximum of R and Rc functions.

We get

R = (xT Aa + ^T )B + (BT aB + Q)u = 0, Rcuc = BcT(r + acxc) - Qcuc = 0.

Then

u = -(BT aB + Q)-1BT (^ + AT ax), Uc = (Qc)-1BcT(^c + acxc).

Let us substitute the expressions for U and Uc into the expressions for R, Rc and rearrange them:

P(k,x) = R (k,x (k) ,u(k))

= (VT(k + 1)A - ^(k)

- 4>T(k + 1)B(BTa(k + 1)B + Q)-1BTATa(k + x + 1 xT (ATa(k +1) + S - a(k)

- ATa(k + 1)B(BTa(k + 1)B + Q)-1 BTAa(k + x

- 2tTB(BT&(k + 1)B + Q)-1BTt, Pc(k, t, xc) = Rc (k, t, xcuc(k, t))

= (tcT)Ac + ac Bc(Qc)-1BcTac + t c)xc + 1 xcT(acAc + AcT&c + &cBc(Qc)-1BcT&c - S + &c)xc + tcTBc(Qc)-1BcTtc.

We apply the Bellman sufficient optimality conditions [13] and specify the functions p and pc in such a way that the constructions P(k, x) and Pc(k,t,xc) do not depend on the x and xc, respectively. Then we obtain

t(k) = (AT - &(k + 1)AB(BT&(k + 1)B + Q)-1BT^j t(k + 1),

a(k) = AT&(k +1)A + S - AT&(k + 1)B(BT&(k + 1)B + Q)-1BTA

for k € K\K', and for k € K'

Pc = —(AcT + acBc(Qc )-1BcT)pc, &c = S — &cAc — AcT&c — &cBc(Qc)-1 BcT&c.

Let us now require that the functions G, Gc are independent of the upper and lower level process states taking into account the expression for xl. These requirements define the initial conditions for the system of vector-matrix equations with respect to p, pc, &, ac and the equations for p(k), a(k) on the set K'. We get

p(k) = (AT — &(k + l)AB(BT&(k + 1)B + Q)-1BT^j P(k + 1),

k € K\K',

&(k) = AT&(k + 1)A + S — AT&(k + 1)B(BT&(k + 1)B + Q)-1BT A,

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

k € K\K',

Pc = —(AcT + acBc(Qc)-1BcT)pc, k € K', &c = S — acAc — AcT&c — &cBc(Qc)-1BcT&c, k € K'.

Finally, we obtain a DCS concerning p, pc, &, &c with its initial conditions at the right endpoints of the discrete and continuous arguments. The matrices of this DCS also depend on the upper and lower level state variables. With the relations we obtained, it is possible to build a solution algorithm as follows

1. We solve the initial DCS system "from left to right" for the given us(k), ucs(k,t) and constant matrices A, B, Ac, Bc. In this way, we obtain the corresponding states xs(k), xcs(k,t).

2. We solve the DCS "from right to left" with respect to p, pc, &, &c with constant matrices A, B, Ac, Bc, S, Sc, Q, Qc.

3. We find new controls us, us, go to step 1.

4. The iteration process ends when IIs+1 — Is| < e, where e is the required solution accuracy.

Note 1. The elements of the Ac, Bc matrices can be found for

xc = xc(k, ti) while the elements of the Sc, Qc matrices can be found for xc = xc(k,tF) and do not change within the interval [tI(k),tF(k)].

Note 2. For better accuracy, the intervals [tI(k),tF(k)] can be divided into subintervals resulting in more DCS stages.

Note 3. The resulting DCS for the t, tc vectors and the &, ac matrices contains matrix Riccati equations that may have no solutions. In this case, the proposed algorithm should be further developed.

Note 4. The problem of algorithm convergence is out of the scope of this paper but the examples given below prove its validity.

Let us show the algorithm performance with some examples.

4. Computational experiments

Example 1. Let us consider an optimal control problem for a nonlinear controlled system

1

x i = — xi + xix2U, x2

x2 = x1x2 - y/x1u,

2

I = J (x2x2) + exp(-x1)u2)dt + x2(2).

x1(0) = 2, x2(0) = 1,

By dividing the interval where the system is defined (the number of subdivisions K is variable) we can transform it into a linear DCS with state-dependent coefficients. We get where n = 2, r = 1 and the interval to be divided is [0,2]. Here the matrices used in the problem statement are as follows:

Ac

(1 0 )

\ 0 4 J,

Bc

( xix2 -jxi ) ,

Sc

x2 0 00

Qc(xi, x2) = exp(-xi).

Since only the coefficients of these matrices are modified at each partial interval, then K = {0,1,2,..., kF}, K = K', and the upper-level process becomes uncontrollable. After each step, the information about the lower-level system state is sent to the upper level, and the initial conditions for the next step are defined. Thus x = (xi,x2), x(k + 1) = xc(k,tF(k)), xj(k +1,tf(k + 1)) = x(k +1), A = 0, 6 = E, £ =1, A = E, B = 0, S = 0, Q = 0, ^c = (^1, fâ) and

Figure 2. States

A

(0 0) &c =( &11 &c2)

[0 1 J , v &21 &h J .

We analyzed cases for kF = 2, 4,8,10,15,25. The results are given by Figures 1, 2. Table 1 shows the functional value vs. the number of the interval subdivisions. In each case, the problem was solved after approximately 3 iterations. The optimal control problem for a conventional

Table 1. Functional value vs. number of the interval subdivisions

Subdivision Functional

2 11.14453381

4 9.62277632

8 8.95104176

10 8.84198513

15 8.72682692

25 8.67417221

controlled system was first solved by the gradient method after 5 iterations. For comparison, the figures also show the found states and the control variables. The smallest value of the functional obtained by the gradient method is I = 8.67458, and with the DCS algorithm it is I = 8.67417.

Example 2. Consider the following linear two-stage DCS with state-dependent coefficients First stage

Xi — (xi ) (x2 U i ), X2 — \JXiX2 X1U2,

x1(0) = 1, X2(0) — —1,

10 = f(M^ — ^ïft*

0

Second stage

X\ = X1 exp(-X 1) — 2x 1u 1, 11 = J

3

(u1 )2 X,

c 1 2

I = (x1(3))3 - 3x1(3).

Let us transform it into the standard form. Obviously, K = {0,1, 2}. For k = 0 n = r = 2, and the lower level matrices are:

ac°>=(0 % )■ Bc((0>=(-(f 0 )•

<°> = (-x2 ), Sc(0>=°.

2

Table 2. Functional value vs. number of the interval subdivisions

Subdivision Functional

2 -1.0673

4 -1.0825

10 -1.1068

At the next stage for k = 1 n = r =1, while the lower level matrices

are:

Ac(1) = exp(-xD, Bc(1) = -2x1, Qc(1) = 1, Sc(1) = 0.

It is obvious that at the top level it would be feasible to assume x as xf, since the variable passes through both stages and also defined the common functional. We have I = (x(2))3 - 3x(2), A = -3, A = (x(2))2, x(1) = xf(0, 2), x1(1, 2) = x(1), 0 =1, 00 =0, £ =1.

We analyzed the problem for kF = 2,4,10. The results are displayed in Figures 3, 4 and Table 2. Just like in Example 1, we first found the solution with the gradient method. It took 5 iterations. With the proposed algorithm, the functional value is I = -1.1068. In each case, it took around 2 iterations to solve the problem. The achieved value is identical to the smallest functional value obtained with the gradient method.

The results indicate the validity of the proposed algorithm.

Conclusion

This paper presents a model of a linear discrete-continuous system with state-dependent coefficients and defines a problem similar to the well-known analytical design of optimal controllers (ADOC). By generalizing the Krotov sufficient optimality conditions, we proposed a solution algorithm that finds the first- and second-order Krotov function derivatives at both upper and lower levels. To determine the derivatives, we obtained a DCS containing the Riccati equations at both levels with respect to the second-order derivatives with their initial conditions at the right endpoints of the discrete and continuous arguments. The matrices of this DCS also depend on the upper and lower level state variables.

2.5 2 1.5 1

0.5

0

-0.5

-1

-1.5 -2

0.5 1 1.5 2 2.5 3

t

Figure 3. Control

The paper also includes the estimations performed with the proposed algorithm. They prove its validity. Previously, each example for comparative analysis was solved by the gradient method, while the gradient method required a larger number of iterations (in the Example 2, by one). Therefore, the complexity of the proposed algorithm does not exceed the gradient method, but it can provide a smaller value of the functional (Example 1). The explanation is the presence in conjugate systems of the upper and lower levels of equations for both the first and second derivatives of the Krotov functions. At the same time, the gradient method uses only the first derivatives of these functions.

References

[1] S.V. Emel'yanov (ed.). Theory of Systems with Variable Structures, Nauka, M., 1970 (in Russian), 592 pp. t121

[2] V.I. Gurman. "Theory of optimum discrete processes", Autom. Remote Control, 34:7 (1973), pp. 1082-1087. t121

Figure 4. States

[3] S.N. Vassilyev. "Theory and application of logic-based controlled systems", Proceedings of the International Conference Identification and Control Problems, Institute of control sciences, M., 2003, pp. 23-52 (in Russian). 1121

[4] A.S. Bortakovskii. "Sufficient optimality conditions for control of deterministic logical-dynamic systems", Informatika, Ser. Computer Aided Design, vol. 2—3, VNIIMI, M., 1992, pp. 72-79 (in Russian). t121

[5] B.M. Miller, E.Ya. Rubinovich. Optimization of the Dynamic Systems with Pulse Controls, Nauka, M., 2005, isbn 978-5-9710-5725-3 (in Russian), 429 pp. 1-121

[6] J. Lygeros. Lecture Notes on Hybrid Systems, ENSIETA 2-6/2/2004, 2004, 82 pp. url 121

[7] A.J. Van der Shaft, H. Schumacher, An Introduction to Hybrid Dynamical Systems, Lecture Notes in Control and Information Sciences, vol. 251, Springer-Verlag, London, 2000, ISBN 978-1-84628-542-4, xiv+174 pp. 1121

[8] V.F. Krotov, V.I. Gurman. Methods and Problems of Optimal Control, Nauka, M., 1973 (in Russian), 448 pp. 1121,122

[9] V.F. Krotov. "Sufficient conditions for the optimality of discrete control systems", Dokl. Akad. Nauk SSSR, 172:1 (1967), pp. 18-21 (in Russian).

@ 121 122

[10] V.I. Gurman, I.V. Rasina. "Discrete-continuous representations of impulsive processes in the controllable systems", Automation and Remote Control, 73:8 (2012), pp. 1290-1300. 121

[11] I. V. Rasina. "Discrete-continuous models and optimization of control processes", Program Systems: Theory and Applications, 5:9 (2011), pp. 49-72 (in Russian). iUrl 121

[12] I.V. Rasina. "Iterative optimization algorithms for discrete-continuous processes", Automation and Remote Control, 73:10 (2012), pp. 1591-1603.

121

[13] I.V. Rasina. "Discrete-continuous systems with intermediate criteria", International Conference on Computational Mechanics and Modern Applied Software Systems, CMMASS'2017, Moscow Aviation Institute, M., 2017, pp. 699-701 (in Russian). 1124 126

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

[14] A. M. Letov. "Analytical design of controllers, II", Avtomat. i Telemekh., 21:5 (1960), pp. 436-441 (in Russian), g 122 124

[15] R. Gabasov, A. I. Kalinin, F. M. Kirillova, L. I. Lavrinovich. "On asymptotic optimization methods for quasilinear control systems", Trudy Inst. Mat. i Mekh. UrO RAN, 25:3 (2019), pp. 62-72 (in Russian), i ' 121

[16] Y. E. Danik, M. G. Dmitriev, D. A. Makarov. "An algorithm for constructing regulators for nonlinear systems with the formal small parameter", Journal of Information Technologies and Computing Systems, 2015, no. 10, pp. 35-44 (in Russian). |P 121

[17] Yu.E. Danik, M.G. Dmitriev. "A comparison of numerical algorithms for discrete-time state dependent coefficients control systems", 21st International Conference on System Theory, Control and Computing (ICSTCC) (19-21 Oct. 2017, Sinaia, Romania), pp. 401-406. I ' 121

Received

Revised

Published

02.05.2021 03.06.2021 30.06.2021

Recommended by

'prof. A. M. Tsirlin

Sample citation of this publication:

Irina V. Rasina, Oles V. Fesko, Oleg V. Usenko. "Analytical design of controllers for discrete-continuous systems with linear control". Program Systems: Theory and Applications, 2021, 12:2(49), pp. 121-135.

10.25209/2079-3316-2021-12-2-121-135 @ http://psta.psiras.ru/read/psta2021_2_121-135.pdf

About the authors:

Irina Viktorovna Rasina

Doctor of Physical and Mathematical Sciences, Chief Researcher Research Center for Systems Analysis of the Institute of Software Systems named after A.K. Aila-mazyan RAS, specialist in the field of modeling and control of hybrid systems, author and co-author of more than 100 articles and 5 monographs

[Da 0000-0001-8939-2968 e-mail: irinarasina@gmail.com

Oles Vladimirovich Fesko

Researcher, Research Center for System Analysis of A. K. Ailamazyan Institute of Program Systems of RAS, Ph.D. Area of interest: programming, numerical methods

e-mail:

0000-0002-9329-5754 oles.fesko@hotmail.com

Oleg Valerievich Usenko

Lecturer at the Physics Department of Irkutsk State University and the Regional State Budgetary Professional Educational Institution of Social Services Irkutsk Rehabilitation College, author and co-author of 21 publications, area of interest — numerical optimization methods, programming

[Da 0000-0001-6291-8165 e-mail: o.v.usenko@gmail.com

Эта же статья по-русски: ю.25209/2079-3316-2021-12-2-105-119

i Надоели баннеры? Вы всегда можете отключить рекламу.