Next Article in Journal
Closed-Form Meromorphic Solutions of High-Order and High-Dimensional Differential Equations
Previous Article in Journal
Bipolar Fuzzy Sheffer Stroke in BCK-Algebras
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Compositional Scheduling in Industry 4.0 Cyber-Physical Systems

1
Department of Economics, Instituto de Matemática de Bahía Blanca (UNS-Conicet), Universidad Nacional del Sur, Bahía Blanca B8000, Argentina
2
Department of Engineering, Instituto de Matemática de Bahía Blanca (UNS-Conicet), Universidad Nacional del Sur, Bahía Blanca B8000, Argentina
*
Author to whom correspondence should be addressed.
Axioms 2025, 14(5), 332; https://doi.org/10.3390/axioms14050332 (registering DOI)
Submission received: 6 March 2025 / Revised: 21 April 2025 / Accepted: 23 April 2025 / Published: 27 April 2025

Abstract

:
Cyber-physical systems (CPSs) are fundamental components of Industry 4.0 production environments. Their interconnection is crucial for the successful implementation of distributed and autonomous production plans. A particularly relevant challenge is the optimal scheduling of tasks that require the collaboration of multiple CPSs. To ensure the feasibility of optimal schedules, two primary issues must be addressed: (1) The design of global systems emerging from the interconnection of CPSs; (2) The development of a scheduling formalism tailored to interconnected Industry 4.0 settings. Our approach is based on a Category Theory formalization of interconnections as compositions. This framework aims to guarantee that the emergent behaviors align with the intended outcomes. Building upon this foundation, we introduce a formalism that captures the assignment of operations to cyber-physical systems.

1. Introduction

Production systems have undergone drastic changes in recent years and more radical transformations can be expected. The resulting outcome of this process has been called Industry 4.0 [1]. It amounts to replacing traditional 20th century production systems by smart versions, in which almost all features are fully autonomous [2]. The main components of this new industrial revolution are cyber-physical systems (CPSs) that provide a direct connection between the real and the virtual world [3]. CPSs allow the real-time integration of decision-making processes with data drawn from the physical shop floor, improving the ability to respond to varying conditions [4,5,6]. In turn, the Internet of Things (IoT) provides the means to interconnect different CPSs yielding a single production system, able to solve decision problems, coordinate tasks, address conflicts, and plan future activities [7,8].
Achieving an efficient and coordinated integration of CPSs is not a straightforward enterprise. There are problems both at the interface layers of CPSs and at their inner workings (involving the functionalities of CPS). At the former level, problems usually arise when trying to ensure the interoperability of these systems due to compatibility failures of the communication interfaces [9]. The goal here is to ensure that information is consistently shared and communicated among all the interconnected CPSs [10]. In turn, the problems associated with the inner layers of CPS involve the emergence of unforeseen phenomena [11]. This happens when the behavior of the integrated system cannot be described in terms of the behaviors of its component CPSs, that is, when the whole is greater than the sum of its parts. While emergence has its benefits, it can also lead to unintended consequences.
Thus, integrating independent CPSs poses two major challenges:
  • Interoperability at the interface level, where incompatibilities in communication protocols and data formats can obstruct the flow of information.
  • Emergence at the behavioral level, where the global system exhibits new dynamics that cannot be immediately inferred from its components.
In this paper, we address these issues with a formal treatment of the compositional integration of CPSs. Strict control procedures may hamper one of the main advantages of Industry 4.0 systems, namely their flexibility [1]. This implies that a careful design is needed to provide control and flexibility to systems of interconnected CPSs.
The main questions to be answered in this paper involve the assurances of compatibility of independent CPSs that can be plugged in and out of global systems. Furthermore, there is the question of the scalability of Industry 4.0 systems composed of CPSs. That is, whether plugging in a new CPS can change how a production environment works, and if so, in which way.
We consider how simple I/O systems with internal decision-making capabilities (an abstraction of the concept of cyber-physical systems) can be composed. The ensuing behavior of the larger system can be understood as the composition of the behavior of its component systems. A basic category of CPS-like units allows the definition of a symmetric monoidal structure capturing the characterization of the behavior of their composition. (a related categorical treatment of CPSs can be found in [12,13,14]). A Hypergraph Category based on this structure includes a fundamental component, namely a lax monoidal functor, defining an algebra of behaviors that parallels the composition of CPS-like systems.
One of the main applications of networks of cyber-physical systems is as platforms for Cloud Manufacturing [15,16,17,18]. This has led to the wider concept of Cyber-Physical Production Systems (CPPSs) [4,7], representing the ensemble of sub-systems connected to the environment and among them enhanced Industry 4.0 settings. One of the benefits of CPPS is the possibility of linking directly the shop floor with a higher-level Decision Support System (DSS) [8,19], providing real-time data to the DSS as well as offering the shop floor the ability to rapidly adapt to the output of the DSS.
In the case of CPPS, the intrinsic criticality of scheduling production processes becomes even more salient. As pointed out in [4], scheduling processes constitute one of the main challenges in the design of these systems. In this paper, we address this issue by showing how the lax monoidal functor of behaviors provides a way of formalizing processes of Smart Scheduling [5].
The following diagram depicts the current issues in the field, our own contribution, and what we intend to achieve.
Axioms 14 00332 i001
In Section 3, we present the mathematical background of Category Theory used in the rest of the paper. Section 4 discusses the abstraction of CPS, which we call CPS-like. In Section 5, we show that networks of CPS-like components behave as a CPS-like unit itself by using the properties of a lax monoidal functor in this category. Section 6 presents the main description of scheduling in CPPS. Section 7 uses the lax monoidal functor to characterize the solution to scheduling problems. Section 8 generalizes the framework to ensure the distributed solution of scheduling problems. Section 9 presents the conclusions.

2. Cyber-Physical Systems and Smart Manufacturing

Cyber-physical systems constitute a cornerstone in the development of Smart Manufacturing environments. They provide a means for integrating new digital capabilities into the physical processes that carry out production activities. In this section, we first show how general manufacturing and decision-making processes leverage cyber-physical technology, and second we present a detailed discussion of how scheduling decision-making processes are affected and redefined under the Industry 4.0 paradigm. After reviewing these two aspects, a final subsection summarizes the motivation of this work.

