You are on page 1of 11

Hindawi Publishing Corporation

Mathematical Problems in Engineering


Volume 2015, Article ID 461513, 10 pages
http://dx.doi.org/10.1155/2015/461513

Research Article
A Simulation Perspective: Error Analysis in the Distributed
Simulation of Continuous System

Yao-fei Ma and Xiao Song


School of Automation Science and Electrical Engineering, Beihang University, Beijing, China

Correspondence should be addressed to Yao-fei Ma; mayaofeibuaa@163.com

Received 8 January 2015; Revised 8 April 2015; Accepted 15 April 2015

Academic Editor: Yun-Bo Zhao

Copyright © 2015 Y.-f. Ma and X. Song. This is an open access article distributed under the Creative Commons Attribution License,
which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

To construct a corresponding distributed system from a continuous system, the most convenient way is to partition the system into
parts according to its topology and deploy the parts on separated nodes directly. However, system error will be introduced during
this process because the computing pattern is changed from the sequential to the parallel. In this paper, the mathematical expression
of the introduced error is studied. A theorem is proposed to prove that a distributed system preserving the stability property of the
continuous system can be found if the system error is limited to be small enough. Then, the compositions of the system error are
analyzed one by one and the complete expression is deduced, where the advancing step T in distributed environment is one of the
key factors associated. At last, the general steps to determine the step T are given. The significance of this study lies in the fact that
the maximum T can be calculated without exceeding the expected error threshold, and a larger T can reduce the simulation cost
effectively without causing too much performance degradation compared to the original continuous system.

1. Introduction The classic continuous system is characterized by com-


puting its components in pipeline, where a computing
Engineering problems involve dealing with physical sys- sequence is set up and the components are computed one
tems. Since most physical laws are described by differential by one within a step; the sequence is determined by the
equations, simulation in engineering is in fact related to component’s input/output characteristics and the data depen-
numerical resolution of differential equations. This is called dence. By contrast, the computation on each component in
continuous system simulation and even the components (i.e., the distributed environment will start simultaneously and
the subsystems or submodels) of it are generally described in advance in a parallel manner; the updating data is exchanged
time discretization manner [1]. periodically through the network for synchronization.
The large engineering system has sustained requirement The difference between two computing patterns can
on distributed simulation for two reasons. First, the continu- be formulized as follows. Suppose a system containing 𝑛
ous growth on system scale and complexity results in intense components: 𝑀 = {𝑚1 , 𝑚2 , . . . , 𝑚𝑛 }. A single component can
demand on computing capacity, which can be mitigated in be represented as 𝑚𝑖 = {𝑥𝑖 , 𝑦𝑖 , 𝑓𝑖 }, where 𝑥𝑖 is the input, 𝑦𝑖 is
distributed environment by scattering the computing load the output, and 𝑓𝑖 is the model function. We have 𝑦𝑖 = 𝑓𝑖 (𝑥𝑖 ).
to networked nodes. Second, the system itself is sometimes Assuming a computing sequence 𝑄 = {𝑞1 , . . . , 𝑞𝑖 , . . . , 𝑞𝑛 }
geographically fragmented; thus, the distributed structure has been determined in the nondistributed environment, the
is needed to be consistent with its topology. Except those pipeline computing within one step can be described as
constructed in distributed manner from scratch, there are
still many classic continuous systems that were constructed 𝑥𝑞𝑘×ℎ
1
= 𝐼𝑘×ℎ ,
in the nondistributed way, in that the system was designed
and tested without considering the possible scenario of 𝑦𝑞𝑘×ℎ
1
= 𝑓𝑞1 (𝑥𝑞𝑘×ℎ
1
),
distributed simulation. The demand to transform such system
into the distributed one emerges. 𝑥𝑞𝑘×ℎ
𝑖
= 𝑦𝑞𝑘×ℎ
𝑖−1
,
2 Mathematical Problems in Engineering

𝑦𝑞𝑘×ℎ
𝑖
= 𝑓𝑞𝑖 (𝑥𝑞𝑘×ℎ
𝑖
) = 𝑓𝑞𝑖 (𝑦𝑞𝑘×ℎ
𝑖−1
), trajectory of the resulting distributed system. To reduce
the error, a portioning rule was proposed to eliminate the
𝑖 = 2, . . . , 𝑛, possible cumulative delays caused by improper partitioning,
(1) which contribute a lot to the overall error.
This paper will study the mathematical expression of this
where 𝑘 = 0, 1, 2, . . . , ℎ is the step size and the subscript 𝑞𝑖 error. The correlation between the error and the advancing
refers to the index in 𝑄. In the pipeline computing, the first step 𝑇 in distributed environment is revealed. Then, a max-
component is assumed to get the input from a signal source imum 𝑇 can be calculated according to the error threshold
𝐼, and the others get inputs following the data dependence specified by the system engineer. The significance to find
among themselves. the maximum 𝑇 lies in the fact that a larger 𝑇 will improve
By contrast, the one-step computing in distributed envi- the parallelism of the partitioned system by reducing the
ronment can be described as synchronization frequency between nodes, without causing
𝑥1𝑘×𝑇 = 𝐼𝑘×𝑇 , too much performance degradation at the same time.

𝑦1𝑘×𝑇 = 𝑓𝑖 (𝑥1𝑘×𝑇 ) , 2. Literature Review


