1 Introduction and motivation

TEGs are a subclass of timed Petri nets where each place has exactly one input and one output transition and all arcs have weight 1. Timed Event Graphs under Partial Synchronization (TEGsPS) are an extension of TEGs introduced in David-Henriet et al. (2014). A similar extension was introduced in De Schutter and van den Boom (2003), where TEGs with hard and soft synchronization are studied. TEGsPS can express some time-variant phenomena which cannot be expressed by standard TEGs. For instance, partial synchronization (PS) is useful to model systems where particular events can only occur in a specific time window. E.g., at an intersection, a vehicle can only cross when the traffic light is green. Clearly this describes a time-variant behavior, since the vehicle is delayed by a time that depends on its time of arrival at the intersection. If an earliest functioning rule is adopted, the behavior of a TEG can be modeled by linear equations in a specific algebraic structure called dioid. Based on such dioids, a general theory has been developed for performance evaluation and control of TEGs, e.g. Baccelli et al. (1992) and Heidergott et al. (2005). In particular, the problem of output reference control for TEGs was studied in Baccelli et al. (1992); Cohen et al. (1989); Menguy et al. (1998, 2000). Recently, in David-Henriet et al. (2014, 2015, 2016), dioid theory has been applied to TEGsPS and first results have been obtained for performance evaluation and controller synthesis for TEGsPS. In David-Henriet et al. (2014) output reference control was introduced for TEGsPS. There, the earliest evolution of a Timed Event Graph under Partial Synchronization (TEGPS) is modeled as a (max,+)-system with additional constraints. The control problem is then solved for a finite reference output by solving the backward equation for this (max,+)-system. In Hamaci et al. (2006) and Trunk et al. (2017b) output reference control was studied for TEGs with positive integer weights on the arcs. These TEGs exhibit event-variant behavior and can therefore be seen as the counter-part to TEGsPS.

In this paper we investigate TEGsPS where partial synchronization is periodic. To consider only periodic partial synchronization is not overly restrictive as periodic schedules are common in many applications. E.g. in transportation networks: many public transportation system as well as freight railway services work with a periodic schedule. Similarly in manufacturing systems: there are many production processes, where a resource is shared between several machines on the basis of a periodic schedule. We show that for TEGsPS with periodic PS the dynamic behavior can be modeled in a specific dioid called \(\mathcal {T}_{per} [\![ \gamma ]\!]\). A specific time-variant operator is introduced to take PS into account. Similar to transfer functions for standard TEGs in the dioid \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), the transfer behavior of TEGsPS is described by ultimately cyclic series in the dioid \(\mathcal {T}_{per} [\![ \gamma ]\!]\). These transfer functions are useful, for instance, for computing the output for a given input of a system, for system composition and for control synthesis.

This paper is organized as follows: Section 2 summarizes the necessary facts on TEGsPS and dioid theory. In Section 3, modeling of TEGsPS in the dioid \(\mathcal {T}_{per} [\![ \gamma ]\!]\) is introduced. Section 4 discusses a decomposition method for elements in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) and provides tools to handle operations on ultimately cyclic series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\). In particular, we show that basic operations on ultimately cyclic series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) can be reduced to operations between matrices in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). In Section 5, transfer functions for TEGsPS in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) are used to solve the optimal output reference control problem for this system class.

A preliminary version of this work has been reported in Trunk et al. (2018), where the modeling process of a TEGPS in the dioid \(\mathcal {T}_{per} [\![ \gamma ]\!]\) was established and a decomposition into an invertible time-variant and a time-invariant part was discussed. The purpose of this paper is to introduce optimal output reference control for TEGsPS based on the model in the dioid \(\mathcal {T}_{per} [\![ \gamma ]\!]\). As a prerequisite, results on the residuation of the product in the dioid \(\mathcal {T}_{per} [\![ \gamma ]\!]\) are obtained.

2 Timed event graphs and dioids

2.1 Timed event graphs

In the following, we briefly recall the necessary facts on TEGs. For details, see Baccelli et al. (1992) and Heidergott et al. (2005). A TEG consists of a set of places P = {p1,⋯,pn}, a set of transitions T = {t1,⋯,tm} and a set of arcs \(A\subseteq (P\times T)\cup (T \times P)\), all with weight 1. Place pi is an upstream place of transition tj (and transition tj is a downstream transition of place pi), if (pi,tj) ∈ A. Conversely, pi is a downstream place of transition tj (and tj is an upstream transition of place pi), if (tj,pi) ∈ A. For TEGs, each place pi has exactly one upstream transition and exactly one downstream transition. Moreover, each place pi exhibits an initial marking \((\boldsymbol {{\mathcal{M}}}_{0})_{i} \in \mathbb {N}_{0}\) and a holding time \((\boldsymbol {\phi })_{i} \in \mathbb {N}_{0}\). A transition tj is said to be enabled, if the marking in every upstream place is at least 1. When tj fires, the marking \((\boldsymbol {{\mathcal{M}}})_{i}\) in every upstream place pi is reduced by 1 and the marking \((\boldsymbol {{\mathcal{M}}})_{o}\) in every downstream place po is increased by 1. The holding time (ϕ)i is the time a token must remain in place pi before it contributes to the firing of the downstream transition of pi. The set T of transitions is partitioned into input transitions, i.e., transitions without upstream places, output transitions, i.e., transitions without downstream places and internal transitions, i.e., transitions with both upstream and downstream places. We say that a TEG is operating under the earliest functioning rule, if all internal and output transitions are fired as soon as they are enabled.

2.2 Timed event graphs under partial synchronization

TEGsPS provide a suitable model for some time-variant discrete event systems. In the following, we give a brief introduction. For further information the reader is invited to consult (David-Henriet et al. 2014). Considering the TEG in Fig. 1a, assuming the earliest functioning rule, incoming tokens in place p1 are immediately transferred to place p2 by the firing of transition t2, as the holding time of place p1 is zero. Note that zero holding times are, by convention, not indicated in visual illustrations of TEGs. In contrast, Fig. 1b illustrates a TEG with PS of transition t2 by transition ta. This means that t2 can only fire if ta fires, but the firing of ta does not depend on t2.

Fig. 1
figure 1

a standard TEG. b PS of t2 by ta, triggered every ω time units. c equivalent PS expressed by a signal Sω

In this example, place p3 (equipped with a holding time of ω) and transition ta, together with the corresponding arcs, constitute an autonomous TEG. Under the earliest functioning rule, the firings of transition ta generate a periodic signal \(\mathcal {S}_{\omega }\) with a period \(\omega \in \mathbb {N}\). Therefore, the PS of t2 by ta can also be described by a predefined signal \(\mathcal {S}_{\omega }\): \(\mathbb {Z} \rightarrow \{0,1\}\), enabling the firing of t2 at times t where \(\mathcal {S}_{\omega }(t)= 1\). In particular, \(\mathcal {S}_{\omega }(t) = 1 \text { if } t \in \{j\omega \ \text {with } j\in \mathbb {Z}\}\) and 0 otherwise.

Definition 1

A periodic signal \(\mathcal {S}:\mathbb {Z} \rightarrow \{0,1\}\) is defined by a string 〈n0,n1,⋯,nI〉, with \(n_{i} \in \mathbb {N}_{0}, 0\leq i\leq I\) and a period \(\omega \in \mathbb {N}\), such that \(\forall j\in \mathbb {Z}\)

