Next Article in Journal
AFEDet: A Symmetry-Aware Deep Learning Model for Multi-Scale Object Detection in Aerial Images
Previous Article in Journal
Semantic Textual Similarity with Constituent Parsing Heterogeneous Graph Attention Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improvement of Scheduling Optimization of Cyber-Physical Systems Based on Petri Net and Intelligent Algorithm

School of Control Science and Engineering, Dalian University of Technology, Dalian 116024, China
*
Author to whom correspondence should be addressed.
Symmetry 2025, 17(4), 487; https://doi.org/10.3390/sym17040487
Submission received: 11 February 2025 / Revised: 19 March 2025 / Accepted: 22 March 2025 / Published: 24 March 2025
(This article belongs to the Section Engineering and Materials)

Abstract

:
Cyber-physical systems need more intelligent decision-making methods. To address this issue with respect to incomplete process models and inefficient scheduling, we have previously proposed a new method called Petri-nets-adaptive ant colony optimization (PN-AACO). This method targets small-scale job shops with shared resource limits. These shops require symmetric job designs for resource sharing but have asymmetric job processing times. PN-AACO uses Petri net symmetry at edge nodes but faces a problem. Its marking–transition pheromone index mechanism causes state space explosion from Petri nets. This leads to a decrease in the computational speed of the algorithm in the face of an increase in scale or state, which results in a longer overall manufacturing process time that impacts productivity. Thus, we propose the improved PN-AACO (iPN-AACO). The improved method uses transition–transition pheromone recording to control pheromone amounts. It also adds pheromone-based initial selection and best-known-paths-based probability rules. Tests show this approach speeds up computations up to 92% in more-states models while keeping scheduling effective.

1. Introduction

1.1. Importance and Motivation

As edge control technology evolves, the implementation of intelligent manufacturing in smart factories becomes critically dependent on cyber-physical systems (CPSs) adoption [1,2,3]. Numerous cases underscore the pivotal role of optimized intelligent decision-making processes within CPSs [4,5]. This involves perceiving system states, forecasting future developments, setting goals, and planning actions [6]. Meanwhile, optimizing the processing of local data at the edge side significantly improves system performance, efficiency, and reliability. Job shop scheduling with shared resource constraints represents a key challenge in intelligent decision making. This problem has gained growing attention in industrial systems due to its significant impact on production scheduling efficiency [7,8].
In CPSs, the edge controller becomes an integral part. Adding algorithms to edge controllers gives them a certain level of intelligence, which can greatly improve the overall efficiency of the system from the device level. With the development of manufacturing automation, edge controllers with algorithms can replace human decision making to greatly reduce waiting time and improve productivity. However, different algorithms are applicable to different areas. If the algorithm execution time is too long, it will also reduce productivity. Therefore, reducing the execution time of the algorithm is also a necessary part of optimizing efficiency.

1.2. Literature Review

Prior to conducting the work presented in this study, the authors utilized Petri nets to model and analyze the processes of CPSs [2,9]. As a graphical–mathematical modeling tool, Petri nets uniquely integrate diagrammatic representation with algebraic formalism. This synthesis allows for precise characterization of the scheduling complexities, including but not limited to process discreteness, operational conflicts, asynchronous behaviors, concurrency patterns, and system deadlocks. [10,11]. Consequently, they have emerged as one of the mainstream technologies for CPS modeling and analysis [12,13]. This advantage has led to their widespread application in the industrial manufacturing sector [14,15,16]. Petri nets are gradually becoming a promising method for optimizing the job scheduling problem and have been thoroughly studied by a wide range of scholars. Based on timed Petri nets (TPNs), Cui [17] designed an algorithm combining genetic algorithms and particle swarm optimization to optimize scheduling problems. Similarly, Wu [18] devised an algorithm combining ant colony optimization (ACO) to optimize process control that was also based on TPNs. However, both approaches employ action fragmentation by dividing a single operation into two discrete phases: an initiation phase modeled through timed transition and a termination phase represented by immediate transition. This dual-representation paradigm inevitably leads to network structure inflation (increased node count) and consequently diminishes algorithmic efficiency. Although Petri nets are capable of modeling CPSs, they are predominantly used for system analysis [13,19]. Few cases directly guide industrial processes to improve efficiency, leading to a disconnect between the established models and practical problem solving.
With the advancement of computer performance, neural networks have begun to make significant strides across various fields, including reinforcement learning and deep learning. Compared to heuristic methods, neural networks rely less on domain knowledge and demonstrate strong capabilities in learning complex patterns and processing large datasets. They have also been proven successful in the field of task scheduling [20,21,22]. Neural networks can be combined with Petri nets to retain the inherent advantages of Petri nets in modeling discrete event dynamic systems. For example, Lassoued [23] developed the PetriRL framework by synergizing Petri nets with deep reinforcement learning. This integrated approach demonstrates strong generalization capabilities across varying instance scales. Kim [24] developed Look-Ahead Reinforcement Learning (LARL) to enhance Petri net model exploration. This method trains Q-networks through deep Q-learning on existing instances and then applies anticipatory search strategies for new scenarios. Experimental validation confirmed LARL’s effectiveness.
However, deep learning models are often viewed as “black boxes”, lacking interpretability. In CPSs, scheduling decisions require clear logic and traceability to meet safety and compliance requirements. Furthermore, deep learning typically necessitates a large amount of training data, which is often difficult to obtain in the field. Training on public datasets may not yield satisfactory generalization performance. In CPS environments, scheduling decisions frequently depend on real-time data. That exposes models to risks of data scarcity and rapid environmental dynamics.
Deep learning model training and inference require intensive computation on both developer workstations and CPS edge controllers. However, real-time processing needs and limited resources often restrict their effectiveness. These factors limit their widespread application in the industrial sector.
Heuristic algorithms are widely adopted in industrial settings due to their operational simplicity. A prime example is the Proportional–Integral–Derivative (PID) method. These algorithms require minimal computational resources compared to exact optimization approaches. Their design inherently balances system stability needs with hardware limitations. This combination makes them particularly suitable for process control applications. Conversely, the tradeoff for these simplification is suboptimal scheduling and significant reliance on domain knowledge, hindering their generalization. Some metaheuristic methods draw inspiration from nature, such as genetic algorithms and ACO. Although these methods are not problem-specific and can be applied to a wide range of problems, they are highly sensitive to initial conditions, necessitating extensive tuning of hyperparameters.