2.1. Cyber-Physical Production Systems

The Industry 4.0 paradigm focuses on the advantages of digitizing production processes to enhance the automation capabilities of the entire production environment. The key concepts that underpin the Industry 4.0 paradigm are interconnection, information transparency/availability, technical assistance, and decentralized decision-making. These four concepts enable the implementation of distributed control and the automatization of systems, enhancing the possibility of building more agile and flexible production systems [20]. The Internet of Things provides the means to interconnect the components and processes of the system, access the collected data in real time, and make them available to a decentralized architecture that benefits from them [21,22]. This data flow can be analytically processed by Big Data and Machine Learning tools, as well as with Artificial Intelligence systems, yielding meaningful descriptions of the state of the system. This, in turn, benefits from the technical assistance that Industry 4.0 systems can provide to decision-making processes. The input of the decision-making process is the information processed by these systems [23,24]. Finally, since the information is completely digitized, it can be replicated and shared by the sub-processes and sub-systems that need these data to evolve in the production process. Closing the loop, cyber-physical systems convert the output of decision-making processes into concrete actions to apply in the physical world [1,25].
This paradigm has led to the description of Industry 4.0 production systems as Cyber-physical Production Systems (CPPSs) [4]. A CPPS transforms the traditional shop floor, where the information generated by production processes is confined to its machines/assets, into a new shop floor where production machines/assets are interconnected and can be monitored and controlled remotely [26,27]. Each machine/asset has a digital representation and a Digital Twin can represent the entire shop floor. The Digital Twin can gather all the information from the shop floor and add it to the information generated by the business functions, facilitating the development of holistic decision-making processes. The information integration into Digital Twins enables the coordination and synchronization of the production process with the logistics processes and other functions [28,29]. This flow of information and the associated decision-making processes are represented in Figure 1. It depicts how the shop floor and the Digital Twin are connected and how the Digital Twin allows the autonomous configuration. Physical processes take place on the shop floor. It is where real-world data are collected (at the lowest level in Figure 1). Then, these data are transmitted in real time to the Digital Twin. This information is processed at the intermediate level of Figure 1 and fed into the decision level. The output of the decision level is a production schedule processed by the Digital Twin and enacted by the shop floor.

2.2. Scheduling Decision-Making in Cyber-Physical Production Systems

In industrial settings, the solution of scheduling decision-making problems represents the last process before starting production. Scheduling assigns different production orders to the production resources, respecting the technological restrictions and yielding a timetable of activities. Scheduling problems are solved considering the restrictions proper of the production processes (e.g., operations precedence), and also considering other features proper of industrial companies (e.g., achieving the quality specifications agreed with customers, which demand different types of setups on the machines), all this trying to optimize the performance criteria specified by the firms [30]. As expected, scheduling is carried out dynamically (i.e., the shop floor fulfills the orders as they arrive). Thus, the status of the shop floor becomes a critical input to the scheduling decision-making process. The functions of production control are closely related to this scheduling process, since any deviation from the production schedule affects the performance of the production system [31]. This shows why the topic of scheduling has been intensively studied in the context of Industry 4.0 systems in recent years [32,33,34,35].
According to this, an issue that has gained renewed interest with the emergence of Industry 4.0 is the problem of rescheduling, that is, the selection of corrective actions after disruptive (non-planned) events to diminish their impact [36]. These disruptions must be detected and analyzed in real time to take corrective actions. Naturally, since these events occur while production is being executed, the nature of the events is dynamic. The sooner these disruptions are detected and the corresponding data are collected, the better the possibility that the corrective actions may be effective. Therefore, information technologies play a central role in detecting and reacting to disruptive events. That is why CPSs leverage the capabilities of Manufacturing Execution Systems to address rescheduling problems. CPSs enable the interconnection of the entire shop floor. Every event on the floor is detected by the CPS sensors. This is translated into meaningful information, allowing the CPSs to analyze potential corrective actions in real time [1,37]. While the study of rescheduling processes has attracted the general interest of the research community [34,38,39], most of these approaches have assumed traditional scheduling processes, where the optimal solution is calculated in a centralized manner, i.e., gathering all the relevant information from all the assets/machines [40]. While these approaches take advantage of certain features of the new information technologies, they do not use the full potential of decentralization processes [41].

2.3. Motivation

As said, rescheduling processes seek to solve those problems by gathering all the necessary data and re-optimizing decisions in a centralized way. The main argument supporting this approach is based on an integral solution to the problem, applied on the entire system and each of its sub-systems. This way of approaching the problem may not be agile enough to restrict the ability of the system to adapt to new scenarios [42]. These limitations undermine the capacities of production systems based on CPSs, which incorporate machinery according to the “plug-and-produce” logic. This article addresses this issue, providing the foundations for a possible solution of rescheduling processes in a decentralized and autonomous manner, delegating the task to each sub-system (other approaches to decentralized rescheduling are, for instance, [43,44,45]). To achieve this, it is vital to ensure that the decisions are made by each subsystem or element of the system (in this case CPSs), generating solutions that do not conflict with the decisions of the rest of the elements or subsystems. The decisions made by the individual components are compatible with the rest of the components and the entire system. Consequently, the emergence of unintended behaviors in decentralized autonomous systems must be avoided, that is, the spontaneous apparition of behaviors that were not planned. This paper proposes an approach based on Category Theory to model each of these subsystems so that decentralized decision processes do not generate the emergence of conflicting situations. Naturally, this line of study contributes to improving the decentralization and scalability of production processes, ensuring the correct interoperability of production processes based on CPS.
Consequently, his article makes the following primary contributions:
  • The formulation of a Category Theory-based model for cyber-physical systems, enabling a scalable description of their interconnection.
  • A theoretical framework of decision-making for rescheduling within these systems.