$$ \mathcal{S}(t) = \left\{\begin{array}{lll} 1 \qquad \text{if } t \in \{n_{0}+\omega j, n_{1}+\omega j,\cdots,n_{I}+\omega j \}, \\ 0 \qquad \text{otherwise}, \end{array}\right. $$

where the string 〈n0,n1,⋯,nI〉 is strictly increasing, i.e., ∀i ∈{1,⋯,I}, ni− 1 < ni, and nI < ω.

Example 1

The signal

$$ \mathcal{S}_{1}(t) = \left\{\begin{array}{lll} 1 &\text{if } t \in \{{\cdots} ,-4,-3,0,1,4,5,8,9,{\cdots} \}, \\ 0 &\text{otherwise}, \end{array}\right. $$

is a periodic signal with a period ω = 4 and a string 〈0,1〉. Therefore \(\forall j \in \mathbb {Z}\),

$$ \mathcal{S}_{1}(t) = \left\{\begin{array}{lll} 1 &\text{if } t \in \{0+4j,1+4j \}, \\ 0 &\text{otherwise}. \end{array}\right. $$
(1)

Definition 2

A Timed Event Graph under periodic partial synchronization is a TEG where the firings of some internal and output transitions are synchronized with periodic signals.

Note that the assumption that only internal and output transitions are subject to PS is not restrictive since we can always add new input transitions and extend the set of internal transitions by the former input transitions. In David-Henriet et al. (2015), ultimately periodic signals are considered for PS of transitions. It was shown that the behavior of a TEGPS with such synchronization signals can be described by recursive equations in state space form. In this work, we focus on (immediately) periodic signals for PS of transitions. To consider only periodic PS allows us to define a dioid of operators to describe the behavior of TEGsPS. In particular, we can show that the transfer behavior of a TEGPS is described by a rational power series of an ultimately cyclic form. Let us note that focusing on periodic signals for a PS of a transition is not overly restrictive as periodic schedules are common in many applications.

Example 2

Let us consider a simple supply chain between two factories. Factory 1 is a supplier for factory 2. The products of factory 1 are transported via a train connection to factory 2. This simple supply chain is modelled by the TEG under periodic PS shown in Fig. 2, with periodic PS of transition t2 by the signal, \(\forall j\in \mathbb {Z}\)

$$ \mathcal{S}_{2}(t) = \left\{\begin{array}{lll} 1 &\text{if } t \in \{1+ 20j \}, \\ 0 &\text{otherwise}. \end{array}\right. $$
Fig. 2
figure 2

Example of a TEGPS

Transition t1 models the issue of the goods at factory 1 and transition t4 the receipt of goods at factory 2. Transition t2,t3 and places p2,p3 model the train line between the factories. The holding time of 10 time units of place p3 models the travel time of trains between the factories. The 2 initial tokens in place p2 describe the maximal capacity of the trains. The schedule of the trains is modelled by the signal \(\mathcal {S}_{2}\), hence every 20 time units there is a train leaving from factory 1. We will recall this example again in Section 5 and demonstrate how ”just-in-time” control for this supply chain can be computed using the methods developed in this paper.

2.3 Dioids

A dioid \(\mathcal {D}\) is an algebraic structure with two binary operations, ⊕ (addition) and ⊗ (multiplication). Addition is commutative, associative and idempotent (i.e. \(\forall a \in \mathcal {D},\ a \oplus a = a\)). The neutral element for addition, denoted by ε, is absorbing for multiplication (i.e., \(\forall a \in \mathcal {D},\ a \otimes \varepsilon = \varepsilon \otimes a = \varepsilon \)). Multiplication is associative, distributive over addition and has a neutral element denoted by e. The element e (resp, ε) is called unit (resp. zero) element of the dioid.

Note that, as in conventional algebra, the multiplication symbol ⊗ is often omitted. A dioid \(\mathcal {D}\) is said to be complete if it is closed for infinite sums and if multiplication distributes over infinite sums. A complete dioid is a partially ordered set, with a canonical order ≽ defined by ab = aab. The infimum operator can then be defined by \(a,b \in \mathcal {D}\), \(a \wedge b = \bigoplus \{ x \in \mathcal {D} \ | x\oplus a\preceq a, x\oplus b \preceq b \}\). Moreover, in a complete dioid, the Kleene star of an element \(a \in \mathcal {D}\), denoted a, is defined by \(a^{*} = {\bigoplus }_{i= 0}^{\infty }a^{i}\) with a0 = e and ai+ 1 = aai. Let \(\mathcal {C}\subseteq \mathcal {D}\) then \(\mathcal {C}\) is a subdioid of \(\mathcal {D}\) if e and ε are in \(\mathcal {C}\) and \(\mathcal {C}\) is closed for ⊕ and ⊗.

Theorem 1

(Baccelli et al. 1992) In a complete dioid \(\mathcal {D}\), x = ab is the least solution of the implicit equation x = axb.

Here, the adjective ”least” refers to the canonical order in the dioid described above.

Both multiplication and addition on a (complete) dioid \(\mathcal {D}\) can be readily extended to the matrix case: for matrices \(\boldsymbol {A},\boldsymbol {B} \in \mathcal {D}^{m\times n},\ \boldsymbol {C} \in \mathcal {D}^{n\times q}\) and a scalar \(\lambda \in \mathcal {D}\), matrix addition and multiplication are defined by

$$ \begin{array}{@{}rcl@{}} &&(\boldsymbol{A} \oplus \boldsymbol{B})_{i,j} := (\boldsymbol{A})_{i,j} \oplus (\boldsymbol{B})_{i,j},\quad (\lambda \otimes \boldsymbol{A})_{i,j} := \lambda \otimes(\boldsymbol{A})_{i,j},\\ &&(\boldsymbol{A} \otimes \boldsymbol{C})_{i,j} := {\bigoplus\limits_{k = 1}^{n}} ((\boldsymbol{A})_{i,k} \otimes {(\boldsymbol{C})}_{k,j}). \end{array} $$

Moreover, the order relation on matrices of the same dimension is understood elementwise, i.e. AB iff (A)i,j ≽ (B)i,j,∀i,j. The identity matrix, denoted by I, is a square matrix with elements e on the diagonal and ε otherwise.

2.4 Complete dioids and residuation theory

Residuation theory is a formalism to address the problem of approximate mapping inversion over ordered sets (Baccelli et al. 1992). It applies to complete dioids, since a complete dioid \(\mathcal {D}\) is a partially ordered set.

Definition 3

(Baccelli et al. 1992) A mapping \(f:\mathcal {D}\rightarrow {\mathcal{L}}\), with \(\mathcal {D}\) and \({\mathcal{L}}\) complete dioids, is residuated if \(\forall b \in {\mathcal{L}}\) the inequality f(x) ≼ b has a greatest solution in \(\mathcal {D}\), denoted f(b). The mapping \(f^{\sharp } :{\mathcal{L}}\rightarrow \mathcal {D}\), is called the residual of f.

Theorem 2

(Baccelli et al. 1992) A mapping \(f:\mathcal {D}\rightarrow {\mathcal{L}}\), with \(\mathcal {D}\) and \({\mathcal{L}}\) complete dioids, is residuated iff f(ε) = ε and f is lower-semicontinuous, that is

$$ f\left( \bigoplus\limits_{x \in X} x \right) = \bigoplus\limits_{x \in X}f(x), $$

for every (finite or infinite) subset X of \(\mathcal {D}\).

On a complete dioid the mapping Ra : xxa, (right multiplication by a) resp. La : xax (left multiplication by a), is lower-semicontinuous and therefore residuated. The residual mappings are denoted (right division by a) and (left division by a). Left and right division can be extended to the matrix case. For matrices \(\boldsymbol {A}\in \mathcal {D}^{m\times n} ,\boldsymbol {B} \in \mathcal {D}^{m\times q},\ \boldsymbol {C} \in \mathcal {D}^{n\times q}\)

In the following some useful properties of left and right division are summarized, for a proof see Baccelli et al. (1992) or the recent summary paper (Hardouin et al. 2018). For \(a,b,x \in \mathcal {D}\) and \(\mathcal {D}\) a complete dioid,

3 Modeling of TEGs under PS in the Dioid \(\mathcal {T} [\![ \gamma ]\!]\)

To model TEGsPS, a dater function \(x_{i}: \mathbb {Z}\rightarrow \mathbb {Z}_{max}:= \{\mathbb {Z} \}\cup \{ \infty \}\cup \{ -\infty \} \) is associated to each transition ti. The value xi(k) gives the date (time) when transition ti fires the (k + 1)st time. Naturally, dater functions are nondecreasing functions, i.e., xi(k + 1) ≥ xi(k). The set of dater functions is denoted by Σ. On Σ, addition and multiplication by a constant are defined as follows:

$$ \begin{array}{@{}rcl@{}} &&x,y\in {\Sigma},\ (x \tilde{\oplus} y)(k) := \max(x(k),y(k)), \\ &&\lambda \in \mathbb{Z}_{max},\ (\lambda \tilde{\otimes} x)(k) := \lambda + x(k). \end{array} $$

The zero element \(\tilde {\varepsilon }\) on Σ is defined by \(\tilde {\varepsilon }(k) = - \infty ,\ \forall k \in \mathbb {Z}\). The \(\tilde {\oplus }\) operation induces an order relation on Σ, i.e., for \(x,y \in {\Sigma },\ x\preceq y \Leftrightarrow x \tilde {\oplus } y = y\). In this order, the top element \(\tilde {\top }\) is defined by \(\tilde {\top }(k) = +\infty ,\ \forall k \in \mathbb {Z}\). An operator, i.e., a map, \(o:{\Sigma } \rightarrow {\Sigma }\) is linear if (a) \(\forall x,y \in {\Sigma } : o(x \tilde {\oplus } y)= o(x)\tilde {\oplus } o(y)\) and (b) \(\lambda \tilde {\otimes } o(x)\ = o(\lambda \tilde {\otimes } x)\). An operator is additive if (a) is satisfied. Let \(\mathcal {O}\) denote the set of all operators \(o:{\Sigma } \rightarrow {\Sigma } \). Moreover, let \(\mathcal {O}_{a}\) denote the subset of all additive operators in \(\mathcal {O}\).

Proposition 1

(Cottenceau et al. 2014) The set \(\mathcal {O}_{a}\) equipped with addition and multiplication: \(x \in {\Sigma }, \forall o_{1},o_{2} \in \mathcal {O}_{a}\),

$$ (o_{1} \oplus o_{2} )(x) := o_{1}(x)\tilde{\oplus} o_{2}(x), \ (o_{1} \otimes o_{2})(x) := o_{1}(o_{2}(x) ), $$
(6)

is a noncommutative complete dioid. The identity operator (unit element) is denoted by e: ∀x ∈Σ, e(x) = x, the zero operator (zero element) is denoted by ε: \(\forall x \in {\Sigma }, \ \varepsilon (x) = \tilde {\varepsilon }\) and the top operator (top element) is denoted by ⊤: \(\forall x \in {\Sigma } \backslash \{\tilde {\varepsilon } \}, \ \top (x) = \tilde {\top }\).

To simplify notation, we write ox instead of o(x) wherever clear from the context.

Definition 4 (Basic operators in \(\mathcal {O}\))

Dynamic phenomena arising in TEGsPS can be described by the following basic operators in \(\mathcal {O}\):

$$ \begin{array}{@{}rcl@{}} &\tau \in \mathbb{Z},\ {\delta}^{\tau}: \forall x \in {\Sigma}, \ ({\delta}^{\tau} x)(k) = x(k)+\tau, \end{array} $$
(7)
$$ \begin{array}{@{}rcl@{}} &\eta \in \mathbb{Z},\ {\gamma}^{\eta}: \forall x \in {\Sigma}, \ ({\gamma}^{\eta} x)(k) = x(k-\eta), \end{array} $$
(8)
$$ \begin{array}{@{}rcl@{}} &\omega,\varpi \in \mathbb{N},\ {\varDelta}_{\omega|\varpi}: \forall x \in {\Sigma}, \ ({\varDelta}_{\omega|\varpi} x)(k) = \lceil x(k)/\varpi \rceil\omega, \end{array} $$
(9)

where ⌈a⌉ is the smallest integer greater than or equal to a.

It can be easily checked that all these operators are additive, i.e., \( {\delta }^{\tau },{\gamma }^{\eta },{\varDelta }_{\omega |\varpi }\in \mathcal {O}_{a}\). The time- and event-shift operator δ and γ are used to model the dynamic behavior of standard TEGs, e.g., Baccelli et al. (1992). In addition we introduce the Δω|ϖ operator to consider phenomena caused by PS.

Proposition 2

(Trunk et al. 2018) The basic operators satisfy the following relations

$$ \begin{array}{@{}rcl@{}} {\gamma}^{\eta}\oplus {\gamma}^{\eta^{\prime}} &=& {\gamma}^{\min(\eta,\eta^{\prime})},\qquad {\delta}^{\tau}\oplus {\delta}^{\tau^{\prime}} = {\delta}^{\max(\tau,\tau^{\prime})}, \end{array} $$
(10)
$$ \begin{array}{@{}rcl@{}} {\gamma}^{\eta}\otimes {\gamma}^{\eta^{\prime}} &=& {\gamma}^{\eta+\eta^{\prime}},\qquad\quad {\delta}^{\tau} \otimes {\delta}^{\tau^{\prime}} = {\delta}^{\tau +\tau^{\prime}}, \end{array} $$
(11)
$$ \begin{array}{@{}rcl@{}} {\varDelta}_{\omega|\varpi}\otimes {\delta}^{\varpi} &=& {\delta}^{\omega}\otimes {\varDelta}_{\omega|\varpi}. \end{array} $$
(12)

Remark 1

Equation 12 implies that for − b < τ ≤ 0, \({\varDelta }_{\omega |b} {\delta }^{\tau } {\varDelta }_{b|\varpi } ={\varDelta }_{\omega |\varpi }\), since,

$$ \begin{array}{@{}rcl@{}} ({\varDelta}_{\omega|b} {\delta}^{\tau} {\varDelta}_{b|\varpi}x)(k) &=& \left\lceil \frac{ \lceil x(k)/ \varpi \rceil b + \tau} {b} \right\rceil \omega = \left\lceil \left\lceil \frac{ x(k)}{\varpi} \right\rceil +\frac{\tau }{b}\right\rceil \omega\\ &=& \left\lceil \frac{ x(k)}{\varpi} \right\rceil\omega \quad \text{since }-1< \tau/b \leq 0,\\ &=& ({\varDelta}_{\omega|\varpi}x)(k). \end{array} $$

3.1 Dioid of time operators \(\mathcal {T}\)

In the following, we introduce a dioid of specific time operators in order to model the time-variant behavior of periodic PS.

Definition 5 (Dioid of T-operators \(\mathcal {T}\))

We denote by \(\mathcal {T}\) the dioid of operators obtained by addition and composition of operators in \((\varepsilon , \mathrm {e}, {\delta }^{\varsigma },{\varDelta }_{\omega |\varpi }, \top )\) with \(\varsigma \in \mathbb {Z}\), and \(\omega ,\varpi \in \mathbb {N}\). The elements of \(\mathcal {T}\) are called T-operators (T is for time).

For example, \({\delta }^{3}{\varDelta }_{4|4}{\delta }^{1}{\varDelta }_{3|2} \in \mathcal {T}\). Since a T-operator only describes a time relation in a system, e.g., a delay, we can associate a function \(\mathcal {R}_{v}: \mathbb {Z}_{max}\rightarrow \mathbb {Z}_{max}\) to a T-operator v. This function, when evaluated on t, is obtained by replacing x(k) by t in the expression of v(x)(k). For example, \((({\varDelta }_{3|4}{\delta }^{1}\oplus {\delta }^{2}{\varDelta }_{3|3})x)(k) = {\max \limits } (\lceil (x(k)+1)/4 \rceil 3, 2+\lceil x(k)/3 \rceil 3)\) and therefore \(\mathcal {R}_{{\varDelta }_{3|4}{\delta }^{1}\oplus {\delta }^{2}{\varDelta }_{3|3}}(t) = \max \limits (\lceil (t+1)/4 \rceil 3, 2+\lceil t/3 \rceil 3)\). The interpretation of \(\mathcal {R}_{v}\) is as follows. Let x1, respectively x2, be the dater functions associated with transitions t1, respectively t2. If v maps x1 to x2, then \(\mathcal {R}_{v}\) maps the time of the (k + 1)st firing of t1 into the time of the (k + 1)st firing of t2. \(\mathcal {R}_{v}\) is therefore called the release-time function associated to the T-operator v. We denote by \({\mathcal{R}}\) the set of functions \(\mathcal {R}_{v}\) generated by all operators v in \(\mathcal {T}\). Clearly, there is an isomorphism between the set of T-operators and the set \({\mathcal{R}}\). The order relation over the dioid \(\mathcal {T}\) corresponds to the order induced by the \(\max \limits \) operation on \({\mathcal{R}}\).

For \(v_{1}, v_{2} \in \mathcal {T}\),

$$ \begin{array}{@{}rcl@{}} v_{1} \succeq v_{2} &\Leftrightarrow& v_{1} \oplus v_{2} = v_{1} \Leftrightarrow v_{1}x\tilde{\oplus} v_{2}x = v_{1}x,\ \ \forall x \in {\Sigma}, \\ &\Leftrightarrow& \max \left( (v_{1}x )(k), (v_{2}x)(k)\right) = (v_{1}x)(k),\ \ \forall x \in {\Sigma}, \ \forall k \in \mathbb{Z}, \\ &\Leftrightarrow& \mathcal{R}_{v_{1}}(t) \geq \mathcal{R}_{v_{2}}(t),\ \ \forall t\in \mathbb{Z}_{max}. \end{array} $$
(13)

Definition 6 (Periodic T-operators)

A T-operator \(v\in \mathcal {T}\) is said to be ω-periodic if its corresponding function \(\mathcal {R}_{v}\) is quasi-ω-periodic, i.e., \(\exists \omega \in \mathbb {N}\) such that \(\forall t \in \mathbb {Z}_{max},\ \mathcal {R}_{v}(t+\omega ) = \omega +\mathcal {R}_{v}(t)\). The set of ω-periodic T-operators is denoted by \(\mathcal {T}_{\omega }\). Moreover the set of periodic operators is defined by \(\mathcal {T}_{per} = \bigcup _{\omega \in \mathbb {N}} \mathcal {T}_{\omega }\).

$$ \mathcal{T}_{\omega} \text{ and }\mathcal{T}_{per} \text{ are subdioids of } \mathcal{T}. $$

Example 3

The operator Δ4|4 is 4-periodic and the operator \({\varDelta }_{3|3}{\delta }^{2}\) is 3-periodic as \(\mathcal {R}_{{\varDelta }_{4|4}}(t) = \lceil t/4 \rceil 4 \) and \(\mathcal {R}_{{\varDelta }_{3|3}{\delta }^{2}}(t) = \lceil (t +2)/3 \rceil 3 \). Therefore \({\varDelta }_{4|4} \in \mathcal {T}_{4}\), \({\varDelta }_{3|3}{\delta }^{2} \in \mathcal {T}_{3}\). Evidently, both operators are also 12-periodic and therefore \({\varDelta }_{4|4},{\varDelta }_{3|3}{\delta }^{2} \in \mathcal {T}_{12}\).

Proposition 3

(Trunk et al. 2018) An ω-periodic T-operator \(v\in \mathcal {T}_{\omega }\) has an ω-periodic canonical form given by a finite sum \({\bigoplus }_{i=1}^{I}{\delta }^{\tau _{i}}{\varDelta }_{\omega |\omega }{\delta }^{\tau _{i}^{\prime }}\), where τi < τi+ 1i ∈{1,⋯,I − 1}, Iω and \(-\omega < \tau _{i}^{\prime } \leq 0, \forall i \in \{1, {\cdots } ,I\}\).

Remark 2

Clearly each ω-periodic operator \(v\in \mathcal {T}_{per}\) is also nω-periodic with n ≥ 1 and can be represented as \({\bigoplus }_{i=1}^{I}{\delta }^{\tau _{i}}{\varDelta }_{n\omega |n\omega }{\delta }^{\tau _{i}^{\prime }}\) and Inω.

Proposition 4

The 1-periodic identity operator e = Δ1|1 can be represented in the specific form,

$$ \mathrm{e} = \bigoplus\limits_{i=0}^{\omega-1} {\delta}^{-i} {\varDelta}_{\omega|\omega}{\delta}^{1+i-\omega}. $$
(14)

Proof

Recall the isomorphism between T-operators and the set \({\mathcal{R}}\). Hence it is sufficient to show that \(\mathcal {R}_{\mathrm {e}} =\mathcal {R}_{{\bigoplus }_{i=0}^{\omega -1} {\delta }^{-i} {\varDelta }_{\omega |\omega }{\delta }^{1+i-\omega }} \). Moreover, since \(\forall t \in \mathbb {Z}_{max}, \mathcal {R}_{\mathrm {e}}(t) = t\), it remains to show that \(\forall t \in \mathbb {Z}_{max}, \mathcal {R}_{{\bigoplus }_{i=0}^{\omega -1} {\delta }^{-i} {\varDelta }_{\omega |\omega }{\delta }^{1+i-\omega }}(t) = t\).

$$ \begin{array}{@{}rcl@{}} \mathcal{R}_{{\bigoplus}_{i=0}^{\omega-1} {\delta}^{-i} {\varDelta}_{\omega|\omega}{\delta}^{1+i-\omega}}(t) &=& \max \left( \left\lceil\frac{t+1-\omega}{\omega} \right\rceil \omega, \left\lceil\frac{t+2-\omega}{\omega} \right\rceil \omega-1, \right.\\ &\cdots&\left. \left\lceil\frac{t}{\omega} \right\rceil \omega - (\omega-1) \right). \end{array} $$
(15)

Because \(\mathcal {R}_{{\bigoplus }_{i=0}^{\omega -1} {\delta }^{-i} {\varDelta }_{\omega |\omega }{\delta }^{1+i-\omega }}(t)\) is a quasi ω-periodic function, Definition 6, it is sufficient to evaluate Eq. 15 for t = {1 − ω,⋯ ,0}. This leads to,

$$ \begin{array}{@{}rcl@{}} \mathcal{R}_{{\bigoplus}_{i=0}^{\omega-1} {\delta}^{-i} {\varDelta}_{\omega|\omega}{\delta}^{1+i-\omega}}(0) &= \max \left( \left\lceil\frac{1-\omega}{\omega} \right\rceil \omega, \left\lceil\frac{2-\omega}{\omega} \right\rceil \omega-1, \cdots, \left\lceil\frac{0}{\omega} \right\rceil \omega - (\omega-1)\! \right)\\ &= 0 \\ \mathcal{R}_{{\bigoplus}_{i=0}^{\omega-1} {\delta}^{-i} {\varDelta}_{\omega|\omega}{\delta}^{1+i-\omega}}(-1) &= \max \left( \left\lceil\frac{-\omega}{\omega} \right\rceil \omega, \left\lceil\frac{1-\omega}{\omega} \right\rceil \omega-1, \cdots, \left\lceil\frac{-1}{\omega} \right\rceil \omega - (\omega-1)\! \right)\\ &= -1\\ &\cdots\\ \mathcal{R}_{{\bigoplus}_{i=0}^{\omega-1} {\delta}^{-i} {\varDelta}_{\omega|\omega}{\delta}^{1+i-\omega}}(1-\omega) &= \max \left( \left\lceil\frac{2-2\omega}{\omega} \right\rceil \omega, \left\lceil\frac{3-2\omega}{\omega} \right\rceil \omega-1, \cdots, \left\lceil\frac{1-\omega}{\omega} \right\rceil \omega - (\omega-1)\! \right)\\ &= 1-\omega. \end{array} $$

Example 4

The identity operator e = Δ1|1 can be represented as \(\mathrm {e} = {\varDelta }_{3|3}{\delta }^{-2} \oplus {\delta }^{-1}{\varDelta }_{3|3}{\delta }^{-1} \oplus {\delta }^{-2}{\varDelta }_{3|3}\). Figure 3 illustrates that indeed \(\mathcal {R}_{\mathrm {e}}(t)= \mathcal {R}_{{\varDelta }_{3|3}{\delta }^{-2} \oplus {\delta }^{-1}{\varDelta }_{3|3}{\delta }^{-1} \oplus {\delta }^{-2}{\varDelta }_{3|3}}(t) = \max \limits (\mathcal {R}_{{\varDelta }_{3|3}{\delta }^{-2}}(t),\mathcal {R}_{{\delta }^{-1}{\varDelta }_{3|3}{\delta }^{-1}}(t),\mathcal {R}_{{\delta }^{-2}{\varDelta }_{3|3}}(t))\).

Fig. 3
figure 3

\(\mathcal {R}_{\mathrm {e}}(t)= \max \limits (\mathcal {R}_{{\varDelta }_{3|3}{\delta }^{-2}}(t), \mathcal {R}_{{\delta }^{-1}{\varDelta }_{3|3}{\delta }^{-1}}(t) ,\mathcal {R}_{{\delta }^{-2}{\varDelta }_{3|3}}(t))\)

The time-variant behavior caused by a periodic PS of a transition can be conveniently modeled in the dioid \(\mathcal {T}\).

For this, recall the definition of a periodic signal \(\mathcal {S}\) (Definition 1). We associate with a periodic signal \(\mathcal {S}:\mathbb {Z}\rightarrow \{0,1\}\) characterized by 〈n0,⋯nI〉 and period ω a function \(\mathcal {R}_{S}: \mathbb {Z}_{max}\rightarrow \mathbb {Z}_{max}\). This function \(\mathcal {R}_{S}(t)\) is defined by, \(\forall j\in \mathbb {Z}\),

$$ \mathcal{R}_{S}(t) = \left\{\begin{array}{lll} -\infty\qquad &\text{if } t= -\infty\\ n_{0}+\omega j \qquad &\text{if }\ (n_{I}-\omega) + \omega j < t \leq n_{0}+\omega j, \\ n_{1}+\omega j \qquad &\text{if }\ n_{0} + \omega j < t \leq n_{1} + \omega j,\\ \qquad \vdots\\ n_{I}+\omega j \qquad &\text{if }\ n_{I-1} +\omega j< t \leq n_{I}+\omega j,\\ \infty\qquad &\text{if } t= \infty. \end{array}\right. $$
(16)

Example 5

The function \(\mathcal {R}_{S_{1}}(t)\) (Fig. 4b) associated to the signal S1 (Fig. 4) given in Example 1 is

$$ \mathcal{R}_{S_{1}}(t) = \left\{\begin{array}{lll} -\infty\qquad &\text{if } t= -\infty\\ 0+4 j \qquad &\text{if }\ -3 + 4 j < t \leq 0+4 j, \\ 1+4 j \qquad &\text{if }\ 0 +4 j< t \leq 1+4 j,\\ \infty\qquad &\text{if } t= \infty. \end{array}\right. $$
Fig. 4
figure 4

Signal \(\mathcal {S}_{1}\) and the associated function \(\mathcal {R}_{S_{1}}\)

The value of \(\mathcal {R}_{S}(t)\) can be interpreted as the next time when the signal \(\mathcal {S}\) enables the firing of the corresponding transition. Clearly, an ω-periodic signal \(\mathcal {S}\) leads to a corresponding function \(\mathcal {R}_{S}(t)\) which satisfies \(\forall t \in \mathbb {Z}_{max}, \mathcal {R}_{S}(t+\omega ) = \omega + \mathcal {R}_{S}(t)\).

To prove that a periodic PS of a transition (i.e., the PS is specified by a periodic signal \(\mathcal {S}\)) admits an operator representation in the dioid \(\mathcal {T}\), we must show the existence of an operator \(v\in \mathcal {T}\) such that \(\mathcal {R}_{v} = \mathcal {R}_{S}\).

Proposition 5

(Trunk et al. 2018) A periodic partial synchronization of a transition by the signal \(\mathcal {S}\) in Definition 1 has an operator representation given by

$$ v= {\delta}^{n_{0}}{\varDelta}_{\omega|\omega}{\delta}^{-n_{I}}\oplus {\delta}^{n_{1}-\omega}{\varDelta}_{\omega|\omega}{\delta}^{-n_{0}}\oplus \cdots\oplus{\delta}^{n_{I}-\omega}{\varDelta}_{\omega|\omega}{\delta}^{-n_{(I-1)}}. $$
(17)

Example 6

Consider the TEGPS shown in Fig. 5, where the signal \(\mathcal {S}_{1}\) is given in Eq. 1 (Example 1) and dater function x1(k) (resp. x2(k)) is associated with transition t1 (resp. t2). According to Proposition 5, the behavior of the periodic PS of transition t2 is modeled by the following operator:

$$ v_{\mathcal{S}_{1}}={\delta}^{0}{\varDelta}_{4|4}{\delta}^{-1}\oplus {\delta}^{-3}{\varDelta}_{4|4}{\delta}^{-0} = {\delta}^{-3}{\varDelta}_{4|4} \oplus {\varDelta}_{4|4}{\delta}^{-1}, $$

where the latter equality holds as δ0 = e.

Fig. 5
figure 5

Simple TEGPS with a periodic PS of t2

Since the holding time of place p1 is 0 and there are no initial tokens in the place p1 this operator describes the firing relation between t1 and t2, i.e., \(x_{2} = ({\delta }^{-3}{\varDelta }_{4|4} \oplus {\varDelta }_{4|4}{\delta }^{-1})x_{1}\). Therefore, \(x_{2}(k) = \max \limits (-3+\lceil x_{1}(k)/4\rceil 4, \lceil (x_{1}(k)-1)/4\rceil 4 )\).

Remark 3

Due to the influence of the PS, this firing relation between t1 and t2 is time-variant. For instance, if the (k + 1)st firing of t1 is at time instant x1(k) = 1, then the (k + 1)st firing of t2 is at x2(k) = 1, i.e., we have no delay. In contrast, if the (k + 1)st firing of t1 is at time instant x1(k) = 2, then the (k + 1)st firing of t2 is at x2(k) = 4, and the delay is 2.

3.2 Dioid \(\mathcal {T} [\![ \gamma ]\!]\)

Since the γ operator commutes with all T-operators, i.e., \(\forall v\in \mathcal {T},\ v\gamma = \gamma v\), we can define the dioid \(\mathcal {T} [\![ \gamma ]\!]\) as follows.

Definition 7

(Dioid \( \mathcal {T} [\![ \gamma ]\!] \)) We denote by \(\mathcal {T} [\![ \gamma ]\!] \) the quotient dioid in the set of formal power series in one variable γ with exponents in \(\mathbb {Z}\) and coefficients in the noncommutative complete dioid \(\mathcal {T}\) induced by the equivalence relation, \(\forall s \in \mathcal {T}\),

$$ s = s({\gamma}^{*}). $$
(18)

Hence we identify two series s1, s2 with the same equivalence class, if \(s_{1}{\gamma }^{*} = \ s_{2}{\gamma }^{*}\). It is helpful to think of sγ as the representative of the equivalence class of s. Note that we can interpret elements in \(\mathcal {T} [\![ \gamma ]\!]\) as nondecreasing functions \(s: \mathbb {Z}\rightarrow \mathcal {T}\), where s(η) refers to the coefficient of γη. Hence, \(\forall \eta \in \mathbb {Z}, s(\eta ) \preceq s(\eta +1) \). For a fundamental mathematical background on quotient dioids, the reader is invited to consult (Baccelli et al. 1992). Moreover, in Hardouin et al. (2018) quotient dioids are studied from a didactic point of view.

Definition 8

Let \(s_{1},s_{2}\in \mathcal {T} [\![ \gamma ]\!]\), then addition and multiplication are defined by

$$ \begin{array}{@{}rcl@{}} s_{1} \oplus s_{2} &:=& \bigoplus\limits_{\eta\in\mathbb{Z}}(s_{1}(\eta)\oplus s_{2}(\eta)){\gamma}^{\eta}, \\ s_{1} \otimes s_{2} &:=& \bigoplus\limits_{\eta\in\mathbb{Z}}\left( \bigoplus\limits_{n+n^{\prime}=\eta}\left( s_{1}(n)\otimes s_{2}(n^{\prime})\right)\right){\gamma}^{\eta}. \end{array} $$

We denote by \(\mathcal {T}_{per} [\![ \gamma ]\!]\) the subdioid of \(\mathcal {T} [\![ \gamma ]\!]\), obtained by restricting the coefficients v to periodic operators, i.e., \(v\in \mathcal {T}_{per}\). As before, ⊕ defines an order on \(\mathcal {T} [\![ \gamma ]\!]\), i.e., \(a,b\in \mathcal {T} [\![ \gamma ]\!]:\ a\oplus b = b \Leftrightarrow a \preceq b\). Hence \(\forall s_{1},s_{2} \in \mathcal {T} [\![ \gamma ]\!],\ s_{1} \preceq s_{2} \Leftrightarrow s_{1}(\eta ) \preceq s_{2}(\eta ),\ \eta \in \mathbb {Z} \). A monomial in \(\mathcal {T} [\![ \gamma ]\!]\) is defined by vγη, where \(v \in \mathcal {T}\) and \(\eta \in \mathbb {Z}\). The ordering of two monomials \(v_{1}{\gamma }^{\eta _{1}}, v_{2}{\gamma }^{\eta _{2}} \in \mathcal {T} [\![ \gamma ]\!]\) can be checked as follows,

$$ v_{1}{\gamma}^{\eta_{1}} \preceq v_{2}{\gamma}^{\eta_{2}} \Leftrightarrow \left\{\begin{array}{lll} v_{1} \preceq v_{2}, \\ \eta_{1} \geq \eta_{2}. \end{array}\right. $$
(19)

A polynomial is a finite sum of monomials, i.e., \({\bigoplus }_{i=1}^{I} v_{i}{\gamma }^{\eta _{i}}\).

Proposition 6

Let \(p \in \mathcal {T}_{per} [\![ \gamma ]\!]\) be a polynomial, then p has a canonical form \(p = {\bigoplus }_{j=1}^{J}v_{j}^{\prime }{\gamma }^{\eta _{j}^{\prime }}\) such that ∀j ∈{1,⋯ ,J}, the ω-periodic T-operator \(v_{j}^{\prime }\) is in the canonical form of Proposition 3, and coefficients and exponents are strictly ordered, i.e., for \(j\in \{1,{\cdots } ,J-1 \},\ \eta _{j}^{\prime }< \eta _{j+1}^{\prime }\) and \(v_{j}^{\prime } \prec v_{j+1}^{\prime }\).

Proof

Without loss of generality we can assume that \(p = {\bigoplus }_{i=1}^{I}v_{i}{\gamma }^{\eta _{i}}\), with ηi < ηi+ 1, i = 1,⋯I − 1. In \(\mathcal {T}_{per} [\![ \gamma ]\!]\), we identify all elements s with sγ, hence can also identify p and

$$ p^{\prime} = \bigoplus\limits_{i=1}^{I} \left( \underbrace{\bigoplus\limits_{j=1}^{i}v_{j}}_{v_{i}^{\prime}} \right){\gamma}^{\eta_{i}} $$

as \(p{\gamma }^{*} =p^{\prime }{\gamma }^{*} \). Hence, \(v_{i}^{\prime } \preceq v_{i+1}^{\prime }\). If \(v_{i}^{\prime } = v_{i+1}^{\prime }\) we can write \(v_{i}^{\prime }{\gamma }^{\eta _{i}} \oplus v_{i+1}^{\prime }{\gamma }^{\eta _{i+1}} = v_{i}^{\prime }({\gamma }^{\eta _{i}} \oplus {\gamma }^{\eta _{i+1}})= v_{i}^{\prime }{\gamma }^{\eta _{i}}. \) Therefore, we can write \(p^{\prime }\) as \({\bigoplus }_{j=1}^{J} v_{j}^{\prime }{\gamma }^{\eta _{j}^{\prime }}\) with vjvj+ 1 and JI. □

Definition 9

(Ultimately Cyclic Series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) ): A series \(s \in \mathcal {T}_{per} [\![ \gamma ]\!]\) is said to be ultimately cyclic if it can be written as s = pq(γηδτ), where \(\eta ,\tau \in \mathbb {N}\) and p,q are polynomials in \(\mathcal {T}_{per} [\![ \gamma ]\!]\).

An element \(s \in \mathcal {T} [\![ \gamma ]\!]\) has a three dimensional graphical representation in \(\mathbb {Z}_{max}\times \mathbb {Z}_{max} \times \mathbb {Z}\). Given a series \(s = {\bigoplus }_{i} v_{i} {\gamma }^{i} \in \mathcal {T} [\![ \gamma ]\!]\), this graphical representation is obtained by depicting for every i the release-time function \(\mathcal {R}_{v_{i}}:\mathbb {Z}_{max}\rightarrow \mathbb {Z}_{max} \) of the coefficient vi in the (input-time × output-time)-plane of i.

Example 7

For the graphical representation of the polynomial \(p = ({\delta }^{1}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{-2}{\varDelta }_{4|4}){\gamma }^{0} \oplus ({\delta }^{5}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{2}{\varDelta }_{4|4}){\gamma }^{2} \oplus ({\delta }^{5}{\varDelta }_{4|4} \oplus {\delta }^{6}{\varDelta }_{4|4}{\delta }^{-1}){\gamma }^{4} \in \mathcal {T}_{per} [\![ \gamma ]\!]\), respectively its representative

$$ \begin{array}{@{}rcl@{}} p{\gamma}^{*} &=& ({\delta}^{1}{\varDelta}_{4|4}{\delta}^{-1} \oplus {\delta}^{-2}{\varDelta}_{4|4}){\gamma}^{0} \oplus ({\delta}^{1}{\varDelta}_{4|4}{\delta}^{-1} \oplus {\delta}^{-2}{\varDelta}_{4|4}){\gamma}^{1}, \\ &&({\delta}^{5}{\varDelta}_{4|4}{\delta}^{-1} \oplus {\delta}^{2}{\varDelta}_{4|4}){\gamma}^{2} \oplus({\delta}^{5}{\varDelta}_{4|4}{\delta}^{-1} \oplus {\delta}^{2}{\varDelta}_{4|4}){\gamma}^{3} \\ &&\oplus ({\delta}^{5}{\varDelta}_{4|4} \oplus {\delta}^{6}{\varDelta}_{4|4}{\delta}^{-1}){\gamma}^{4} \oplus ({\delta}^{5}{\varDelta}_{4|4} \oplus {\delta}^{6}{\varDelta}_{4|4}{\delta}^{-1}){\gamma}^{5} \oplus \cdots, \end{array} $$

see Fig. 6. The slices in the (I/O-time)-plane for the event-shift values k = 0,1 are illustrated in Fig. 7a. These slices correspond to the release-time function \(\mathcal {R}_{{\delta }^{1}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{-2}{\varDelta }_{4|4}}\) of the coefficient \({\delta }^{1}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{-2}{\varDelta }_{4|4}\) for γ0 (resp. γ1) in p. The slices for k = 2,3 and k ≥ 4 are shown in Fig. 7b and c. To improve readability, the graphical representation for elements \(s\in \mathcal {T} [\![ \gamma ]\!]\) has been truncated to non-negative values in Figs. 6 and 7.

Fig. 6
figure 6

3D representation of polynomial \(p = ({\delta }^{1}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{-2}{\varDelta }_{4|4}){\gamma }^{0}\oplus ({\delta }^{5}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{2}{\varDelta }_{4|4}){\gamma }^{2} \oplus ({\delta }^{5}{\varDelta }_{4|4} \oplus {\delta }^{6}{\varDelta }_{4|4}{\delta }^{-1}){\gamma }^{4}\).

Fig. 7
figure 7

Slices of the coefficients of p in the (I/O-time)-plane. a \(\mathcal {R}_{{\delta }^{1}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{-2}{\varDelta }_{4|4}}\), b \(\mathcal {R}_{{\delta }^{5}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{2}{\varDelta }_{4|4}}\) and c \(\mathcal {R}_{{\delta }^{5}{\varDelta }_{4|4} \oplus {\delta }^{6}{\varDelta }_{4|4}{\delta }^{-1}}\)

An important subdioid of \(\mathcal {T} [\![ \gamma ]\!]\) is the dioid \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). This dioid is obtained by restricting the coefficients v to the set {ε,δτ} of T-operators, i.e., an element in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) is written as \({\bigoplus }_{i}{\delta }^{\tau _{i}}{\gamma }^{n_{i}}\) with \(\tau _{i},n_{i}\in \mathbb {Z}\). This dioid has been extensively studied, e.g. Gaubert and Klimann (1991) and Baccelli et al. (1992). The product of two monomials \({\gamma }^{n_{1}}{\delta }^{t_{1}},{\gamma }^{n_{2}}{\delta }^{t_{2}} \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) is obtained by, \({\gamma }^{n_{1}}{\delta }^{t_{1}}\otimes {\gamma }^{n_{2}}{\delta }^{t_{2}} = {\gamma }^{n_{1}+n_{2} }{\delta }^{t_{1} +t_{2}}\). Moreover, Eq. 19 is simplified to \({\gamma }^{n_{1}}{\delta }^{t_{1}} \preceq {\gamma }^{n_{2}}{\delta }^{t_{2}} \Leftrightarrow (n_{1} \geq n_{2} \text { and } t_{1} \leq t_{2})\), and as a consequence of Eq. 10,

$$ {\gamma}^{n}{\delta}^{t_{1}} \oplus {\gamma}^{n}{\delta}^{t_{2}} = {\gamma}^{n}{\delta}^{\max(t_{1},t_{2})},\quad {\gamma}^{n_{1}}{\delta}^{t} \oplus {\gamma}^{n_{2}}{\delta}^{t} = {\gamma}^{\min(n_{1},n_{2})}{\delta}^{t}. $$
(20)

A comprehensive description of calculations with series in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) can be found in Baccelli et al. (1992). It is well known that the input-output behavior of a standard TEG can be described by a transfer function matrix composed of ultimately cyclic series in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). Moreover, based on \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), methods for performance evaluation and controller synthesis have been introduced for TEGs, e.g. Gaubert and Klimann (1991), Maia et al. (2003), and Hardouin et al. (2017). In (Hardouin et al. 2009), software tools have been made available for computations in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). The dioid \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) plays a key role in this paper. In particular, in Section 4, we show that all relevant operations on ultimately cyclic series \(s\in \mathcal {T}_{per} [\![ \gamma ]\!]\) can be reduced to operations on matrices in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). We can therefore use the existing tools for \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) to study TEGs under periodic PS.