1.3. Contribution

The problem of algorithm efficiency has been widely explored by researchers. However, with increasing arithmetic power nowadays, the execution time problem of algorithms is easily ignored. In particular, algorithms running on edge controllers, which are small computing power devices, are constrained by arithmetic power. Thus, the algorithms need to be optimized to be more relevant. Therefore, this study aims to address the barriers between Petri nets and heuristic intelligence algorithms in scheduling optimization, with a view to achieving better results and improving algorithmic efficiency in a less arithmetic environment. Furthermore, whether heuristic algorithms can achieve further efficiency improvements based on Petri nets is also a noteworthy question.
Based on this, the authors conducted research on scheduling efficiency issues and devised a method named Petri-net-adaptive ant colony optimization (PN-AACO). The PN-AACO algorithm eliminates the information barrier between Petri net modeling and heuristic algorithms, thus enhancing the efficiency of heuristic algorithms in Petri net modeling. However, the algorithm’s pheromone index mechanism includes states, which imposes certain limitations on PN-AACO. When facing a small number of states, PN-AACO can quickly solve the optimization execution sequence. However, the actual process also exists in a complex Petri net process with a large number of states, and traversing the pheromone size will become slower and slower. That will lead to slower execution of the algorithm. The slow execution of the PN-AACO algorithm based on the number of Petri net states also slows down the operation efficiency of the whole system. To address the issue of slow execution speed of the PN-AACO algorithm when facing a large number of states, this study proposes a pheromone index mechanism based on transition–transition and fixes the count of pheromones to T 2 + T o ( T is the count of transition set, and T o is the count of the transition set that can fire in initial markings). The improved PN-AACO (iPN-AACO) algorithm is able to optimize the workflow by finding the current best known scheduling comparable to other heuristic algorithms in a smaller computing power environment. It also has an advantage over PN-AACOs when dealing with optimization problems for tasks with more states, wherein the more pheromones there are, the more obvious the advantage becomes.

1.4. Organization

The remaining sections of this paper are organized as follows: Due to the PN-AACO algorithm proposed in previous work not yet being published, a brief introduction of the PN-AACO algorithm is provided in Section 2. Section 3 presents the improvements made to the PN-AACO algorithm. The process of the iPN-AACO algorithm is described in Section 4. Section 5 conducts simulation verification on the iPN-AACO algorithm. Finally, conclusions are drawn in Section 6.

2. PN-AACO Algorithm

The PN-AACO algorithm mainly comprises Petri net modeling, the global timing mechanism of key time points, the pheromone index mechanism for marking–transition, and adaptive pheromone update mechanisms. This algorithm establishes a six-tuple TPN model for the task scheduling process of a CPS:
Σ = ( P , T ; F , W , M 0 , τ )
where P = { p 1 , p 2 , , p P } is the place set (In this study, | X | represents the number of elements in X set); T = { t 1 , t 2 , , t T } is the transition set; F is the flow relationship, which is represented by an ordered pair such as ( p 1 , t 1 ) that means from p 1 to t 1 ; and W is the weight function, which represents the number of tokens required when the transition occurs. By default, it is 1 when not marked; M 0 is the initial marking; τ = { τ 1 , τ 2 , , τ T } is the firing time set, and τ i represents the firing time of t i . Because the average firing rates of transition are defined as λ i = 1 τ i , there is a set of the average firing rates of transitions λ = { λ 1 , λ 2 , , λ T } = { 1 τ 1 , 1 τ 2 , , 1 τ T } . It defines the average number of firings per unit time when enabled. The unit is the number of times per unit time.
The model Σ allows for the determination of the input matrix C and output matrix C + , as well as other variables required by the algorithm. Subsequently, the task objective is defined as finding a transition sequence σ t = t 1 t 2 t n that minimizes the execution time τ s u m = t x σ t n τ x of the sequence.
The traditional ACO algorithm is typically implemented for traveling salesman problem (TSP) scenarios with fixed city counts, where pheromone matrices maintain city-to-city indexing, and ants initiate exploration from randomly assigned urban nodes. While this architecture effectively addresses static TSP configurations, its reliance on predetermined topological constraints poses challenges in dynamic environments requiring real-time adaptability. Unlike the traveling salesman problem, the number of ordinal couples recorded in marking–transition is not a fixed value.
At the initial time, m ants are placed at the marking M 0 . The initial pheromone levels on each path of the first travel are equal. η i , j ( 0 ) = η 0 is the initial pheromone level, where i = 1 , 2 , 3 , is the ordinal labeling of some marking M, and j = 1 , 2 , , | T | is the ordinal labeling of the timed transitions t. The probability that an ant k ( k = 1 , 2 , , m ) chooses the next transition among the enabled transitions according to a randomized proportionality rule among the feasible transitions is
p i , j ( t ) = [ η i , j ( t ) ] α λ j β s a k [ η i , s ( t ) ] α λ s β , j a k 0 , other
where η i , j is the pheromone level from M i to t j ; α is the pheromone factor; λ j = 1 / τ j is the average firing rates of t j ; and λ s is the same. β is the heuristic factor, and a k is the transition set that the k-th ant will enable next.
Upon reaching the end marking M n , ants cease their traversal, calculating the sequence execution time traveled by each ant. The shortest sequence execution time is then saved, and the pheromone levels on all paths are updated simultaneously.
Following this, a method for recording pheromones for key time points and marking–transition was designed (key time points and marking–transition were collectively called the KTMT method) to store and connect the ACO method. In the key time points method, the time before and after the transition is finely divided, and the entire system shares a single global timeline. Each key time point represents an instance in time and can be viewed as a structure. This structure includes the current time T i m e , the pretransition marking array M s , the ending transition set T e , the current marknig array M, the preceding transition set T s , and the post-transition marking array M e . The internal variables of key time points can be represented using v a r k t ( i n d e x ) or v a r K T ( t x ) based on the index sequences or time markers. Additionally, since a marking in the Petri net may be reached by different transitions, unlike two cities in analogy, the marking–transition is used as an atomic index to define the pheromones. Pheromones are updated offline, meaning that after all ants have completed their traversal, and a round of pheromone updates occurs.
Pheromone updates mainly consist of two components: pheromone evaporation and the deposition of pheromones by ants along the paths they traverse. The traditional method for updating pheromones is as follows:
η i , j n c + 1 = ( 1 ρ ) η i , j n c + k = 1 m Δ η i , j k
where n c ( n c = 1 , 2 , , N c ) denotes the current iteration count; η i , j n c + 1 represents the pheromone level for the next iteration; ρ stands for the pheromone evaporation coefficient, where 0 < ρ 1 ; and 1 ρ denotes the persistence coefficient of the pheromones. Additionally, η i , j n c signifies the pheromone levels for the current iteration, and Δ η i , j k indicates the pheromone levels deposited by the k-th ant along its path, which are defined as
Δ η i , j k = Q / τ s u m k , M i t j σ k 0 , M i t j σ k
where Q is the pheromone increase factor; τ s u m k is the sequence execution time of the current iteration number k-th ant that has completed traveling; and σ k is the occurrence sequence that the k-th ant has searched for. According to Equation (4), it is evident that traditional ACO algorithms exhibit significant variations in sequence execution times when applied to different tasks. This necessitates constant adjustments to the Q value to attain the suitable pheromone. Moreover, within the same task, the impact of the sequence execution time on the pheromone levels is relatively minor, potentially resulting in slower convergence rates. These limitations will be addressed in the subsequent parts by improving the pheromone updating mechanism.
Therefore, an adaptive ant colony algorithm (AACO) was designed to optimize the search efficiency of the traditional ant colony algorithm using the Petri net model. The method updates the increment of pheromones Δ η i , j k as follows:
Δ η i , j k = m a x ( { η | η = Q · n c N c / 2 · γ τ s u m k τ m i n τ m a x τ m i n } )
where the subscripts i and j represent that the pheromone levels are from M i to t j ; γ ( 0 < γ < 1 ) is the path influence factor; τ m i n stands for the minimum global sequence execution time; and τ m a x represents the maximum sequence execution time traveled by all ants in the current iteration. The proposed algorithm achieves good results in small, low-batch tasks.
To facilitate the description of the scheduling decision problem, let us define it within a Petri net framework as follows:
  • J = { J 1 , J 2 , , J J } represents a set of J jobs, such as those in a production line. Each job is further divided into different operations.
  • R = { r 1 , r 2 , , r R } denotes a set of R resources, such as operators, machines, or tools. These resources belong to the place set and are shared among various operations.