𝑥𝑖𝑘×𝑇 = (𝑘−1)×𝑇
𝑦𝑖−1 , (2) The Partitioning Problem was early studied in the coupled
problem [2, 5] of complex mechanical system simulation,
𝑦𝑖𝑘×𝑇 = 𝑓𝑖 (𝑥𝑖𝑘×𝑇 ) = 𝑓𝑖 (𝑦𝑖−1
(𝑘−1)×𝑇
), where the fluids, thermal, control, and structure subsystems
interacted with each other and formed multi-physical-field
𝑖 = 2, . . . , 𝑛, system [8]. The partitioning is applied to decompose such
where 𝑇 is the advancing step of the distributed system. It system into partitions with physical or computational con-
should be noted that the computing sequence is not held any siderations. The resulting system could separately advance
more in this case. in time over each partition, thus gained high simulation
There are two differences comparing these two comput- efficiency. However, these studies were focused on the finite
ing processes. First, the computing is synchronous in the element analysis, not for general purpose simulation.
nondistributed environment. For each component, the input The Partitioning Problem is also critical to build the
is updated to time step 𝑘 firstly, and then the output at 𝑘 decentralized, large-scale control system [6, 7]. A graph-
is computed (the data dependence among components is based approach was employed in that the system states were
assumed to be consistent with the computing sequence). On connected as vertexes and the coupling strength (measured
the other hand, the computation is parallel in the distributed by weight factor) between any two of them was evalu-
environment and each component starts simultaneously. The ated. Small weight connections were more likely to form
input of a component will still hold the value of step (𝑘 − the partitioning edge by which the system was split into
1) when the output at 𝑘 needs to be computed. Second, relative independent parts. Another methodwas to use the
the advancing steps of two environments, ℎ and 𝑇, may be delay differential equations [9, 10] to describe the dynamic
different. In the nondistributed environment, ℎ is determined of the distributed system. Networked control scheme [11]
by the equation solver; either fixed or variable step is was constructed to obtain the convergence and stability in
employed. However, the determination of 𝑇 needs to consider control of the system. However, this approach focuses on
the bandwidth of the underlying network, signal frequency, the influence of signal delay associated with network latency,
human perception limitation, and so forth. It is often the case rather than the errors caused by the change of computing
where the whole system advances with a fixed 𝑇 and 𝑇 ≥ ℎ. pattern. In our opinion, such errors will still exist even though
A formal approach capable of partitioning a system the underlying network is perfect and has no delay.
into parallel parts and properly handling the above two In the Modeling and Simulation (M&S) domain, DEVS
issues is the key to build a distributed simulation from a (Discrete Event System Specification) theory casts light into
nondistributed one. This problem, denoted as the Partitioning the solving of Partitioning Problem. The basic idea was to
Problem, was early studied in the simulation of complex transform a continuous system into the DEVS form by
mechanical systems [2, 3] and then became a research focus quantizing the system states. A DEVS system is comprised
in the field of discrete event simulation [2, 4, 5] and the of a set of connected components (called “atomic model”
decentralized, large-scale control system [6, 7]. However, the or “coupled model”). The output of each component will
proposed approaches all involved extra efforts to reformulize hold unchanged until the values of the states it maintained
or reengineer the simulated system and did not consider the exceed some predefined quantized level. As a result, the
possible difference on ℎ and 𝑇 either. These drawbacks set up time driving continuous system is transformed into an event
barriers to apply these approaches broadly. driving system; thus, it can be decoupled and partitioned
In [4], anovel partitioning approach is proposed using the easily [12–14]. The transformed system is suitable for asyn-
system’s topology. This approach is easy to perform since most chronous, distributed environment in nature; however, the
classic simulations have block-diagram structures, but it is “illegitimacy” phenomenon, where the states may transit for
“lossy” because the disorder of the component’s input/output unlimited times within a limited period, often causes the
data cannot be avoided, thus leading to the error on state simulation to fail to converge correctly.
Mathematical Problems in Engineering 3

(7)
−9.4

Proportional gain (9)


(1) (5) (3) (4)
(8) +
− 1 Cart position
0.06 +
+ s U
+
Pendulum angle
Integral Limited −
Step integrator Pendulum
gain (6)
(2) Cart position
7.12s State estimation
s+2 Pendulum angle
Feedforward gain Discrete state estimator

Figure 1: An inverted pendulum system. The states are “cart position” and “pendulum angle.” A computing sequence is maintained (indicated
by red numbers) in the nondistributed environment.

As an extension of DEVS, the QSS approach [15–17] was 3. Problem Description


proposed to resolve the “illegitimacy” problem by using a
special “hysteretic quantization” method, where the output Normally, a continuous system can be represented by a block
of each component (or model, as called in DEVS system) diagram as Figure 1 shows [4]. This assembling approach
will not transit to the next quantization level during its based on basic components is commonly seen in the con-
descending period until the change has exceeded certain struction of complex system.
threshold. QSS provides a general approach for the Partition- The components within this system can be classified into
two categories: the Direct-Feed-Through (DFT) component
ing Problem since each QSS model interacts with discrete,
and the Non-Direct-Feed-Through (NDFT) component. The
states updating events. However, the QSS model needs to
output of DFT component is directly associated with its input;
be particularly designed to allow states transiting between
that is, the output at time 𝑡 is determined by the input at
quantization levels. The changes of states are triggered by
the same time. On the other hand, the output of NDFT
unpredicted threshold crossing events in QSS. In other words, component is only determined by its current state and has
the advancing “step” of QSS system is unpredicted and nothing to do with the current input. It implies that, when
time-varying. This characteristic makes QSS unsuitable for computing a DFT component, the components it depends
applications such as the Hardware-In-the-Loop (HIL) or on should be computed firstly to maintain the correct data
Man-In-the-Loop (MIL) simulation, where the system has dependence. The NDFT component has no such requirement
to advance with some fixed step 𝑇 to align the hardware’s since its current output does not rely on the current input.
working frequency or to take care of the needs of human With parallel computing in the distributed environment,
perception. more deductions can be deduced from the foregoing. First,
The approaches mentioned above all involve extra efforts if part of the system deployed on a separate node formed
to reformulize or reengineer the simulated system. For a NDFT component (both DFT and NDFT component can
example, in the graph-based approach, the detailed analysis have recursive structure), its output would be delayed for
of the coupling strength between system states requests the 𝑇 when updating to other nodes. Second, if two or more
engineer to have full knowledge of system dynamics. The QSS DFT components were cascaded, they should not be divided
approach also needs the system components to be modified into different nodes; otherwise, the output delay would
to follow the DEVS formulation. Additionally, the possible accumulate from the first DFT component. For example, if
difference between ℎ and 𝑇 was not considered either. These the components (5), (7), and (9) in Figure 1 were deployed
drawbacks set up barriers to apply these approaches broadly. to different nodes, the output of component (9) will be 3𝑇
By contrast, the partitioning approach proposed in [4] delayed compared to the original system, component (7) is
took the advantage of the system’s structure characteristics; 2𝑇 delayed, and component (5) is 𝑇 delayed.
no extra work is needed except for decomposing the sys- These outcomes have been observed in the experiments
tem according to the data transferring route. However, the of [4], and a partitioning rule was proposed to reduce
incurred error needs to be further studied considering the the accumulated delays. The rule is simple: the distributed
possible correlation with 𝑇. DFT component should be avoided; each partitioned part
The content of this paper is organized as follows: in should be ensured to form a NDFT component. The system
Section 3, the previous work is briefly reviewed. In Section 4, performance was improved by applying this rule, as shown in
the mathematical expression of the errors is given with Figure 2.
theorems. In Section 5, a series of steps are concluded to Although the partitioning rule made the distributed
determine the maximum 𝑇. system more close to the original continuous system, there
4 Mathematical Problems in Engineering