3.3 Modeling of TEGsPS in \(\mathcal {T}_{per} [\![ \gamma ]\!]\)

A TEG under periodic PS operating under the earliest functioning rule admits a representation in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) of the form

$$ \boldsymbol{x} = \boldsymbol{A} \boldsymbol{x}\oplus \boldsymbol{B} \boldsymbol{u}, \qquad \boldsymbol{y} = \boldsymbol{C}\boldsymbol{x}. $$
(21)

This is reminiscent of the state space form in ”classical” systems theory. In the sequel, we will therefore refer to this representation as a state space model. x (resp. u,y) refers to the vector of dater functions of internal (resp. input, output) transitions. The matrices \(\boldsymbol {A} \in \mathcal {T}_{per} [\![ \gamma ]\!]^{n\times n},\ \boldsymbol {B} \in \mathcal {T}_{per} [\![ \gamma ]\!]^{n \times g}\) and \(\boldsymbol {C} \in \mathcal {T}_{per} [\![ \gamma ]\!]^{p\times n}\) describe the influence of transitions on each other, encoded by operators in \(\mathcal {T}_{per} [\![ \gamma ]\!]\). Hence, n refers to the number of internal transitions of the TEGPS, while p and q are the number of output and input transitions. Let us consider a path constituted by the arcs (tj,pi) and (pi,to) with a synchronization of transition to by a periodic signal \(\mathcal {S}_{o}\). The influence of transition tj on transition to is coded as an operator

