Abstract
Physical swarm system, including number of units, operated in physical time according to corporative algorithm, is considered. It is shown, that for proper corporative algorithm interpretation it is necessary to synchronize computational processes in units. Structural-parametric model of synchronized swarm operation, based on Petri-Markov nets apparatus, is worked out. In the Petri-Markov net transitions are abstract analogues of synchronization procedure, while places simulate corporative algorithm parts interpretation by swarm units. Primary Petri-Markov model is transformed into complex semi-Markov process. Formulae for calculation of stochastic and time characteristics of the process are obtained. It is shown, that after transformation all methods of ordinary semi-Markov processes investigation may be used for synchronized systems. With use the concept of distributed forfeit effectiveness of synchronization is evaluated.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
Keywords
- Swarm
- Unit
- Corporative algorithm
- Semi-Markov process
- Petri-Markov net
- Time characteristics
- Stochastic characteristics
- Distributed forfeit effectiveness
1 Introduction
Physical swarms, which solve corporative task, are widely used in different branches of human activity, industrial and mobile robotics, concurrent computation, control systems, etc. [1,2,3,4,5]. Such systems include number of units, each of which operates accordingly to its own algorithm realized on Von Neumann type controllers. Due to consecutive interpretation of algorithm operators and accidental character of data processed, runtime of controller is a random value, and outcome of program operation is stochastic [6]. So for proper operation, when solving a corporative task, swarm should be tuned in such a way, that corporative algorithm should be divided on pieces, which are realized on swarm units, and interpretation of algorithm pieces should be carried out in the proper sequence [7]. Such alignment is called synchronization. For optimal synchronization adequate model of parallel process should be worked out. Below approach to simulation, based on Petri-Markov nets [8], which from one side permits to evaluate random time intervals characteristics, and from other side take into account interaction of parallel processes, is used. Also for optimal synchronization it is necessary to have criterion, which permits to evaluate effectiveness of corporative algorithm division. Below universal criterion, called distributed forfeit, is proposed, and formulae for effectiveness estimation with use proposed criterion are obtained.
Approaches to simulation of synchronized operation of swarm are currently known insufficiently, that explains necessity and relevance of the investigations in this domain.
2 Petri-Markov Model of Synchronized Operation
Operation of swarm, which includes M units and solves some corporative task, may be described with use Petri-Markov net (PMN) apparatus [8]. Swarm operation model is as follows (Fig. 1).
where \( {\text{A}} = \left\{ {{\text{A}}_{1} , \ldots ,{\text{A}}_{j} , \ldots ,{\text{A}}_{J} } \right\} \) is the set op places, which describes operation of M swarm units; \( {\text{Z}} = \left\{ {{\text{Z}}_{1} , \ldots ,{\text{Z}}_{j} , \ldots ,{\text{Z}}_{J} } \right\} \) is the set of transitions, which describes synchronization procedures; \( \upiota\left( {\text{Z}} \right) \) \( {\text{o}}\left( {\text{Z}} \right) \) are input and output functions of transitions, correspondingly; J number of operators in corporative algorithm of swarm behavior when solving corporative task;
PMN operation may be considered as sequence semi-steps, which may be done either from places to transitions, \( \left( {\upalpha_{j,0} ,\upzeta_{j,0} } \right) \), \( \left( {\upalpha_{j,m,j\left( e \right)} ,\upzeta_{j,1} } \right) \), \( 1\, \le \,j\, \le \,J \), \( 1\, \le \,m\, \le \,M \), \( 1\, \le \,j\left( e \right)\, \le \,J\left( e \right) \), or from transitions to places, \( \left( {\upzeta_{j,0} ,\upalpha_{j,m} } \right) \), \( 1\, \le \,m\, \le \,M \), \( 1\, \le \,j\, \le \,J \); \( \left( {\upzeta_{j,1} ,\upalpha_{1,0} } \right) \), …, \( \left( {\upzeta_{j,1} ,\upalpha_{l,0} } \right) \), …, \( \left( {\upzeta_{j,1} ,\upalpha_{J,0} } \right) \), \( 1\, \le \,j\, \le \,J \). For semi-step execution from places \( \upalpha_{j,0} ,\upalpha_{j,1} , \ldots ,\upalpha_{j,m} , \ldots ,\upalpha_{j,M} \) into corresponding transitions random time interval t should be spent, which begins from the moment, when semi-step was done into this place. Time intervals are determined with an accuracy to time densities \( f_{j,0} \left( t \right) \), \( f_{j,m,j\left( e \right)} \left( t \right) \), \( 1\, \le \,j\, \le \,J \), \( 1\, \le \,m\, \le \,M \), \( 1\, \le \,j\left( e \right)\, \le \,J\left( e \right) \). For semi-step execution from transition \( \upzeta_{j,0} \) simultaneously to all places \( \upalpha_{j,1} , \ldots ,\upalpha_{j,m} , \ldots ,\upalpha_{j,M} \), constituting its output function \( {\text{o}}\left( {\upzeta_{j,0} } \right) \) only semi-step \( \left( {\upalpha_{j,0} ,\upzeta_{j,0} } \right) \) should be done. For execution of one of semi-step from the transition \( \upzeta_{j,1} \), the proper \( \left( {\upalpha_{j,m,j\left( e \right)} ,\upzeta_{j,1} } \right) \) semi-steps combination to named transition must be done, due to only one direction of the set \( \left\{ {1\left( e \right), \ldots ,j\left( e \right), \ldots ,J\left( e \right)} \right\} \) may be choose for doing semi-step (Fig. 1).
In such a way, transitions \( \upzeta_{j,0} \), and \( \upzeta_{j,1} \), are the synchronized one: transition \( \upzeta_{j,0} \) in the sense that all semi-steps, included into its output function \( {\text{o}}\left( {\upzeta_{j,0} } \right) \), are executed simultaneously (synchronous start), but transition \( \upzeta_{j,1} \) in the sense, that semi-step from it would not be done until all semi-steps from places of \( \upiota\left( {\upzeta_{j,1} } \right) \) will be done.
PMN timing elements are places. Time of residence PMN at places \( \upalpha_{1,0} , \ldots ,\upalpha_{j,0} , \ldots ,\upalpha_{J,0} \) is as follows
where \( \updelta\left( t \right) \) is the Dirac δ-function.
Time of residence PMN at places \( \upalpha_{1,1} , \ldots ,\upalpha_{1,m} , \ldots ,\upalpha_{1,M} \), …, \( \upalpha_{j,1} , \ldots ,\upalpha_{j,m} , \ldots ,\upalpha_{j,M} \), …, \( \upalpha_{J,1} , \ldots ,\upalpha_{J,m} , \ldots ,\upalpha_{J,M} \) is defined as the time of wandering through semi-Markov processes [9, 10] \( \upmu_{j,m} \left( t \right) \), \( 1\, \le \,j\, \le \,J,\;1\, \le \,m\, \le \,M \), which are abstract analogues of swarm unit onboard computers operation, and are defined as follows (Fig. 2):
where \( A_{j,m} \), \( \left| {A_{j,m} } \right| = J\left( a \right) + 1 \), is the set of states, which are abstract analogues of swarm unit onboard computer algorithm operators; \( \varvec{r}_{j,m} \) is the \( \left[ {J\left( a \right) + 1} \right] \times \left[ {J\left( a \right) + 1} \right] \) adjacency matrix, which describes links between operators; \( \varvec{h}_{j,m} \left( t \right) \) is the \( \left[ {J\left( a \right) + 1} \right] \times \left[ {J\left( a \right) + 1} \right] \) semi-Markov matrix, which define time intervals of operators interpretation;
The set \( A_{j,m} \) is divided onto two disjoint subsets, subset of non-absorbing states
and subset of absorbing states Ej,m.
Wandering through states of semi-Markov process \( \varvec{h}_{j,m} \left( t \right) \) start at the state \( a_{j,m,0\left( a \right)} \), which is the abstract analogue of “begin” operator. States \( a_{j,m,j\left( e \right)} \in \bar{E}_{j,m} \) are the abstract analogues of “end” operators for different outcomes of algorithm operation.
Element \( h_{j,m,j\left( a \right),n\left( a \right)} \left( t \right) \in \varvec{h}_{j,m} \left( t \right) \) performs weighted time density of m-th swarm unit residence in the state \( a_{j,m,j(a)} \) when decision was made about next switch into the state \( a_{j,m,n(a)} \).
Weighted time density of the semi-Markov process \( \upmu_{j,m} \) wandering from the state \( a_{j,m,0\left( a \right)} \) till the state \( a_{j,m,J\left( a \right) - J\left( e \right) + j\left( e \right)} \in E \) is as follows:
where \( {}^{R}\varvec{I}_{0\left( a \right)} \) is the row vector of size \( \left[ {J\left( a \right) + 1} \right] \), whose \( 0\left( a \right) \)-th element is equal to one, and all other elements are equal to zeros; \( {}^{c}\varvec{I}_{J\left( a \right) - J\left( e \right) + j\left( e \right)} \) is column vector, whose \( \left[ {J\left( a \right) - J\left( e \right) + j\left( e \right)} \right] \)-th element is equal to one, and all other elements are equal to zeros; \( L\left[ \ldots \right] \) и \( L^{ - 1} \left[ \ldots \right] \) are correspondingly direct and inverse Laplace transforms.
When \( J\left( e \right) = 1 \) the algorithm simulated has the only outcome, and consequently \( h_{j,m,J\left( e \right)} \left( t \right) = f_{j,m,J\left( e \right)} \left( t \right) \). When \( J\left( e \right) > 1 \), then semi-Markov process \( \upmu_{j,m} \) gets subset E, veraciously, but the state \( a_{j,m,J\left( a \right) - J\left( e \right) + j\left( e \right)} \) it gets with probability [12]
Pure (non-weighted) time density, expectation and dispersion are equal, correspondingly [13]
Due to \( \upmu_{j,m} \) gets subset E, veraciously,
3 Transformation PMN to Complex Semi-Markov Process
With use formulae (13), (14), (15) obtained, Petri-Markov sublet, circled on the Fig. 2 with dashed line, may be replaced with the single state, and so the PMN Π may be replaced with complex semi-Markov process, which describes behavior of the swarm as a whole. Circled with dashed line subset is as follows
Semi-Markov process is as follows
where \( B = \left\{ {b_{1} ,\; \ldots ,\;b_{j} ,\; \ldots ,\;b_{J} } \right\} \) is the set of states, which are abstract analogues of execution by swarm the complex operation due to algorithm of swarm behavior;
\( \varvec{r} = \left[ {r_{j,n} } \right] \) is the \( J \times J \) adjacency matrix; \( \varvec{h}_{j,m} \left( t \right) = \left[ {h_{j,n} \left( t \right)} \right] \) is the \( J \times J \) semi-Markov matrix.
Let us define probabilities and time densities of switch from the complex state \( b_{j} \in B \) to the complex state \( b_{n} \in B \). Semi-steps \( \left( {\upalpha_{j,0} ,\upzeta_{j,0} } \right) \) and \( \left( {\upzeta_{j,0} ,\upalpha_{j,m} } \right) \), \( 1\, \le \,m\, \le \,M \) are executed during the time which is defined with Dirac δ-function. Semi-steps \( \left( {\upzeta_{j,1} ,\upalpha_{0,n} } \right) \), \( 1\, \le \,n\, \le \,J \) are executed after logical conditions fulfillment also during defied with Dirac δ-function time. So time of residence the complex semi-Markov process in the state \( b_{j} \) till switch to the complex state \( b_{n} \) may be defined as result of competition between ordinary semi-Markov processes \( \upmu_{j,m} \), with taking into account outcomes of getting subsets \( E_{j,m} \) states.
For definition of all possible outcomes, from indexes trios \( \left[ {j,m,j\left( e \right)} \right] \), \( 1\, \le \,m\, \le \,M \), following set may be constructed
Cartesian product of sets \( \tilde{J}_{j,m} \) gives all possible combinations of outcomes of swarm units operation:
From (25) may be selected those vectors, combination of trios of which permit to do emi-step \( \left( {\upzeta_{j,1} ,\upalpha_{n,0} } \right) \):
Probability of \( \upkappa\left( n \right) \)-th combination emergence is as follows:
So, probability \( p_{j,n} \) of switch the complex semi-Markov process μ from \( b_{j} \) to \( b_{n} \) is equal to the sum
For calculation of time density \( f_{j,n} \left( t \right) \) one should consider the competition [9, 14] on the transition \( \upzeta_{j,1} \) between ordinary semi-Markov processes \( \upmu_{j,m} \). Residence at the state \( b_{j} \) is considered as completed, when last ordinary semi-Markov process reaches its \( E_{j,m} \) state according the combination (25). This is why semi-Markov processes compete for not being the last in the competition. Time of reaching subset \( E_{j,m} \) by all M may be described with the following formula:
where \( f_{{j,m,j\left[ {e,\upkappa\left( n \right)} \right]}} \left( t \right) \) is the time density of reaching the transition \( \upzeta_{j,1} \) by m-th semi-Markov process due to \( \upkappa\left( n \right) \)-th combination; \( F_{ \ldots } \left( t \right) = \int\limits_{0}^{t} {f_{ \ldots } \left(\uptau \right)d\uptau} \) if the function of distribution of probabilities.
With taking into account combination of outcomes, weighted and pure time densities of switch from the state \( b_{j} \) to the state \( b_{n} \) are as follows:
After transformation for investigation of swarm behavior investigation and calculation of wandering time intervals all possible methods of semi-Markov process analysis may be used [9,10,11,12].
4 Effectiveness of Synchronization
One of the important aspects of swarm operation organization is elimination of unproductive units downtime when corporative task is solved. Parameter, which defines effectiveness, may be any, but when investigation of relay-races, distributed forfeit is of widely used. Let us considered competition of m-th и l-th swarm units, first of which gets the transition \( \upzeta_{j,1} \) during time \( f_{{j,m,j\left[ {e,\upkappa\left( n \right)} \right]}} \left( t \right) \), but second - during the time \( f_{{j,l,j\left[ {e,\upkappa\left( n \right)} \right]}} \left( t \right) \). In the case of winning in competition the first swarm unit he waits until l-th swarm unit gets \( \upzeta_{j,1} \). Waiting time is calculated as follows [15]:
where τ is an auxiliary argument; \( \upeta\left( t \right) \) is the Heaviside function.
Probability of such event, expectation and dispersion of waiting time are as follows
Every of value (34), (35), (36) may characterized those or that effectiveness aspect, but more universal is the criterion, which is defined as distributed forfeit [15] \( c_{{j,m \to l,j\left[ {e,\upkappa\left( n \right)} \right]}} \left( t \right) \). Forfeit, receives m-th swarm unit from the l-th swarm unit if it gets the transition \( \upzeta_{j,1} \) earlier. Latecomer pays forfeit during whole the time until he m-th swarm unit waits him. In this case weighted forfeit sum is equal to
Common forfeit sum, which m-th swarm unit receives from all other units by \( \upkappa\left( n \right) \)-th combination variant is as follows:
Common forfeit sum, which m-th swarm unit receives from all other units in the case of further switch into state \( b_{n} \) is equal to
Sum \( C_{j\left( b \right),m} \) depends on parameters of ordinary semi-Markov processes (7), and forfeit discipline. Such sum may be used as optimization criterion in the task of producing optimal swarm behavior.
5 Conclusion
Working out the model of swarm synchronized operation opens new page in parallel systems theory because it permits to link real physical parameters of hardware with structure and logics of operation oh corporative algorithm, distributed among swarm units. Algorithm splitting may be done with those or that way, but with use approach proposed, swarm program designer for every mode of splitting may evaluate main characteristics both corporative algorithm as a whole, and parts of it, realized on swarm units.
Further investigation in this area should be directed to working out an algorithm splitting optimization method, based on proposed approach to parallelization modeling and evaluation of effectiveness.
The research was supported by the Foundation for Basic Research under the project 19-47-710004 r_a.
References
Tzafestas, S.G.: Introduction to Mobile Robot Control, p. 750. Elsevier (2014)
Siciliano, B.: Springer Handbook of Robotics, p. 1611. Springer, Heidelberg (2008). https://doi.org/10.1007/978-3-540-30301-5
Squillante, M.S.: Stochastic analysis and optimization of multiserver systems. In: Ardagna, D., Zhang, L. (eds.) Run-time Models for Self-managing Systems and Applications, pp. 1–24. Springer, Basel (2010). https://doi.org/10.1007/978-3-0346-0433-8_1
Landau, I.D., Zito, G.: Digital Control Systems, Design, Identification and Implementation, p. 484. Springer, Heidelberg (2006). https://doi.org/10.1007/978-1-84628-056-6
Aström, J., Wittenmark, B.: Computer Controlled Systems: Theory and Design, p. 557. Tsinghua University Press. Prentice Hall (2002)
Larkin, E.V., Ivutin, A.N.: Estimation of latency in embedded real-time systems. In: 3rd Meditteranean Conference on Embedded Computing (MECO 2014), Budva, Montenegro, 15–19 June 2014, pp. 236–239 (2014). https://doi.org/10.1109/MECO.2014.6862704
Pacheco, P.S.: An Introduction to Parallel Programming, p. 361. Elsevier (2011)
Larkin, E.V., Malikov, A.A., Ivutin, A.N.: Petri-Markov model of fault-tolerant computer systems. In: 4th International Conference on Control, Decision and Information Technologies (CoDIT), Barcelona, Spain, pp. 416–420. IEEE (2017)
Du, R., Ai, S., Hu, O.: Competition and cooperation between brands in a segment: an analysis based on a semi-Markov model. Int. J. Serv. Sci. 2(1), 70–82 (2009)
Janssen, J., Manca, R.: Applied Semi-Markov Processes, p. 310. Springer, Boston (2006). https://doi.org/10.1007/0-387-29548-8
Jiang, Q., Xi, H.-S., Yin, B.-Q.: Event-driven semi-Markov switching state-space control processes. IET Control Theory Appl. 6(12), 1861–1869 (2012)
Larkin, E., Ivutin, A., Kotov, V., Privalov, A.: Semi-Markov modelling of commands execution by mobile robot. In: Ronzhin, A., Rigoll, G., Meshcheryakov, R. (eds.) ICR 2016. LNCS (LNAI), vol. 9812, pp. 189–198. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-43955-6_23
Kobayashi, H., Marl, B.L., Turin, W.: Probability, Random Processes and Statistical Analysis, p. 812. Cambridge University Press, Cambridge (2012)
Eisentraut, C., Hermanns, H., Zhang, L.: Concurrency and composition in a stochastic world. In: Gastin, P., Laroussinie, F. (eds.) CONCUR 2010. LNCS, vol. 6269, pp. 21–39. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-15375-4_3
Larkin, E.V., Ivutin, A.N., Kotov, V.V., Privalov, A.N.: Simulation of Relay-races. Bull. South Ural State Univ. Math. Model. Program. Comput. Softw. 9(4), 117–128 (2016)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Larkin, E., Akimenko, T., Privalov, A. (2020). Synchronized Swarm Operation. In: Tan, Y., Shi, Y., Tuba, M. (eds) Advances in Swarm Intelligence. ICSI 2020. Lecture Notes in Computer Science(), vol 12145. Springer, Cham. https://doi.org/10.1007/978-3-030-53956-6_2
Download citation
DOI: https://doi.org/10.1007/978-3-030-53956-6_2
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-53955-9
Online ISBN: 978-3-030-53956-6
eBook Packages: Computer ScienceComputer Science (R0)