3. iPN-AACO Algorithm

The improved algorithm primarily improves the initial state selection method, recording method, and update method of the pheromones, as shown in Figure 1 when compared with the original algorithm.
As has been explained in Section 1.2, Petri nets have their advantages for describing discrete event dynamic systems such as task scheduling and are widely used; the key time point approach can describe the Petri operation process on a global timeline. Therefore, in Figure 1, the iPN-AACO algorithm follows the Petri net model of the original algorithm and the time description of the key time point. The iPN-AACO algorithm changes the original marking–transition (M-T) pheromone index mechanism to transition–transition (T-T) with the size of T 2 and recollectively with the key time point method as KT3. The benefit of the T-T-based recording method is that it is not affected by the number of Petri net reachable markings, and it does not affect the size of the pheromone recording as the number of states increases. However, this also brings a disadvantage because the indexing of the pheromone markings has an uncertainty, i.e., the markers may be different between the same two transitions. To solve this problem, a probabilistic selection rule based on the best konwn paths was proposed. It makes the algorithm converge according to a heuristic rule. Since the T-T recording method cannot affect the initial selection probability as much as the initial state, a pheromone-based initial state selection method was also proposed. The details are developed and described in the following sections.

3.1. KT3 Method

The key time points serve as a bridge between the Petri net and the algorithm, enabling the optimization of scheduling through these points. The algorithm updates the pheromone levels in each iteration, and how to record pheromones is a crucial optimization issue. In this study, process transitions are analogized to cities in the traveling salesman problem, where each transition serves as a node to record pheromones, resulting in a fixed count of T 2 pheromones. This pheromone recording table is referred to as the table Eta.
The final sequence formed by the Petri net is actually a finite occurrence sequence σ = M 0 t 1 M 1 t 2 M 2 t n M n . The objective is to find a transition sequence σ t = t 1 t 2 t n . It is evident that σ t is a simplification of σ , which is obtained by removing states from σ . If we directly seek σ t , the marking between any two transitions ordered pair in σ t in different initial markings is indeterminate. Therefore, using the transition–transition pheromone index mechanism does not uniquely describe the states in principle, but only reflects the “distance” between transitions locally. This leads to the ant’s selection based on the pheromones recorded by transition–transition being local. In Section 3.3, we will discuss incorporating the influence of the entire path into the ant’s probability selection.

3.2. Initial State Selection Based on Pheromone

Unlike the random selection of the initial route, the convergence ability of the algorithm will be reduced if the route is influenced by the best known route and the initial selection is still random. So, the first transition from each job J i is extracted to form the initial variation set T o . Simultaneously, maintain a table Zeta of size T o to record the initial pheromone levels. At the beginning of each ant’s traversal, the k-th ant (where k = 1 , 2 , , m ) selects the initial city according to a random proportion rule. The probability of selecting a particular transition is designed as follows:
p i ( t ) = [ ς i ( t ) ] α λ i β s T o [ ς s ( t ) ] α λ s β , i = 1 , 2 , , T o 0 , other
where ς i ( t ) represents the pheromone level on transition t i selected in the initial marking  M 0 .

3.3. Probabilistic Selection Rules Based on Best Known Paths

In Equation (2), the factor [ λ i , j ( t ) ] β is only the time-consuming impact of local transition. Obviously, it is inappropriate to have only the local transition time affecting the selection probability in the whole path, and the path selection of ants should take into account the path impact of the shortest time-consuming path in each round. After each iteration n c ( n c = 1 , 2 , , N c ) is completed, the shortest path σ t B e s t with the least execution time is retained. When n c 2 , the probability selection of each ant is influenced by the global best known path. The rule for designing probability selection is as follows:
p i , j ( t ) = [ 1 + Λ ] · [ η i , j ( t ) ] α λ j β s a k [ η i , s ( t ) ] α λ s β , j a k 0 , other
where Λ is the global best known path influence component, which is designed to influence as follows:
Λ = s g n ( n c 1 ) · Q · n c 3 N c / 2 · ( ε + ξ ) z
where N c is the maximum count of iterations; ε represents the overlap between the current path and the best known path; and Algorithm 1 shows how to compute ε .
Algorithm 1 Compute ε .
Require: transition sequence of current path σ t c u r , transition sequence set of global best known path σ t b e s t = { σ t 1 b e s t , σ t 2 b e s t , , σ t m a x b e s t } .
Ensure:  ε ;
  1: for  i = 1 ; i σ t b e s t ; i + + do
  2:       if  σ t c u r begin with σ t i b e s t  then
  3:            Compute ε = σ t c u r σ t b e s t ;▹ σ t denotes the number of transitions in the sequence
  4:            break;
  5:      end if
  6: end for
  7: return  ε ;