$$ v_{t_{o}}{\delta}^{(\boldsymbol{\phi})_{i}}{\gamma}^{(\boldsymbol{\mathcal{M}}_{0})_{i}} $$

where \(v_{t_{o}}\) is the operator representation of the signal \(\mathcal {S}_{o}\) corresponding to the PS of to (see Example 6), (ϕ)i is the holding time of place pi and \((\boldsymbol {{\mathcal{M}}}_{0})_{i}\) is the initial marking of pi.

Example 8

Recall the TEGPS in Fig. 2 with PS of transition t2 by the signal, \(\forall j\in \mathbb {Z}\)

$$ \mathcal{S}_{2}(t) = \left\{\begin{array}{lll} 1 &\text{if } t \in \{1+ 20j \}, \\ 0 &\text{otherwise}. \end{array}\right. $$

As ω = 20, I = 0, n0 = 1, according to Proposition 5, \(v_{S_{2}} = {\delta }^{1}{\varDelta }_{20|20}{\delta }^{-1}\). The influence of t3 on transition t2 via the path (t3,p2)(p2,t2), is coded by the operator \(v_{S_{2}}{\delta }^{0}{\gamma }^{2} = v_{S_{2}}{\gamma }^{2}= {\delta }^{1}{\varDelta }_{20|20}{\delta }^{-1}{\gamma }^{2}\). Moreover, by assigning a dater function u (resp. x1,x2,y) to transition t1 (resp. t2,t3,t4), the earliest functioning of the TEGPS is described in state space form x = AxBu; y = Cx, where

$$ \boldsymbol{A} = \left[\begin{array}{llll}\varepsilon & {\delta}^{1}{\varDelta}_{20|20}{\delta}^{-1}{\gamma}^{2} \\ {\delta}^{10} & \varepsilon \end{array}\right],\ \boldsymbol{B}=\left[\begin{array}{llll} {\delta}^{1}{\varDelta}_{20|20}{\delta}^{-1} \\ \varepsilon \end{array}\right],\ \boldsymbol{C} = \left[\begin{array}{llll}\varepsilon & \mathrm{e} \end{array}\right]. $$

According to Theorem 1, the least solution of equation x = AxBu is x = ABu. Therefore, the transfer function matrix H of a TEGPS can be obtained by y = Hu = CABu. In Trunk et al. (2018) it was shown that the entries of the transfer function matrix are ultimately cyclic series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\). In order to compute this transfer function matrix, to compute system compositions, and to obtain control, we have to perform addition, multiplication and the Kleene star operation of series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\). In the next section, we show how these operations between series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) can be reduced to operations between matrices in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\).

4 Core representation of a series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\)

In this section, we propose a specific decomposition of ultimately cyclic series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\). We show that such series \(s\in \mathcal {T}_{per} [\![ \gamma ]\!]\) with period ω can always be represented as s = mωQbω where Q is a square matrix in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) of size ω × ω, mω is a row vector defined as

$$ \boldsymbol{\mathsf{m}}_{\omega} := \left[\begin{array}{llll}{\varDelta}_{\omega|1} & \quad {\delta}^{-1}{\varDelta}_{\omega|1} &\quad {\cdots} & {\delta}^{1-\omega}{\varDelta}_{\omega|1} \end{array}\right] $$
(22)

and bω is a column vector defined as

$$ \boldsymbol{\mathsf{b}}_{\omega} := \left[\begin{array}{llll}{\varDelta}_{1|\omega}{\delta}^{1-\omega} &{\cdots} & \quad {\varDelta}_{1|\omega}{\delta}^{-1} & \quad {\varDelta}_{1|\omega} \end{array}\right]^{T}. $$
(23)

This representation is called core representation with core matrix Q. We first demonstrate how to obtain this form on a small example and then provide a formal proof.

Example 9

Consider the following series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\),

$$ s= {\varDelta}_{2|2} \oplus {\delta}^{1}{\varDelta}_{2|2}{\delta}^{-1}\oplus {\delta}^{2}{\varDelta}_{2|2}{\gamma}^{2}({\delta}^{2}{\gamma}^{2})^{*}. $$

Because of Δω|ϖ = Δω|bΔb|ϖ (Remark 1) and \({\delta }^{\omega }{\varDelta }_{\omega |\varpi } = {\varDelta }_{\omega |\varpi }{\delta }^{\varpi } \), see Eq. 12, and as γ commutes with all T-operators, this series can be rewritten as

$$ s= {\varDelta}_{2|1}\underbrace{ \mathrm{e}}_{M_{1}} {\varDelta}_{1|2} \oplus {\delta}^{-1}{\varDelta}_{2|1}\underbrace{ {\delta}^{1}}_{M_{2}} {\varDelta}_{1|2}{\delta}^{-1} \oplus {\varDelta}_{2|1}\underbrace{{\delta}^{1}{\gamma}^{2}({\delta}^{1}{\gamma}^{2})^{*}}_{S_{1}} {\varDelta}_{1|2}. $$

Clearly M1,M2 and S1 are elements in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). We now can rewrite s in the core representation,

$$ s = \underbrace{\left[\begin{array}{llll} {\varDelta}_{2|1} & \quad {\delta}^{-1}{\varDelta}_{2|1} \end{array}\right]}_{\boldsymbol{\mathsf{m}}_{2}}\underbrace{\left[\begin{array}{llll}\varepsilon & \mathrm{e} \oplus {\delta}^{1}{\gamma}^{2}({\delta}^{1}{\gamma}^{2})^{*} \\ {\delta}^{1} & \varepsilon \end{array}\right]}_{\boldsymbol{\mathsf{Q}}}\underbrace{\left[\begin{array}{llll} {\varDelta}_{1|2}{\delta}^{-1} \\ {\varDelta}_{1|2} \end{array}\right]}_{\boldsymbol{\mathsf{b}}_{2}}, $$

