1. Introduction and Motivation
The more basic analysis of Discrete Event Systems (DES) focuses on properties such as liveness, boundedness, and, when timed, system performance. Considering Flexible Manufacturing Systems (FMSs), as an example, the performance may deal with the number of goods fabricated per unit time (i.e., the throughput) or the number of items in a storage (i.e., its marking). If the throughput should be increased, then it may be an initial idea to increase the speed of the machines or the number of resources. Unfortunately, it may not only decrease the system throughput, but even worse, reduce it to zero (deadlock). An overview of these paradoxical throughput behaviors are studied in this work when the systems are modeled with Timed Continuous Petri nets (TCPN).
Petri nets (PN) are a fine and well-known formalism to model
Discrete Event Systems, since they have a sound mathematical background, capturing in a compact manner basic system characteristics, such as causal relationships, synchronization, and concurrence. Moreover, their nice graphical representation provides a communication framework between engineers and practitioners. This work assumes that the reader is familiar with some basic concepts of PN, such as (structural) liveness, (structural) boundness, or reachability graph [
1,
2]. Unfortunately, as any other expressive DES formalism, they suffer from the so-called
state explosion problem, particularly when they are heavily populated (heavily marked in PN terms). This problem is overcome with a classical relaxation: the
fluidization of the system, i.e., both, the marking and the firing vectors are now considered non-negative real numbers. This leads to the concept of
Fluid or
Continuous PNs (CPNs). CPNs make some computational problems
decidable or much tractable in practice [
3].
When a quantitative notion of time is introduced in the paradigm of the CPN, then the evaluation of the system performance indices is also possible (throughput, response time, average marking), leading to the notion of
Timed CPN (TCPN). We use the
infinite server semantics (ISS), also known as
variable speed, to express the firing rate of transitions. Under this consideration, the fluid systems are continuous piecewise linear with polyhedral regions. For certain net subclasses, which can model several types of manufacturing systems, ISS provides better approximations of the system throughput [
4]. Nonetheless, depending on the system, other timing interpretations may be more adequate, for example,
finite server semantics (FSS) in some hydraulic systems (see [
5]) or
product semantics (PS) in biologic systems (see [
6]). In some sense, this work complements the overview [
7] (for a more technical and detailed presentation, see [
6]).
Performance evaluation is a major concern when analyzing DES. For instance, a study of the performance of manufacturing systems can be found in [
8], where
generalized stochastic Petri nets are used to model the systems. The analysis is based mainly on the simulation of the model to obtain the performance indices. Under the assumption of modeling with TCPN-ISS, ref. [
9] presents the performance evaluation of manufacturing systems, where an insight of the relation between the structure of the model and the performance indices is discussed. That relation with the structure represents how the resources and the processes interact. The present work makes an effort to clarify how the performance of a system is affected when the resources or the velocity of processes are modified, relating them with the structure of the system.
This work focuses on the class of
Mono-T-Semiflow-Reducible MTSR nets [
10], since they allow to model a certain degree of
cooperative and
competitive relationships that arise in many practical systems, for instance flowshop or mass production systems. For the sake of simplicity, the results in this work are formulated for Mono-T-Semiflow nets; however, they can be easily extended to MTSR nets using the reduction rule already discussed in [
10].
For the class of MTSR nets, the number of firings of transitions per time unit can be interpreted as the finished jobs per time unit in the flowshop, which can be used to measure the performance of the manufacturing system and is related to the equilibrium throughput of the TCPN system. In particular, qualitative properties of the equilibrium throughput such as monotonicity, continuity, and deadlock-freeness, as functions of the initial marking, firing transitions rates, and net structure, are herein systematically analyzed. The equilibrium throughput is:
Monotonic, when increasing the initial marking and/or the transition firing rates leads to a non-slower system (a desired behavior); that is, more or faster resources in the system should at least not reduce the number of finished jobs per time unit;
Continuous, when no abrupt changes of the equilibrium throughput are possible in the system when firing rates and/or the initial marking vary (again a desired system property);
Deadlock-free, when no blocking situation can occur in the system (this property can be reinterpreted as “persistence” in chemical reaction networks [
11]).
As a motivation, here, a cell composed of one input and one output stores of six slots each, one conveyor belt, a computer numerical control (CNC) machine, and a robot is presented. The cell is devoted to the manufacture of gears. The raw material resides in the input store. The robot retrieves the raw material from the input store and places it onto the conveyor. The conveyor is a two-site belt, and it leads the raw material into the CNC machine, which fabricates gears. The robot unloads the machine when it finishes a gear, and places the finished gear into the output store.
Figure 1a shows a photo of this manufacturing cell.
A TCPN model of the manufacturing cell is presented in
Figure 1b, and the description of places and transitions are presented in
Table 1 and
Table 2, respectively. The firing of
indicates that a part arrives to the cell and it is stored in the input store. The firing of
and
represent that a part is retrieved by the robot form the input store, deposited on the conveyor, and loaded into the CNC machine, respectively. The unloading of the CNC machine and the storing of a part in the output store are represented by the firing of
and
, respectively. Finally,
indicates that a part leaves the cell.
The net in
Figure 1b is
structurally bounded, i.e., for every initial marking, any reachable marking maintains a limited number of tokens in every place. In this model, tokens in place
represent the raw material, the firing of transition
represents the robot retrieving a part from the input store, and the firing of transition
represents that the robot unloads the machine.
With regard to the
initial marking variation and how the qualitative properties of the continuous equilibrium throughput varies, the considered initial marking is
and the firing rate is fixed to
. In this case,
varies in the range
, leading to a variation in the equilibrium throughput, which is depicted in
Figure 2a. It shows that the equilibrium throughput is non-monotonic, even non-continuous with respect to the marking variations.
Figure 2a is obtained by simulating the evolution of the piecewise linear system for several values of
from zero to seven. The value of the equilibrium throughput is plotted for every value of
.
With regard to the
firing rates variation and how the qualitative properties of the equilibrium throughput varies, the initial marking is fixed to
and the firing rate is
. In this case,
varies in the range
, leading to a variation in the equilibrium throughput, which is depicted in
Figure 2b. This second figure shows that the equilibrium throughput is non-monotonic, even non-continuous with respect to the firing rate variations (there exists an abrupt change around
).
Figure 2b is obtained by simulating the evolution of the piecewise linear system for several values of
from zero to four. The value of the equilibrium throughput is plotted for every value of
.
It is worth to notice that these non-monotonic, non-continuous behaviors are undesirable. In both cases, increasing the number of resources or their speeds, the throughput of the unforced system (i.e., non-controlled) is reduced to zero, that is, the manufacturing system reaches a blocking situation. Moreover, these behavioral properties of TCPN systems are closely related to behavioral properties of discrete systems, even when the net is structurally live (i.e., there exists initial markings that make the system live).
This example shows that the problem of non-monotonicity is originated when there are several tokens in (increasing the system raw material) or is increased (there is a faster resource), allowing that fires more often than . This reduces to zero the tokens in , , and ; hence, cannot be fired again and the TCPN is blocked.
Partially with a mix among a survey and tutorial style, this paper reviews in an integrated way efficient analysis techniques of some non frequently considered time-based qualitative properties of TCPN systems under infinite server semantics, among others, non-monotonicities and discontinuities on the equilibrium throughput (or marking). Focusing on the search of the net structural objects leading to such pathological/paradoxical behaviors, in essence, the results are based on [
4,
10,
12,
13,
14,
15,
16]. The idea is searching for computational efficiency, while at the same time looking for a better understanding of the potential connections among structure and behaviors (the latter also depend on the initial marking). In order to approximate the sub-field to the practice, the present work is complemented with some new algorithms. For instance, Algorithms 1 and 2 allow to verify if a system is consistent and has not empty siphons at the initial marking; these are two required conditions of practical systems. Algorithm 3 allows to classify the structural objects (
configurations) that determine the possible behaviors of the system. Algorithm 4 decides if a configuration can be
activated to know the behaviors of the system.
This work deals with these undesired behaviors and their relation to the Petri net structure.
Section 2 essentially provides the basic notation used. In
Section 3, a discussion about the jumps in the equilibrium throughput is addressed. Discontinuity-induced bifurcations, earlier approached in [
10,
12], are here discussed, reviewing its relation to the net structure, particularly with transitions in the net that allow to increase/decrease the marking of a choice place. In
Section 4, a homothecy property previously used for the analysis of CPN systems [
13] is recalled; it is taken to prove that discontinuity of the equilibrium throughput implies its non-monotonicity. The relationships between these behaviors is provided for both the firing rate variation and the initial marking variation. In
Section 5, taking inspiration from [
4], undesired behaviors are related with net structural objects called
problematic configurations. These objects have associated subnets in which the places do not contain the support of a P-semiflow. Finally, in
Section 6, a set of reduction rules for simplifying the computation of problematic configurations is intuitively recalled by means of trivial cases. This procedure helps to practically diminish the complexity of the calculation, and more importantly, provides useful insights of the root of undesired behaviors.
2. Basic Concepts and Notations
Let , , and represent natural, rational, and real numbers, respectively. Given a set of numbers S, (resp. ) denotes the set of nonnegative (resp. positive) numbers of S. Given a matrix of size with A and B sets of indices, the submatrix , with and , denotes the restriction of to rows indexed by and columns indexed by . The support of a vector is the set of indices corresponding to its non null values and is denoted by .
2.1. Petri Net Structure and System
Definition 1. A Petri net structure is a bipartite digraph defined by the four tuple , where and are finite non-empty disjoint sets of nodes named places and transitions, respectively, and () is the pre-incidence function specifying the weighted arcs directed from places to transitions (post-incidence function that specifies the weighted arcs directed from transitions to places).
A subnet of N, , is a Petri net structure where , are subsets of places and transitions of N, respectively; and and are the pre- and post-incidence functions of N restricted to and . The preset and postset of a node are denoted as (set of input nodes) and (set of output nodes), respectively. These definitions can be naturally extended: let be a set of nodes, while (respectively, ) denotes the union of the preset (respectively, of the postset) of every node . A siphon is a set of places such that .
The token-flow matrix (incidence matrix if the net is self-loop free) of a net N is defined as . A transition with more than one input place (i.e., ) is named a join transition; a place with more than one output transition (i.e., ) is named a choice place. A column vector is called a P-flow of N if ; if the non-null entries of such vector are positive, then it is called a P-semiflow. A basis of the left kernel of is a basis of P-flows and is denoted by , so that . Similarly, a column vector is termed a T-flow of N if ; if the non-null entries of that vector are positive, then it is termed a T-semiflow. If there is a P-semiflow (T-semiflow) such that (), the net is said to be conservative (consistent), denoted as Cv (Ct).
Definition 2. A net N is Mono-T-Semiflow (MTS) if it is conservative and consistent with a unique minimal (defined in the naturals, and least common multiple equals one) T-semiflow.
2.2. Fluid or Continuous Petri Net System
A marking is a mapping that assigns to each place of N a non-negative real value.
Definition 3. A fluid or continuous Petri net (CPN) system is a net N together with an initial marking , and it is denoted as .
One characteristic of continuous Petri net systems is their evolution rule. It allows the firing of transitions in positive real amounts, while the reachable markings of the continuous system must be non-negative real values.
The
enabling degree of a transition
t at a marking
is defined as:
A transition
is
enabled if
. An enabled transition can be
fired in any real amount inside the interval
. Its firing leads to a new marking
. A marking
is
lim-reachable from
if there exists a (finite or infinite) firing sequence
, such that
can be reached from
, which is denoted as
. A transition
t is called
dead if its enabling degree is zero (
) for every reachable marking. The set of reachable markings, denoted as
, satisfy the following
fundamental equation:
where
is the firing count vector of the sequence
such that
.
Regarding Equation (
2) and the P-flows of a net
N, a
token conservation law associated with a P-flow
is described by the equation
. This last equation is obtained by pre-multiplying Equation (
2) by
.
Proposition 1 ([
6,
7]).
Let be a CPN system. If there is no empty siphon at and the net is consistent (not a real constraint in practical systems), then the following are equivalent: In this work, it is assumed that every system fulfils the previous condition: there is no empty siphon at and the net is consistent. If that is not the case, the places associated with the empty siphon, together with their output transitions, can be removed from the net because they never evolve.
In the case of continuous Petri net systems, the condition that there is not empty siphon at is equivalent to not having dead transitions in the CPN system.
Property 1. Let be a consistent CPN system. There are no empty siphons at iff there are no dead transitions at .
Proof. (Sufficiency) If there are not dead transitions at , then every transition in T can be fired at least once. Choose an arbitrary place p in an arbitrary siphon ; if p is marked at , then the siphon is marked at . If p is not marked at , then there should be a transition that can be fired, which means that all the places in are marked; thus, the siphon is marked at . If that is not the case, this reasoning can be done upwards to find the place that marks the siphon, because every transition can be fired at least once.
(Necessity) If there are no empty siphons at , then it is possible firing the enabled transitions (maybe in fractions of the enabling degree), so that new transitions are enabled maintaining the previous transitions enabled, which can be done until every place is marked. Thus, every transition can be fired. □
As a remark, the above property does not hold in both ways for discrete Petri nets. It is true that if there are not dead transitions at
, then there are no empty siphons at
. However, the converse is not true.
Figure 3 shows a consistent Petri net with an initial marking: if considered as discrete, transition
cannot be fired (it is a dead transition); however, there is no empty siphon at the initial marking. If considered as continuous, transition
can be fired after firing transitions
and
by half its enabling degree.
Now, two algorithms are provided to evaluate the conditions: there is no empty siphon at and the net is consistent.
Based on the results of [
17], the Algorithm 1 determines if the net is consistent and has no dead transitions, which is equivalent to not having empty siphons in continuous Petri nets (Property 1). It computes if there is a T-semiflow
involving all transitions of the net
N (line 2). If it exists, then it continues computing the set of enabled transitions at
(line 8). Then, those transitions are fired with half their enabling degree (line 11) and the set of enabled transitions are computed again for the new marking (line 12). This procedure is repeated until the set of enabled transitions is
T (there are no dead transitions) or the set does not grow anymore (there are dead transitions). The algorithm runs in polynomial time.
Algorithm 1 Computing if the net is consistent and there are no empty siphons at . |
- Require:
. - Ensure:
If N is consistent and there are no empty siphons - 1:
Compute the token-flow matrix - 2:
Compute the existence of a positive T-semiflow -
- 3:
if has no solution then - 4:
N is not consistent - 5:
else - 6:
N is consistent - 7:
- 8:
- 9:
- 10:
while do - 11:
Let be a sequence obtained firing all the transitions in with half their enabling degree, and let - 12:
- 13:
- 14:
end while - 15:
if then - 16:
There are no empty siphons at - 17:
else - 18:
There are empty siphons at - 19:
end if - 20:
end if
|
Following the ideas in [
2], another algorithm can be proposed to evaluate if there exists empty siphons at the initial marking. It consists of a linear algebraic method to obtain a
generating family of siphons. Theorem 13 in [
2] characterizes traps in terms of non-negative solutions to a linear of system inequalities. Siphons can be characterized in the same way by reversing the net. That theorem is now rewritten for siphons:
Theorem 1 ([
2]).
Let be a Petri net. Define:such that if , and otherwise.A set is a siphon of N iff exists such that and .
Algorithm 2 decides if the net is consistent and there are no empty siphons at
. For this second condition, it computes a generating family of siphons for
N. Then, it evaluates if there is an empty siphon at the initial marking.
Algorithm 2 Computing if the net is consistent and there are no empty siphons at . |
- Require:
. - Ensure:
If N is consistent and there are no empty siphons - 1:
Compute the token-flow matrix - 2:
Compute the existence of a positive T-semiflow -
- 3:
if has no solution then - 4:
N is not consistent - 5:
else - 6:
N is consistent - 7:
Construct for N as in Theorem 1 - 8:
Find an unmarked siphon: -
- 9:
if has a solution then - 10:
There is at least one empty siphon at - 11:
else - 12:
There are no empty siphons at - 13:
end if - 14:
end if
|
2.3. Timed Continuous Petri Net Systems
If the firing of transitions is timed, the marking of the continuous system evolves deterministically along a trajectory within the set of reachable markings. In this sense, Equation (
2) depends explicitly on time (that is,
), and its time derivative gives the
state equation:
The derivative of the firing count vector is known as the
firing flow or
throughput vector of the timed model
. As already pointed out, in this work, the firing flow is defined using the
infinite servers semantics [
6,
7]:
where
is a mapping known as the
firing rate vector, which assigns to each transition of
N a positive real value.
The firing flow represents the number of transition firings per unit time, i.e., the throughput of the transition. Given a net structure, according to previous equation, it depends on two sets of parameters that may be tuned: the firing rate vector
and the current marking
. Defined by
and
, the structure of the net plays a key role in the possible evolution of the flow, being able to introduce undesirable behaviors (such as non-monotonicity in the equilibrium throughput). In
Section 5, structural objects denoted as
problematic configurations are used to explain these undesirable behaviors. Notice that both
and
directly affect the flow, so it suggests a “kind of duality”. However, this duality is a
weak one, since
is a fixed timed net parameter, while
is changing during the net system evolution. The following sections show the scope of such a duality.
Definition 4. A timed continuous Petri net (TCPN) system is a CPN system together with a firing rate vector λ and it is denoted as .
Due to the min operator in Equation (
4) and the token conservation laws, the marking evolution of a TCPN system can be represented by an
affine positive piecewise linear system [
6]. The following concepts are useful to study their structure and behaviors:
A configuration of a net N is a set of arcs, only one per each transition, such that . The T-coverture of a configuration is , i.e., the places preceding the arcs of .
A configuration
has associated a
configuration matrix where:
A configuration is active at marking if (i.e., if their arcs are constraining the flow of transitions).
A region is a (sub)state space in which a unique configuration is active. Regions constitute a partition—except on the borders—of the full polytope (possibly unbounded) of reachable markings.
The associated net of a configuration is defined as the subnet .
An operation mode or regime of a TCPN system is the linear system (, where is a diagonal matrix) which describes the marking evolution, while evolves within region . At configuration , is the dynamic matrix.
The set of all configurations of a net
N is represented as
, its number being bounded by
. Therefore, a net may contain an exponential number of configurations. As a notation,
is a configuration where
.
Figure 1b has
different configurations. In
Figure 4, we are depicting the induced subnets by four of them.
The dynamic behavior of a TCPN system can be described by the following equations:
Configurations and T-covertures are sets related with the structure of the net N. Both structural objects allow to address some analysis of the system and are key for the results presented in upcoming sections. They are also related to the regions of the CPN system and to the operation modes of the TCPN system .
An equilibrium marking is a state of the TCPN system fulfilling ; its corresponding equilibrium throughput is denoted by . Note that , and , and thus, , and it is a non-negative linear combination of the T-semiflows of the net, no matter which configuration is activated by .
2.4. Mono-T-Semiflow Nets and Performance Properties Relationships
The equilibrium throughput, in the case of MTS systems, is proportional to the unique T-semiflow of the net. Thus, it can be expressed as:
where
is the T-semiflow of the net and
is a scalar function. In other words, the equilibrium throughput is of the form
.
The dynamic behavior of a TCPN system is described by Equations (
4) and (
6). From them, it can be directly derived that, since the dynamic behavior of a TCPN system can be described by Equation (
6)—the marking evolution of
is the solution to that initial value problem—the following well known
homothecy properties are dynamically satisfied [
6]:
If is multiplied by a constant , the reachable markings are multiplied by k and the firing flow will also be k times bigger (or smaller if ).
If is multiplied by a constant , then identical markings will be reached, but the system will evolve k times faster (or slower if ).
We emphasize that in both cases, the whole and are multiplied by k. However, when the value of only one entry of these vectors varies, then the equilibrium throughput could exhibit paradoxical behaviors. This case is analyzed in this work.
3. Bifurcations: Operation Mode Properties
The equilibrium throughput depends on the transition firing rate , the structure of the net , and the equilibrium marking . Now, we illustrate how the behavior of the equilibrium marking of changes in a given region when the transition speed (firing rate or throughput of the machines) varies. In order to do that, a similarity transformation is used to split into the non-zero and zero eigenvalue parts. It easily shows how bifurcations are generated. These concepts are illustrated through examples. Finally, a discussion for a subclass of nets is addressed.
3.1. A Transformation for the Bifurcation Analysis
Unfortunately, as mentioned before, varying the production throughput of machines may lead to paradoxical throughput behaviors of the system, in which the increment of speed of machines or system resources leads to the decrease of the system throughput or abrupt changes of it, even leading to deadlocks. This can be explained using bifurcations.
A
bifurcation of an equilibrium marking takes place when a change of the system parameters produces a change of the qualitative behavior of the equilibrium marking (see references [
14,
18] for technical details). For instance, due to the variation of a firing rate (a parameter of the dynamic matrices of a TCPN system), the equilibrium marking can pass from stable to unstable. This can be verified using the eigenvalues of the dynamic matrices
and observing their relocation from the left half complex plane to the right half complex plane.
The conservation marking laws imposed by the P-flows fix some eigenvalues to zero, making them independent from firing rate variations. Thus, the equilibrium marking bifurcation analysis may be performed on a reduced matrix, where the zero eigenvalues are not considered. This can be easily done by using the following
similarity transformation [
14]:
where
is a matrix composed of a basis of the P-flows and
is an adequate matrix, such that
is invertible, and
.
Hence, the coordinate change is
and the marking derivative in the new coordinates is:
and can be decomposed as:
According to this transformation, the eigenvalues of are those of not associated with the P-flows. Now, this reduced system is used to study if a loss of hyperbolicity occurs by varying the firing rates . The following definition provides a formal statement of these concepts.
Definition 5 ([
14]).
An equilibrium marking, , is said to be hyperbolic
if none of the eigenvalues of the dynamic matrix lie on the imaginary axis. The equilibrium marking bifurcates
when, due to varying a parameter , it loses hyperbolicity. Varying the firing rates of transitions, it is possible to change the eigenvalues of . If the system loss hyperbolicity, a change in the qualitative behavior of the system occurs.
For instance, if the marking of a TCPN system is evolving in a region in which all the eigenvalues of the dynamic matrix (different from the associated with P-semiflows) have a negative real part, the marking will reach zero if it evolves in the same region, reaching a deadlock in the system. A slight variation of the firing rates can change this behavior, so that one of the eigenvalues relies on the imaginary axis. The marking evolving in such region cannot reach zero, thus the equilibrium throughput of the system will be different from zero. Moreover, that slight variation can change one of the eigenvalues, so that its real part is positive. The marking evolving in such a region will increase its value until it reaches another region (if the system is bounded). This is why we can see jumps in the equilibrium throughput due to the firing rate variations.
3.2. Bifurcations in a Manufacturing TCPN Model
Let us introduce intuitively the idea of bifurcation. There can exist path losing/gaining marks when considering a subnet associated with an operation mode. For instance, the places of the subnet in
Figure 5a lose markings if
is fired, while their marking is increased by firing
,
, and
, in that order. As mentioned in
Section 2, every operation mode of a TCPN is a linear system
. Depending on the existence of path losing/gaining marks, the firing rates of transitions may be changed to obtain a stable/unstable linear system. For example, considering the net depicted in
Figure 1b, one of its configurations, its associated subnet, and its dynamic matrix are depicted in
Figure 5.
The dynamic matrix of the operation mode associated with the configuration is
and it is depicted in
Figure 5b, where
is considered as a parameter. Notice that in the subnet shown in
Figure 5a, for example, the total marking is decremented by the firing of
and increased by the firing of
. In the following lines, we explain how this phenomenon is captured by
.
Matrix
has six eigenvalues associated with a basis of P-flows of the net (in this particular case, they are P-semiflows of the net). Of course, all these are independent from
and are equal to zero. A similarity transformation
to obtain a transformed matrix
for the analysis of the remaining eigenvalues is the following. Note that the last six rows are (transposed) minimal P-semiflows of the net.
In order to obtain the eigenvalues of the transformed matrix, the characteristic polynomial of
is obtained:
The eigenvalues of the transformed matrix are the roots of
. Obviously, the transformed matrix has six eigenvalues equal to zero (
), as expected, and they do not depend on
. Moreover,
can be factorized as follows:
Hence, there are three other eigenvalues that do not depend on , and they have the same value . One of these eigenvalues is due to the firing rate of transition (), which determines the velocity of the marking evolution of . In the same way, the firing rate of transition () gives another eigenvalue in .
The other three non-zero eigenvalues depend on the parameter
(the speed of retrieving a part). In
Figure 6, the variation of these three last eigenvalues is depicted. In this case,
. The starting roots (when
) are represented by symbol ‘X’, while the endings (when
) are represented by symbol ‘O’. If we increase
indefinitely, that is
, one of the eigenvalues will increase (
) indefinitely, and the other two will tend to
(this is obtained dividing
by
and obtaining the limit when
). Notice that:
If , the equilibrium marking is hyperbolic (eigenvalues are not on the imaginary axis), and there exists one eigenvalue of located in the right part of the complex plane, that is, the equilibrium marking of the reduced system is unstable within that region. The marking of the T-coverture increases until it reaches another region, activating another configuration.
If , then the previous eigenvalue on the right part of the complex plane is relocated to the imaginary axis of the complex plane (a new zero eigenvalue); thus, the reduced system is non-hyperbolic and, in this case, critically stable.
If , then the eigenvalue goes to the left part of complex plane, and thus, the equilibrium marking becomes hyperbolic and stable, and the marking of the reduced system evolves until it reaches a deadlock.
Consequently, a
bifurcation occurs for
. According to [
12], this marking bifurcation explains the discontinuity of the equilibrium throughput with respect to the firing rate
, which can be seen in
Figure 2b.
3.3. Bifurcations in Timed Join Free and Choice Free Nets
In a Join Free TCPN (JF TCPN), every transition has only one input place (
); thus, JF TCPNs have only one configuration. In a Choice Free TCPN (CF TCPN), every place has only one output transition (
); thus, CF TCPNs have no decision places. If the net is Join-Free (JF) or Choice-Free (CF), bifurcations of the equilibrium marking cannot occur in the TCPN system when the nets are consistent and conservative [
14].
Bifurcations of the equilibrium marking in strongly connected JF TCPN systems may appear due to the variation of some firing rates. As already said, that will be reflected in the eigenvalues of its unique dynamic matrix . Let us illustrate this through the following example, in which the equilibrium marking of the system changes from being unstable to stable.
Example 1. Consider the JF TCPN in Figure 7a with and . It is strongly connected and consistent, but non-conservative (in fact, it has no P-semiflows). Its unique dynamic matrix is: If , then is a full rank matrix, so none of its eigenvalues rely on the imaginary axis (i.e., the only equilibrium marking, , is hyperbolic). In this case, one of them has a positive real part; thus, is unstable.
If , then is singular, and one of its eigenvalues is zero. That is, the equilibrium marking (, with ) is non-hyperbolic.
If , then is a full rank matrix, so is hyperbolic. Specifically, all the eigenvalues have a negative real part; is stable.
Consequently, a bifurcation occurs for .
Nevertheless, if the JF TCPN is conservative, a bifurcation of the equilibrium markings is not possible. It follows from the fact that it cannot have closed paths gaining/losing tokens.
Proposition 2 ([
14]).
Let be a strongly connected JF TCPN system. If N has a P-semiflow, then the equilibrium markings of the system do not bifurcate. The equilibrium markings of the TCPN system
for the net in
Figure 7b do not bifurcate, because
N is consistent and conservative (therefore, structurally live).
The converse of Proposition 2 is not true; consider the net in
Figure 7c. For every
the dynamic matrix of the TCPN system,
, has only eigenvalues with a negative real part. Therefore,
is always hyperbolic; thus, there is no bifurcation value for any
, and the net has no P-semiflow.
When the assumption of strongly connectedness is removed in Proposition 2,
N must be conservative to guarantee that the equilibrium markings of the reduced subsystem do not bifurcate. This is because if
N is not strongly connected and conservative, then it should be not consistent (this is a classical result: Ct & Cv imply strongly connectedness of the net [
2]). Hence, the net is not structurally live, which guarantees that the eigenvalues of the reduced system are in the left half of the complex plane.
Similarly, strongly connected (and thereby conservative) CF TCPN do not exhibit bifucations. The next proposition formalizes this fact.
Proposition 3 ([
14]).
Let be a strongly connected CF TCPN system. If N has a T-semiflow, then the equilibrium markings of the system do not bifurcate. Bifurcations, as well as deadlocks (reviewed in the following sections), are not possible in CF and JF TCPN, which are consistent and conservative. This relationship is due to the fact that P-semiflows are contained in the places associated with every configuration of the net.
5. Configurations, Continuity, and Monotonicity in MTS
Section 4 illustrated how discontinuities imply non-monotonicities in the equilibrium throughput. Now, we will see that undesired behaviors only occur when the equilibrium markings belong to regions of the reachable marking in which the associated T-covertures do not contain the support of a P-semiflow.
For instance, the discontinuity that appears in the equilibrium throughput of our running example (
Figure 1a) occurs when the equilibrium marking belongs to configuration
(see
Figure 4). Its associated net has no P-Semiflows, but there is a P-flow
. Moreover, the deadlocks shown in
Figure 2, either with respect to the initial marking or with respect to the firing rates, have an equilibrium marking belonging to configuration
with associated subnet in
Figure 5a; now, a subnet in which there are no P-Semiflows and no P-flows.
Section 3 showed that with varying
in the net depicted in
Figure 1b, a discontinuity appears in the equilibrium throughput. This is possible because the subnet does not contain a P-flow; hence, no token conservation laws are present in the subnet even if the whole net is conservative. The fact that configurations without P-flows lead to a undesired equilibrium throughput can be generalized, as will be shown in
Section 5. Now, configurations are classified into
suitable or
problematic to systematically study, from a structural point of view (parametrized by the equilibrium marking), the equilibrium throughput behavior in Mono-T-semiflow TCPN systems when the firing rates vary.
Definition 8. A configuration , of an MTS net N, is said to be:
Suitable
if the support of a P-semiflow is contained in its T-coverture:Otherwise, is termed a problematic configuration.
nB-Problematic if its T-coverture does not contain the support of a P-semiflow and it contains the support of a P-flow.
B-Problematic if its T-coverture does not contain the support of P-semiflows nor P-flows.
B- and nB- refer to the existence or nonexistence of
bifurcations (jumps) in the equilibrium throughput, respectively, as already discussed in
Section 3.
Given a configuration of a net, deciding if it is suitable is quite simple. It can be checked using a linear algebraic problem: find if there exists a P-semiflow , whose support belongs to the T-coverture of the configuration, . If the configuration is not suitable, then it remains to be decided if it is B-Problematic or nB-Problematic. This can also be checked with a linear algebraic problem: find if there exists a P-flow , whose support belongs to the T-coverture of the configuration, . If it exists, the configuration is nB-Problematic. This is equivalent to check the rank of the token-flow matrix, if , then the configuration is nB-Problematic; otherwise, it is B-Problematic. Algorithm 3 performs this verification and runs in polynomial time.
In
Figure 4, the first two configurations
and
are suitable since they have a P-semiflow,
and
, respectively. Configuration
is nB-Problematic since it does not have any P-semiflow, but it has the P-flow
. Configuration
is B-Problematic since it has no P-flows (and thus, no P-semiflows).
Definition 9. Let be an MTS TCPN system.
The system is suitable, denoted by , if every reachable equilibrium marking activates a suitable configuration,
The system is nB-Problematic, denoted by , if every reachable equilibrium marking that does not activate a suitable configuration, activates only nB-Problematic configurations.
The system is B-Problematic, denoted as , if there exists a reachable equilibrium marking that does not activate a suitable configuration, but activates a B-Problematic one.
Algorithm 3 Computing the type of a given configuration. |
- Require:
N and configuration . - Ensure:
The type of configuration - 1:
Compute the T-coverture of : . - 2:
Compute the token-flow matrix of the associated subnet: . - 3:
- 4:
if has a solution then - 5:
is suitable - 6:
else - 7:
if then - 8:
is B-problematic - 9:
else - 10:
is nB-problematic - 11:
end if - 12:
end if
|
Figure 10 shows a complete picture of the relationships that exist between the reachable configurations of a system and the equilibrium properties of the equilibrium marking (monotonicity, continuity, and deadlock-free monotonicity), with respect to the initial marking and the firing rates. The upper and lower part of that diagram were discussed in
Section 4.
Discontinuities of the equilibrium throughput, either with respect to the firing rates or with respect to the initial markings, imply the non-monotonicity of the system. In the case of the firing rate variation, the non-monotonicity implies that the equilibrium marking is reaching regions in which the associated configuration is problematic. Moreover, the converse is also true.
Theorem 4 ([
14]).
Let () be an MTS TCPN system. The following two statements are equivalent: For example, continuing with the manufacturing system depicted in
Figure 1. Let the initial marking be fixed to
, and the firing rates
. Increasing the firing rate
, the equilibrium throughput exhibits a discontinuity as can be seen in
Figure 11a. Since this system is discontinuous, according to the relations shown in
Figure 10, it is also non-monotonic. This behavior occurs particularly when the firing rate
is increased, as is illustrated by
Figure 11b. In this last case, the system reaches a deadlock for any
greater than
.
Now, if the initial marking is set to
, one more mark in place
, then the system cannot reach a deadlock for any value of the firing rates. This can be explained thanks to the P-flow
. The invariant law
gives that
, and mathematically implies that the deadlock marking (where all those places must be zero) cannot be reached. The physical meaning is that the number of resources,
, together with the capacity of the processing machine (
and
), are greater than the number of products that the system handles,
. This prevents the blocking situation. Nonetheless, the system is non-monotonic, as can be seen in
Figure 11c.
In these cases, the equilibrium marking reaches regions in which the associated configuration is not suitable. In
Figure 11a,b, a region with B-Problematic configuration
is reached and that is why the discontinuity induced bifurcation and the deadlocks appear (the configuration reached is associated with the subnet in
Figure 5a). This is formalized in the next theorem.
Theorem 5 ([
15]).
Let be an MTS TCPN system with λ fixed and arbitrary. If the equilibrium throughput is not deadlock-free monotonic with respect to , then there exists an equilibrium marking that activates only a B-Problematic configuration. For the case of
Figure 11c, a region with nB-Problematic configuration
is reached and that is why the system presents a decrement of the equilibrium throughput. It is the same subnet of
Figure 5a with the additional place
; this place induces a restriction that prevents the system of reaching the deadlock. This is formalized in the next proposition.
Proposition 6 ([
15]).
Let be an MTS TCPN system with λ fixed and arbitrary. If every reachable equilibrium marking , which does not activate a suitable configuration, activates only an nB-Problematic configuration, then the equilibrium throughput is non-monotonic with respect to . Now, let us set the firing rate to
, and the initial marking to
, where
is taken as a variation parameter. If this initial marking is increased, then the equilibrium throughput exhibits a non-monotonic behavior, as can be seen in
Figure 12. This complements the above explanation that the number of resources, together with the capacity of the machine, should be greater than the products that the system can handle, so that no blocking situations occur.
In this case, the equilibrium marking reaches the region with nB-Problematic configuration (decreasing part of the equilibrium marking), and finally reaches a region associated with the B-Problematic configuration .
As can be seen in Theorems 4 and 5 and Proposition 6, the study of the equilibrium throughput properties depends not only on the type of the configuration (suitable or problematic), but also on the possibility that this configuration becomes activated from the initial marking. As mentioned above, Algorithm 3 decides the type of a configuration; now, Algorithm 4 determines when the configuration can be activated.
Algorithm 4 Computing if a given configuration can be activated by an equilibrium marking. |
- Require:
, configuration . - Ensure:
If configuration may be activated by an equilibrium marking - 1:
Compute the token-flow matrix - 2:
Compute a basis of P-semiflows - 3:
Compute the existence of a reachable equilibrium marking activating : -
: { Find such that
; {Reachable marking} ; {Equilibrium marking} , }; {marking activates configuration }
- 4:
if has a solution then - 5:
may be activated - 6:
else - 7:
cannot be activated - 8:
end if
|
In order to know if a given configuration can be activated, the Algorithm 4 performs a search of a marking that satisfies the following restrictions: is a positive reachable marking, is an equilibrium marking, for every arc of the configuration, the place that restricts the transition flow belongs to the T-coverture. It represents a unique system of linear inequalities that can be solved in polynomial time.
For the TCPN system in
Figure 8a, Algorithm 4 can decide if the problematic configuration
can be activated with
. The system of inequalities is:
For this case, Algorithm 4 finds that the configuration can be activated, because the equilibrium marking is a solution of problem .
Related with Theorem 4, if there exists a marking that can reach a problematic configuration, then the system will be non-monotonic. The system also has the possibility to be non deadlock-free monotonic, as happens when the initial marking is
in the manufacturing system. Algorithm 5 determines if the system can reach a deadlock regardless of the firing rate. It searches for a marking fulfilling the following restrictions:
is a positive reachable marking and every place of the corresponding T-coverture has a zero marking. Again, Algorithm 5 solves a unique system of linear inequalities, and it runs in polynomial time. If for every reachable configuration there are no blocking markings, then the system is deadlock-free monotonic.
Algorithm 5 Computing if there exists a deadlock marking in a given configuration. |
- Require:
, a problematic configuration , matrix configuration . - Ensure:
If there exists a blocking marking - 1:
Compute the token-flow matrix - 2:
Compute a basis of P-semiflows - 3:
Compute the existence of a reachable deadlock marking activating : -
: { Find such that
- 4:
if has a solution then - 5:
is a blocking marking - 6:
else - 7:
There are not blocking markings - 8:
end if
|
From Theorem 5 and Proposition 6, it is possible to derive the following structural result. Referring to
Figure 10, Proposition 6 represents the arrow going from
to
, and Theorem 5 represents the arrow going from
to
B. The meaning of this relation is that if there exists an nB-Problematic configuration in
N, then there exists also a B-Problematic configuration.
Proposition 7 ([
15]).
Let N be an MTS net. If there exists an nB-Problematic configuration, then there exists a B-Problematic configuration. Finally, because of this implication, it is possible to conclude that: a non-monotonic system, with respect to initial marking variations, is also non deadlock-free monotonic.
Theorem 6 ([
15]).
Let be an MTS TCPN system with λ fixed and arbitrary. The equilibrium throughput is a deadlock-free monotonic with respect to iff
it is monotonic with respect to . Reviewing the flow equation
, it could be concluded that both the firing rate
and marking
affects in an analogous way to the system flow (a kind of duality), since
depends directly on both factors. Nevertheless, when
Figure 10 is analyzed in detail, some differences on how the undesired throughput behaviors are related with each other, with initial marking and firing rate variations, appears. This is why it can be seen as a
weak duality.
This happens because, although both are analogously affecting the system flow, once again, the marking evolves with the time while the firing rates remain constant. To clarify this, consider the state equation of the system . Obviously, the matrix is affecting the dynamic matrix of the mode , i.e., affecting the eigenvalues of the dynamic matrix. The initial marking gives the initial condition of the state equation and the marking is evolving according to this equation. Hence, these values play different roles in the system evolution.
6. Reduction Rules
According to what has been previously established, when looking for undesired behaviors in an MTS TCPN system, it is important to see if there exist problematic configurations that can be activated. A first step may be to verify if there are problematic configurations in the net. If there are no problematic configurations, then the considered undesired behaviors cannot appear in the system. Otherwise, the initial marking has to be considered to analyze if the problematic configurations can be activated.
As already mentioned, the number of configurations of a net may be exponential with the net size. Thus, searching for problematic configurations can be computationally expensive. Even if the Algorithm 3 runs in polynomial time, the number of configurations in a net can make the evaluation of every configuration impractical. In this sense, the CPN system may be polynomially pre-processed before the computation of problematic configurations, so that the total number of configurations to be analyzed is reduced. The purpose of this pre-processing is to reduce the computational problem, but the theoretical problem still remains. Nonetheless, it results very useful for many practical systems that can be found in manufacturing systems, chemical reactions, and healthcare systems, among others. Now, a set of reduction rules (see [
16] for a more general and technical presentation) are intuitively explained for very particular cases in order to present an analysis on how to reduce systems maintaining its configuration properties.
As mentioned before, our running example of
Figure 1b has 64 configurations. It is possible to evaluate all these configurations using Algorithm 3 in order to determine if there exist problematic configurations and their type (B- or nB-Problematic). After 64 steps, the algorithm finds (see
Figure 4) that:
Figure 13 shows a reduction process of our running example, which is explained below. The intention of this reductions is to maintain the problematic configurations or the ability to recover them from the reduced net. More importantly, the reductions allow to gain insights about the structures that produce problematic configurations, which cause the undesired behaviors of the equilibrium throughput.
Let us focus first on transition . One can notice that it has one input place (it is said to be essential in the coverture). Hence, every configuration of the net must contain the arc ; thus, every T-coverture of the net contains place . From this fact, it is evident that a problematic configuration cannot contain the arc , because place would be contained in its T-coverture, and and are the support of a P-semiflow. This can be captured using two reduction rules:
A
post-fusion of transitions can be performed for transitions
and
. Their structure is a particular case of the third reduction rule in
Figure 14. It keeps the same number of configurations in the reduced net, and it is possible to establish that every problematic configuration of the reduced net has its corresponding problematic configuration in the original one. A detailed explanation of this fact is exposed in Proposition 4 in [
16].
The reduction of transitions
and
makes (in the neighboring of this part of the reduced net) that
becomes a marked self-loop place. This place can be removed following the idea of the
implicit place for continuous Petri nets discussed in [
19]. This particular structure is a marked P-semiflow of the net, even when it restricts the behavior of the system, its elimination allows to remove several configurations. In this particular case, after the transformation, the reduced net has now 32 configurations in contrast with the 64 configurations of the original one.
Now, paying attention to transition
, one can notice that its input places are
and
. This transition is the only input of place
, which in turn, only have the output transition
. Roughly speaking, the enabling of
depends indirectly on the marking of places
and
. A
pre-fusion of transitions
and
can be performed in the net, obtaining a reduced net in which the T-covertures of the problematic configurations are related to the ones of the original net, except that the “absorved” place
is not present in the T-covertures of the reduced net. This reduction is a particular case of the forth rule depicted in
Figure 14, which is explained in detail in Proposition 5 of [
16].
As in the previous reduction, a self-loop place is obtained after the pre-fusion of those transitions. Once again, this place is structurally implicit (particularly, an isolated and marked P-semiflow) and can be removed. Therefore, a reduced net in which there are 16 configurations is obtained. Again, a post-fusion between transitions and can be performed obtaining a reduced net in which the number of configurations remains (16 configurations).
Transitions
and
together with places
and
form a strongly connected choice-free net, which is also consistent (in particular, it is a simple circuit). Obviously, the P-semiflows inside this subnet should be initially marked, otherwise the system would be blocked. The reduction of this local structure is identified as a
macrotransition according to Definition 14 in [
16]. It is shown as the second rule in
Figure 14. This reduction can be performed in a net maintaining its problematic configurations, because no choice places are removed in it.
The dual concept of the macrotransition is the
macroplace (see the first rule in
Figure 14). In this case, the places and transitions in the identified subnet form a strongly connected join-free net, which is also conservative. The configurations of the reduced net are mostly the same as the original, because no join transitions are removed during the procedure. A detailed discussion about this rule can be found in [
16].
Finally, for the reduced net in
Figure 13e with eight configurations, Algorithm 3 can be applied to decide if these configurations are problematic. This reduced net has one B-Problematic configuration, whose associated T-coverture is
, and one nB-Problematic configuration, whose T-coverture is
.
Now, if we want to obtain the problematic configurations of the original net from the reduced one, this can be done going backwards in the transformation path carried out.
From the net in
Figure 13e, configuration
is B-Problematic. Its T-coverure is
, where we can see that places
,
, and
are not part of the problematic configuration in the reduced net, and thus, they are not in the original one.
From the net in
Figure 13d, if
and
are not used, then necessarily,
and
should be in the original problematic T-coverture. Thus, the recovered T-coverture at this point is
.
From the net in
Figure 13c, we can see that place
is an essential cover of the net; thus, it should be in the original T-coverture. Hence, the recovered T-coverture at this point is
.
From the net in
Figure 13b, places
and
cannot be part of the problematic configuration, they represent P-semiflows in this net. Hence, the T-coverture at this point is
.
From the net in
Figure 13a, place
is an essential cover, so it must be in the configuration. The previously removed place
was involved in a pre-fusion of transitions, which in this net means that place
(“absorved” in the pre-fusion) cannot be used. In this net, either place
or
can restrict the flow of transition
. Hence, we have two B-Problematic configurations,
and
.
These last configurations are the two B-Problematic configurations that the original net has. A similar procedure can be carried out to obtain the nB-Problematic configuration of the original net from the reduced one.
These reductions provide an important insight about the roots of undesired behaviors. In particular, these reductions maintain the problematic configurations of those having choice places interacting inadequately with join transitions. In our running example, one B-Problematic configuration of the reduced net “captures” two B-Problematic configurations of the original net. This is because both configurations have the same problem in common, namely, the interaction between
and
is not adequate. A further discussion of this fact is also presented in [
16].
7. Concluding Remarks
Equilibrium throughput is a performance index of manufacturing systems that measures in “steady state” the quantity of goods fabricated per unit time. When the manufacturing system is modeled as a TCPN, then the equilibrium throughput represents the transition flow. This flow depends on the net structure, the firing rate of transitions, and the TCPN initial marking. Given a net structure, from an engineering point of view, both the firing rate and the marking can be varied to modify the equilibrium throughput. However, despite the simple formula of the equilibrium throughput , this work illustrated that a careful analysis must be carried out when those parameters vary. In fact, they may lead to very complex behaviors of the TCPN equilibrium throughput.
In particular, this work showed that the structural objects named problematic configurations are responsible that varying the initial marking or firing rate of transitions the equilibrium throughput of the net exhibits paradoxical behaviors, such as non-monotonicities and discontinuities. To explain those behaviors, we start by delineating how the equilibrium marking varies when the firing rate of transitions changes. In this case, the state equation is used. This work points out that when there exist closed paths gaining/losing tokens and the firing rate of the transitions varies, the equilibrium marking may exhibit jumps, generating undesired behaviors, such as discontinuities and non-monotonicities, in the equilibrium throughput with respect to the variation of firing rates.
The structural objects named problematic configurations are considered to formally explain how the structure of the net determines the undesired behaviors in the equilibrium throughput. Those configurations highlight how the net structure participates in the generation of discontinuities and non-monotonicities in the equilibrium throughput when they vary the initial marking, , or firing rates of transitions, .
Herein, we show that when the equilibrium marking exhibits a discontinuity w.r.t. firing rate variations, then it is non-monotonic w.r.t. firing rate variations, i.e., increasing the speed of the resources reduced the equilibrium throughput, which is an undesired effect. Moreover, if the equilibrium is not deadlock free w.r.t. firing rate variations, then it is non-monotonic w.r.t. firing rate variations. Similar properties are found when the initial marking varies instead of the firing rate.
It is worth to note that the number of configurations may grow exponentially in the number of join transitions. Nevertheless, a procedure to reduce the net, preserving the undesired equilibrium throughput behaviors, is described. It allows to face the problem of finding out a problematic configuration in a reasonable amount of computational time.