ξ is the overlap compensation coefficient, and z is the overlap influence coefficient. The factor s g n ( n c 1 ) is to present the effect of the best known path at the first iteration, where only the first round of paths are traveled, and the path with the shortest time to execute the sequence occurs. The factor n c 3 / ( N c / 2 ) is applied to allow the ant colony to accelerate the rate of convergence as the count of iterations increases. The influence of the real best known path on the ant selection probability is the factor ( ε + ξ ) z . After many tests, it was summarized that it would be more appropriate to take ξ = 0.5 and z = 1.5 in this study.

4. Improved Algorithmic Flow

The original PN-AACO algorithm process maintained two tables: the table KT and the pheromone table Eta. The iPN-AACO algorithm also includes an additional table: the initial pheromone table Zeta. The improved algorithm achieves optimization through an iteration cycle, ant cycle, and KT cycle, as illustrated in the Figure 2.
From Figure 2, it can be observed that the algorithm process mainly consists of three stages: model building, initialization, and cycle body.
Modeling of the Petri net for scheduling tasks in done in step 1. Find M n using a method where each job is completed individually and sequentially to ensure that M n is reachable. The scheduling process is described in the Petri net model to determine data such as P, T, C + , C , T τ , T o , M 0 , etc., to prepare the data input for the next ACO algorithm.
Step 2 is ACO algorithm initialization. In this step, some parameters are defined, including m, λ , α , β , ρ , Q, and γ . Then, create the table KT, table Eta, table Zeta, and tables for some intermediate parameters. Finally, set the iteration times to 1 and prepare the first iteration.
The three-layer cycle is described as follows: The three cycles are, in order from outside to inside, the iteration cycle, the ant cycle and the KT cycle. First, outside the cycle, initialize the iterations n c . After entering the iteration cycle, i.e., step 3, first determine whether the current iteration count is less than or equal to the specified count of cycles; if not, enter step 22—output the result and end the cycle. If yes, enter step 4—initialize the ant number k = 1 , and enter the ant cycle, i.e., step 5. In the ant cycle, the count of ants is m. If all ants are traveled, enter step 21—the pheromone level is updated according to Equations (3) and (5) and n c increases itself by one to the next iteration cycle; if not traveled completely, enter step 6—initialize T i m e k t ( 1 ) = 0 , M s k t ( 1 ) = M e k t ( 0 ) = M 0 , T e k t ( 1 ) = Φ , and prepare to enter the KT cycle, where S t e p is the index of KT; initialize index S t e p = 1 .
Enter the KT cycle, i.e., step 7, to determine whether the current is the last key time point of the table KT. If yes, then enter step 20—jump out of the KT cycle to update the ant index number to travel the new ant; if not, then enter the KT cycle body, i.e., step 8. Because each ant does not necessarily travel through the same number of key time points, the ant cycle is in the outer layer of the KT cycle. The KT cycle needs to traverse all key time points on the global timeline, and the key time points are dynamically increasing. After entering the KT cycle, it first determines whether the end condition is satisfied in step 8, and the end condition can determine whether the end marking M n is reached. Output the optimization result in step 22 if the end state is satisfied; if not, continue the KT cycle, i.e., step 9. When traveling to k t ( S t e p ) , the following is satisfied:
M s k t ( S t e p ) = M e k t ( S t e p 1 ) , S t e p = 1 , 2 , , m a x
Then, enter step 10 according to the following:
M k t ( S t e p ) = M s k t ( S t e p ) + C + U T e
Compute the M k t ( S t e p ) values, where U T e is a vector of which the ordinal labeling set is the transition set T e k t ( S t e p ) . The element of U T e is the fired count of the transition corresponding to the same ordinal labeling. For example, if the count of a transition set is | P | = 3 , then T e k t ( S t e p ) = { t 1 , t 1 , t 2 , t 2 , t 2 , t 3 } . Then, U T e = [ 2 , 3 , 1 ] T . After calculating M k t ( S t e p ) , enter step 11: Determine what transition can fire in M k t ( S t e p ) . The basis on which the transition t j can fire is
i = 1 | P | M i k t ( S t e p ) C i j
where M k t ( S t e p ) is a vector, M i k t ( S t e p ) denotes the i-th element of M k t ( S t e p ) , and similarly, C i j denotes the i-th row and j-th column of matrix C . If Equation (11) is satisfied, then the transition can fire. Temporary transitions that can occur are stored, and the process proceeds to step 12. If S t e p = 1 , then proceed to step 13, where the probabilities are computed based on Equation (6), and an initial transition is randomly selected. Otherwise, proceed to step 14, where computations and selections are made according to Equation (7). Assuming that the chosen transition is t j , then a new element t j is added to T s k t ( S t e p ) in step 15, i.e.,
T s k t ( S t e p ) = T s k t ( S t e p ) t j
where “′” represents the new value. Once it is added, go to step 16. If T i m e k t ( S t e p ) + τ j does not exist in the table KT, add T i m e k t ( S t e p ) + τ j to the table KT and sort by T i m e . Also, update the member variable T e of the table KT for the new moment:
T e K T ( T i m e k t ( S t e p ) + τ j ) = T e K T ( T i m e k t ( S t e p ) + τ j ) t j
Next, enter step 17: Calculate the new M k t ( S t e p ) after the transition has fired. It is defined as follows:
M k t ( S t e p ) = M k t ( S t e p ) C U t j
where U t j is a vector with the transition t j as the ordinal labeling set. After calculating the new M k t ( S t e p ) , we again determine whether M k t ( S t e p ) can fire the transition or not. Until M k t ( S t e p ) is unable to fire, enter step 18. Throughout the process from step 11 to step 17, the tokens always satisfy the selected transition first, and after the current transition has consumed the tokens, the remaining tokens are judged to determine whether a new transition can still fire. This process can effectively prevent the deadlock phenomenon caused by resource grabbing. Next is step 19: M e k t ( S t e p ) = M k t ( S t e p ) is updated, while S t e p increments itself by one and goes to the next KT cycle.