Our approach is purely formal, abstracting away from specific details of CPSs as in [12]. Even so, the results are intended to contribute a better understanding of these systems. The formal nature of this description may provide a schematics for possible implementations, which are not the object of the present paper.

3. Mathematical Preliminaries

Various mathematical notions are relevant to our treatment. They provide a framework for the connection of generic entities. We assume a basic knowledge of Category Theory [46].
We start with the concept of a cospan. Consider, in a given category C , a central object N with input and output ports, X and Y respectively. N is called the apex of the cospan, while X and Y are its feet. The cospan can be written as X f N g Y , where f and g are morphisms between X and N and Y and N, respectively. Suppose now that another cospan shares Y with the previous one: Y h N l Z . These cospans can be composed by connecting the two apexes to obtain a new one, with input X and output Z.
In this way, a cospan X f N g Y can be seen as a morphism between X and Y. To be such, the apex and the feet must be objects in C . Furthermore, we need (as the identity morphism) to define a cospan A i d A i d A for each object A. This is ensured since C is a category.
This definition of a cospan as a morphism allows us to define a category Cospan C in which the objects are the same as in C , while the morphisms are cospans among objects in C . We can ensure their compositionality if pushouts are defined in the basis category C .
Since we also want compositions in parallel, we need to be able to define a monoidal operation + between cospans. This is enough to have both an initial object and pushouts between any pair of objects in C .
If these conditions are fulfilled, Cospan C is a monoidal symmetric category, i.e., it has the following components:
  • An initial object I, such that for each object A in C there exists a unique morphism ! : I A .
  • The coproduct ⊔ in C , provides the definition of the functor (monoidal product) : Cospan C × Cospan C Cospan C .
  • For each pair of objects A and B, A B is isomorphic to B A .
This is ensured if pushouts and an initial object exist in C . This is the case if it is a category with finite colimits. An important case arises when C is FinSet , whose objects are finite sets. We can restrict our attention to typed finite sets ( TFS Λ ). We define a set Λ of types and each object in TFS Λ is ( X , τ X ) such that τ X : X Λ . Each X can be interpreted as a set of ports and τ X indicates the type of each port. It is known that TFS Λ has finite colimits [46].
We use W Λ to represent Cospan TFS Λ . Its objects are called interfaces. The morphisms (cospans) X N Y are called wiring diagrams and the apex N is the family of connections. We can thus connect three objects X 1 ,   X 2 and X 3 to obtain a new object Y as a cospan X 1 + X 2 + X 3 f 1 N f 2 Y , representing the larger object defined as the network consisting of the objects X 1 , X 2 and X 3 .
A Hypergraph category [47] is a monoidal symmetric category in which the wiring diagrams constitute networks (that is, cables can be joined and can bifurcate). Technically, each object is equipped with a special commutative Frobenius monoid. In the instances to be considered here, this condition is automatically satisfied. It can be described as ( Λ , H ) where Λ is a class of types and H : W Λ Set is a lax functor such that, given an operation ⊗ in Set , there exists a morphism f such that H ( X ) H ( Y ) f H ( X + Y ) and, given the unit object I, there exists a morphism g such that I g H ( ) .
The importance of the existence of a lax functor on W Λ is that in Set we can represent behaviors associated to the structures represented as wiring diagrams. This is particularly true in the case of W Λ .
An important result in this paper ensues from considering diagrams of the following form:
                     Axioms 14 00332 i004
  • where A ,   B ,   C , and D are categories and F ,   G ,   H , and L are functors. If for every a Ob ( A ) , there exists a unique morphism
H F ( a ) L G ( a ) Morph ( D )
we say that the diagram t-commutes.

4. A Representation of CPS

Cyber-physical systems are hard to define with precision. In particular, a definition in terms of their structure is elusive. It seems easier to provide a presentation based on their functionalities:
Cyber-physical systems combine cyber capabilities with physical capabilities to solve problems that neither part could solve alone [48].
Examples of these range from cars to robots. They act physically on the world as determined by discrete algorithms that adjust their actuators based on sensor readings of the physical state. An abstract representation of a CPS, X = I X , O X , S X , γ X , ρ X would thus involve the following elements:
  • A set of inputs  I X , each of them consisting of a sensor. Each i X I X has a type (for instance, a camera has a type R 2 N representing the fact that takes two-dimensional pictures in time (recorded in discrete periods, i.e., represented by natural numbers)).
  • A set of outputs  O X , each of them corresponding to an actuator. Again, each of them has a type, identified with its possible action (a robotic arm could make a series of movements, described by R 3 N , indicating a discrete number of positions in three-dimensional space until reaching the final position).
  • A set of internal states, S X , summarizing the entire information processed by the CPS.
  • A function γ X : I X × S X S X and another ρ X : S X O X . γ X represents the modification of the internal state upon the reception of new inputs, while ρ X sends the adjustments to the actuators, generating new outputs.
One of the main goals in the design of CPS is to ensure their compositional integration ([48], p. 9). In terms of Section 3, this would mean ensuring that the cyber-physical systems defined above constitute objects in a hypergraph category.

5. The Hypergraph Category of CPS

Consider a category of CPS, sharing a common set of types Λ of all its inputs and outputs, denoted CPS . Each object X in the category corresponds to a cyber-physical system X = I X , O X , S X , γ X , ρ X .
Given two objects, X = I X , O X , S X , γ X , ρ X and X = I X , O X , S X , γ X , ρ X , a morphism CPS
X X
is such that
  • I X I X , i.e., the sensors of X read at least the same data as those of X.
  • O X O X , meaning that O X contains the same actuators as O X .
  • S X S X , that is, the internal states of X constitute a subset of those of X .
  • γ X is the restriction of γ X over I X × S X , while ρ X is the constraint of ρ X on S X .
Then, a morphism X X indicates that X is a subsystem of X .
To complete the characterization of CPS , we define pushouts and an initial object in this category:
  • Pushouts: Consider three objects X, X 1 and X 2 and morphisms X f X 1 and X g X 2 . Then, take the pushout of X 1 and X 2 , denoted X 1 + X 2 , obtained as the largest subsystem common to X 1 and X 2 such that X is one of its subsystems.
  • Initial object: Consider the empty system  X , without inputs, outputs and states. It follows trivially that X X for every X in CPS .