which is in the required form.

Proposition 7

Let \(s= {\bigoplus }_{i}v_{i}{\gamma }^{i}\in \mathcal {T}_{per} [\![ \gamma ]\!]\) be an ω-periodic series, then s can be written as s = mωQbω, where \(\boldsymbol {\mathsf {Q}}\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]^{\omega \times \omega }\) and mω, bω have the form Eqs. 22 and 23.

Proof

s being an ω-periodic series implies that all coefficients vi of s are ω-periodic T-operators. Then, due to Proposition 3, all coefficients can be expressed in canonical form \(v_{i} = {\bigoplus }_{j=1}^{J_{i}} {\delta }^{\tau _{i_{j}}}{\varDelta }_{\omega |\omega }{\delta }^{\tau _{i_{j}}^{\prime }}\) with Jiω and \(-\omega < \tau _{i_{j}}^{\prime }\leq 0\). Then s can be rewritten as

$$ s = \bigoplus\limits_{i} \left( \bigoplus\limits_{j=1}^{J_{i}} {\delta}^{\tau_{i_{j}}}{\varDelta}_{\omega|\omega}{\delta}^{\tau_{i_{j}}^{\prime}} \right){\gamma}^{i}. $$

By using Δω|ω = Δω|1Δ1|ω (Remark 1), \({\delta }^{\omega }{\varDelta }_{\omega |1} = {\varDelta }_{\omega |1}{\delta }^{1}\) Eq. 12 and \(v\gamma = \gamma v,\ \forall v\in \mathcal {T}\), the series s is written as

$$ s = \bigoplus\limits_{i} \left( \bigoplus\limits_{j=1}^{J_{i}} {\delta}^{\tilde{\tau}_{i_{j}}}{\varDelta}_{\omega|1}{\delta}^{\hat{\tau}_{i_{j}}}{\gamma}^{i}{\varDelta}_{1|\omega}{\delta}^{\tau_{i_{j}}^{\prime}} \right), $$

where \(-\omega <\tilde {\tau }_{i_{j}}= \tau _{i_{j}}-\lceil \tau _{i_{j}}/\omega \rceil \omega \leq 0\) and \(\hat {\tau }_{i_{j}} =\lceil \tau _{i_{j}}/\omega \rceil \). Observe that \(-\omega <\tilde {\tau }_{i_{j}}, \tau _{i_{j}}^{\prime } \leq 0\) hence we can express s by

$$ \begin{array}{@{}rcl@{}} s&= \left[\begin{array}{llll}{\varDelta}_{\omega|1} & {\delta}^{-1}{\varDelta}_{\omega|1} & {\cdots} & {\delta}^{1-\omega}{\varDelta}_{\omega|1} \end{array}\right] \left( {\bigoplus}_{i} \left( {\bigoplus}_{j=1}^{J_{i}} \boldsymbol{\mathsf{Q}}_{i_{j}} \right) \right) \left[\begin{array}{llll}{\varDelta}_{1|\omega}{\delta}^{1-\omega} \\ {\cdots} \\ {\varDelta}_{1|\omega}{\delta}^{-1} \\ {\varDelta}_{1|\omega} \end{array}\right], \end{array} $$

where the entry \((\boldsymbol {\mathsf {Q}}_{i_{j}})_{1-\tilde {\tau }_{i_{j}},\omega +\tau _{i_{j}}^{\prime }} = {\delta }^{\hat {\tau }_{i_{j}}}{\gamma }^{i}\) and all other entries of \(\boldsymbol {\mathsf {Q}}_{i_{j}}\) are equal to ε. Hence, s is in the required form s = mωQbω, where \(\boldsymbol {\mathsf {Q}} = {\bigoplus }_{i} \left ({\bigoplus }_{j=1}^{J_{i}} \boldsymbol {\mathsf {Q}}_{i_{j}} \right )\). □

Let us note that the core Q of a series \(s\in \mathcal {T}_{per} [\![ \gamma ]\!]\) is not unique. In other words, we can express the same series with different cores, i.e., we may have \(s= \boldsymbol {\mathsf {m}}_{\omega } \boldsymbol {\mathsf {Q}} \boldsymbol {\mathsf {b}}_{\omega } = \boldsymbol {\mathsf {m}}_{\omega } \tilde {\boldsymbol {\mathsf {Q}}} \boldsymbol {\mathsf {b}}_{\omega }\) with \(\boldsymbol {\mathsf {Q}}, \tilde {\boldsymbol {\mathsf {Q}}} \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]^{\omega \times \omega }\) but \(\boldsymbol {\mathsf {Q}} \neq \tilde {\boldsymbol {\mathsf {Q}}}\). We illustrate this in the following example.

Example 10

Recall the series \(s = {\varDelta }_{2|2} \oplus {\delta }^{1}{\varDelta }_{2|2}{\delta }^{-1} \oplus {\delta }^{2}{\gamma }^{2}({\delta }^{2}{\gamma }^{2})^{*}{\varDelta }_{2|2}\) given in Example 9. The series s can be expressed by \(\boldsymbol {\mathsf {m}}_{2}\tilde {\boldsymbol {\mathsf {Q}}}\boldsymbol {\mathsf {b}}_{2}\) where,

$$ \begin{array}{@{}rcl@{}} \tilde{\boldsymbol{\mathsf{Q}}} = \left[\begin{array}{llll}\mathrm{e} & \mathrm{e} \oplus {\delta}^{1}{\gamma}^{2}({\delta}^{1}{\gamma}^{2})^{*} \\ {\delta}^{1} & \varepsilon \end{array}\right]. \end{array} $$

Clearly \(\tilde {\boldsymbol {\mathsf {Q}}}\neq \boldsymbol {\mathsf {Q}}\) see Example 9. However, \(\tilde {\boldsymbol {\mathsf {Q}}}\) is a valid core of s since

$$ \begin{array}{@{}rcl@{}} &\boldsymbol{\mathsf{m}}_{2}\tilde{\boldsymbol{\mathsf{Q}}}\boldsymbol{\mathsf{b}}_{2} = \boldsymbol{\mathsf{m}}_{2} \left[\begin{array}{llll} {\varDelta}_{1|2}{\delta}^{-1} \oplus {\varDelta}_{1|2} \oplus {\delta}^{1}{\gamma}^{2}({\delta}^{1}{\gamma}^{2})^{*}{\varDelta}_{1|2} \\ {\delta}^{1}{\varDelta}_{1|2}{\delta}^{-1} \end{array}\right]. \end{array} $$

Because of Eq. 10\({\varDelta }_{1|2}{\delta }^{-1} \oplus {\varDelta }_{1|2} ={\varDelta }_{1|2}({\delta }^{-1} \oplus {\delta }^{0})= {\varDelta }_{1|2}\), and therefore

$$ \begin{array}{@{}rcl@{}} \boldsymbol{\mathsf{m}}_{2}\tilde{\boldsymbol{\mathsf{Q}}}\boldsymbol{\mathsf{b}}_{2}&=& \left[\begin{array}{llll}{\varDelta}_{2|1} & {\delta}^{-1}{\varDelta}_{2|1} \end{array}\right] \left[\begin{array}{llll} {\varDelta}_{1|2} \oplus {\delta}^{1}{\gamma}^{2}({\delta}^{1}{\gamma}^{2})^{*}{\varDelta}_{1|2} \\ {\delta}^{1}{\varDelta}_{1|2}{\delta}^{-1} \end{array}\right]\\ &=& {\varDelta}_{2|1}{\varDelta}_{1|2} \oplus {\varDelta}_{2|1}{\delta}^{1}{\gamma}^{2}({\delta}^{1}{\gamma}^{2})^{*}{\varDelta}_{1|2} \oplus {\delta}^{-1}{\varDelta}_{2|1}{\delta}^{1}{\varDelta}_{1|2}{\delta}^{-1}\\ &=& {\varDelta}_{2|2} \oplus {\delta}^{1}{\varDelta}_{2|2}{\delta}^{-1} \oplus {\delta}^{2}{\gamma}^{2}({\delta}^{2}{\gamma}^{2})^{*}{\varDelta}_{2|2}= s. \end{array} $$

To show how the core form can be used to perform basic operations between ultimately cyclic series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) we first elaborate some properties of the mω-vector and bω-vector. The scalar product mωbω of these two vectors is the identity e:

$$ \begin{array}{@{}rcl@{}} \boldsymbol{\mathsf{m}}_{\omega}\otimes \boldsymbol{\mathsf{b}}_{\omega} =& {\delta}^{0}{\varDelta}_{\omega|1}{\varDelta}_{1|\omega}{\delta}^{1-\omega} \oplus {\cdots} \oplus {\delta}^{1-\omega}{\varDelta}_{\omega|1}{\varDelta}_{1|\omega}{\delta}^{0} \\ =& {\delta}^{0}{\varDelta}_{\omega|\omega}{\delta}^{1-\omega} \oplus {\cdots} \oplus {\delta}^{1-\omega}{\varDelta}_{\omega|\omega}{\delta}^{0}= \mathrm{e}, \end{array} $$
(24)

where the latter equality holds because of Proposition 4. The dyadic product bωmω is a square matrix in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) denoted by N. For i,j ∈{1,⋯,ω}, the entry (bωmω)i,j is given by,

$$(\boldsymbol{\mathsf{N}})_{i,j}=(\boldsymbol{\mathsf{b}}_{\omega}\otimes \boldsymbol{\mathsf{m}}_{\omega})_{i,j} = {\varDelta}_{1|\omega}{\delta}^{(i-j)+(1-\omega)} {\varDelta}_{\omega|1}.$$

Then, because of \({\varDelta }_{1|\omega }{\delta }^{-\omega } = {\delta }^{-1}{\varDelta }_{1|\omega }\) and \({\varDelta }_{1|\omega }{\delta }^{n} {\varDelta }_{\omega |1} = {\varDelta }_{1|1} = \mathrm {e}\) for − ω < n ≤ 0, see Remark 1,

$$ (\boldsymbol{\mathsf{N}})_{i,j} = \left\{\begin{array}{lll} \mathrm{e}, \quad j \leq i, \\ {\delta}^{-1}, \quad j > i, \end{array}\right. $$

i.e.,

$$ \boldsymbol{\mathsf{N}} = \boldsymbol{\mathsf{b}}_{\omega}\otimes \boldsymbol{\mathsf{m}}_{\omega} = \left[\begin{array}{llll} \mathrm{e} & {\delta}^{-1} & {\cdots} & {\delta}^{-1} \\ {\vdots} & {\ddots} & {\ddots} & {\vdots} \\ {\vdots} & & {\ddots} & {\delta}^{-1} \\ \mathrm{e} & {\cdots} & {\cdots} & \mathrm{e} \end{array}\right]. $$
(25)

Proposition 8

(Trunk et al. 2018) The following relations hold:

$$ \begin{array}{@{}rcl@{}} &&\boldsymbol{\mathsf{N}}\oplus \boldsymbol{I} = \boldsymbol{\mathsf{N}}, \\ &&\boldsymbol{\mathsf{N}}\otimes \boldsymbol{\mathsf{N}} = \boldsymbol{\mathsf{N}}, \\ &&\boldsymbol{\mathsf{N}}\otimes \boldsymbol{\mathsf{b}}_{\omega} = \boldsymbol{\mathsf{b}}_{\omega}, \\ &&\boldsymbol{\mathsf{m}}_{\omega}\otimes \boldsymbol{\mathsf{N}} = \boldsymbol{\mathsf{m}}_{\omega}. \end{array} $$

4.1 Greatest core matrix

From Example 10 it is clear that a series \(s \in \mathcal {T}_{per} [\![ \gamma ]\!]\) may have several core representations. In the following, we show that a series \(s \in \mathcal {T}_{per} [\![ \gamma ]\!]\) admits a unique greatest core, denoted \(\boldsymbol {\hat {\mathsf {Q}}}\), i.e, \(s = \boldsymbol {\mathsf {m}}_{\omega }\boldsymbol {\hat {\mathsf {Q}}} \boldsymbol {\mathsf {b}}_{\omega } \) and \(\boldsymbol {\hat {\mathsf {Q}}} \succeq \boldsymbol {\mathsf {Q}}\) for all core matrices Q such that s = mωQbω. Note that, the inequality is in the sense of the dioid \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). This decomposition \(s = \boldsymbol {\mathsf {m}}_{\omega }\boldsymbol {\hat {\mathsf {Q}}} \boldsymbol {\mathsf {b}}_{\omega }\) is particularly useful to compute residuation of series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\).

Proposition 9

For \(\boldsymbol {D}\in {\mathcal {T} [\![ \gamma ]\!]}^{1 \times \omega }\) and \(\boldsymbol {P} \in { \mathcal {T} [\![ \gamma ]\!]}^{\omega \times 1}\) one has:

For \(\boldsymbol {O}\in { \mathcal {T} [\![ \gamma ]\!]}^{n \times \omega }\) and \(\boldsymbol {G}\in { \mathcal {T} [\![ \gamma ]\!]}^{\omega \times n}\) one has:

Proof

By definition, is the greatest solution of inequality

$$ \boldsymbol{\mathsf{m}}_{\omega} \otimes \boldsymbol{X} \preceq \boldsymbol{D}. $$
(30)

Clearly since mωbω = e, bωD satisfies Eq. 30 with equality. It remains to be shown that bωD is the greatest solution of Eq. 30. For this, assume that there exists \(\boldsymbol {X^{\prime }} \succeq \boldsymbol {\mathsf {b}}_{\omega }\boldsymbol {D}\) solving Eq. 30, i.e., \(\boldsymbol {\mathsf {m}}_{\omega }\boldsymbol {X^{\prime }} \preceq \boldsymbol {D}\). Multiplication is order preserving, hence left multiplication by bω results in

$$ \boldsymbol{\mathsf{N}} \otimes \boldsymbol{X^{\prime}} \preceq \boldsymbol{\mathsf{b}}_{\omega} \boldsymbol{D}. $$