4.0 4.0
3.5 3.5
3.0 3.0
Cart position

Cart position
2.5 2.5

2.0 2.0

1.5 1.5

1.0 1.0

0.5 0.5

0 0
0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10
Time (s) Time (s)

T=h T = 5h T = 50h
T = 2h T = 10h T = 100h
(a) (b)

Figure 2: (a) The comparison of the trajectories (“cart position”). (a) The distributed system became unstable when 𝑇 = 2ℎ without applying
the partitioning rule. (b) By applying this rule, the distributed system was stable even when 𝑇 = 100ℎ.

is still one step (𝑇) delay among each node. This delay cannot { ̇ = 𝑓𝑝 (𝑥𝑝 (𝑡) , (𝑢𝑑 ) (𝑡))
𝑥𝑝 (𝑡)
{
{ 𝑞
be eliminated completely because of the parallelism nature {
Plant (DS) : {𝑦𝑝 = 𝑔𝑝 (𝑥𝑑 (𝑡)) (4b)
of distributed environment, leading to the system error {
{
(denoted as Δ𝐸). To understand the influence of 𝑇 to Δ𝐸, the {
mathematical expression of Δ𝐸 needs to be formulized. {(𝑢𝑝 )𝑑 (𝑡) = (𝑦𝑐 )𝑑 (𝑡 − 𝑇) ,
To simplify the analysis of Δ𝐸, an abstract control system where (∗)𝑑 is the discretization operator. This operator
containing two components is employed here: one compo- indicates the operand updates its value to the external world
nent is the Controller and the other is the Plant. This system following the advancing step 𝑇, just like being discretized.
is assumed to be Asymptotically Stable. Denoting the original Perturbation Analysis is used here to analyze the com-
continuous system as CS and the distributed system as DS, the position of Δ𝐸. Perturbation analysis treats Δ𝐸 as the out-
controller and plant can be described as differential equations come of disturbances to CS such as the output delay and
in CS [15]: discretization. The difference between CS and DS can be
determined without formulizing the differential equations of
both systems and then comparing the eigenvalues. First of
{ ̇ = 𝑓𝑐 (𝑥𝑐 (𝑡) , 𝑢𝑐 (𝑡))
𝑥𝑐 (𝑡)
{
{ all, the DS system is expressed in the form of perturbation
{ equations:
Controller (CS) : {𝑦𝑐 (𝑡) = 𝑔𝑐 (𝑥𝑐 (𝑡) , 𝑢𝑐 (𝑡)) (3a)
{
{
{
{𝑢𝑐 = 𝑦𝑝 , 𝑥𝑝̇ = 𝑓𝑝 (𝑥𝑝 , (𝑔𝑐 )𝑑 (𝑥𝑐 (𝑡 − 𝑇) , 𝑔𝑝 (𝑥𝑝 (𝑡 − 𝑇))))

{ ̇ = 𝑓𝑝 (𝑥𝑝 (𝑡) , 𝑢𝑝 (𝑡))


𝑥𝑝 (𝑡) = 𝑓𝑝 (𝑥𝑝 , 𝑔𝑐 (𝑥𝑐 + Δ𝑥𝑐 , 𝑔𝑝 (𝑥𝑝 + Δ𝑥𝑝 ) + Δ𝑦𝑝 ) (5a)
{
{
{
Plant (CS) : {𝑦𝑝 (𝑡) = 𝑔𝑝 (𝑥𝑝 (𝑡)) (3b) + Δ𝑦𝑐𝑑 ) ,
{
{
{
{𝑢𝑝 = 𝑦𝑐 , 𝑥𝑐̇ = 𝑓𝑐 (𝑥𝑐 , (𝑔𝑝 )𝑑 (𝑥𝑝 (𝑡 − 𝑇)))
(5b)
where 𝑥𝑐 (𝑡) and 𝑥𝑝 (𝑡) are system states, 𝑦𝑐 (𝑡) and 𝑦𝑝 (𝑡) are = 𝑓𝑐 (𝑥𝑐 , 𝑔𝑝 (𝑥𝑝 + Δ𝑥𝑝 ) + Δ𝑦𝑝𝑑 ) ,
outputs, 𝑢𝑐 (𝑡) and 𝑢𝑝 (𝑡) are inputs, 𝑓𝑐 (∗) and 𝑓𝑝 (∗) are state
functions, and 𝑔𝑐 (∗) and 𝑔𝑝 (∗) are output functions. In DS, where
the controller and the plant are described as
(i) Δ𝑥𝑐 = 𝑥𝑐 (𝑡−𝑇)−𝑥𝑐 , the error of controller state caused
by time delay;
{ ̇ = 𝑓𝑐 (𝑥𝑐 (𝑡) , (𝑢𝑐 ) (𝑡))
𝑥𝑐 (𝑡) (ii) Δ𝑥𝑝 = 𝑥𝑝 (𝑡 − 𝑇) − 𝑥𝑝 , the error of plant state caused
{
{ 𝑑
{ by time delay;
Controller (DS) : {𝑦𝑐 (𝑡) = 𝑔𝑐 (𝑥𝑐 (𝑡) , (𝑢𝑐 )𝑑 (𝑡)) (4a)
{
{ (iii) Δ𝑦𝑝 = 𝑔𝑝 (𝑥𝑝 (𝑡−𝑇))−𝑔𝑝 (𝑥𝑝 ), the error of plant output
{
{(𝑢𝑐 )𝑑 (𝑡) = (𝑦𝑝 )𝑑 (𝑡 − 𝑇) , caused by time delay;
Mathematical Problems in Engineering 5

(iv) Δ𝑦𝑐𝑑 = (𝑔𝑐 )𝑑 −𝑔𝑐 , the error of controller output caused We have
by discretization;
̇
𝛼 (𝑥, 0, 0, 0, 0) = V (𝑥), (9)
(v) Δ𝑦𝑝𝑑 = (𝑔𝑝 )𝑑 − 𝑔𝑝 , the plant output error caused by
discretization. where 𝑥 = (𝑥𝑝 , 𝑥𝑐 ) and V(𝑥) is the Lyapunov function of CS.
Define the second auxiliary function 𝛽(∗) over a region
The system error is represented as 𝐷3 :
󵄩 󵄩
Δ𝐸 = 󵄩󵄩󵄩󵄩(Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 )󵄩󵄩󵄩󵄩 . (6) 𝛽 (Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 )
(10)
To find out the detailed expression of Δ𝐸, a preparation = sup (𝛼 (𝑥, Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 )) ,
𝑥∈𝐷3
theorem is proposed as follows.
where 𝐷3 = 𝐷2 − 𝐷1 . 𝛽(∗) is continuous since 𝛼(∗) is
4. The Mathematical Analysis continuous. Then, we have

4.1. A Preparation Theorem. Based on the assumption of 𝛼 (𝑥, Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 )
Asymptotically Stable, the functions of 𝑓𝑝 (∗), 𝑔𝑝 (∗), 𝑓𝑐 (∗), (11a)
and 𝑔𝑐 (∗) in (3a), (3b), (4a), and (4b) are further assumed < 𝛽 (Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 )
to be Lipschitz Continuous over a region 𝐷, where 𝐷 is a
nonsaturation region defined by 𝑥𝑝 and 𝑥𝑐 : and then
̇ .
𝛽 (0, 0, 0, 0, 0) = sup (𝛼 (𝑥, 0, 0, 0, 0)) = sup (V (𝑥)) (11b)
𝐷 = {𝑥𝑝 , 𝑥𝑐 | 𝑥𝑝 ∈ 𝐷𝑥𝑝 , 𝑥𝑐 ∈ 𝐷𝑥𝑐 , 𝑔𝑝 (𝑥𝑝 ) 𝑥∈𝐷3 𝑥∈𝐷3
(7)
̇ is the
A positive real number 𝑠 can be found since V(𝑥)
∈ 𝐷𝑦𝑝 , 𝑔𝑐 (𝑥𝑐 , 𝑔𝑝 (𝑥𝑝 )) ∈ 𝐷𝑦𝑐 } .
negative definition to satisfy:
For convenience, the time symbol 𝑡 is omitted unless neces- ̇ < −𝑠.
V (𝑥) (12a)
sary. 𝐷𝑥𝑝 and 𝐷𝑥𝑐 are nonsaturation regions for 𝑥𝑝 and 𝑥𝑐 ,
respectively, that is, the state spaces of the controller and the Combining (11b), then
plant. 𝐷𝑦𝑝 and 𝐷𝑦𝑐 are nonsaturation regions for 𝑦𝑝 and 𝑦𝑐 ,
𝛽 (0, 0, 0, 0, 0) < −𝑠. (12b)
respectively, that is, the output spaces of the controller and
the plant. With this assumption, a preparation theorem [18] As a result, a region 𝐷4 can always be found in the vicinity of
is given. the origin of 𝛽(∗):

𝐷4 = {(Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 ) |


Theorem 1 (preparation theorem). For an asymptotically
󵄩󵄩 󵄩 (13)
stable CS as shown in (3a) and (3b), if (a) the functions 𝑓(∗) 󵄩󵄩(Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 )󵄩󵄩󵄩 = Δ𝐸 < 𝜌} ,
and 𝑔(∗) are continuously differentiable and (b) a Lyapunov 󵄩 󵄩
function 𝑉 is defined over an open region 𝐷 containing the where 𝜌 is a positive real number defining the radius of 𝐷4 .
original point (assumed to be the equilibrium point), then a DS Another positive real number 𝑠1 (0 < 𝑠1 < 𝑠) can be found to
can be obtained from CS, in that all start positions lying in an satisfy (14) over 𝐷4 :
arbitrary interior region (denoted as 𝐷1 ) of 𝐷 are attracted to
another arbitrary interior region (𝐷2 ) of 𝐷1 in finite time. 𝐷1 𝛽 (Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 ) < −𝑠1 . (14)
and 𝐷2 are defined by sections of 𝑉 crossed by two level surfaces.
Considering inequality (11a), we have
This theorem is critical because it guarantees that DS can
be derived from a CS given that CS is stable. The assumption 𝛼 (𝑥, Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 ) < −𝑠1 , 𝑥 ∈ 𝐷3 . (15)
that the original point is the equilibrium is easy to be satisfied
by translation transformation of the state variables. Consider (9), and we have

Proof. Define an auxiliary function: ̇ < −𝑠1 ,


V (𝑥) 𝑥 ∈ 𝐷3 . (16)

𝜕𝑉 To integrate both sides of (16) in [0, 𝑡],


𝛼 (𝑥, Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 ) =
𝜕𝑥𝑝 𝑉 (𝑥 (𝑡)) − 𝑉 (𝑥0 ) < −𝑠1 ∗ 𝑡, (17a)

⋅ 𝑓𝑝 (𝑥𝑝 , 𝑔𝑐 (𝑥𝑐 + Δ𝑥𝑐 , 𝑔𝑝 (𝑥𝑝 + Δ𝑥𝑝 ) + Δ𝑦𝑝 ) (8) 𝑉 (𝑥 (𝑡)) < 𝑉 (𝑥0 ) − 𝑠1 ∗ 𝑡, (17b)
𝜕𝑉 where 𝑥0 ∈ 𝐷3 is the start point of state trajectory. Inequation
+ Δ𝑦𝑐𝑑 ) + ⋅ 𝑓 (𝑥 , 𝑔 (𝑥 + Δ𝑥𝑝 ) + Δ𝑦𝑝𝑑 ) .
𝜕𝑥𝑐 𝑐 𝑐 𝑝 𝑝 (17b) means the state trajectory in DS is strictly constrained
6 Mathematical Problems in Engineering

by a diminishing function in 𝐷3 . Considering the fact that 4.2.2. Δ𝑥𝑝 . Δ𝑥𝑝 is the variation of the plant’s state value
̇ < 0, we have
V(𝑥) within time interval 𝑇. Following a similar approach in the
analysis of Δ𝑥𝑐 , we have
𝑉 (𝑥0 ) < 𝑉𝐷1 , (18a) 󵄩󵄩 󵄩
󵄩󵄩Δ𝑥𝑝 󵄩󵄩󵄩 ≤ 𝑀𝑓𝑝 ⋅ 𝑇, (24)
󵄩 󵄩
𝑉 (𝑥 (𝑡)) < 𝑉𝐷1 − 𝑠1 ∗ 𝑡, (18b)
where 𝑀𝑓𝑝 is the upper bound of 𝑓𝑝 (∗) within [𝑡 − 𝑇, 𝑡].
where 𝑉𝐷1 is the value of 𝑉(𝑥) where the state trajectory
crosses the level surface that defines region 𝐷1 . Inequations 4.2.3. Δ𝑦𝑝 . Δ𝑦𝑝 is the variation of the plant’s output within
(18a) and (18b) mean that the state trajectory of DS will stay time interval 𝑇. According to (5a) and (5b), we have
inside 𝐷1 . Considering V(𝑥)̇ < 0, we also have
Δ𝑦𝑝 = 𝑔𝑝 (𝑥𝑝 (𝑡 − 𝑇)) − 𝑔𝑝 (𝑥𝑝 )
𝑉 (𝑥0 ) > 𝑉𝐷2 , (19) (25a)
= 𝑔𝑝 (𝑥𝑝 + Δ𝑥𝑝 ) − 𝑔𝑝 (𝑥𝑝 ) ,
where 𝑉𝐷2 is the value of 𝑉(𝑥) where the state trajectory 󵄩󵄩 󵄩 󵄩 󵄩
crosses the level surface that defines region 𝐷2 . Then, the 󵄩󵄩Δ𝑦𝑝 󵄩󵄩󵄩 = 󵄩󵄩󵄩𝑔𝑝 (𝑥𝑝 + Δ𝑥𝑝 ) − 𝑔𝑝 (𝑥𝑝 )󵄩󵄩󵄩 . (25b)
󵄩 󵄩 󵄩 󵄩
solution trajectory of DS will go from the start point to 𝐷2
Considering 𝑔𝑝 (∗) is Lipschitz Continuous (Theorem 1), we
within finite time:
have
󵄩󵄩 󵄩 󵄩 󵄩
𝑉 (𝑥0 ) − 𝑉𝐷2 󵄩󵄩Δ𝑦𝑝 󵄩󵄩󵄩 = 󵄩󵄩󵄩𝑔𝑝 (𝑥𝑝 + Δ𝑥𝑝 ) − 𝑔𝑝 (𝑥𝑝 )󵄩󵄩󵄩
Δ𝑡 < . (20) 󵄩 󵄩 󵄩 󵄩
𝑠1 󵄩󵄩 󵄩
≤ 𝑀𝑔𝑝 ⋅ 󵄩󵄩󵄩(𝑥𝑝 + Δ𝑥𝑝 ) − (𝑥𝑝 )󵄩󵄩󵄩󵄩 (26a)
Inequation (20) means a DS can be found, whose trajectory
󵄩 󵄩
will converge to the equilibrium point of CS eventually within = 𝑀𝑔𝑝 ⋅ 󵄩󵄩󵄩󵄩Δ𝑥𝑝 󵄩󵄩󵄩󵄩 .
finite time, given CS being asymptotically stable and the
system error being constrained as (13) shows. Considering (24), we have
󵄩󵄩󵄩Δ𝑦 󵄩󵄩󵄩 ≤ 𝑀 ⋅ 𝑀 ⋅ 𝑇,
󵄩󵄩 𝑝 󵄩󵄩 𝑔𝑝 𝑓𝑝 (26b)
4.2. The Mathematical Expression of System Error. The math-
ematical expression of Δ𝐸 is studied by analyzing each where 𝑀𝑔𝑝 is the Lipschitz Const of 𝑔𝑝 (∗).
component of it.
4.2.4. Δ𝑦𝑝𝑑 . Δ𝑦𝑝𝑑 is caused by discretization on the plant’s
4.2.1. Δ𝑥𝑐 . Δ𝑥𝑐 is the variation of the controller’s state value output, where the discrete interval is 𝑇. Δ𝑦𝑝𝑑 is bounded by
within time interval 𝑇. According to the definition in (5a) and the changing rate of the output, as shown in Figure 3.
(5b), According to the definitions in (5a) and (5b), we have
󵄩󵄩 󵄩 󵄩 󵄩
Δ𝑥𝑐 = 𝑥𝑐 (𝑡 − 𝑇) − 𝑥𝑐 󵄩󵄩Δ𝑦𝑝𝑑 󵄩󵄩󵄩 = 󵄩󵄩󵄩(𝑔𝑝 ) − 𝑔𝑝 󵄩󵄩󵄩 ≤ Δ𝑦𝑝 . (27)
󵄩 󵄩 󵄩 𝑑 󵄩
𝑡 (21a)
=∫ 𝑓𝑐 (𝑥𝑐 (𝜏) , 𝑢𝑐 (𝜏)) ⋅ 𝑑𝜏, Considering (26b),
𝑡−𝑇 󵄩󵄩 󵄩
󵄩󵄩Δ𝑦𝑝𝑑 󵄩󵄩󵄩 ≤ 𝑀𝑔𝑝 ⋅ 𝑀𝑓𝑝 ⋅ 𝑇. (28)
󵄩 𝑡 󵄩󵄩 󵄩 󵄩
󵄩󵄩 󵄩 󵄩󵄩 󵄩
󵄩󵄩Δ𝑥𝑐 󵄩󵄩󵄩 = 󵄩󵄩󵄩∫ 𝑓𝑐 (𝑥𝑐 (𝜏) , 𝑢𝑐 (𝜏)) ⋅ 𝑑𝜏󵄩󵄩󵄩 . (21b)
󵄩󵄩 𝑡−𝑇 󵄩󵄩
4.2.5. Δ𝑦𝑐𝑑 . Similarly, we have
󵄩󵄩 󵄩
Integrating both sides of (21b), 󵄩󵄩Δ𝑦𝑐𝑑 󵄩󵄩󵄩 ≤ 𝑀𝑔𝑐 ⋅ 𝑀𝑓𝑐 ⋅ 𝑇. (29)
󵄩 𝑡 󵄩󵄩
󵄩󵄩 󵄩 󵄩󵄩 󵄩 Combining (6), (23), (24), (26b), (28), and (29),
󵄩󵄩Δ𝑥𝑐 󵄩󵄩󵄩 = 󵄩󵄩󵄩∫ 𝑓𝑐 (𝑥𝑐 (𝜏) , 𝑢𝑐 (𝜏)) ⋅ 𝑑𝜏󵄩󵄩󵄩
󵄩󵄩 𝑡−𝑇 󵄩󵄩 󵄩 󵄩
(22) Δ𝐸 = 󵄩󵄩󵄩󵄩(Δ𝑥𝑐 , Δ𝑥𝑝 , Δ𝑦𝑝 , Δ𝑦𝑐𝑑 , Δ𝑦𝑝𝑑 )󵄩󵄩󵄩󵄩
𝑡
󵄩 󵄩
≤ ∫ 󵄩󵄩󵄩𝑓𝑐 (𝑥𝑐 (𝜏) , 𝑢𝑐 (𝜏))󵄩󵄩󵄩 ⋅ 𝑑𝜏. (30)
𝑡−𝑇 ≤ √ 𝑀𝑓2 (1 + 𝑀𝑔2𝑐 ) + 𝑀𝑓2 ⋅ (1 + 2𝑀𝑔2𝑝 ) ⋅ 𝑇,
𝑐 𝑝

𝑓𝑐 (∗) is bounded in [𝑡 − 𝑇, 𝑡] since it is continuously


differentiable (one of the conditions in Theorem 1). Then, we where √𝑀𝑓2 (1 + 𝑀𝑔2𝑐 ) + 𝑀𝑓2 ⋅ (1 + 2𝑀𝑔2𝑝 ) ⋅ 𝑇 defines the
𝑐 𝑝

have upper bound of Δ𝐸. Once an expected Δ𝐸 is given (denoted


as Δ𝐸∗ ), 𝑇max can be determined:
𝑡
󵄩󵄩 󵄩
󵄩󵄩Δ𝑥𝑐 󵄩󵄩󵄩 ≤ ∫ 𝑀𝑓𝑐 ⋅ 𝑑𝜏 = 𝑀𝑓𝑐 ⋅ 𝑇, (23) Δ𝐸∗
𝑡−𝑇 𝑇max =
(31)
where 𝑀𝑓𝑐 is the upper bound of 𝑓𝑐 (∗) within [𝑡 − 𝑇, 𝑡]. √𝑀𝑓2 (1 + 𝑀𝑔2𝑐 ) + 𝑀𝑓2 ⋅ (1 + 2𝑀𝑔2𝑝 )
𝑐 𝑝
Mathematical Problems in Engineering 7

y y

The value of Δypd is


bounded by the
changing rate of y

T 2T 3T 4T 5T 6T T 2T 3T 4T 5T 6T

Figure 3: Δ𝑦𝑝𝑑 is bounded by the changing rate of the output value.

1.5 The upper bound: 1.0


1.0
1
0.5
0.5
0
0
−0.5
−0.5
−1.0
−1
The lower bound: −1.3844
−1.5 −1.5
0 1 2 3 4 5 6 7 8 9 10 0 2 4 6 8 10
Time (s) Time (s)

x1 Figure 6: The plot of 𝑥1̇ . 𝑀𝑓𝑥 is determined by the bound of it in


1
x2 this example.
Figure 4: The trajectories of 𝑥1 , 𝑥2 , where 𝑘 = 5, 𝑅 = 5, 𝑚 = 1, and
the initial value 𝑥1𝑡=0 = 𝑥2𝑡=0 = 1.
5. Experiment
A distributed simulation is constructed in this section to show
Partitioning the determination of 𝑇. The original continuous system is a
1 x1 point mass system with fraction as follows:
−k −R
s fx2 = x − x
Integrator
m 1 m 2 𝑥1̇ = 𝑥2 ,
−𝑘 𝑅 (32)
𝑥2̇ = 𝑥 − 𝑥,
1 x2 𝑚 1 𝑚 2
s where 𝑘 is spring const, 𝑚 is mass, and 𝑅 is friction coefficient.
Integrator This system is asymptotically stable; the trajectories of 𝑥1 and
𝑥2 are shown in Figure 4.
Figure 5: This simple system is partitioned into two parts by the A distributed system can be partitioned from the original
dash line to form a distributed system. system, where the structure has the block-diagram represen-
tation (see Figure 5).
The differential equations of these two parts are

{𝑥1̇ = 𝑓𝑥1 = 𝑥2
for any 𝑇 < 𝑇max , and the overall error will be less than Component I: { (33a)
Δ𝐸∗ . Equation (31) also indicates the way to partition CS 𝑦 = 𝑔𝑥1 = 𝑥1 ,
{ 1
will influence 𝑇max : the more the parts partitioned (supposing
each part is deployed on a node), the greater the denominator −𝑘 𝑅
{𝑥2̇ = 𝑓𝑥 = 𝑥1 − 𝑥2
of the right part of (31), thus the smaller that of the allowable Component II: { 2
𝑚 𝑚 (33b)
𝑇max . {𝑦2 = 𝑔𝑥2 = 𝑥2 ,
8 Mathematical Problems in Engineering

1.2 1.0
1.0 Error: 0.2386
0.5
0.8
0.6 0
0.4
x1

Error: 0.0764

x2
−0.5
0.2
0 −1.0
Error: 0.1445 Error: 0.1945
−0.2
−1.5
−0.4
−0.6 −2.0
0 2 4 6 8 10 0 2 4 6 8 10
Time (s) Time (s)

x1 of the distribution system with T = 0.1 s x2 of the distribution system with T = 0.1 s
x1 of the original continuous system x2 of the original continuous system

(a) (b)
1.2 1
1
0.5
0.8 Error: 0.5065

0.6 0

0.4 Error: 0.1626


x2

−0.5
x1

0.2
−1 Error: 0.4971
0
−0.2 −1.5
Error: 0.2835
−0.4
−2
0 2 4 6 8 10 0 2 4 6 8 10
Time (s) Time (s)

x1 of the distribution system with T = 0.15 s x2 of the distribution system with T = 0.15 s
x1 of the original continuous system x2 of the original continuous system

(c) (d)
1.2 1
1
0.5
0.8 Error: 0.7081
0.6 0
Error: 0.2646
0.4
x1

x2

−0.5
0.2
0 −1
−0.2 Error: 0.6039
−1.5
−0.4
Error: 0.3931
−0.6 −2
0 2 4 6 8 10 0 2 4 6 8 10
Time (s) Time (s)

x1 of the distribution system with T = 0.2 s x2 of the distribution system with T = 0.2 s
x1 of the original continuous system x2 of the original continuous system

(e) (f)

Figure 7: The comparison of 𝑥1 and 𝑥2 . In the distributed simulation, 𝑇 is set to be 0.1 s, 0.15 s, and 0.2 s, respectively; the trajectories of 𝑥1
and 𝑥2 are compared in each case.
Mathematical Problems in Engineering 9

where 𝑦1 , 𝑦2 are the output of components I and II, respec- play a role in multicore or multi-CPU parallel computing
tively. These two parts are deployed on two nodes, forming environments.
the simple distributed system. However, for systems that may become unstable after
Equation (31) indicates that the parameters reflecting system partitioning, this approach is not so convenient since
system dynamic need to be determined firstly, which are as a Lyapunov function of the continuous system needs to
follows: be found firstly. The parameters defining specific regions
satisfying (13)–(15) also need to be determined. More work
𝑀𝑓𝑥 : the upper bound of function 𝑓𝑥1 within any time needs to be done to improve this approach’s availability.
1
interval [𝑡 − 𝑇, 𝑡];
𝑀𝑔𝑥 : the Lipschitz Const of function 𝑔𝑥1 ; Conflict of Interests
1

𝑀𝑓𝑥 : the upper bound of function 𝑓𝑥2 within any time The authors declare that there is no conflict of interests
2
interval [𝑡 − 𝑇, 𝑡]; regarding the publication of this paper.
𝑀𝑔𝑥 : the Lipschitz Const of function 𝑔𝑥2 .
2
References
From the engineering perspective, these parameters can be
directly observed from the simulation results of the original [1] E. Hairer, S. P. Nørsett, and G. Wanner, Solving Ordinary Dif-
system. In this case, 𝑀𝑓𝑥 is determined by the lower bound ferential Equations I: Nonstiff Problems, vol. 8 of Springer Series
1
in Computational Mathematics, Springer, Berlin, Germany, 2nd
of 𝑥1̇ as Figure 6 shows.
edition, 1993.
As a result, 𝑀𝑓𝑥 = −1.3844. According to the definition
1 [2] E. Hinton, P. Bettess, and R. W. Lewis, Eds., Numerical Methods
of Lipschitz Const, 𝑀𝑔𝑥 is limited by the upper bound of in Coupled Problems, Pineridge Press, Swansea, UK, 1981.
1
𝑔𝑥̇ 1 , that is, the upper bound of 𝑥1̇ in this case. Then, we [3] R. W. Lewis, Ed., Numerical Methods in Coupled Problems, John
have 𝑀𝑔𝑥 = −1.3844. Following similar procedures, we have Wiley & Sons, London, UK, 1984.
1
𝑀𝑓𝑥 = −1.7796, 𝑀𝑔𝑥 = −1.7796. According to (31), 𝑇max is [4] Y.-f. Ma, X. Song, J.-y. Wang, and Z. Xiao, “A practical
2 2
estimated as follows: infrastructure for real-time simulation across timing domains,”
Mathematical Problems in Engineering, vol. 2015, Article ID
163845, 12 pages, 2015.
𝑇max ≈ √ 𝑀𝑓2 (1 + 𝑀𝑔2𝑥 ) + 𝑀𝑓2 ⋅ (1 + 2𝑀𝑔2𝑥 ) [5] R. W. Lewis, Ed., Numerical Methods in Coupled Problems,
𝑥2 2 𝑥1 1
(34)
Wiley, London, UK, 1984.
≈ 0.211 ⋅ Δ𝐸. [6] C. Ocampo-Martinez, S. Bovo, and V. Puig, “Partitioning
approach oriented to the decentralised predictive control of
The distributed system described in (33a) and (33b) is large-scale systems,” Journal of Process Control, vol. 21, no. 5, pp.
simulated. The trajectories of the system states are compared 775–786, 2011.
to those of the original continuous system, as Figure 7 shows. [7] K. Salahshoor and S. Kamelian, “A new weighted graph-
The threshold value of Δ𝐸 is 0.5, and then 𝑇max is estimated based partitioning algorithm for decentralized nonlinear model
to be 0.1055 s according to (34). Three configurations, where predictive control of large-scale systems,” International Journal
𝑇 = 0.1 s, 𝑇 = 0.15 s, and 𝑇 = 0.2 s, are tested in the form of of Computer Applications, vol. 40, no. 14, pp. 7–14, 2012.
distributed simulation. As expected, only the case 𝑇 = 0.1 s [8] C. A. Felippa, K. C. Park, and C. Farhat, “Partitioned analysis
satisfies that both 𝑥1 and 𝑥2 do not exceed the threshold value of coupled mechanical systems,” Computer Methods in Applied
of Δ𝐸. Mechanics and Engineering, vol. 190, no. 24-25, pp. 3247–3270,
However, the actual error does not exceed the threshold 2001.
value immediately when 𝑇 is configured to be greater than [9] W. Michiels and S.-I. Niculescu, Stability and Stabilization of
0.1 s, as shown in Figures 7(c) and 7(d). The reason is that 𝑇max Time-Delay Systems: An Eigenvalue-Based Approach, vol. 12,
is not strictly estimated since many associated parameters use SIAM, 2007.
their boundary values. [10] J.-B. Hu, G.-P. Lu, S.-B. Zhang, and L.-D. Zhao, “Lyapunov
stability theorem about fractional system without and with
delay,” Communications in Nonlinear Science and Numerical
6. Conclusion Simulation, vol. 20, no. 3, pp. 905–913, 2015.
[11] S. Kamelian and K. Salahshoor, “A novel graph-based partition-
The mathematical expression of Δ𝐸 helps us to gain the ing algorithm for large-scale dynamical systems,” International
insight of system error produced in the construction of the Journal of Systems Science: Principles and Applications of Systems
distributed system using the partitioning approach. Giving and Integration, vol. 46, no. 2, pp. 227–245, 2015.
an expected threshold of Δ𝐸, a proper advancing step 𝑇 [12] A. Adegoke, H. Togo, and M. K. Traore, “A unifying framework
of the distributed system can be determined. A larger 𝑇, for specifying DEVS parallel and distributed simulation archi-
compared to the integral step in the nondistributed system, tectures,” Simulation-Transactions of The Society for Modeling
will reduce the data-exchange frequency between simulation and Simulation International, vol. 89, no. 11, pp. 1293–1309, 2013.
nodes, leading to the reduction of demands on system timing [13] F. Bergero, E. Kofman, and F. Cellier, “A novel parallelization
performance and network bandwidth. Then, the simulation technique for DEVS simulation of continuous and hybrid
cost is saved eventually. In fact, this approach can also systems,” SIMULATION, vol. 89, no. 6, pp. 663–683, 2013.
10 Mathematical Problems in Engineering

[14] S. Jafer, Q. Liu, and G. Wainer, “Synchronization methods in


parallel and distributed discrete-event simulation,” Simulation
Modelling Practice and Theory, vol. 30, pp. 54–73, 2013.
[15] E. Kofman, “Quantization-based simulation of differential alge-
braic equation systems,” Simulation-Transactions of the Society
for Modeling and Simulation Internatinal, vol. 79, no. 9, pp. 363–
376, 2003.
[16] E. Kofman, “Discrete event simulation of hybrid systems,” SIAM
Journal on Scientific Computing, vol. 25, no. 5, pp. 1771–1797,
2004.
[17] E. Kofman, J. S. Lee, and B. P. Zeigler, “DEVS representation
of differential equation systems: review of recent advances,” in
Proceedings of the 13th European Simulation Symposium, pp.
591–595, October 2001.
[18] E. Kofman, Discrete event based simulation and control of
continuous [Ph.D. thesis], Universidad Nacional de Rosario,
Santa Fe, Argentina, 2003.
Advances in Advances in Journal of Journal of
Operations Research
Hindawi Publishing Corporation
Decision Sciences
Hindawi Publishing Corporation
Applied Mathematics
Hindawi Publishing Corporation
Algebra
Hindawi Publishing Corporation
Probability and Statistics
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014

The Scientific International Journal of


World Journal
Hindawi Publishing Corporation
Differential Equations
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014

Submit your manuscripts at


http://www.hindawi.com

International Journal of Advances in


Combinatorics
Hindawi Publishing Corporation
Mathematical Physics
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014

Journal of Journal of Mathematical Problems Abstract and Discrete Dynamics in


Complex Analysis
Hindawi Publishing Corporation
Mathematics
Hindawi Publishing Corporation
in Engineering
Hindawi Publishing Corporation
Applied Analysis
Hindawi Publishing Corporation
Nature and Society
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014

International
Journal of Journal of
Mathematics and
Mathematical
Discrete Mathematics
Sciences

Journal of International Journal of Journal of

Hindawi Publishing Corporation Hindawi Publishing Corporation Volume 2014


Function Spaces
Hindawi Publishing Corporation
Stochastic Analysis
Hindawi Publishing Corporation
Optimization
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014 http://www.hindawi.com http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014 http://www.hindawi.com Volume 2014

You might also like