Then we have the following (the proofs of all the claims can be found in Appendix A):
Proposition 1.
CPS is a category with colimits.
Since CPS is, according to Proposition 1, a category with colimits, we can define cospans in it. Consider again three objects X, X and X and two morphisms X f X g X . This is called a cospan from X to X .
We can thus define the category of cospans in CPS , denoted cospan CPS which has a symmetric monoidal structure. Its objects are the same as those of CPS and a morphism X h X is a cospan from X to X .
Given two morphisms in cospan CPS , X f X and X g X , there exists a morphism X g f X that obtains as a composition of the corresponding cospans.
The monoidal structure of cospan CPS is given by
  • The unit is X , the initial object in CPS .
  • The monoidal product of X and X , X + X , is defined as the coproduct X X .
We now present a diagrammatic language for the composition of CPS. We start by considering a symmetric monoidal category W CPS . By definition, we have
W CPS = cospan CPS
Each object, i.e., a cyber-physical system X, is seen as a I X , O X -labeled interface. Morphisms X C X yield a wiring diagram. The interpretation is that C is a CPS that “connects” X and X (notice that C as an object has inputs and outputs, I C and O C , respectively, but to make sense, its states must be “transparent”, i.e., S C = ).
We write ψ : X 1 , X 2 , , X n X ¯ to denote the wiring diagram ϕ : X 1 + X 2 + + X n X ¯ . We can, in turn, see this as
X 1 + X 2 + + X n f C f ¯ X ¯ .
The following figure illustrates the wiring diagram X 1 + X 2 X ¯ where I X 1 I X 2 = { 2 } :
Axioms 14 00332 i002
We define a hypergraph category  CPS , Bhv with Bhv : W CPS X CPS S X , where the range represents the set of internal states in the whole family of CPS. For every object X in W CPS , Bhv ( X ) is understood as the behavior of X, encoded in its internal states.
Let us define an operation ^ such that given two internal states s Bhv ( X ) and s Bhv ( X ) it yields a unique internal state in X + X , combining s and s .
Then, we have
Proposition 2.
For any pair of CPS, X and X , Bhv ( X ) ^ Bhv ( X ) = Bhv ( X + X ) .
Furthermore, we also have = Bhv ( X ) , where X is the initial object in CPS and thus in W CPS .
We have the following:
Proposition 3.
Bhv is a lax monoidal functor.

6. Case Study: Scheduling Problems

Formally, a scheduling problem is the allocation of a family J of jobs, J = { 1 , 2 , , n } on a set M = { 1 , 2 , , m } of machines. Each job j consists of a class O j of operations, such that O i j represents an operation of job j that must be carried out on machine i.
Each operation O i j has an associated pair of starting and stopping times s i j , t i j R 2 such that its processing time is τ i j = t i j s i j . Each job j has an associated linear ordering j defined on O j , reflecting the precedence relation between operations. A schedule π : J M is an assignment of jobs to machines in the following cases:
  • Given O i j and O i j , i.e., two operations on the same machine by any two different jobs j and j on any given machine i, either t i j s i j or t i j s i j . This means that the operations of two jobs cannot overlap on any machine.
  • Given O i j and O i j , i.e., two operations of any job j on any two different machines i and i , either t i j s i j or t i j s i j . This means that different operations of a single job cannot be carried out simultaneously on different machines.
Denoting by F an objective function of the space Π of schedules, the scheduling problem is to find π * Π yielding the optimal value of F ( π ) .
Scheduling problems are highly dependent on the actual details of the production setting (Job Shop, Flow Shop, etc.). The inclusion of different parameters (delivery dates, preparation times, waiting times, etc.). and the adoption of different objective functions (makespan, total tardiness, maximal tardiness, etc.) leads to alternative statements of the general problem.
The emergence of Industry 4.0 has given rise to new capabilities that must be taken into account in the formulation of scheduling problems, particularly in rescheduling where the availability of information is a key factor. In this sense, the Tolerance Scheduling Problem that underpins Smart Scheduling becomes of special interest [5]. Tolerance Scheduling requires the analysis of the non-planned events, in such a manner that can be easily translated into scheduling parameters and variables, and to define direct rules for triggering decisions.
To address this issue, let us introduce an extra item in the description of a job j, namely its delivery date  d j , i.e., the time at which it should be finished. Then, given a schedule π , we can define the tardiness of job j as the extra time required to finish it with respect to its delivery date:
L j ( π , d ) = C j ( π ) d j
where C j ( π ) is the time needed to finish job j under schedule π while d is the vector of delivery dates of all the jobs. Then, the maximum tardiness of the schedule is given by
L * ( π , d ) = max j J L j ( π , d )
In the classical version of this scheduling problem, the goal is to find the schedule π * Π that minimizes L * ( π , d ) . In the case of Industry 4.0 processes carried out by a network of CPS, a perhaps more relevant goal is that of generating a range of tolerances for the parameters of the model. Like in the specification of tolerances for manufactured goods allowing a range within which a good can still be considered appropriate, here, we allow for a certain degree of imperfection in the plan carried out.
Formally, given an optimal schedule π * that minimizes L * ( π , d ) , and the families of parameters { d j } j J and { τ i j } i M , j J , we seek a maximal interval of variations for them, incorporating an inertia term, δ , expressing the weight given to the stability of the system. A high δ indicates that the design favors high stability (high inertia): only a few events may trigger reschedules. That is, given an optimal schedule π * and a class of intervals { [ d ̲ j , d ¯ j ] } j J such that for each j J , [ d ̲ j , d ¯ j ] R :
  • Find a schedule π * * and d ^ j [ d ̲ j , d ¯ j ] for every job j J , such that
    -
    L * ( π * * , d ) L * ( π * , d ^ ) ( 1 + δ ) and
    -
    | | d ^ d | | = max { d j [ d ̲ j , d ¯ j ] : j J } | | d d | | .