Furthermore, \(\boldsymbol {X^{\prime }} \preceq \boldsymbol {\mathsf {N}} \otimes \boldsymbol {X^{\prime }} \) as N = IN. Hence, \(\boldsymbol {X^{\prime }} \preceq \boldsymbol {\mathsf {b}}_{\omega } \boldsymbol {D}\) and therefore \(\boldsymbol {X^{\prime }} = \boldsymbol {\mathsf {b}}_{\omega } \boldsymbol {D}\). This proves that bωD is indeed the greatest solution of Eq. 30. Similarly, X = Pmω solves XbωP with equality. Suppose \(\boldsymbol {X^{\prime }} \succeq \boldsymbol {P} \boldsymbol {\mathsf {m}}_{\omega }\) is a solution, i.e., \(\boldsymbol {X^{\prime }}\otimes \boldsymbol {\mathsf {b}}_{\omega } \preceq \boldsymbol {P}\). Right multiplication by mω gives

$$ \boldsymbol{X^{\prime}} \preceq \boldsymbol{X^{\prime}}\otimes \boldsymbol{\mathsf{N}} \preceq \boldsymbol{P} \otimes \boldsymbol{\mathsf{m}}_{\omega}. $$

Therefore \(\boldsymbol {X^{\prime }} = \boldsymbol {P}\otimes \boldsymbol {\mathsf {m}}_{\omega }\) and Pmω is indeed the greatest solution, and hence . To prove Eq. 28, note that by Proposition 8 ONbωmω = ON. Therefore ONbω is a solution of XmωON. Assume that \(\boldsymbol {X^{\prime }} \succeq \boldsymbol {O} \boldsymbol {\mathsf {N}} \otimes \boldsymbol {\mathsf {b}}_{\omega }\) is another solution, i.e., \(\boldsymbol {X^{\prime }}\boldsymbol {\mathsf {m}}_{\omega } \preceq \boldsymbol {O} \boldsymbol {\mathsf {N}} \). Right multiplication by bω results in \(\boldsymbol {X^{\prime }} \preceq \boldsymbol {O}\boldsymbol {\mathsf {N}} \otimes \boldsymbol {\mathsf {b}}_{\omega }\). Hence, ONbω is the greatest solution of . Equation 29 is shown analogously. □

Proposition 10

Let \( \boldsymbol {\mathsf {m}}_{\omega } \boldsymbol {\mathsf {Q}} \boldsymbol {\mathsf {b}}_{\omega } \in \mathcal {T}_{per} [\![ \gamma ]\!]\) be a decomposition of \(s \in \mathcal {T}_{per} [\![ \gamma ]\!]\). The greatest core matrix is given by \(\boldsymbol {\hat {\mathsf {Q}}} = \boldsymbol {\mathsf {N}}\boldsymbol {\mathsf {Q}}\boldsymbol {\mathsf {N}}\).

Proof

Consider the inequality \(\boldsymbol {\mathsf {m}}_{\omega } \boldsymbol {\tilde {X}}\boldsymbol {\mathsf {b}}_{\omega } \preceq s\). Because of Proposition 9, its greatest solution is given by

$$ \boldsymbol{\tilde{X}} = \boldsymbol{\mathsf{b}}_{\omega} \boldsymbol{\mathsf{m}}_{\omega} \boldsymbol{\mathsf{Q}} \boldsymbol{\mathsf{b}}_{\omega}\boldsymbol{\mathsf{m}}_{\omega} = \boldsymbol{\mathsf{N}} \boldsymbol{\mathsf{Q}} \boldsymbol{\mathsf{N}} = \boldsymbol{\hat{\mathsf{Q}}}. $$

Moreover, because of (Proposition 8)

$$ \boldsymbol{\mathsf{m}}_{\omega} \boldsymbol{\hat{\mathsf{Q}}} \boldsymbol{\mathsf{b}}_{\omega} = \boldsymbol{\mathsf{m}}_{\omega} \boldsymbol{\mathsf{N}}\boldsymbol{\mathsf{Q}}\boldsymbol{\mathsf{N}} \boldsymbol{\mathsf{b}}_{\omega} =\boldsymbol{\mathsf{m}}_{\omega} \boldsymbol{\mathsf{Q}}\boldsymbol{\mathsf{b}}_{\omega} = s. $$

4.2 Operations between core matrices

To perform addition and multiplication of two ultimately cyclic series \(s_{1} = \boldsymbol {\mathsf {m}}_{\omega _{1}} \boldsymbol {\mathsf {Q}}_{1}\boldsymbol {\mathsf {b}}_{\omega _{1}},\ s_{2} = \boldsymbol {\mathsf {m}}_{\omega _{2}} \boldsymbol {\mathsf {Q}}_{2}\boldsymbol {\mathsf {b}}_{\omega _{2}} \in \mathcal {T}_{per} [\![ \gamma ]\!]\) in core form, it is necessary to express the core matrices \(\boldsymbol {\mathsf {Q}}_{1} \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]^{\omega _{1} \times \omega _{1}}\) and \(\boldsymbol {\mathsf {Q}}_{2} \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]^{\omega _{2} \times \omega _{2}}\) with identical dimensions. This is possible by expressing both series with their least common period ω = lcm(ω1,ω2).

Proposition 11

(Trunk et al. 2018)

A series \(s = \boldsymbol {\mathsf {m}}_{\omega } \boldsymbol {\mathsf {Q}}\boldsymbol {\mathsf {b}}_{\omega } \in \mathcal {T}_{per} [\![ \gamma ]\!]\) can be expressed with a multiple period nω by extending the core matrix Q, i.e., \(s = \boldsymbol {\mathsf {m}}_{\omega } \boldsymbol {\mathsf {Q}}\boldsymbol {\mathsf {b}}_{\omega } = \boldsymbol {\mathsf {m}}_{n\omega }\boldsymbol {\mathsf {Q}}^{\prime }\boldsymbol {\mathsf {b}}_{n\omega } \), where \(\boldsymbol {\mathsf {Q}}^{\prime } \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]^{n\omega \times n\omega }\) is given by

$$ \boldsymbol{\mathsf{Q}}^{\prime} = \left[\begin{array}{llll} {\varDelta}_{1|n}{\delta}^{1-n}\boldsymbol{\mathsf{N}}\boldsymbol{\mathsf{Q}}\boldsymbol{\mathsf{N}}{\varDelta}_{n|1} & {\cdots} & {\varDelta}_{1|n}{\delta}^{1-n}\boldsymbol{\mathsf{N}}\boldsymbol{\mathsf{Q}}\boldsymbol{\mathsf{N}}{\delta}^{1-n}{\varDelta}_{n|1}\\ {\vdots} & & {\vdots} \\ {\varDelta}_{1|n} \boldsymbol{\mathsf{N}}\boldsymbol{\mathsf{Q}}\boldsymbol{\mathsf{N}}{\varDelta}_{n|1} & {\cdots} & {\varDelta}_{1|n}\boldsymbol{\mathsf{N}} \boldsymbol{\mathsf{Q}}\boldsymbol{\mathsf{N}}{\delta}^{1-n}{\varDelta}_{n|1} \end{array}\right]. $$

Proposition 12 (Sum of series 2018)

Let s = mωQbω, \(s^{\prime } = \boldsymbol {\mathsf {m}}_{\omega }\boldsymbol {\mathsf {Q}}^{\prime } \boldsymbol {\mathsf {b}}_{\omega } \in \mathcal {T}_{per} [\![ \gamma ]\!]\). Then \(s \oplus s^{\prime } = \boldsymbol {\mathsf {m}}_{\omega }\boldsymbol {\mathsf {Q}}^{\prime \prime }\boldsymbol {\mathsf {b}}_{\omega } \), where \(\boldsymbol {\mathsf {Q}}^{\prime \prime } = \boldsymbol {\mathsf {Q}}\oplus \boldsymbol {\mathsf {Q}}^{\prime }\).

Proposition 13 (Product of series 2018)

Let \(s = \boldsymbol {\mathsf {m}}_{\omega }\boldsymbol {\mathsf {Q}}\boldsymbol {\mathsf {b}}_{\omega },\ s^{\prime } = \boldsymbol {\mathsf {m}}_{\omega }\boldsymbol {\mathsf {Q}}^{\prime }\boldsymbol {\mathsf {b}}_{\omega } \in \mathcal {T}_{per} [\![ \gamma ]\!]\). Then \(s\otimes s^{\prime } = \boldsymbol {\mathsf {m}}_{\omega }\boldsymbol {\mathsf {Q}}^{\prime \prime }\boldsymbol {\mathsf {b}}_{\omega }\), where \(\boldsymbol {\mathsf {Q}}^{\prime \prime } = \boldsymbol {\mathsf {Q}}\boldsymbol {\mathsf {N}}\boldsymbol {\mathsf {Q}}^{\prime }\).

Proposition 14 (Kleene star of series 2018)

Let \(s= \boldsymbol {\mathsf {m}}_{\omega } \boldsymbol {\mathsf {Q}}\boldsymbol {\mathsf {b}}_{\omega } \in \mathcal {T}_{per} [\![ \gamma ]\!]\). Then,

$$ s^{*} = \boldsymbol{\mathsf{m}}_{\omega} (\boldsymbol{\mathsf{Q}}\boldsymbol{\mathsf{N}})^{*}\boldsymbol{\mathsf{b}}_{\omega}. $$
(31)

Proposition 15

Let \(s = \boldsymbol {\mathsf {m}}_{\omega } \boldsymbol {\hat {\mathsf {Q}}}\boldsymbol {\mathsf {b}}_{\omega },\ s^{\prime }= \boldsymbol {\mathsf {m}}_{\omega } \boldsymbol {\hat {\mathsf {Q}}}^{\prime }\boldsymbol {\mathsf {b}}_{\omega }\) be ultimately cyclic series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) with \(\boldsymbol {\hat {\mathsf {Q}}}\), respectively \(\boldsymbol {\hat {\mathsf {Q}}}^{\prime }\), their greatest core matrices. Then,

Proof

The proof of the second part of Proposition 15 is analogous. □

Due to Propositions 12, 13, 14 and 15, it is clear that computation of the sum and product, Kleene star operation and product residuation of ultimately cyclic series in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) can be done based on the core of the series, i.e. in the dioid \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). Finally, let us note that this core form of series \(s \in \mathcal {T}_{per} [\![ \gamma ]\!]\) is similar to the core form of series \(s \in \mathcal {E} [\![ \delta ]\!]\), see (Trunk et al. 2017a). More generally the dioid \(\mathcal {T}_{per} [\![ \gamma ]\!]\) with periodic time-operators can be seen as the counter part of the dioid \(\mathcal {E} [\![ \delta ]\!]\), introduced in Cottenceau et al. (2014), with periodic event-operators. The dioid \(\mathcal {E} [\![ \delta ]\!]\) is useful to obtain transfer function matrices for WBTEG.

5 Output reference control

In this section, we address the following control problem for TEGs under periodic PS. A reference dater function \(\bar {z}\) is given for the output \(\bar {y}\). We want to determine the greatest input dater function \(\bar {u}\) that leads to an output \(\bar {y}\preceq \bar {z}\). The reference dater specifies that the firings of the output transition (which in a manufacturing context, may for example correspond to completion of workpieces) should occur no latter than given instants of time. This has to be achieved by firing the input transition as late as possible. In a manufacturing context, this may correspond to feeding raw material as late as possible. This kind of optimal output reference control is often called ”just-in-time” control. For standard TEGs the problem of output reference control was studied in Baccelli et al. (1992), Cohen et al. (1989), Menguy et al. (1998), and Menguy et al. (2000). It is well known for standard TEGs, that the output to an arbitrary input dater function can simply be computed by using the transfer function model \(h \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) of the TEG and expressing the input dater as a series \(u \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). Then y = hu. Hence, the optimal control problem for standard TEGs simply amounts computing , see Baccelli et al. (1992) and Cohen et al. (1989) for a detailed description. In the following, we show how the earliest response of a TEG under periodic PS can be computed based on its transfer function \(h\in \mathcal {T}_{per} [\![ \gamma ]\!]\) and then how the optimal just-in-time control problem for a TEG under periodic PS can be addressed. For this, we first need to provide some additional algebraic background.

5.1 Subdioids of \(\mathcal {T}_{per} [\![ \gamma ]\!]\)

Recall that an operator \(v\in \mathcal {T}\) is called ω-periodic if \(\exists \omega \in \mathbb {N}\) such that \(\forall k \in \mathbb {Z}_{max},\ \mathcal {R}_{v}(k+\omega ) = \omega +\mathcal {R}_{v}(k)\) (Definition 6) and that the set of ω-periodic T-operators is denoted by \(\mathcal {T}_{\omega }\). Analogously we say \(s{\bigoplus }_{i} v_{i}{\gamma }^{i} \in \mathcal {T}_{per} [\![ \gamma ]\!]\) is an ω-periodic series, iff all coefficients are ω-periodic T-operators, i.e., \(\forall i, v_{i} \in \mathcal {T}_{\omega }\). The set of ω-periodic series is denoted by \(\mathcal {T}_{\omega } [\![ \gamma ]\!]\).

Proposition 16

The sest of ω-periodic series \(\mathcal {T}_{\omega } [\![ \gamma ]\!]\) with addition and multiplication given in Definition 8 is a complete subdioid of the dioid \(\mathcal {T}_{per} [\![ \gamma ]\!]\).

Proof

According to Propositions 12 and 13, \(\mathcal {T}_{\omega } [\![ \gamma ]\!]\) is closed under (infinite) addition and multiplication. □

Remark 4

The subdioid \(\mathcal {T}_{1} [\![ \gamma ]\!]\) of \(\mathcal {T}_{per} [\![ \gamma ]\!]\), i.e. the set of 1-periodic series, is the dioid \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). Moreover, as any 1-periodic series is also ω-periodic (\(\omega \in \mathbb {N}\)), \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) is subdioid of \(\mathcal {T}_{\omega } [\![ \gamma ]\!]\) for any \(\omega \in \mathbb {N}\).

Due to the subdioid structure of \(\mathcal {T}_{per} [\![ \gamma ]\!]\), one can define the canonical injection \(\text {Inj}: {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ] \rightarrow \mathcal {T}_{per} [\![ \gamma ]\!]\), with Inj(x) = x. For a graphical illustration of this canonical injection see the following example.