5. Performance Proof

The experimental setup utilized an 3.0 GHz processor with 32 GB RAM. MATLAB r2022a was employed as the simulation software. To validate the effectiveness of the iPN-AACO algorithm, two simulations were conducted and compared with the original method (in references) and PN-AACO algorithm. The objective of the algorithms was to find a scheduling solution that minimizes the completion time τ s u m of the system’s tasks, i.e., to find the shortest transition sequence σ t that minimizes the τ s u m .

5.1. Radar Receiver Test Task

This simulation used the Petri net in reference [17], which is a parallel test of five parameters of radar receivers A and B (corresponding to tasks J 1 and J 2 ) with five types of instrumentation needed to complete the test. The S3PR model established in reference [17] has a high number of states due to different model types, but the essence is to split a transition into a combination of immediate and timed transitions. The network established in this study needs to combine the corresponding immediate and timed transitions, and the final TPN model is shown in Figure 3. In the model, P = { p 1 , p 2 , , p 12 } , T = { t 1 , t 2 , , t 10 } , and R = { r 1 , r 2 , r 3 , r 4 , r 5 } = { p 13 , p 14 , p 15 , p 16 , p 17 } P . The transition time τ is calculated as
τ = { 7 , 4 , 8 , 3 , 5 , 8 , 3 , 3 , 7 , 6 }
Set the initial and end markings as
M 0 = { 1 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 2 , 1 , 1 } M n = { 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 2 , 1 , 1 }
The equivalent initial and end markings in reference [17] are, respectively,
M 0 r e f = { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 2 , 1 , 1 } M n r e f = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 2 , 1 , 1 }
The algorithm parameters were set as follows: the maximum iteration count N c = 50 , m = 30 , α = 1.9 , β = 0.4 , ρ = 0.15 , Q = 1000 , and γ = 0.45 . In the iPN-AACO algorithm, T o = { t 1 , t 6 } . It was run 20 times, and the results obtained are shown in Table 1.
The five methods of PSO, GA-ACO, GA-PSO, PN-AACO, and iPN-AACO to obtain the best known σ t were practically the same; as an example of iPN-AACO, the resulting Gantt chart of the task scheduling sequence is shown in Figure 4.
The comparison shows that all five methods could find the optimal sequence with a τ s u m of 37 s. However, the proposed two algorithms could find the best known path in the first iteration, which was 95% shorter than the 22 times in the GA-PSO algorithm proposed in reference [17]. Because the algorithm in this study uses the key time points method, many unreasonable paths are avoided at the beginning of using the ACO algorithm, making the final path only one.
To verify the advantage of the iPN-AACO algorithm in terms of computational speed in the face of an increase in the token number, the five initial markings M 0 used for the experiment were the following:
M 0 = [ 1 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 2 , 1 , 1 ] , [ 2 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 2 , 1 , 1 ] , [ 2 , 0 , 0 , 0 , 0 , 0 , 2 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 2 , 1 , 1 ] , [ 3 , 0 , 0 , 0 , 0 , 0 , 3 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 2 , 1 , 1 ] , [ 5 , 0 , 0 , 0 , 0 , 0 , 5 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 2 , 1 , 1 ] .
Each M 0 was run 10 times, and the final results are shown in Table 2. Unless otherwise specified, all parameters refer to the average values obtained from 10 runs. The search hit rate indicates that the proportion of times of the minimum completion time was found in 10 runs. The best known and average completion time iteration counts refer to the average number of iterations for convergence.
According to Table 2, both algorithms converged to the same τ b e s t , and both were able to find τ b e s t completely. Due to the relatively simple system structure, both algorithms could find τ b e s t in the first iteration and converge. The τ b e s t and τ a v e convergence rates were both 100%; however, with an increase in the initial token count, the iPN-AACO algorithm required more τ a v e iterations to converge. Nevertheless, τ a v e does not have practical significance. When it does not converge, it only indicates that the algorithm is still searching. With the initial token count of 2, the execution time of the iPN-AACO algorithm increased by 205% compared to PN-AACO. But when the initial token count was 10, the program execution time of iPN-AACO decreased by 79% compared to PN-AACO. This indicates that as the initial token count increases, the pheromone size in the PN-AACO algorithm increases significantly, which has a significant impact on the PN-AACO algorithm based on the count of states. However, the iPN-AACO algorithm, with a fixed count of pheromones, achieved higher efficiency in execution. A comparison of program execution times is shown in Figure 5.
According to Figure 5, the PN-AACO algorithm exhibited faster program execution times than the iPN-AACO algorithm when the initial token count was 2, 3, and 4. As the initial token count increased, the program execution time of the PN-AACO algorithm grew exponentially due to the growth in Petri net states. In contrast, the iPN-AACO algorithm maintained a relatively stable execution time because the pheromone size remained constant. This advantage positions the iPN-AACO algorithm favorably in scenarios involving large-scale systems with multiple states. Both algorithms generally operated around the boundary of the pheromone size given by T 2 + T o . Differences in performance may arise due to variations in coding methods such as concatenation functions and array manipulations.

5.2. Manufacturing System Processing Task