for any schedule π . That is, the goal is to maximize the distance between the d parameters while ensuring that schedule π * improves the original objective function up to an inertial factor δ 0 . If no solution exists, a new schedule must be found under a different vector of delivery dates.
This whole process is described in Figure 2. It can be seen that the Tolerance Scheduling problem requires the explicit incorporation of the tolerance that planners would admit. This strategy can be used in autonomous systems.

7. Categorical Scheduling

To translate Smart Scheduling to a categorical language, we start by identifying each machine in M with an object W CPS . That is,
  • For each i M , there exists X i Ob ( W CPS ) .
  • A wiring diagram ϕ : X 1 + + X m X ¯ , X ¯ represents the network of machines on which the production plan is carried out.
On the other hand, given the natural ordering of J = { 1 , , n } , ⪯, we define a trivial category J such that
  • Ob ( J ) = Ob ( J ) .
  • Given j 1 , j 2 Ob ( J ) , there exists f : j 1 j 2 Morph ( J ) if and only if j 1 j 2 .
Then, J × W CPS can be defined as a category in which an object j , X i can be interpreted as a job and a machine (or more in general, a network of CPS) on which an operation O i j is carried out.
A morphism
j , X i j , X i
indicates that O i j precedes O i j .
Given a CPS X i , its set of internal states S X i is such that any θ S X i is a vector θ = ( θ 1 , , θ j , , θ n ) , where θ j is a linear ordering of { O i , j } j J . A further condition is that θ has to satisfy the consistency conditions on the operations, avoiding overlaps and violations of precedence relations.
We can denote by J i the set of jobs to be carried out on a CPS X i . Then, i M J i is the direct sum of the sets of jobs corresponding to the m machines. Without loss of generality, we can assume that J i = J for each i M .
A schedule is represented by a functor
π : J W CPS
under the condition that, given ϕ : X 1 + + X m X ¯ ,
Bhv ( X ¯ ) = ^ i M Bhv ( X i )
We denote with F * the functor yielding the optimal value of the original objective function, p r 1 is the projection on the first component of a cartesian product, and I n t ( R ) is the category in which its objects are closed real intervals and the morphisms are inclusions among them.
The functoriality of all the aforementioned mappings is predicated on the assumption that, given any morphism j , X i j , X i , any such map (say H) is such that H ( j , X i ) H ( j , X i ) since flow shop scheduling problems, which underlie Smart Scheduling problems are known to be N P -hard in the strong sense [49]. Then, on jobs, the maps preserve their natural ordering while on machines, if the complexity increases, so does the description of behaviors while tardiness does not decrease. Then, we have the following (an alternative categorical formulation of the solution of scheduling problems presents a similar condition [50]):
Theorem 1.
A schedule π is a smart schedule if the following diagram t-commutes:
         Axioms 14 00332 i005
  • where Φ 1 = Bhv π p r 1 and Φ 2 = max j C j F * π d .
In particular, given a wiring diagram ϕ : X 1 + + X m X ¯ , a smart schedule  π assigns jobs in J to the CPS X 1 , , X m in such a way that the corresponding θ Bhv ( X ¯ ) yields a vector of tardiness d ^ that ensures that the actual optimal global tardiness belongs to an interval that is at a distance ( 1 + δ ) of the “acceptable” value of tardiness.

8. A Generalization

The implementation of smart schedules in the category W CPS is based on distributing the information among the objects { X i } i M , allowing each X i to solve its part of the problem, yielding Bhv ( X i ) . This, of course, is a consequence of the abstract nature of the X i s.
We omitted the specific details that make the objects in { X i } i M different and how these distinctions induce different responses. But even taking into account those, the question remains on how the CPSs may generate π .
A quick initial reading may lead the reader to think that the generation of schedules must the result of a centralized process. The fact is that our formalism can be generalized to ensure the full decentralization of the decision-making procedure.
The key of this is assuming that morphisms among the X i s are now endowed with a structure given in [51] (interesting alternatives to achieve consistent decision-making procedures in distributed systems can be obtained applying Sheaf Theory [52] or forcing in the Zermelo–Fraenkel Set Theory with the Axiom of Choice [53]):
  • [ X i , X j ] , the internal hom among X i and X j . It can be seen as an object in W CPS that summarizes the set { f : X i X j } of morphisms between X i and X j .
  • Given [ X i , X j ] , a [ X i , X j ] Coalg is a category in which each object is triple s , ρ , μ :
    -
    s S i j , where S i j is a space of states, capturing the dynamics of the interaction between X i and X j .
    -
    ρ : S i j [ X i , X j ] , assigning to the current state one of the input/output operations ϕ of [ X i , X j ] .
    -
    μ updates the state in response to that pattern, i.e., μ ( ϕ ) = s S i j .
Consider as an example a system in which two subsystems X 1 and X 2 yield a full system. X 1 has input port C and output port B, while X 2 has input ports A and B and output port C.
For any state s S 12 of a [ X 1 , X 2 ] -coalgebra ( S , ρ , μ ) , we have ρ ( s ) that gives a morphism X 1 X 2 in W CPS that can be depicted as
Axioms 14 00332 i003
Given ( a , b , c ) A × B × C , μ ( a , b , c ) is the updated state in S 12 , which in turn may yield a new connection among X 1 and X 2 .
In this generalized framework, Theorem 1 still applies, but now Φ 2 [ X 1 + + X m , X ¯ ] , arising from the distributed computation.

9. Conclusions

In this work, we presented a Category Theory-based framework for modeling cyber-physical systems (CPSs) in Industry 4.0 environments, with particular emphasis on scheduling. We addressed the problem of ensuring consistency in the composition of CPSs while providing a mathematical foundation for decentralized decision-making processes in the resulting interconnection of cyber-physical components.
We developed an abstraction of CPSs and constructed a mathematical framework that precisely captures their behavior and interactions. This offers a foundation that can address the inherent complexity of Industry 4.0 environments. The formalization includes a symmetric monoidal structure within a basic category of CPS-like units, allowing for a precise characterization of compositional behavior. This mathematical structure enables formal reasoning about how systems behave when interconnected, providing assurances about the predictability of combined behaviors.
The categorical framework directly addresses two critical challenges identified in CPS integration:
  • Interoperability at the interface level: the framework provides formal guarantees about the compatibility of communication interfaces when distinct CPS are connected, addressing the frequent issue of incompatible communication protocols and data formats.
  • Emergence at the behavioral level: by formalizing the compositional integration of CPS, the framework supports emergent behaviors that arise when independent systems are combined. This is particularly relevant as emergence can lead to unintended consequences in Industry 4.0 systems.