Example 11

Let us consider the series \(s = {\gamma }^{1}{\delta }^{2} \oplus \left ({\gamma }^{3}{\delta }^{3}\oplus {\gamma }^{5}{\delta }^{4}\right )({\gamma }^{3}{\delta }^{2})^{*} \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), with a graphical representation given in Fig. 8a. The graphical representation of the canonical injection \(\text {Inj}(s)\in \mathcal {T}_{per} [\![ \gamma ]\!]\) is shown in Fig. 8b. The series \(s\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) (Fig. 8a) corresponds to the event-shift/output-time plane for the input-time value 0 of the 3D representation of the series \(\text {Inj}(s)\in \mathcal {T}_{per} [\![ \gamma ]\!]\) (Fig. 8b). Moreover, the canonical injection \(\text {Inj}(s)\in \mathcal {T}_{per} [\![ \gamma ]\!]\) is 1-periodic, this means the coefficients vi of γi are 1-periodic, i.e., \(\mathcal {R}_{v_{i}}(t)\) are quasi 1-periodic. Therefore, the event-shift/output-time plane for the input-time value 1 corresponds to the series \({\delta }^{1}s\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) and for the input-time value 2 to the series \({\delta }^{2}s\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), etc.

Fig. 8
figure 8

Illustration of the canonical injection \(\text {Inj}:{\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ] \rightarrow \mathcal {T}_{per} [\![ \gamma ]\!]\) of the series \(s = {\gamma }^{1}{\delta }^{2} \oplus \left ({\gamma }^{3}{\delta }^{3}\oplus {\gamma }^{5}{\delta }^{4}\right )({\gamma }^{3}{\delta }^{2})^{*}\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\)

Lemma 1

Let \(v{\gamma }^{n}\in \mathcal {T}_{\omega } [\![ \gamma ]\!]\) be an ω-periodic monomial. Then the residual Inj(vγn) is given by

$$ \text{Inj}^{\sharp}(v{\gamma}^{n}) = {\delta}^{\min\limits_{t=0,\cdots\omega-1}(\mathcal{R}_{v}(t)-t)}{\gamma}^{n}. $$
(32)

Proof

By definition, Inj(vγn) is the greatest solution \(x\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) of the following inequality:

$$ v{\gamma}^{n} \succeq \text{Inj}(x) = \text{Inj}\left( \!{\bigoplus}_{i}{\gamma}^{\eta_{i}}{\delta}^{\zeta_{i}}\right)={\bigoplus}_{i}{\gamma}^{\eta_{i}}{\delta}^{\zeta_{i}}. $$
(33)

Clearly, the least ηi such that inequality Eq. 33 holds are n and thus,

$$ v{\gamma}^{n} \succeq {\bigoplus}_{i}({\gamma}^{n}{\delta}^{\zeta_{i}}) = {\gamma}^{n}{\delta}^{\tau}. $$
(34)

where the latter equality holds for \(\tau = \max \limits _{i}(\zeta _{i})\), because of Eq. 20. Since the inequality vγnγnδτ in \(\mathcal {T}_{\omega } [\![ \gamma ]\!]\) holds iff the inequality vδτ in \(\mathcal {T}_{\omega }\) holds, it remains to find the greatest τ such that vδτ holds. By considering the isomorphism between T-operators and release-time functions, see Eq. 13, this is equivalent to \(\mathcal {R}_{v}(t) \geq \mathcal {R}_{{\delta }^{\tau }}(t),\ \forall t \in \mathbb {Z}_{max}\).

By using \(\mathcal {R}_{{\delta }^{\tau }}(t)= \tau + t\), see Eq. 7, one obtains

$$ \mathcal{R}_{v}(t) \geq \tau + t \Leftrightarrow \tau \leq \mathcal{R}_{v}(t) -t, \quad \forall t \in \mathbb{Z}_{max}. $$
(35)

Since \(\mathcal {R}_{v}\) is a quasi ω-periodic function it is sufficient to evaluate the function for ∀t ∈{0,⋯,ω − 1}. Therefore the greatest τ such that Eq. 35 (resp. Eq. 34) holds is

$$ \tau = \min\limits_{t = 0,\cdots\omega-1}\left( \mathcal{R}_{v}(t)-t\right). $$

Lemma 1 can be extended to arbitrary series in \(\mathcal {T}_{\omega } [\![ \gamma ]\!]\). To do this, note that the canonical representation in Proposition 6 can be generalized to infinite sums.

Proposition 17

Let \(s = {\bigoplus }_{i}v_{i}{\gamma }^{n_{i}}\in \mathcal {T}_{\omega } [\![ \gamma ]\!]\) be an ω-periodic series in canonical representation. Then

$$ \text{Inj}^{\sharp}(s) = {\bigoplus}_{i} {\delta}^{\min\limits_{t=0,\cdots\omega-1}(\mathcal{R}_{v_{i}}(t)-t)}{\gamma}^{n_{i}}. $$
(36)

Proof

Consider \(s = {\bigoplus }_{i}v_{i}{\gamma }^{n_{i}}\) in the canonical form, i.e., ni < ni+ 1 and vivi+ 1 and let \(\mathcal {R}_{v_{i}}\) be the release-time function associated with vi. Recall that Inj(s) is the greatest solution x in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) of inequality Inj(x) ≼ s. This is given by \({\bigoplus }_{i} {\delta }^{\tau _{i}}{\gamma }^{n_{i}}\) where τi is the greatest integer such that \({\delta }^{\tau _{i}} \preceq v_{i}\). Repeating the first step of the proof of Lemma 1, this is given by \(\tau _{i} = \min \limits _{t=0,\cdots \omega -1}(\mathcal {R}_{v_{i}}(t)-t)\). □

5.1.1 Zero slice mapping \({\varPsi }_{\omega }: \mathcal {T}_{\omega } [\![ \gamma ]\!] \rightarrow {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\)

Recall that \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) is a subdioid of \(\mathcal {T}_{\omega } [\![ \gamma ]\!]\), hence we can define a specific projection from \(\mathcal {T}_{\omega } [\![ \gamma ]\!]\) into \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) as follows.

Definition 10

Let \(s = {\bigoplus }_{i} v_{i}{\gamma }^{n_{i}} \in \mathcal {T}_{\omega } [\![ \gamma ]\!]\) be an ω-periodic series, then

$$ {\varPsi}_{\omega}(s)= {\varPsi}_{\omega}\left( \!{\bigoplus}_{i} v_{is}{\gamma}^{n_{i}}\right) = {\bigoplus}_{i} {\gamma}^{n_{i}}{\delta}^{\mathcal{R}_{v_{i}}(0)}. $$
(37)

This projection Ψω has an intuitive graphical interpretation. For a given \(s\in \mathcal {T}_{\omega } [\![ \gamma ]\!]\) the series \( {\varPsi }_{\omega }(s) \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ] \) corresponds to the slice in the event/output-time plane of the 3D representation of \(s\in \mathcal {T}_{\omega } [\![ \gamma ]\!]\) at the input-time value 0. Thus, this projection is also called zero-slice mapping.

Example 12

Consider the polynomial \(p = ({\delta }^{1}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{-2}{\varDelta }_{4|4}){\gamma }^{0} \oplus ({\delta }^{5}{\varDelta }_{4|4}{\delta }^{-1} \oplus {\delta }^{2}{\varDelta }_{4|4}){\gamma }^{2} \oplus ({\delta }^{5}{\varDelta }_{4|4} \oplus {\delta }^{6}{\varDelta }_{4|4}{\delta }^{-1}){\gamma }^{4} \in \mathcal {T}_{per} [\![ \gamma ]\!]\) from Example 7 with graphical representation given in Fig. 6. Then,

$$ {\varPsi}_{4}(p) = {\delta}^{1}{\gamma}^{0}\oplus {\delta}^{5}{\gamma}^{2} \oplus {\delta}^{6}{\gamma}^{4}. $$

The series Ψ4(p) corresponds to the slice in the (event-shift/output-time)-plane for the input-time value t = 0 in the 3D representation of p, see Fig. 9a and b.

Fig. 9
figure 9

Illustration of Projection Ψ4(p)

The projection Ψω is by definition lower-semicontinuous, therefore Ψω is residuated.

Proposition 18

Let \(s = {\bigoplus }_{i} {\gamma }^{n_{i}}{\delta }^{\tau _{i}}\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). The residual \({\varPsi }_{\omega }^{\sharp } (s) \in \mathcal {T}_{\omega } [\![ \gamma ]\!]\) of s is

$$ {\varPsi}_{\omega}^{\sharp} \left( s\right) = {\bigoplus}_{i} {\gamma}^{n_{i}}{\delta}^{\tau_{i}}{\varDelta}_{\omega|\omega} = s{\varDelta}_{\omega|\omega}. $$
(38)

Proof

By definition of the residuated mapping, \({\varPsi }_{\omega }^{\sharp } (s) \in \mathcal {T}_{\omega } [\![ \gamma ]\!]\) is the greatest solution of inequality

$$ s={\bigoplus}_{i} {\gamma}^{n_{i}}{\delta}^{\tau_{i}} \succeq {\varPsi}_{\omega}(x). $$
(39)

We first show that Eq. 38 satisfies Eq. 39 with equality.

$$ {\varPsi}_{\omega}\left( \!\!\bigoplus\limits_{i} {\gamma}^{n_{i}}{\delta}^{\tau_{i}}{\varDelta}_{\omega|\omega}\right) =\bigoplus\limits_{i}{\gamma}^{n_{i}}{\delta}^{\mathcal{R}_{{\delta}^{\tau_{i}}{\varDelta}_{\omega|\omega}}(0)} = \bigoplus\limits_{i}{\gamma}^{n_{i}}{\delta}^{\tau_{i}}, $$

since \(\mathcal {R}_{{\delta }^{\tau _{i}}{\varDelta }_{\omega |\omega }}(0) = \tau _{i}+\lceil 0/\omega \rceil \omega = \tau _{i}\), see Eqs. 7 and 9. Taking into account that Ψω is isotone, it remains to show that \({\bigoplus }_{i} {\gamma }^{n_{i}}{\delta }^{\tau _{i}}{\varDelta }_{\omega |\omega }\) is the greatest solution of

$$ s=\bigoplus\limits_{i} {\gamma}^{n_{i}}{\delta}^{\tau_{i}} = {\varPsi}_{\omega}(x) $$
(40)

For this, let \(x= {\bigoplus }_{j} v_{j}{\gamma }^{n_{j}}\) be an arbitrary series in \(\mathcal {T}_{\omega } [\![ \gamma ]\!]\). Then \({\varPsi }_{\omega }(x)= {\bigoplus }_{j} {\gamma }^{n_{j}}{\delta }^{\mathcal {R}_{v_{j}}(0)}\). Clearly, to achieve equality we need ηj = ni and \( \mathcal {R}_{v_{j}}(0)= \tau _{i}\). Furthermore, we are looking for the greatest \(v_{j} \in \mathcal {T}_{\omega }\), such that \(\tau _{i} = \mathcal {R}_{v_{j}}(0)\). Due to the canonical form (Proposition 3) we can write an ω-periodic T-operator vj as \({\bigoplus }_{i=1}^{\omega }{\delta }^{\zeta _{i}}{\varDelta }_{\omega |\omega }{\gamma }^{\zeta _{i}^{\prime }}\) with \(-\omega < \zeta _{i}^{\prime } \leq 0\). This operator corresponds to the release-time function

$$ \mathcal{R}_{v_{j}}(t)= \max\limits_{i=1,\cdots\omega}\left( \zeta_{i}+\left\lceil \frac{\zeta_{i}^{\prime}+t}{\omega} \right\rceil \omega\right). $$

Now we examine \(\mathcal {R}_{v_{j}}(t)\) for t = 0, thus

$$ \mathcal{R}_{v_{j}}(0)= \max\limits_{i=1,\cdots\omega}\left( \zeta_{i}+\left\lceil \frac{\zeta_{i}^{\prime}}{\omega} \right\rceil \omega\right). $$

Recall that \(-\omega < \zeta _{i}^{\prime } \leq 0\), hence \(\mathcal {R}_{v_{j}}(t) = \tau _{i}+\lceil (0+t)/\omega \rceil \omega \) is the greatest quasi ω-periodic release-time function such that \(\mathcal {R}_{v_{j}}(0) = \tau _{i}\). The corresponding greatest T-operator is accordingly \({\delta }^{\tau _{i}}{\varDelta }_{\omega |\omega }\). □

5.1.2 Dater functions and series in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\)

A convenient way to compute the output of a TEG under periodic PS is to express its input and output dater functions as series in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). The following proposition gives a link between dater functions and series in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\).

Proposition 19

(Baccelli et al. 1992) A dater function \(\bar {d}:\mathbb {Z}\rightarrow \mathbb {Z}_{max}\) can be expressed as a series \(d \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), such that,

$$ d = \left( \bigoplus\limits_{\{k \in \mathbb{Z}|-\infty<\bar{d}<+\infty\}} {\gamma}^{k}{\delta}^{\bar{d}} \right) \oplus \left( \bigoplus\limits_{\{k \in \mathbb{Z}|\bar{d}=+\infty\}} {\gamma}^{k}{\delta}^{*} \right). $$
(41)

For a more detailed description of the link between dater functions and the associated series in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), see e.g. Baccelli et al. (1992) and Cohen et al. (1991). The impulse is a specific dater function, namely \(\mathcal {I}(k) = -\infty \) if k < 0 and 0 otherwise. Hence, an impulse as the input of a TEG corresponds to an infinity of firings of its input transition at time 0. The \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) series corresponding to an impulse is the unit element \(\mathrm {e} \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), see Baccelli et al. (1992) and Cohen et al. (1991).

Moreover, a dater function \(\bar {d}\) and its series representation \(d\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) are related by

$$ \bar{d}(k) = \left( d\mathcal{I}\right)(k) $$

The impulse response of a TEG can be readily expressed via the TEG transfer function \(h \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). The dater function \(\bar {y}_{\mathcal {I}}\) is the impulse response is characterized by

$$ \bar{y}_{\mathcal{I}}(k) = \left( h\mathcal{I} \right)(k) $$

while the corresponding series is obtained by