This simulation utilized the model depicted in Figure 6 of reference [25]. The model represents a manufacturing system with four machining tasks and is constrained by three shared resources. In this model, the sets are defined as follows: P = { p 1 , p 2 , , p 20 } , T = { t 1 , t 2 , , t 18 } , and R = { r 1 , r 2 , r 3 } = { p 18 , p 19 , p 20 } P . The transition time 1 λ is represented by
1 λ = { 69 , 75 , 85 , 57 , 51 , 80 , 75 , 97 , 85 , 92 , 98 , 78 , 75 , 56 , 70 , 68 , 99 , 76 , 93 }
The initial and end markings in reference [25] are, respectively,
M 0 = { 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 } M n = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 }
The algorithm simulation parameters were the same as the radar receiver test task. In the iPN-AACO algorithm, T o = { t 0 , t 1 , t 6 , t 11 , t 16 } . The two algorithms, PN-AACO and iPN-AACO, were run 20 times each and compared with the data from the reference [25] species, and the results are shown in Table 3.
From Table 3, it can be seen that, compared to the improved ACO algorithm, the PN-AACO algorithm shortened the τ a v e iterations and the τ b e s t iterations by 73% and 67%, respectively, and the iPN-AACO algorithm shortened the τ a v e iterations and the τ b e s t iterations by 81% and 67%, respectively. The two algorithms proposed converged more quickly. What can be seen is that the PN-AACO algorithm was more volatile. The iPN-AACO performed slightly better in the optimization problem for this model. In the parameter of τ a v e , convergence to a stable value is not of practical significance; only PN-AACO converged to a minimum value near 427 and performed a local search. All three algorithms were identical in the two metrics of τ b e s t and the hit rate. Finally, the improved ACO algorithm found the best known transition sequence t 1 t 16 t 11 t 17 t 18 t 2 t 5 t 6 t 8 t 12 t 15 t 9 . The PN-AACO algorithm and the iPN-AACO algorithm found more than one best known transition sequence, and the Gantt chart of the best known scheduling is shown in Figure 7, taking one sequence of t 1 t 16 t 11 t 17 t 6 t 18 t 2 t 8 t 12 t 5 t 9 t 15 as an example.
In order to verify the advantage of the iPN-AACO algorithm in terms of computational speed in the face of increasing token number, the two methods of PN-AACO and the iPN-AACO were used in the initial markings M 0 of
M 0 = [ 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 ] , [ 2 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 ] , [ 2 , 2 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 ] , [ 2 , 2 , 2 , 2 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 ] , [ 3 , 3 , 3 , 3 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 ] .
In this testing, the algorithm parameters were the same as in radar receiver test task. We executed 10 times for each M 0 , and the final results are presented in Table 4.
According to Table 4, it is evident that compared to the iPN-AACO, the PN-AACO algorithm failed to find the best known completion time when the initial token count was 12, and the search hit rate decreased as the initial token count increased. Conversely, the iPN-AACO algorithm exhibited fluctuating search hit rates as the initial token count increased. Both algorithms showed decreasing convergence rates for τ b e s t and τ a v e as the initial token count increased, with the iPN-AACO algorithm requiring more iterations. The processing task, compared to test task, represents a more complex system, where increasing the initial token count results in more states. Consequently, both algorithms’ search comprehensiveness capacities were affected, leading to a decline in performance with increasing initial token count. However, the data indicate that the iPN-AACO algorithm performed slightly better. The increase in initial token count led to an increase in the pheromone size in PN-AACO, thereby increasing both algorithms’ execution times. With the initial token count of 4, the execution time of the iPN-AACO algorithm decreased by 4% compared to PN-AACO. And when the initial token count was 12, the program execution time of iPN-AACO decreased by 92% compared to PN-AACO. Similar to the test task, this suggests that the iPN-AACO’s efficiency increases with an increase in the initial token count.

6. Train Loading Application

To validate the feasibility of the iPN-AACO algorithm, this study conducted a simulation using the task of coiling carbon steel sheets in the 2# warehouse area of the Finished Product Service Branch of Gansu Jiuquan Iron and Steel Group Hongxing Iron and Steel Co., Ltd., Jiayuguan, China. The simulation aimed to obtain a scheduling solution for minimizing the completion time of work in this system. Specifically, the goal was to find the shortest transition sequence σ t that minimized the completion time τ s u m . The simulation employed both the PN-AACO algorithm and the iPN-AACO algorithm for this purpose.
There are two double-girder overhead traveling cranes and two forklifts for transporting steel coils in the cold rolled carbon steel sheet 2# storage area. And there is one railroad loading and unloading line with access to the warehouse area with six carriages, one carriage for two steel brackets and one steel bracket for two steel coils. The task was to optimize the deployment of cranes and forklifts in such a way that the shortest possible time was required for loading the six carriages of steel coils that were driven into the storage area. This study did not take into account the mutual interference between cranes, and it assumed that the storage capacity is much greater than the capacity of the six carriages. Additionally, it did not consider the time taken for the train to transport coils to the next empty train position. The loading problem was simplified to model the Petri net, as shown in Figure 8.
The description of each parameter in Figure 8 is shown in Table 5.
The algorithm parameters were the same as in test task. In the iPN-AACO algorithm, T o = { t 1 , t 2 , t 5 , t 6 , t 9 , t 10 , t 13 , t 14 , t 17 , t 18 , t 21 , t 22 } . Our target was to find an σ t that minimizes the τ s u m when the train drives into the warehouse area. The PN-AACO and iPN-AACO algorithms were used, where the PN-AACO algorithm had a execution time of 36.1 s, and the iPN-AACO algorithm had a execution time of 5.1 s. Both algorithms searched for the best known path, and the τ s u m of σ t came out ot 1320 s. It can be seen from the algorithms that there is more than one best known path, and the scheduling Gantt chart is shown in Figure 9 for example t 22 t 9 t 21 t 14 t 9 t 5 t 14 t 6 t 17 t 17 t 12 t 16 t 15 t 19 t 8 t 11 t 7 t 24 t 23 t 23 t 24 t 8 t 19 t 11 t 16 t 20 t 15 t 7 t 12 t 20 t 1 t 1 t 3 t 3 t 4 t 4 .

7. Conclusions

This study introduces the iPN-AACO algorithm to address the performance issues encountered by the original PN-AACO algorithm when the model size or state increases. The iPN-AACO algorithm retains the Petri net modeling method and the time representation of key time points. On this basis, the pheromone index mechanism and the initial state selection method were improved so that the pheromone size was fixed to T 2 + T o . After that, a probabilistic selection method based on best known paths was designed to increase the influence of the best known paths and weaken the local influence on the results. Finally, through simulations, it has been demonstrated that the PN-AACO algorithm exhibited faster program execution speeds in scenarios with small-scale models or fewer states. In contrast, the iPN-AACO algorithm was faster when the model size or state increased, with up to a 92% reduction in runtime in the simulations. Each algorithm presents its own advantages when confronted with different application environments, necessitating the selection based on the specific task requirements. The next task will be to deploy the algorithms in the edge control nodes (self-developed PAG series controllers), and how to UI the modeling work is also a key point to consider.

Author Contributions

Conceptualization, Y.Y., X.L. and W.L.; methodology, Y.Y.; software, Y.Y.; validation, X.L. and W.L.; formal analysis, W.L.; investigation, Y.Y.; resources, W.L.; data curation, Y.Y.; writing—original draft preparation, Y.Y.; writing—review and editing, Y.Y., X.L. and W.L.; visualization, Y.Y.; supervision, X.L. and W.L.; project administration, X.L. and W.L.; funding acquisition, W.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant numbers 62073056 and 61876029; the Applied Basic Research Project of Liaoning Province, grant number 2023JH2/101300207; the Dalian Key Field Innovation Team Project, grant number 2021RT14; and the Science and Technology Major Project of the Xinjiang Uygur Autonomous Region, grant number 2022A01001.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yang, Y.; Zhong, C.; Liu, X.; Lu, W. Modeling and Analysis of Cyber-physical Systems Based on Petri Net. Int. J. Control Autom. Syst. 2023, 21, 2980–2994. [Google Scholar] [CrossRef]
  2. Wang, C.; Lv, Y.; Wang, Q.; Yang, D.; Zhou, G. Service-Oriented Real-Time Smart Job Shop Symmetric CPS Based on Edge Computing. Symmetry 2021, 13, 1839. [Google Scholar] [CrossRef]
  3. Poltavtseva, M.; Shelupanov, A.; Bragin, D.; Zegzhda, D.; Alexandrova, E. Key Concepts of Systemological Approach to CPS Adaptive Information Security Monitoring. Symmetry 2021, 13, 2425. [Google Scholar] [CrossRef]
  4. Sobb, T.; Turnbull, B.; Moustafa, N. A Holistic Review of Cyber-Physical-Social Systems: New Directions and Opportunities. Sensors 2023, 23, 7391. [Google Scholar] [CrossRef]
  5. Nandhini, R.S.; Lakshmanan, R. A Review of the Integration of Cyber-Physical System and Internet of Things. Int. J. Adv. Comput. Sci. Appl. 2022, 13, 459–465. [Google Scholar] [CrossRef]
  6. Yaghoubi, E.; Yaghoubi, E.; Yusupov, Z.; Maghami, M.R. A Real-Time and Online Dynamic Reconfiguration against Cyber-Attacks to Enhance Security and Cost-Efficiency in Smart Power Microgrids Using Deep Learning. Technologies 2024, 12, 197. [Google Scholar] [CrossRef]
  7. Li, X.; Wang, K.; Yu, X.; Su, W. CPS-based Multiple Model Adaptive Control of GGBS Production Process. Acta Autom. Sin. 2019, 45, 1354–1365. [Google Scholar]
  8. Ma, X.; Xu, X.; Jiang, G.; Qiao, Y.; Zhou, T. Hybrid adaptive particle swarm optimization algorithm for workflow scheduling. J. Comput. Appl. 2023, 43, 474–483. [Google Scholar]
  9. Yang, Y.; Liu, X.; Lu, W. A Cyber-Physical Systems-Based Double-Layer Mapping Petri Net Model for Factory Process Flow Control. Appl. Sci. 2023, 13, 8975. [Google Scholar] [CrossRef]
  10. Yuan, C. Principle and Application of Petri Net; Publishing House of Electronics Industry: Beijing, China, 2005. [Google Scholar]
  11. Xie, N.; Li, A. Research on Modeling, Scheduling and Controller of Reconfigurable Manufacturing System Using Petri Nets; Tongji University Press: Shanghai, China, 2017. [Google Scholar]
  12. Xu, G.; Chen, Y. Petri-Net-Based Scheduling of Flexible Manufacturing Systems Using an Estimate Function. Symmetry 2022, 14, 1052. [Google Scholar] [CrossRef]
  13. Bouras, A.; Hamaci, S.; Ech-Chhibat, M.E.H.; Samri, H.; Absi, R. On the dynamic behavior of smart factories using petri nets in the context of industry 4.0. In Proceedings of the 2023 3rd International Conference on Innovative Research in Applied Science, Engineering and Technology (IRASET), Mohammedia, Morocco, 18–19 May 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 1–6. [Google Scholar]
  14. Pei, Y.; Yang, C.; Xu, J.; Wang, Y.; Dong, X. A hierarchical evaluation index system for FMS reliability considering coupling relations between system elements. Int. J. Adv. Manuf. Technol. 2021, 124, 3737–3747. [Google Scholar] [CrossRef]
  15. Zhang, Y.; Wang, Y.; Wang, L.; Cai, G. An Extended Object-Oriented Petri Net Model for Vulnerability Evaluation of Communication-Based Train Control System. Symmetry 2020, 12, 1474. [Google Scholar] [CrossRef]
  16. Shi, J.; Feng, T.; Zheng, L.; Wu, Y. Research on the Security of NC-Link Numerical Control Equipment Protocol Based on Colored Petri Net. Symmetry 2024, 16, 1612. [Google Scholar] [CrossRef]
  17. Cui, Y.; Yue, X.; Zhou, K. Parallel test combining timed Petri net with GA-PSO algorithm. J. Comput. Appl. 2010, 30, 1902–1905. [Google Scholar] [CrossRef]
  18. Wu, X.; Tian, S.; Zhang, L. The Internet of Things Enabled Shop Floor Scheduling and Process Control Method Based on Petri Nets. IEEE Access 2019, 7, 27432–27442. [Google Scholar] [CrossRef]
  19. Mahato, D.P.; Singh, R.S. Load balanced scheduling and reliability modeling of grid transaction processing system using colored Petri nets. ISA Trans. 2019, 84, 225–236. [Google Scholar] [CrossRef]
  20. Lei, K.; Guo, P.; Zhao, W.; Wang, Y.; Qian, L.; Meng, X.; Tang, L. A multi-action deep reinforcement learning framework for flexible Job-shop scheduling problem. Expert Syst. Appl. 2022, 205, 117796. [Google Scholar]
  21. Liu, R.; Piplani, R.; Toro, C. Deep reinforcement learning for dynamic scheduling of a flexible job shop. Int. J. Prod. Res. 2022, 60, 4049–4069. [Google Scholar]
  22. Yuan, E.; Cheng, S.; Wang, L.; Song, S.; Wu, F. Solving job shop scheduling problems via deep reinforcement learning. Appl. Soft Comput. 2023, 143, 110436. [Google Scholar]
  23. Lassoued, S.; Schwung, A. Introducing PetriRL: An innovative framework for JSSP resolution integrating Petri nets and event-based reinforcement learning. J. Manuf. Syst. 2024, 74, 690–702. [Google Scholar] [CrossRef]
  24. Kim, H.J.; Lee, J.H. Look-ahead based reinforcement learning for robotic flow shop scheduling. J. Manuf. Syst. 2023, 68, 160–175. [Google Scholar] [CrossRef]
  25. Huang, H. Scheduling Flexible Manufacturing Systems Based on Petri Nets and an Ant Colony Algorithm. Master’s Thesis, Xidian University, Xian, China, 2023. [Google Scholar]