This theoretical foundation for decentralized and autonomous decision-making is particularly suited for analyzing scheduling and rescheduling in Industry 4.0 environments. They often fail to mantain global consistency, but in our approach, production systems respond to disruptions without requiring complete system reconfiguration. More precisely, a contribution of our framework is in its capacity to prevent conflicts between decisions made by individual system components. By formalizing the relationships between component behaviors, we ensure that local optimizations do not produce globally suboptimal or conflicting outcomes. Smart Scheduling, characterized by the application of the lax monoidal functor in the category of CPSs, formalizes the design of rescheduling processes in those cases.
Future work involves a more detailed analysis of this framework, particularly in the light of real-world instances. This will contribute to the development of automated Smart Schedulers. The categorical language used here facilitates their implementation in typed languages and even in LLMs.

Author Contributions

Conceptualization, F.T. and D.R.; Methodology, F.T. and D.R.; Formal analysis, F.T. and D.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Proof of Proposition 1. 
It is trivial to see that CPS is a category:
  • For each X Ob ( CPS ) , there exists the identity morphism X X since, trivially, I X I X , O X O X and S X S X .
  • Given two morphisms f : X X and g : X X , the composition g f : X X obtains I X I X I X and thus I X I X and analogously for O and S. Finally, γ X and ρ X are restrictions of γ X and ρ X which in turn are restrictions of γ X and ρ X , respectively. Then, by transitivity, it follows that γ X and ρ X are restrictions of γ X and ρ X . The associativity of ∘ ensues immediately.
Finally, any category with an initial object and pushouts has all finite colimits (see Prop. 6.28 in [54]).
Proof of Proposition 2. 
If S X S X = , X + X = X X . Thus, each state of X + X is just the disjoint combination of states in X and X . If, on the other hand, S X S X , there exists a function H : S X + X S X × S X such that given s S X and s S X , there exists s ¯ S X + X verifying that H ( s ¯ ) = s , s .
Proof of Proposition 3. 
If we denote by + the monoidal operation in W CPS and = ^ the monoidal operation in X Ob ( W CPS ) S X , Proposition 2 indicates that there exist a trivial natural isomorphism 
S X S X S X + X
Furthermore, taking the unit in X Ob ( W CPS ) S X to be the empty set, we also have = S X , where X is the initial object in CPS and thus in W CPS .
Proof of Theorem 1. 
Given the jobs in J and the CPS { X i } i M W CPS with a wiring diagram ϕ : X 1 + + X m X ¯ , the lower left path in the diagram yields first the list { j , θ j } j Ob ( J ) = Bhv ( π ( J ) ) and then the list { ( C j ( π ) , d j ) } j Ob ( J ) which allows to compute L * ( π , d ^ ) ( 1 + δ ) and thus the closed real interval [ 0 , L * ( π , d ^ ) ( 1 + δ ) ] .
On the other hand, the upper right path yields { j , π ( j ) } j Ob ( J ) and then F * ( π ) and then L * ( π , d ^ ) . Then, the t-commutativity indicates that
[ 0 , L * ( π , d ^ ) ] [ 0 , L * ( π , d ^ ) ( 1 + δ ) ]
where ↪ is the (unique) morphism corresponding to the inclusion among the intervals. Thus,
L * ( π , d ^ ) L * ( π , d ^ ) ( 1 + δ ) ,
which is a condition that should be satisfied by a smart schedule.