$$ y_{\mathcal{I}} = h \otimes \mathrm{e} = h. $$

Similarly, the response to an arbitrary input series u (with dater function \(\bar {u}\)) is

$$ y = h \otimes u, $$

respectively

$$ \bar{y}(k) = \left( h \bar{u}\right)(k) =\left( h\left( u\mathcal{I}\right)\right)(k). $$

In contrast, the transfer function \(h\in \mathcal {T}_{per} [\![ \gamma ]\!]\) of a TEG under periodic PS is not entirely characterized by the impulse response. As the impulse corresponds to an infinity of firings at time 0, the impulse response of a TEG under periodic PS is characterized by the slice in the (event-shift/output-time)-plane at the input-time value 0 of the 3D representation of its transfer function \(h \in \mathcal {T}_{per} [\![ \gamma ]\!]\), see e.g., Example 12. Hence, for a TEG under periodic PS with transfer function h, the impulse response \(\overline {y}=(h\mathcal {I})\) corresponds to the series \(y={\varPsi }_{\omega }(h) \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), see Definition 10 and Example 12. It should be clear that in contrast to standard TEGs, the impulse response of a TEG under periodic PS only provides partial information of its transfer function. For TEGs under periodic PS, the above duality between representing the output as dater function and series in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) reads as follows. Let \(h \in \mathcal {T}_{per} [\![ \gamma ]\!]\) be the transfer function of the TEG under periodic PS and \(\overline {u} \in {\Sigma }\), respectively \(u \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), be the input. Then we obtain the output dater function \(\overline {y} \in {\Sigma }\) by

$$ \overline{y}(k)= (h\overline{u})(k), $$

and the corresponding output series \(y \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) by

$$ y = {\varPsi}_{\omega} \left( h \otimes \text{Inj}(u) \right). $$
(42)

Example 13

Recall the simple supply chain in Example 2 with the TEGPS model shown in Fig. 2. The transfer function is \(h={\delta }^{11}({\gamma }^{2}{\delta }^{20})^{*}{\varDelta }_{20|20}{\delta }^{-1}\). This transfer function was computed with the ETVO toolbox (Cottenceau et al. 2019) available online at: http://perso-laris.univ-angers.fr/~cottenceau/etvo.html, this toolbox implements the algorithms given in this section. Moreover, consider the following input dater function:

$$ \bar{u}(k) = \left\{\begin{array}{lll} -\infty \quad \text{for }k < 0;\\ 0 \quad \text{for }k = 0;\\ 5 \quad \text{for }k = 1,2;\\ 35 \quad \text{for }k = 3,4,5,6;\\ \infty \quad \text{for }k \geq 7. \end{array}\right. $$
(43)

This dater function is interpreted as follows: the first product available for transport from factory 1 to factory 2 is ready at time instant 0. The second and third at time instant 5. The 4th, 5th, 6th and 7th at time instant 35. According to Eq. 41, the series \(u \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) corresponding to this dater function is u = γ0δ0γ1δ5γ3δ35γ7δ. The output \(y\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) of the system is computed as

$$ \begin{array}{@{}rcl@{}} y &=& {\varPsi}_{\omega} \left( h \otimes \text{Inj}(u)\right)\\ &=& {\varPsi}_{\omega} \left( {\delta}^{11}({\gamma}^{2}{\delta}^{20})^{*}{\varDelta}_{20|20}{\delta}^{-1} \otimes({\gamma}^{0}{\delta}^{0} \oplus {\gamma}^{1}{\delta}^{5}\oplus {\gamma}^{3}{\delta}^{35}\oplus {\gamma}^{7}{\delta}^{*}) \right) \\ &=& {\varPsi}_{\omega} \left( {\delta}^{11}{\varDelta}_{20|20}{\delta}^{-1}({\gamma}^{2}{\delta}^{20})^{*} \otimes({\gamma}^{0}{\delta}^{0} \oplus {\gamma}^{1}{\delta}^{5}\oplus {\gamma}^{3}{\delta}^{35}\oplus {\gamma}^{7}{\delta}^{*}) \right) \\ &=& {\varPsi}_{\omega} \left( ({\delta}^{11}{\varDelta}_{20|20}{\delta}^{-1} \oplus {\delta}^{31}{\varDelta}_{20|20}{\delta}^{-16}{\gamma}^{1}\oplus {\delta}^{51}{\varDelta}_{20|20}{\delta}^{-6}{\gamma}^{3} )({\gamma}^{2}{\delta}^{20})^{*}\right.\\ && \qquad \left. \oplus {\delta}^{11}{\varDelta}_{20|20}{\delta}^{-1}{\gamma}^{7}({\gamma}^{2}{\delta}^{2})^{*}{\delta}^{*} \right)\\ &=& {\varPsi}_{\omega} \left( ({\delta}^{11}{\varDelta}_{20|20}{\delta}^{-1} \oplus {\delta}^{31}{\varDelta}_{20|20}{\delta}^{-16}{\gamma}^{1}\oplus {\delta}^{51}{\varDelta}_{20|20}{\delta}^{-6}{\gamma}^{3} )({\gamma}^{2}{\delta}^{20})^{*}\right.\\ &&\qquad \left. \oplus {\delta}^{11}{\varDelta}_{20|20}{\delta}^{-1}{\gamma}^{7}{\delta}^{*} \right) \\ &=& ({\delta}^{11} \oplus {\delta}^{31}{\gamma}^{1}\oplus {\delta}^{51}{\gamma}^{3})({\gamma}^{2}{\delta}^{20})^{*}\oplus {\delta}^{11}{\delta}^{*}{\gamma}^{7}\\ &=& ({\delta}^{11} \oplus {\delta}^{31}{\gamma}^{1} \oplus {\delta}^{51}{\gamma}^{3} \oplus {\delta}^{71}{\gamma}^{5} \oplus {\delta}^{91}{\gamma}^{7} \oplus {\cdots} ) \oplus {\delta}^{11}{\delta}^{*}{\gamma}^{7} \\ &=& {\delta}^{11} \oplus {\delta}^{31}{\gamma}^{1} \oplus {\delta}^{51}{\gamma}^{3} \oplus {\delta}^{71}{\gamma}^{5}\oplus {\delta}^{*}{\gamma}^{7}, \end{array} $$

with associated dater function \(\overline {y}\)

$$ \bar{y}(k) = \left\{\begin{array}{lll} -\infty \quad \text{for }k < 0; \\ 11 \quad \text{for }k = 0;\\ 31 \quad \text{for }k = 1,2;\\ 51 \quad \text{for }k = 3,4; \\ 71 \quad \text{for }k = 5,6; \\ \infty \quad \text{for }k \geq 7. \end{array}\right. $$

Hence, this implies that the first product is available at factory 2 at time instant 11, the second and third at time instant 31, the 4th and 5th at time instant 51, and the 6th and 7th at time instant 71.

5.2 Optimal Output Reference Control

The optimal output reference control problem for a TEG under periodic PS with a transfer function \(h \in \mathcal {T}_{per} [\![ \gamma ]\!]\) is to find the greatest input dater \(\overline {u}\) such that, \(\forall k \in \mathbb {Z}\)

$$ \bar{z}(k) \succeq \left( h\overline{u}\right) (k), $$
(44)

where \(\bar {z}\) is a given reference dater.

If, instead, we represent the unknown input and the reference as series in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), Eq. 44 is rephrased as

$$ z \succeq {\varPsi}_{\omega}(h\otimes\text{Inj}(u)), $$
(45)

where the series \(z,u \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) correspond to the dater functions \(\bar {z}\) and \(\overline {u}\).

Theorem 3

Let \(h\in \mathcal {T}_{per} [\![ \gamma ]\!]\) be the transfer function of a single-input single-output (SISO) TEG under periodic PS and \(z \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) a given output reference for the system, then the optimal input uopt, i.e., the greatest solution of Eq. 45, is

(46)

Proof

As Ψω is a residuated mapping (see Proposition 18), Eq. 46 is equivalent to \(h \otimes \text {Inj}(u) \preceq {\varPsi }_{\omega }^{\sharp }(z)\). This, in turn, is equivalent to as left multiplication in \(\mathcal {T}_{per} [\![ \gamma ]\!]\) is residuated. Finally as Inj is residuated (Proposition 17), the greatest solution of the latter inequality is Eq. 46. □

Equation 46 is often referred to as the just-in-time solution. Note that the notation of greatest is in the sense of the order ≽ in the dioid \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\).

Example 14

Recall the supply chain of Example 2, which is modelled by the TEG under periodic PS given in Fig. 2 and has transfer function

$$ h = {\delta}^{11}{\varDelta}_{20|20}{\delta}^{-1}({\gamma}^{2}{\delta}^{20})^{*} \in \mathcal{T}_{per} [\![ \gamma ]\!]. $$

Let us consider the following dater function (see Fig. 10), which describes at which instants of time goods from factory 1 need to be available at factory 2 at the latest.

$$ \bar{z}(k) = \left\{\begin{array}{lll} -\infty \quad &\text{for } k < 0, \\ 25 \quad &\text{for }k = 0,1, \\ 45 + 15j \quad &\text{for } k = 2+j \text{ with } j \in \mathbb{N}_{0}. \end{array}\right. $$

The control problem is now, to compute \(\bar {u}\), i.e. the maximal time when goods from factory 1 are ready to be shipped to factory 2, such that Eq. 44 respectively Eq. 45, holds. To apply Eq. 46, the dater function \(\bar {z}\) is expressed by the series \(z = {\delta }^{25}\oplus {\gamma }^{2}{\delta }^{45}({\gamma }^{1}{\delta }^{15})^{*}\in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). Then according to Proposition 18, \({\varPsi }_{20}^{\sharp }(z) = z{\varDelta }_{20|20} = {\delta }^{25}{\varDelta }_{20|20}\oplus ({\gamma }^{1}{\delta }^{15})^{*} ({\gamma }^{2}{\delta }^{45}{\varDelta }_{20|20})\) and

where the latter equality has been computed using ETVO toolbox (Cottenceau et al. 2019). The response y of the TEGPS to the optimal input uopt is

$$ y = {\varPsi}_{2}(h\otimes \text{Inj} (u_{opt}) ) = ({\delta}^{11} \oplus{\gamma}^{2}{\delta}^{31} \oplus{\gamma}^{3}{\delta}^{51} )({\gamma}^{4} {\delta}^{60})^{*}. $$

This series corresponds to the dater function,

$$ \bar{y}(k) = \left\{\begin{array}{lll} -\infty \quad &\text{for } k < 0, \\ 11 + 60j \quad &\text{for } k = 4j \text{ and } k = 1+4j \text{ with }j \in \mathbb{N}_{0}.\\ 31 + 60j \quad &\text{for } k = 2+4j \text{ with } j \in \mathbb{N}_{0}.\\ 51 + 60j \quad &\text{for } k = 3+4j \text{ with } j \in \mathbb{N}_{0}. \end{array}\right. $$

Figure 10 illustrates the output reference \(\bar {z}\) and \(\bar {y}\) resulting from the optimal input \(\bar {u}_{opt}\). Clearly, as required, \(\bar {z} \succeq \bar {y}\). This means, the goods are shipped from factory 1 as late as possible, but arrive in factory 2 in time to meet the production deadlines there.

Fig. 10
figure 10

Output reference \(\bar {z}\) and system response \(\bar {y}\) to optimal input \(\bar {u}_{opt}\)

Remark 5

Output reference control can be readily extended to multiple-input multiple-output (MIMO) TEGs under periodic PS. In this case the earliest behaviour of a TEG under periodic PS is modeled by a transfer function matrix \(\boldsymbol {H} \in \mathcal {T}_{per} [\![ \gamma ]\!]^{p\times g}\). Then the optimal output reference control problem is, for all j = 1,⋯p,

$$ z_{j} \succeq {\varPsi}_{\omega} \left( \bigoplus\limits_{i=1}^{g} (\boldsymbol{H})_{j,i} \text{Inj} (u_{i}) \right), $$
(47)

where \(z_{j} \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) represents the reference for the jth output and \(u_{i} \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\) is ith input of the system. As Ψω is a lower semi-continuous mapping we can write Eq. 47 as, for j = 1,⋯p,

$$ z_{j} \succeq \bigoplus\limits_{i=1}^{g} {\varPsi}_{\omega} \left( (\boldsymbol{H})_{j,i} \text{Inj} (u_{i}) \right), $$
(48)

The latter set of p inequalities, can be written as a set of pq simpler inequalities, i.e., ∀j ∈{1,⋯p} and ∀i ∈{1,⋯g},

$$ z_{j} \succeq {\varPsi}_{\omega} \left( (\boldsymbol{H})_{j,i} \text{Inj} (u_{i}) \right). $$
(49)

Observe that each of these inequalities has the form of Eq. 45. Hence, the optimal ith input \(u_{i,opt} \in {\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), i.e., the greatest ui that satisfies Eq. 49 for j = 1,⋯p, is

Hence, the only difference to the SISO case is an additional infimum operation between series in \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\).

6 Conclusion

In this paper, we have introduced algebraic tools to obtain transfer function matrices for a subclass of Timed Event Graphs under Partial Synchronization, namely the case where partial synchronization of transitions is characterized by periodic signals. We have introduced the dioid \(\mathcal {T}_{per} [\![ \gamma ]\!]\), which is a quotient dioid of formal power series in γ with coefficients that are periodic time-operators. We have shown that all relevant operations on ultimately cyclic series s in this dioid can be reduced to operations on matrices in the subdioid \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). An advantage of this approach is that existing software tools for standard TEGs in the dioid \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\), e.g. Hardouin et al. (2009) can be applied to the more general class of TEGsPS with periodic PS. The more recent toolbox (Cottenceau et al. 2019), based also on Hardouin et al. (2009), implements the ”translation process” from \(\mathcal {T}_{per} [\![ \gamma ]\!]\) to \({\mathcal{M}}_{in}^{ax}\left [\!\left [\gamma ,\delta \right ]\!\right ]\). Moreover, based on transfer functions for this class of TEGsPS we have solved the corresponding optimal output reference control problem. In particular, the proposed control method provides the optimal control input under the ”just-in-time” criterion. One possible extension of this work is to modify the control strategy such that online updates of the reference trajectory can be considered. This would allow the system to react to a change in customer demands, and will be considered in future work.