Figure 1. Comparison between the improved and original PN-AACO algorithms.
Figure 1. Comparison between the improved and original PN-AACO algorithms.
Symmetry 17 00487 g001
Figure 2. The algorithm flow of iPN-AACO.
Figure 2. The algorithm flow of iPN-AACO.
Symmetry 17 00487 g002
Figure 3. Test task Petri net.
Figure 3. Test task Petri net.
Symmetry 17 00487 g003
Figure 4. Best known scheduling Gantt chart in test task.
Figure 4. Best known scheduling Gantt chart in test task.
Symmetry 17 00487 g004
Figure 5. Comparison of program execution time.
Figure 5. Comparison of program execution time.
Symmetry 17 00487 g005
Figure 6. Processing task Petri net.
Figure 6. Processing task Petri net.
Symmetry 17 00487 g006
Figure 7. Best known scheduling Gantt chart in processing task.
Figure 7. Best known scheduling Gantt chart in processing task.
Symmetry 17 00487 g007
Figure 8. Train loading task Petri net.
Figure 8. Train loading task Petri net.
Symmetry 17 00487 g008
Figure 9. Best known scheduling Gantt chart in loading task.
Figure 9. Best known scheduling Gantt chart in loading task.
Symmetry 17 00487 g009
Table 1. Comparison results in test task.
Table 1. Comparison results in test task.
MethodBest Known SequenceSequence ProbabilityExecution Time/sIterations
PSO 28
GA-ACO t 10 t 20 t 15 t 25 t 11 t 21 t 16 t 26 t 12 t 22 t 17 t 27 t 18 t 28 t 13 t 23 t 19 t 29 t 14 t 24 95%3725
GA-PSO 22
PN-AACO t 1 t 6 t 2 t 7 t 3 t 8 t 9 t 4 t 10 t 5 100%371
iPN-AACO t 1 t 6 t 2 t 7 t 3 t 8 t 9 t 4 t 10 t 5 100%371
Table 2. Comparison of test task.
Table 2. Comparison of test task.
MethodPN-ACOOiPN-ACOO
Initial token count 1234610234610
τ b e s t  2/s37475987433747598743
Hit rate100%100%100%100%100%100%100%100%100%100%
τ b e s t convergence rate100%100%100%100%100%100%100%100%100%100%
τ b e s t iterations1111111111
τ a v e  3 convergence rate100%100%100%100%100%100%100%100%100%100%
τ a v e iterations14.64.75.55.213.29.3315.923.6
Pheromone size1472.3130.25142053.7102102102102102
Execution time/s0.381.262.216.7134.151.161.722.393.677.12
1 Non-resources. 2 Best known completion time. 3 Average completion time.
Table 3. Results of the three algorithms.
Table 3. Results of the three algorithms.
MethodImproved ACOPN-AACOiPN-AACO
τ a v e iterations5.21.41
τ b e s t iterations311
τ a v e /s427427.3427
τ b e s t /s427427427
Hit rate100%100%100%
Table 4. Comparison of processing task.
Table 4. Comparison of processing task.
MethodPN-ACOOImproved PN-ACOO
Initial token count456812456812
τ b e s t /s42751258176211754275125817621097
Hit rate100%60%60%10%0%100%60%50%70%40%
τ b e s t convergence rate100%100%80%80%N/A100%100%90%100%10%
τ b e s t iterations1.22.42.92.75N/A1.33.62.310.529
τ a v e convergence rate60%10%10%0%N/A50%30%10%20%0%
τ a v e iterations12.3810InfN/A10.86.31429.5Inf
Pheromone size209.9478.6896.71606.43149.9366366366366366
Execution time/s1.453.286.2314.0036.901.391.631.762.453.10
Table 5. Definition of places and transitions.
Table 5. Definition of places and transitions.
Places or TransitionsDescriptions
p 1 , p 4 , p 7 , p 10 , p 13 , p 16 Count of steel brackets
p 2 , p 5 , p 8 , p 11 , p 14 , p 17 Count of steel coils
p 3 , p 6 , p 9 , p 12 , p 15 , p 18 Completion status of coil loading
p 10 ( r 1 ) , p 11 ( r 2 ) Crane resources, forklift resources, respectively
t 1 , t 5 , t 9 , t 13 , t 17 , t 21 Average time for crane to install steel bracket: 90 s
t 2 , t 6 , t 10 , t 14 , t 18 , t 22 Average time for forklift to install steel bracket: 120 s
t 3 , t 7 , t 11 , t 15 , t 19 , t 23 Average time for crane loading steel coil: 150 s
t 4 , t 8 , t 12 , t 16 , t 20 , t 24 Average time for forklift loading steel coil: 180 s
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

Yang, Y.; Liu, X.; Lu, W. Improvement of Scheduling Optimization of Cyber-Physical Systems Based on Petri Net and Intelligent Algorithm. Symmetry 2025, 17, 487. https://doi.org/10.3390/sym17040487

AMA Style

Yang Y, Liu X, Lu W. Improvement of Scheduling Optimization of Cyber-Physical Systems Based on Petri Net and Intelligent Algorithm. Symmetry. 2025; 17(4):487. https://doi.org/10.3390/sym17040487

Chicago/Turabian Style

Yang, Yuhai, Xiaodong Liu, and Wei Lu. 2025. "Improvement of Scheduling Optimization of Cyber-Physical Systems Based on Petri Net and Intelligent Algorithm" Symmetry 17, no. 4: 487. https://doi.org/10.3390/sym17040487

APA Style

Yang, Y., Liu, X., & Lu, W. (2025). Improvement of Scheduling Optimization of Cyber-Physical Systems Based on Petri Net and Intelligent Algorithm. Symmetry, 17(4), 487. https://doi.org/10.3390/sym17040487

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