References

  1. Lee, J.; Bagheri, B.; Kao, H.A. A cyber-physical systems architecture for industry 4.0-based manufacturing systems. Manuf. Lett. 2015, 3, 18–23. [Google Scholar] [CrossRef]
  2. Kusiak, A. Smart manufacturing. Int. J. Prod. Res. 2018, 56, 508–517. [Google Scholar] [CrossRef]
  3. Lee, E.A. Cyber physical systems: Design challenges. In Proceedings of the 2008 11th IEEE International Symposium on Object and Component-Oriented Real-Time Distributed Computing (ISORC), Orlando, FL, USA, 5–7 May 2008; IEEE: New York, NY, USA, 2008; pp. 363–369. [Google Scholar]
  4. Monostori, L. Cyber-physical production systems: Roots, expectations and R&D challenges. Procedia CIRP 2014, 17, 9–13. [Google Scholar]
  5. Rossit, D.A.; Tohmé, F.; Frutos, M. Industry 4.0: Smart scheduling. Int. J. Prod. Res. 2019, 57, 3802–3813. [Google Scholar] [CrossRef]
  6. Harkat, H.; Camarinha-Matos, L.M.; Goes, J.; Ahmed, H.F. Cyber-physical systems security: A systematic review. Comput. Ind. Eng. 2024, 188, 109891. [Google Scholar] [CrossRef]
  7. Monostori, L.; Kádár, B.; Bauernhansl, T.; Kondoh, S.; Kumara, S.; Reinhart, G.; Sauer, O.; Schuh, G.; Sihn, W.; Ueda, K. Cyber-physical systems in manufacturing. CIRP Ann. 2016, 65, 621–641. [Google Scholar] [CrossRef]
  8. Rossit, D.; Tohmé, F. Scheduling research contributions to Smart manufacturing. Manuf. Lett. 2018, 15, 111–114. [Google Scholar] [CrossRef]
  9. Lu, Y. Industry 4.0: A survey on technologies, applications and open research issues. J. Ind. Inf. Integr. 2017, 6, 1–10. [Google Scholar] [CrossRef]
  10. Romero, D.; Vernadat, F. Enterprise information systems state of the art: Past, present and future trends. Comput. Ind. 2016, 79, 3–13. [Google Scholar] [CrossRef]
  11. Kopetz, H.; Bondavalli, A.; Brancati, F.; Frömel, B.; Höftberger, O.; Iacob, S. Emergence in Cyber-Physical Systems-of-Systems (CPSoSs). In Cyber-Physical Systems of Systems; Springer: Berlin/Heidelberg, Germany, 2016; pp. 73–96. [Google Scholar]
  12. Bakirtzis, G. Compositional cyber-physical systems theory. arXiv 2021, arXiv:2109.04858. [Google Scholar]
  13. Bakirtzis, G.; Vasilakopoulou, C.; Fleming, C.H. Compositional cyber-physical systems modeling. arXiv 2021, arXiv:2101.10484. [Google Scholar] [CrossRef]
  14. Bakirtzis, G.; Fleming, C.H.; Vasilakopoulou, C. Categorical semantics of cyber-physical systems theory. ACM Trans. Cyber Phys. Syst. 2021, 5, 32. [Google Scholar] [CrossRef]
  15. Xu, X. From cloud computing to cloud manufacturing. Robot. Comput. Integr. Manuf. 2012, 28, 75–86. [Google Scholar] [CrossRef]
  16. Wang, X.V.; Wang, L. From cloud manufacturing to cloud remanufacturing: A cloud-based approach for WEEE recovery. Manuf. Lett. 2014, 2, 91–95. [Google Scholar] [CrossRef]
  17. Chiappa, S.; Videla, E.; Viana-Céspedes, V.; Piñeyro, P.; Rossit, D.A. Cloud manufacturing architectures: State-of-art, research challenges and platforms description. J. Ind. Inf. Integr. 2023, 34, 100472. [Google Scholar] [CrossRef]
  18. Tushar, W.; Yuen, C.; Saha, T.K.; Nizami, S.; Alam, M.R.; Smith, D.B.; Poor, H.V. A survey of cyber-physical systems from a game-theoretic perspective. IEEE Access 2023, 11, 9799–9834. [Google Scholar] [CrossRef]
  19. Singh, N.; Panigrahi, P.K.; Zhang, Z.; Jasimuddin, S.M. Cyber-physical systems: A bibliometric analysis of literature. J. Intell. Manuf. 2024, 36, 2335–2371. [Google Scholar] [CrossRef]
  20. Xu, L.D.; Xu, E.L.; Li, L. Industry 4.0: State of the art and future trends. Int. J. Prod. Res. 2018, 56, 2941–2962. [Google Scholar] [CrossRef]
  21. Da Xu, L.; He, W.; Li, S. Internet of things in industries: A survey. IEEE Trans. Ind. Inform. 2014, 10, 2233–2243. [Google Scholar]
  22. Verma, R.; Koul, S.; KV, A. Evaluation and selection of a cybersecurity platform: Case of the power sector in India. Decis. Mak. Appl. Manag. Eng. 2023, 7, 209–236. [Google Scholar] [CrossRef]
  23. Peres, R.S.; Jia, X.; Lee, J.; Sun, K.; Colombo, A.W.; Barata, J. Industrial artificial intelligence in industry 4.0-systematic review, challenges and outlook. IEEE Access 2020, 8, 220121–220139. [Google Scholar] [CrossRef]
  24. Sanchez, M.A.; Rossit, D.; Tohmé, F. Enhancing production system resilience with digital twin-driven management. Int. J. Comput. Integr. Manuf. 2024, 1–20. [Google Scholar] [CrossRef]
  25. Sood, V.M.; Singh, Y.; Bhargava, B.; Narang, S.K. Intelligent Security Solutions for Cyber-Physical Systems; CRC Press: Boca Raton, FL, USA, 2024. [Google Scholar]
  26. Pivoto, D.G.; de Almeida, L.F.; da Rosa Righi, R.; Rodrigues, J.J.; Lugli, A.B.; Alberti, A.M. Cyber-physical systems architectures for industrial internet of things applications in Industry 4.0: A literature review. J. Manuf. Syst. 2021, 58, 176–192. [Google Scholar] [CrossRef]
  27. Cao, Y.; Yang, A.; Li, H.; Zeng, Q.; Gao, J. A comprehensive knowledge map for AI improving security management of cyber-physical system enabled smart manufacturing. Comput. Secur. 2024, 137, 103650. [Google Scholar] [CrossRef]
  28. Guo, D.; Zhong, R.Y.; Rong, Y.; Huang, G.G. Synchronization of shop-floor logistics and manufacturing under IIoT and digital twin-enabled graduation intelligent manufacturing system. IEEE Trans. Cybern. 2021. [Google Scholar] [CrossRef] [PubMed]
  29. Kaiser, J.; Mcfarlane, D.; Hawkridge, G.; André, P.; Leitão, P. A review of reference architectures for digital manufacturing: Classification, applicability and open issues. Comput. Ind. 2023, 149, 103923. [Google Scholar] [CrossRef]
  30. Pinedo, M.L. Scheduling; Springer: Berlin/Heidelberg, Germany, 2012; Volume 29. [Google Scholar]
  31. Vieira, G.E.; Herrmann, J.W.; Lin, E. Rescheduling manufacturing systems: A framework of strategies, policies, and methods. J. Sched. 2003, 6, 39–62. [Google Scholar] [CrossRef]
  32. Zhang, J.; Ding, G.; Zou, Y.; Qin, S.; Fu, J. Review of job shop scheduling research and its new perspectives under Industry 4.0. J. Intell. Manuf. 2019, 30, 1809–1830. [Google Scholar] [CrossRef]
  33. Zhang, F.; Mei, Y.; Nguyen, S.; Zhang, M. Evolving scheduling heuristics via genetic programming with feature selection in dynamic flexible job-shop scheduling. IEEE Trans. Cybern. 2020, 51, 1797–1811. [Google Scholar] [CrossRef]
  34. Zimmermann, E.; Mezgebe, T.T.; Haouzi, H.B.E.; Thomas, P.; Pannequin, R.; Noyel, M. Multicriteria decision-making method for scheduling problem based on smart batches and their quality prediction capability. Comput. Ind. 2021, 133, 103549. [Google Scholar] [CrossRef]
  35. Villalonga, A.; Negri, E.; Biscardo, G.; Castano, F.; Haber, R.E.; Fumagalli, L.; Macchi, M. A decision-making framework for dynamic scheduling of cyber-physical production systems based on digital twins. Annu. Rev. Control 2021, 51, 357–373. [Google Scholar] [CrossRef]
  36. Yilma, B.A.; Panetto, H.; Naudet, Y. Systemic formalisation of Cyber-Physical-Social System (CPSS): A systematic literature review. Comput. Ind. 2021, 129, 103458. [Google Scholar] [CrossRef]
  37. Rossit, D.A.; Tohme, F. knowledge representation in Industry 4.0 scheduling problems. Int. J. Comput. Integr. Manuf. 2022, 35, 1172–1187. [Google Scholar] [CrossRef]
  38. Antons, O.; Arlinghaus, J.C. Data-driven and autonomous manufacturing control in cyber-physical production systems. Comput. Ind. 2022, 141, 103711. [Google Scholar] [CrossRef]
  39. Mourtzis, D.; Angelopoulos, J.; Zogopoulos, V. Integrated and adaptive AR maintenance and shop-floor rescheduling. Comput. Ind. 2021, 125, 103383. [Google Scholar] [CrossRef]
  40. Uhlmann, I.R.; Frazzon, E.M. Production rescheduling review: Opportunities for industrial integration and practical applications. J. Manuf. Syst. 2018, 49, 186–193. [Google Scholar] [CrossRef]
  41. Grassi, A.; Guizzi, G.; Santillo, L.C.; Vespoli, S. Assessing the performances of a novel decentralised scheduling approach in Industry 4.0 and cloud manufacturing contexts. Int. J. Prod. Res. 2021, 59, 6034–6053. [Google Scholar] [CrossRef]
  42. Minguillon, F.E.; Lanza, G. Coupling of centralized and decentralized scheduling for robust production in agile production systems. Procedia CIRP 2019, 79, 385–390. [Google Scholar] [CrossRef]
  43. Tan, Y.; Aufenanger, M. A real-time rescheduling heuristic using decentralized knowledge-based decisions for flexible flow shops with unrelated parallel machines. In Proceedings of the 2011 9th IEEE International Conference on Industrial Informatics, Lisbon, Portugal, 26–29 July 2011; IEEE: New York, NY, USA, 2011; pp. 431–436. [Google Scholar]
  44. Sundermeier, J.; Gehlhoff, F.; Fay, A. Development of a Simulation Model to Analyze the Performance of Decentral Rescheduling Algorithms in Production Systems. Simul. Notes Eur. 2020, 30, 15–22. [Google Scholar] [CrossRef]
  45. Yang, Y.; Ren, F.; Zhang, M. A Hybrid Multiagent-Based Rescheduling Mechanism for Open and Stochastic Environments Concerning the Execution Stage. In Proceedings of the Australasian Joint Conference on Artificial Intelligence, Sydney, NSW, Australia, 2–4 February 2022; Springer: Berlin/Heidelberg, Germany, 2022; pp. 556–569. [Google Scholar]
  46. Spivak, D.I. Category Theory for the Sciences; MIT Press: Cambridge, MA, USA, 2014. [Google Scholar]
  47. Fong, B.; Spivak, D.I. Hypergraph categories. J. Pure Appl. Algebra 2019, 223, 4746–4777. [Google Scholar] [CrossRef]
  48. Platzer, A. Logical Foundations of Cyber-Physical Systems; Springer: Berlin/Heidelberg, Germany, 2018; Volume 662. [Google Scholar]
  49. Garey, M.R.; Johnson, D.S. Computers and Intractability; Freeman: San Francisco, CA, USA, 1979; Volume 174. [Google Scholar]
  50. Breiner, S.; Denno, P.; Subrahmanian, E. Categories for planning and scheduling. Not. Am. Math. Soc. 2020, 67, 1666–1677. [Google Scholar] [CrossRef]
  51. Tohmé, F.; Fioriti, A. Level-Agnostic Representations of Interacting Agents. Mathematics 2024, 12, 2697. [Google Scholar] [CrossRef]
  52. Król, J.; Schumann, A.; Bielas, K. Brain and its universal logical model of multi-agent biological systems. Log. Universalis 2022, 16, 671–687. [Google Scholar] [CrossRef]
  53. Król, J.; Schumann, A. The formal layer of {brain and mind} and emerging consciousness in physical systems. Found. Sci. 2023, 1–30. [Google Scholar] [CrossRef]
  54. Fong, B.; Spivak, D.I. An Invitation to Applied Category Theory: Seven Sketches in Compositionality; Cambridge University Press: Cambridge, UK, 2019. [Google Scholar]
Figure 1. Smart manufacturing Digital Twin.
Figure 1. Smart manufacturing Digital Twin.
Axioms 14 00332 g001
Figure 2. Smart Scheduling flow chart.
Figure 2. Smart Scheduling flow chart.
Axioms 14 00332 g002
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tohmé, F.; Rossit, D. Compositional Scheduling in Industry 4.0 Cyber-Physical Systems. Axioms 2025, 14, 332. https://doi.org/10.3390/axioms14050332

AMA Style

Tohmé F, Rossit D. Compositional Scheduling in Industry 4.0 Cyber-Physical Systems. Axioms. 2025; 14(5):332. https://doi.org/10.3390/axioms14050332

Chicago/Turabian Style

Tohmé, Fernando, and Daniel Rossit. 2025. "Compositional Scheduling in Industry 4.0 Cyber-Physical Systems" Axioms 14, no. 5: 332. https://doi.org/10.3390/axioms14050332

APA Style

Tohmé, F., & Rossit, D. (2025). Compositional Scheduling in Industry 4.0 Cyber-Physical Systems. Axioms, 14(5), 332. https://doi.org/10.3390/axioms14050332

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop