Next Article in Journal
Recent Methods for Evaluating Crop Water Stress Using AI Techniques: A Review
Previous Article in Journal
Improving Localization in Wireless Sensor Networks for the Internet of Things Using Data Replication-Based Deep Neural Networks
Previous Article in Special Issue
Node Role Selection and Rotation Scheme for Energy Efficiency in Multi-Level IoT-Based Heterogeneous Wireless Sensor Networks (HWSNs)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Petri-Net-Based Charging Scheduling Optimization in Rechargeable Sensor Networks

1
School of Electrical and Information Engineering, Jiangsu University of Science and Technology, Zhenjiang 212000, China
2
The Key Laboratory for Agricultural Machinery Intelligent Control and Manufacturing of Fujian Education Institution, Wuyishan 354330, China
3
College of Mechanical and Electrical Engineering, Wuyi University, Wuyishan 354330, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(19), 6316; https://doi.org/10.3390/s24196316 (registering DOI)
Submission received: 21 August 2024 / Revised: 25 September 2024 / Accepted: 28 September 2024 / Published: 29 September 2024
(This article belongs to the Special Issue Energy Harvesting Technologies for Wireless Sensors)

Abstract

:
In order to express the energy flow, motion flow, and control flow in wireless rechargeable sensor networks accurately and intuitively, and to maximize the charging benefit of MVs (mobile vehicles), a type of MTS-HACO (Mobile Transition Sequence Hybrid Ant Colony Optimization) is proposed. Firstly, node places are grouped according to the firing time of node’s energy consumption transition to ensure that in each time slot, MV places only enable charging transitions for the node places with lower remaining lifetimes. Then, the FSOMCT (Firing Sequence Optimization of Mobile Charging Transition) problem is formulated under the constraints of MV places capacity, travelling arc weight, charging arc weight, and so on. The elite strategy and the Max–Min Ant Colony system are further introduced to improve the ant colony algorithm, while the improved FWA (fireworks algorithm) optimizes the path constructed by each ant. Finally, the optimal mobile charging transition firing sequence and charging times are obtained, ensuring that MVs have sufficient energy to return to the base station. Simulation results indicate that, compared with the periodic algorithm and the PE-FWA algorithm, the proposed method can improve charging benefit by approximately 48.7% and 26.3%, respectively.

1. Introduction

Precision agriculture is a key direction in the development of modern agriculture. Through the use of sensor technology and other methods, it enables precise monitoring and management of crop growth environments, thereby improving agricultural production efficiency and reducing resource waste. By deploying a large number of sensors in the field, agricultural producers can obtain real-time information on soil moisture, temperature, light intensity, and weather conditions, providing scientific guidance for crop growth. However, the widespread use of these sensors has also introduced new challenges, particularly the energy constraints of sensor batteries. To address this challenge, wireless rechargeable sensor networks (WRSNs) have gained increasing attention in recent years. Moreover, against this backdrop, charging scheduling methods based on Petri nets have garnered increasing attention from researchers due to their advantages in modeling complex systems [1,2].
In most charging strategies, the scheduling methods typically involve either charging all nodes along a fixed trajectory or randomly charging sensor nodes. However, there are still several drawbacks to these strategies.
Most existing strategies base their charging decisions on the remaining energy of the nodes, but they fail to account for differences in node lifespans. A node with low remaining energy but a low energy consumption rate may not necessarily have a short lifespan. Conversely, a node with relatively high remaining energy but a high consumption rate might deplete its energy more quickly. Therefore, these charging strategies do not fully reflect the actual energy needs of the nodes. In most studies, nodes are fully charged. However, in practical scenarios, charging lithium batteries beyond approximately 90% significantly slows down the process, resulting in low time efficiency [3]. The charging benefit during the charger’s movement is often overlooked, yet it directly affects energy replenishment and the network’s condition. Therefore, improving charging benefit is crucial for optimizing energy utilization and enhancing overall network performance.
To overcome the aforementioned shortcomings, it is necessary to determine which nodes should be charged during each time slot and the number of MVs (mobile vehicles) to deploy. Moreover, task allocation and path selection for MVs are crucial for improving charging benefit. Additionally, to accurately describe the energy state, charging behavior, and traveling path within the network, and thereby analyze network behavior and optimize scheduling strategies, this paper proposes a Generalized Synchronizing Continuous Cyber Petri-net System (GSCCPNS). The charging scheduling problem is then formulated as the Firing Sequence Optimization of Mobile Charging Transition (FSOMCT), and the Mobile Transition Sequence Hybrid Ant Colony Optimization (MTS-HACO) is proposed. The main contributions of this paper are as follows:
First, the Generalized Synchronizing Continuous Cyber Petri-net System is innovatively proposed, where place markings represent the real-time energy of MVs (sensor nodes); transitions represent events such as traveling, charging, or energy consuming; and directed arc weights represent charging power or consuming power. This unifies the models of energy flow, motion flow, and control flow in wireless rechargeable sensor networks.
Second, the shortest firing time of node’s energy consumption transition is considered as the slot time. Node places to be charged for each time slot are determined based on the firing time of each node’s energy consumption transition, ensuring that each node receives timely energy replenishment without wasting energy.
Third, by combining an improved ant colony algorithm with the fireworks algorithm, the MTS-HACO algorithm optimizes the mobile charging transition firing sequence. This ensures nodes are replenished with energy in a timely manner while improving the network’s overall charging benefit.
The remaining sections of this paper are organized as follows: Section 2 reviews the latest advancements in charging scheduling optimization and the application of Petri nets. Section 3 establishes the Petri-net model for wireless rechargeable sensor networks. Section 4 formulates the Firing Sequence Optimization of Mobile Charging Transition problem. Section 5 proposes the MTS-HACO algorithm to solve this problem. Section 6 analyzes the simulation results. Finally, Section 7 concludes the paper and discusses future work.

2. Related Work

In wireless rechargeable sensor networks, researchers have introduced various charging strategies to address the issue of node lifespan. These strategies can be categorized into fixed charging and mobile charging, based on charger deployment methods, and they primarily involve optimization through intelligent algorithms and deep learning techniques.

2.1. Charging Scheduling Optimization

Due to the inherent limitation of fixed charging, which cannot fully cover all areas, we first proposed the master-slave charging strategy, with fixed charging as the primary method to cover most sensor nodes, supplemented by mobile chargers to serve the weakly covered areas of fixed chargers [1]. Building on this, Deng et al. proposed a hybrid charging scheme that combined fixed and mobile chargers to minimize the number of energy-depleted nodes [4]. Xu et al. studied multi-node energy charging schemes with multiple mobile chargers (MCs), optimizing the charging schedule to minimize the maximum charging delay [5]. Yang et al. proposed a multi-type charging scheduling scheme based on regional demand differences, using different topological structures in the inner and outer rings to improve node survival rates and energy utilization efficiency [6].
Optimization of scheduling strategies primarily leverages intelligent algorithms and reinforcement learning techniques to enhance charging schedules, thereby improving network energy efficiency and node survival rates. Hu et al. proposed a periodic scheduling algorithm to balance charging tasks within predefined time slots, effectively preventing energy starvation caused by charging delays [7]. Lyu et al. introduced a multi-node charging and data collection scheme based on mobile devices, optimizing anchor point locations and path planning to maintain perpetual network operation [8]. Sha et al. presented a periodic distributed energy replenishment method based on maximizing charging efficiency, optimizing the charging efficiency of wireless sensor networks [9]. Li et al. studied a multi-objective optimization charging scheme aimed at extending the network lifetime of wireless rechargeable sensor networks [10]. Dash (2023) explored a two-stage energy-saving load balancing scheme to improve data collection efficiency in energy-harvesting wireless sensor networks, utilizing mobile sink nodes for data collection and applying minimum-cost network flow techniques to optimize data distribution [11]. Although this method improves data collection throughput, its reliance on mobile sink path planning may result in additional communication overhead. Guo et al. investigated the adaptive profit balancing between multiple mobile wireless chargers to optimize overall charging utility [12].
Jiang et al. proposed a joint sequence-scheduling and trajectory-planning scheme using deep reinforcement learning, enabling mobile chargers to avoid obstacles and optimize charging performance [13]. Guo et al. introduced an adaptive dual-mode energy-efficient routing scheme based on deep Q-networks to enhance the sustainability of rechargeable wireless sensor networks [14]. Shan et al. proposed a multi-UAV path planning scheme based on deep reinforcement learning to optimize the charging paths in wireless rechargeable sensor networks [15].
Although deep learning techniques have achieved some success in optimizing scheduling in WRSNs, they have limitations in terms of data requirements, training time, model generalization, and interpretability. In contrast, intelligent algorithms such as genetic algorithms, particle swarm optimization, and ant colony algorithms demonstrate good adaptability and computational efficiency in optimization problems, making them well suited to meeting scheduling demands in dynamic network environments. Therefore, this paper proposes a scheduling strategy based on an improved ant colony algorithm, incorporating an elite strategy and the fireworks algorithm for local optimization, to obtain the optimal mobile charging transition firing sequence.

2.2. Petri-Net Application

As a powerful modeling tool, Petri nets have been widely applied in resource allocation, scheduling optimization, and system verification. Existing research can be broadly categorized into the following areas: system modeling and verification, liveness analysis, and scheduling optimization.
Petri nets possess strong expressive capabilities in system modeling and verification, effectively handling complex system behaviors and state transitions. Yang et al. proposed a real-time mask recognition system based on Petri nets, using the Jetson Nano edge computing platform and YOLOv5 model for automatic mask recognition, and employed the Workflow Petri Net Designer for system verification [16]. Zhong et al. introduced a time-triggered network verification framework based on timed colored Petri nets, ensuring real-time communication requirements through automated modeling and reachability analysis [17]. Hu et al. explored the optimal sensor selection problem for diagnostic enforcement in discrete event systems based on Petri nets, optimizing system diagnostics using nondeterministic finite automata and integer linear programming [18].
Liveness analysis is a crucial method for ensuring that systems run without deadlocks. Qi et al. proposed a liveness decision method from a machine learning perspective, using deep neural networks to learn feature information of unbounded Petri nets and probabilistically predict their liveness [19]. Yue et al. introduced an algorithm for estimating the minimum initial markings of marked Petri nets with unobservable transitions, optimizing resource allocation through minimal interpretation [20]. Dou et al. presented a novel Petri-net liveness analysis method based on maximum good step graphs, which significantly reduces state space and time consumption in liveness analysis [21].
Petri nets also have significant applications in resource allocation and scheduling optimization. Lv and Huang proposed an arbitrary-time A* search method for scheduling in Petri-net-based resource allocation systems, combining A* search with depth-first search to improve scheduling efficiency [22]. Ahn and Kim introduced a novel mixed-integer programming model for non-periodic integrated tool scheduling, using timed Petri nets and priority relations to reduce decision variables and enhance scheduling performance [23]. Hustiu et al. developed a multi-robot path planning algorithm using Petri nets and linear temporal logic specifications, which reduced computational complexity [24]. In a previous work, we proposed a hybrid colored cyber net system for multi-UAV scenarios, performing multi-objective optimization of wireless power and information transmission networks, achieving superior performance compared with NSGA-II and MOEA/D [1].
Despite significant progress in system modeling, scheduling optimization, and liveness analysis using Petri nets, existing methods still face challenges in adapting to dynamic network changes, computational complexity, and practical applications. In particular, effectively utilizing Petri nets for optimizing scheduling in WRSNs to meet evolving network demands and resource constraints remains a pressing challenge. Building on existing research, this paper introduces a novel WRSN optimization scheduling method that integrates advanced intelligent algorithms with the powerful modeling capabilities of Petri nets. The following section provides a detailed description of the modeling approaches for the Petri-net model of WRSNs.

3. Preliminaries

In this section, the model of the wireless rechargeable sensor network is first presented. Then, based on the classical Petri net, the Generalized Synchronizing Continuous Cyber Petri Net System (GSCCPNS) is proposed, and the GSCCPNS model for a WRSN is established.
In a two-dimensional area D, n nodes are randomly deployed, with s i representing the ith node, S = { s 1 , , s i , , s n } , i [ 1 , n ] , i . Simultaneously, m mobile vehicles (MVs) are employed, with c j representing the jth MV, C = { c 1 , , c j , , c m } , j [ 1 , m ] , j . Each MV is responsible for charging a subset of nodes, and each node can be charged by only a single MV within each time slot, ensuring that the sets of charging nodes do not overlap. Figure 1 illustrates the wireless rechargeable sensor network model. For simplicity, it is assumed that the base station (BS) is located at the center of the network, and nodes transmit data to it via multi-hop communication. Additionally, this study employed magnetic coupling for wireless charging, requiring the MVs to be in close proximity to the sensors for recharging. Thus, the positions where the MVs stop are considered to coincide with the positions of the sensor nodes.
Petri nets are a graphical and mathematical modeling tool that provide an intuitive and precise way to characterize complex dynamic behaviors and interactions between components within a system. By constructing a Petri-net model, the charging scheduling process in WRSNs can be effectively described, allowing the optimization of charging strategies and thereby improving the overall energy efficiency and reliability of the network. This paper extends the classical Petri net by proposing the GSCCPNS, which is defined as follows.
Definition 1.
An eight-tuple = ( S , T ; F , W , M , I n h i b i t , E , K ) is called a Generalized Synchronizing Continuous Cyber Petri-Net System (GSCCPNS) if the following conditions are satisfied:
(1) 
N = ( S , T ; F ) is a directed net, which is the base net of ;
(2) 
F S × T T × S and Inhibit represent flow relationships and constraint relationships, respectively;
(3) 
K = { k L , k H } is the capacity function’s upper and lower bounds, and k L : S , k H : S , is the set of real numbers;
(4) 
W : F E x p ( S , τ ) is the weight function, and E x p ( S , τ ) is the set of functional expressions of time τ;
(5) 
M : F is the marking of place, and M 0 is the initial marking;
(6) 
E = { e 1 , e 2 , } is the event set of .
Definition 2.
The condition for the firing of transition T is:
s T · : ( M ( s ) W M ( s , T ) ) [ k L ( s ) , k H ( s ) ] s T · : ( M ( s ) + W M ( T , s ) ) [ k L ( s ) , k H ( s ) ] s T W · : W ( T , s ) [ k L ( s ) , k H ( s ) ]
If transition T is fired, it can be denoted as M [ T > , where T · and T · are the input and output places of transition T, respectively.
Definition 3.
Result of Transition Firing: If transition T fires, the original marking M changes to M , such that:
M ( s ) = { M ( s ) W ( s , T ) s T · T · M ( s ) + W ( T , s ) s T · T · M ( s ) W ( s , T ) + W ( T , s ) s T · T · W ( T , s ) s T W · M ( s ) s ( T · T · T W · )
The dynamic equation of GSCCPNS is given by:
M = M 0 + C U = M 0 + C [ τ 0 τ n ( ) ] d τ
where the matrix operator + represents the substitution addition, C is the incidence matrix, and U is the concurrent step sequence matrix.
To apply Petri nets for WRSN modeling, the network elements need to be mapped to places, transitions, and directed arcs. Places represent the real-time energy levels of MVs (sensor nodes), with the capacity function’s upper and lower bounds representing the battery capacity and minimum energy levels of nodes or MVs, respectively. Transitions represent events such as traveling, charging, or energy consumption. Directed arc weights represent charging power or consumption power. A complete charging cycle is divided into several charging time slots, with each slot having a duration of T 0 . In each time slot, all MVs first stay at the base station for a certain period. Then, they leave the base station to charge the required nodes along their movement trajectories and finally return to the base station at the end of the time slot. The variable v represents the moving speed of the chargers, and δ represents the energy consumed by the MV per second. After charging all nodes along their trajectory, the MVs should retain enough energy to return to the base station. The definitions of the network model parameters are provided in Table 1.
The GSCCPNS model of the WRSN is illustrated in Figure 2. The place c j , i represents the energy of MV c j when located at node s i . The places c j , 0 and c j , n + 1 represent the energy of MV c j when leaving and returning to the base station, respectively. The place s i represents the energy of the ith node. Transition t r i 1 , i j represents the movement of the MV c j from node s i 1 to node s i . Transition c h i j represents the charging of node s i by MV c j , while c o n s i represents the energy consumption transition of node s i .
Arc weight W ( t r i 1 , i j , c j , i ) = δ indicates the energy consumed per second by the MV during movement. W ( c j , i , c h i j ) = U is the charging power of the MV, W ( c h i j , s i ) = σ U is the power received by the node, σ is the reception efficiency, and W ( s i , c o n s i ) = P s i is the power consumption of the sensor node.
Let d i 1 , i j represent the distance that the MV travels between adjacent nodes on its charging path. The time for the MV c j to move from node s i to node s i + 1 is given by:
τ i , i + 1 j = d i , i + 1 j / v
Thus, the total travelling time for the MV c j in one time slot is:
τ m o v j = i = 0 n d i , i + 1 j v
The energy consumed during travelling is:
E m o v j = δ τ m o v j
Due to the inherent characteristics of lithium batteries, the charging speed significantly decreases when the voltage reaches around 90%, and partial charging can extend the battery life [3]. Therefore, in this study, the nodes were partially charged. Let τ i j denote the charging time of MV c j at sensor node s i . The total charging duration for nodes in one time slot is τ c h a r j . The energy consumed by c j for charging can be calculated as follows:
E c h a r j = U τ c h a r j = i = 1 n U τ i j
The time at which MV c j arrives at node s i is t i j . At this time, the energy of cj is represented by M ( c j , i _ t i j ) . After a charging duration of τ i j , the energy of c j can be represented by M [ c j , i _ ( t i j + τ i j ) ] .
The arc weight between the place of the MV and the transition of movement can be represented as follows:
W ( c j , i , t r i , i + 1 j ) = M [ c j , i _ ( t i j + τ i j ) ] / τ i , i + 1 j
Equation (7) indicates that after the MV c j reaches node s i + 1 , the marking of place c j , i is zero.
If the MV c j stays at the base station for a duration of τ v a c j , then the total charging duration for cj in one time slot can be expressed as follows:
T 0 = τ v a c j + τ m o v j + τ c h a r j
where τ m o v j = i = 0 n + 1 τ i , i + 1 j , τ c h a r j = i = 1 n τ i j .The main components of GSCCPNS are described in detail in Table 2.
Given the scale of the wireless sensor network, node locations, energy consumption rates, base station location, and the energy capacity of MVs, this study aimed to address the problem of obtaining an optimal mobile charging scheme. Due to the limited energy of MVs, uneven distribution of sensor nodes, and significant differences in energy levels, the following factors need to be considered in charging scheduling:
  • how to determine the number of MVs to deploy based on the number of nodes and their energy consumption;
  • how to select nodes for charging to ensure no node dies, minimize the movement distance of MVs, and improve their charging benefits;
  • how to allocate charging tasks to reduce the waiting time for subsequent nodes.
To address these issues, this paper proposes a charging scheduling strategy based on the energy consumption transition firing time. The main idea is to first group nodes according to their remaining lifetimes, placing nodes with similar lifetimes in the same group. Then, the number of MVs required is calculated based on the total energy consumption. Finally, intelligent algorithms are used to optimize the sequence of mobile transitions and the timing of charging transitions.

4. Problem Statement

This section first determines the scale of nodes that need charging in each time slot based on the firing time of consumption transition for the nodes and accordingly determines the number of MVs required. Next, the Mobile Charging Transition Firing Sequence Optimization Problem is proposed.

4.1. Node Place Selection

The remaining energy of nodes is often a crucial factor in charging planning, but the energy consumption of nodes varies depending on the amount of information they process. Consequently, nodes with low remaining energy might not necessarily deplete their energy soon, and nodes with high remaining energy might not necessarily operate for a long time. Therefore, using node lifetime as a basis for charging scheduling is more reasonable. In the GSCCPNS model, the remaining lifetime of a node is represented by the firing time of consumption transition (FTCT). Thus, this paper takes FTCT as an important basis for optimizing the mobile charging transition sequence and proposes a node place selection strategy.
Since node places represent the energy of sensors, the firing duration of the energy consumption transition c o n s i , which indicates the node’s lifespan, can be derived based on the arc weight W ( s i , c o n s i ) when the charging transition c h i j is not enabled. The integer ratio of the maximum FTCT to the minimum FTCT is used as the basis for grouping node places. Assume l min and l max are the minimum and maximum FTCT of node places when fully charged. To ensure that no node dies, the interval between any node’s two charging times should not exceed its FTCT. Let us define one time slot T 0 as l min . The ratio K is given by K = l max / l min , and it satisfies the following condition:
k l min l s i < ( k + 1 ) l min ,   k K
In this context, l s i represents the firing time of the energy consumption transition for place s i with unable charging transition. Nodes whose places satisfy the condition in Equation (9) can be grouped into node place groups G k , with a maximum of K such groups. To ensure that the nodes in group G k receive energy replenishment, they must be charged once every k time slots. This means the energy replenishment period is k l min . Thus, any node at the beginning of its time slot will have an FTCT greater than l min and less than or equal to 2 l min . Consequently, even if a node is charged last within a time slot, it will not die due to energy depletion.

4.2. Number of MV Places

From the above analysis, it can be concluded that the lifetime of a sensor node is not affected by the timing of its charging within its designated time slot. The earlier a node is charged, the less energy it needs to replenish; conversely, the later it is charged, the more energy it needs. Assuming the node that is charged the latest in group G k is located very close to the base station, the distance between them is d min . Thus, the interval between two charging times for this node is k l min d min / v . The maximum energy demand for this node can be calculated as follows:
E max = max k K { ( k l min d min / v ) P k }
where P k is the power consumption rate of the node. On the other hand, within group G k , there must be a node that is charged first. This node, requiring the least energy replenishment, is also the closest to the base station, with a distance of d min between them. Assuming the MV leaves the base station at time t 0 , and the power consumption of this node is P k , the minimum energy demand for this node can be calculated as follows:
E min = min k K { ( ( k 1 ) l min + t 0 + d min / v ) P k }
where ( k 1 ) l min represents the time interval from the end of the last charging slot to the beginning of the current charging slot, during which the node only consumes energy without being charged.
Equations (10) and (11), respectively, provide the maximum and minimum energy demands of the node places. Based on this, the range for the number of MVs required can be determined.
n ( δ d ¯ / v + E min / σ ) k H ( c j ) δ d ¯ / v m n ( δ d ¯ / v + E max / σ ) k H ( c j ) δ d ¯ / v
where d ¯ is the average distance the MV moves between any two nodes, δ d ¯ / v is the average energy consumption for movement, and k H ( c j ) is the upper bound of the place capacity c j , representing the battery capacity of MV. n ( δ d ¯ / v + E min ) and n ( δ d ¯ / v + E max ) are the minimum and maximum energy demands of all nodes, respectively. k H ( c j ) δ d ¯ / v represents the upper limit of the energy available for charging via a single MV.

4.3. Problem Definition

This paper measures the charging benefit of MVs using the energy utilization rate ϕ . The charging optimization objective is defined as maximizing charging benefit to achieve the optimal usage of MVs. The problem definition is provided as follows.
Definition 4.
The Firing Sequence Optimization of Mobile Charging Transition (FSOMCT) problem involves finding the optimal sequence of MV transitions and the timing of charging transitions within the constraints of charging time slots, node energy consumption transition durations, and the capacities of MVs and sensor nodes. The goal is to maximize charging benefit. The formal specification of the FSOMCT is as follows:
max ϕ = i = 1 N j j = 1 M W ( c j , i , c h i j ) τ i j j = 1 M [ M 0 ( c j , 0 ) M ( c j , n + 1 _ t n + 1 j ) ]
s u b j e c t   t o
M ( c j , n + 1 _ t n + 1 j ) 0 , j = 1 , 2 , , M
T 0 = τ v a c j + τ m o v j + τ c h a r j
k l min M [ s i _ ( t i j + τ i j ) ] / P s i ( k + 1 ) l min
i = 0 N j + 1 j = 1 M x g i j = 1 , g
i = 0 N j + 1 x 0 i j = 1   a n d   g = 0 N j + 1 x g 0 j = 1 , j
i = 0 N j + 1 x g i j g = 0 N j + 1 x i g j = 0 , g , j
In Equation (13), M 0 ( c j , 0 ) M ( c j , n + 1 _ t n + 1 j ) refers to the energy consumed by MV c j within one time slot, and M 0 ( c j , 0 ) is the energy at the time of departure, when it is generally considered to be fully charged. N j indicates the number of sensors that MV c j needs to serve. Equation (14) shows that the MV has to return to the base station with enough energy. Equation (15) defines the total duration of a time slot, and Equation (16) determines the range of energy charging for a node. In Equation (17), x g i j is a binary decision variable. If there is a movement transition t r g , i j between places s g and s i , meaning MV c j moves to node s i after charging node s g , then x g i j = 1 ; otherwise, x g i j = 0 . Equation (17) is the single-visit constraint for nodes, Equation (18) implies that the MV departs from and eventually returns to the base station, and Equation (19) ensures that the route of each MV is logically continuous.
Theorem 1.
The FSOMCT problem is NP-hard.
Proof. 
The MV places can be considered analogous to cargo vehicles, and the sensor node places can be viewed as customers needing service. The sequence of mobile charging transition firings can be seen as the order of customer visits. □
Specifically, in the FSOMCT, the charging capacity of each MV corresponds to the vehicle capacity in the Capacitated Multi-Depot Vehicle Routing Problem (CMDVRP), the service time or energy consumption required by each sensor node is equivalent to the customer demand in the CMDVRP, and the vehicle’s charging path corresponds to the vehicle routing problem in the CMDVRP. Additionally, the multi-vehicle and the depot in the CMDVRP are similar to the setup of multiple MVs and the base station in the FSOMCT.
Therefore, by mapping the FSOMCT to the CMDVRP, it can be seen that these two problems share the same structural characteristics in terms of computational complexity. Since the CMDVRP has been proven to be NP-hard, and the FSOMCT can be reduced to the CMDVRP in polynomial time, the FSOMCT is also an NP-hard problem.

5. Proposed Algorithm

Based on the previous section’s description, it is clear that the problem addressed in this paper is to find the optimal sequence of mobile charging transitions, which is also NP-hard. This involves determining the traversal order of the MV to the nodes and the charging times. Intelligent optimization algorithms have proven effective in solving such problems. Among them, ant colony optimization (ACO) is well-suited for finding the shortest path, while the fireworks algorithm (FWA) offers strong global search capabilities. Therefore, this paper proposes a hybrid algorithm combining ACO and FWA, leveraging the strengths of both. The ant colony algorithm is used to effectively explore paths and enhance convergence speed through pheromone reinforcement, while the fireworks algorithm is employed to increase solution diversity and improve global optimization capabilities.

5.1. Improvement of Ant Colony Optimization

Ant colony optimization (ACO) is inspired by the foraging behavior of ants in nature, where they find the shortest path from the food source to their nest. Ants are able to find this shortest path without any external clues by laying down pheromones to communicate with each other. Thus, even if the environment changes, they can still find the shortest path. The concentration of pheromones on a path determines the probability of ants choosing that path [25]. Therefore, there are two crucial processes in ACO. One of these is determining the next node for the ant to move to, and the other is updating the pheromone trail. At time t, ant w is at node g and moves to the next node i according to Equation (20):
P g i w ( t ) = { τ g i α ( t ) η g i β ( t ) i N i w τ g i α ( t ) η g i β ( t ) ,   i a l l o w e d w 0 , o t h e r w i s e
where τ g i ( t ) represents the pheromone intensity on the edge ( g , i ) , η g i is the inverse of the distance between nodes g and i , α is the relative importance of the pheromone trail, and β is the relative importance of visibility. N i w represents the set of nodes yet to be visited, and a l l o w e d w denotes the set of nodes that ant w can choose from.
The concentration of pheromones is inversely proportional to the path length. The more pheromones present, the shorter the path, as more ants will choose this path. Conversely, fewer pheromones indicate a longer path, with fewer ants selecting it. To prevent excessive pheromone accumulation, which can reduce the influence of heuristic factors, the pheromone levels need to be updated according to the following formula:
τ g i ( t + 1 ) = ( 1 ρ ) τ g i ( t ) + w = 1 m Δ τ g i w ( t )
Δ τ g i w ( t ) = { Q L w ,   i f   a n t   w   t r a n s f e r   t h e   e d g e   ( g , i ) 0 ,   o t h e r w i s e
where ρ is the parameter controlling the pheromone evaporation rate; Δ τ g i w ( t ) represents the amount of pheromone created by ant w on edge (g,i); Q is a constant related to the amount of pheromone deposited by the ant; L w is the length of the path traversed by ant w in the current cycle.
However, basic ACO is prone to falling into local optima and has a long global convergence time during the search process, making it less suitable for practical applications. To address this, ACO is improved in two ways. Firstly, an elite strategy is introduced, adding extra pheromones to the optimal path L o p t . The improved fireworks algorithm (described in Section 5.2) is used to optimize the current path, obtaining the local optimal solution L l o c a l ( L l o c a l = L o p t ). To make L o p t more attractive to the ants in the next cycle, the local pheromone update formula can be expressed as follows:
τ g i ( t + 1 ) = ρ τ g i ( t ) + w = 1 m Δ τ g i w ( t ) + ( 1 ρ ) τ g i ( t )
τ g i w ( t ) = Q L l o c a l
Δ τ g i w ( t ) = { Q L w ,   a n t   w   t r a v e r s e s   e d g e ( g , i ) 0 ,   o t h e r w i s e
τ g i ( t ) = σ Q L l o c a l
where ρ , τ g i ( t ) , Δ τ g i w ( t ) , and Q have the same meanings as in Equations (20)–(22). Δ τ g i ( t ) represents the additional amount of pheromone introduced by elite ants, and σ is the number of elite ants.
Secondly, the Max–Min Ant System (MMAS) is introduced to limit the range of pheromone concentrations. However, introducing the elite ant strategy into the local pheromone update formula may lead to excessive growth of pheromone on certain paths. Therefore, the pheromone values are restricted to the interval [ τ m i n , τ m a x ] to prevent the algorithm from stagnating. The global update formula can be expressed as follows:
τ g i ( t + 1 ) = ρ τ g i ( t ) + Δ τ g i g l o b a l ( t )
Δ τ g i g l o b a l ( t ) = Q L g l o b a l
where L g l o b a l is the global optimal path. The pheromone values are restricted to the interval [ τ m i n , τ m a x ] . After one cycle, if τ g i τ m a x , then τ g i = τ m a x ; if τ g i τ m i n , then τ g i = τ m i n .

5.2. Improvement of the Fireworks Algorithm

The fireworks algorithm (FWA) is a novel intelligent algorithm proposed by Tan and Zhu in 2010 [26]. In FWA, fireworks are considered as feasible solutions to the optimization problem, and the process of searching the neighborhood is viewed similarly to the process of generating sparks from fireworks.
To adapt the FWA to the proposed optimization problem, this paper improves the basic FWA. The algorithm steps are as follows.
First, initialize the fireworks population and parameters. Second, calculate the number of explosion sparks F g and the explosion amplitude A g for each firework. Then, select fireworks with smaller explosions to perform the explosion operation and generate sparks. Third, use the mutation operation to generate sparks M g , where M g = α F g , and α is a real number in the interval [ 0 , 1 ] . Finally, according to the selection strategy, select the best fireworks or sparks as the next generation of fireworks, and repeat the process until the stopping criteria are met. The framework of the improved fireworks algorithm is shown in Algorithm 1.
Algorithm 1 Improved fireworks algorithm
Input: Population size N, number of iterations T, number of sparks F, explosion amplitude A
Output: Local optimal solution
1:  Initialization
2:  for t = 1 to T
3:    for g = 1 to Fg do
4:      generate a spark by the explosion operator
5:    end for
6:    for k = 1 to Mg do
7:      generate a spark by the mutation operator
8:    end for
9:    select N fireworks and sparks as the child generation
10:  end for
During each iteration of Algorithm 1, the process is divided into three stages as follows:
Initialization: Define the parameters of the fireworks algorithm and determine the first generation of fireworks.
Local Search: Perform a local search through explosion and mutation operations. Before the search procedure, determine the search range and the number of searches. For minimization problems, the number of explosion sparks F g and the explosion amplitude A g of a firework are calculated as follows:
F g = M × y max f ( x g ) + ε g = 1 N ( y max f ( x g ) ) + ε
A g = A ^ × f ( x g ) y min + ε g = 1 N ( f ( x g ) y min ) + ε
where M is the total number of explosion sparks used to adjust the number of sparks generated by the explosion, and A ^ is the maximum radius used to adjust the size of the explosion radius. f ( x g ) is the objective function fitness value of firework x g . y max = max ( f ( x g ) ) , y min = min ( f ( x g ) ) and ε is a very small number used to prevent the denominator from being zero.
To prevent fireworks with good fitness from generating too many explosion sparks and fireworks with poor fitness from generating too few explosion sparks, upper and lower limits are set for the number of explosion sparks. Parameters a and b ( 0 < a < b < 1 ) are used, and the number of sparks generated by firework x g is calculated using Equation (31):
F ^ g = { r o u n d ( a * M ) ,   F g < a M r o u n d ( b * M ) , F g > b M ,   a < b < 1 r o u n d ( F g ) ,   F g > a M
To ensure that the solutions randomly sampled from the solution space are locally optimal, the 2-opt algorithm is introduced. This is a local search algorithm that involves two types of exchanges: intra-path 2-opt exchange and inter-path 2-opt exchange. In this paper, the former is introduced.
After the explosion operation, the mutation operation generates Gaussian sparks to increase the diversity of solutions. The swap operator is then introduced into the mutation operation. The swap operator can be described as follows. Given a set of feasible solutions represented as π = { π 1 , π 2 , , π n } , the swap operator randomly selects two nodes π g and π i ( g < i ) and swaps their positions to obtain a new set of solutions π = { π 1 , , π g 1 , π i , π g + 1 , , π i 1 , π g , π i + 1 , , π n } .
Selection: After the series of operations described above, the fireworks themselves, along with the explosion sparks and Gaussian mutation sparks, collectively form the candidate set of solutions. To pass on excellent individuals from the fireworks population to the next generation, a certain number of individuals need to be selected from the candidate set as the next generation of fireworks. Assume W is the candidate set and N is the number of fireworks. The best solution x b ( x b W ) and N 1 other solutions are selected as the next generation of fireworks. The remaining N 1 fireworks are selected using the roulette wheel method. The selection probability of a solution x b is given as follows:
P ( x g ) = R ( x g ) x i W R ( x i )
R ( x g ) = x i K d ( x g x i ) = x i K x g x i
where R ( x g ) represents the distance between the current individual W and all other individuals except x g .

5.3. Structure of MTS-HACO

In this section, a new algorithm named MTS-HACO (Mobile Transition Sequence Hybrid Ant Colony Optimization) is presented. The main objective of this method is to provide a novel hybrid approach to solve the FSOMCT problem. The algorithmic framework of MTS-HACO is shown in Algorithm 2.
Algorithm 2 MTS-HACO algorithm
Input: num_ants, num_nodes, initial_pheromone, max_iterations, constraints, stop_condition
Output: mobile transition sequence, firing time of charging transition
1:  while (stop_condition_not_satisfied) do
2:     Initialization
3:     for each ant w do
4:        distribute_ant_randomly (w)
5:        include_location_in_tabu_table (w)
6:        calculate_state_transition_probability (w)
7:        if (constraint_satisfied) then
8:          place_node_in_tabu_table (w)
9:        else
10:          continue
11:       end if
12:        if (traversal_completed) then
13:          save_optimal_solution()
14:          update_local_pheromone()
15:        end if
16:     end for
17:     update_global_pheromone()
18:  end while
19:  output_optimal_mobile transition sequence and firing time of charging transition
As shown in Algorithm 2, after initializing the parameters, m ants are randomly placed on each node, and their positions are recorded in the corresponding tabu list. The next node i for ant w to visit is chosen based on the state transition probability given by Formula (20). Nodes that satisfy the constraints are added to t a b u w until the paths for all ants are constructed. FWA is then used to locally optimize the paths constructed by each ant, obtaining the local optimal solution L l o c a l . The elite ant strategy is applied to the local optimal paths, and the local pheromone is updated according to Formula (23). By calculating the total shortest path, the global optimal solution L g l o b a l is obtained, and the global pheromone is updated according to Formula (27). This process continues until the termination condition N C = N C max is met, at which point the loop stops and the optimal solution is output.
MTS-HACO improves traditional ACO by introducing the elite strategy and the Max-Min Ant System and uses the improved FWA to optimize the paths constructed by each ant. These strategies increase the computational load of each iteration. However, the overall complexity is comparable to that of basic ACO. The total time complexity of the ACO algorithm with the elite strategy and MMAS is still mainly influenced by the number of ants, the number of nodes, and the number of iterations, and can be expressed as O ( T × ( m × n + n 2 + N × F + M ) ) . Here, m × n represents the complexity of ants constructing solutions, n 2 represents the complexity of limiting pheromone range on all edges, N × F refers to the explosion operation for each firework multiplied by the number of fireworks, M indicates the mutation operations, and T represents the number of iterations. Therefore, the time complexity of the MTS-HACO algorithm can be simplified to O(n3).
Compared with traditional ACO or other metaheuristic algorithms such as genetic algorithms (GAs), MTS-HACO incorporates a multi-search mechanism that improves solution quality but increases computational cost. While classic ACO has a complexity of O ( m × n ) , MTS-HACO’s additional local search steps introduce a slightly higher complexity. However, this increase is offset by the improved convergence speed and solution accuracy, particularly for large-scale problems like ours.

6. Performance Evaluation

This study simulated an environmental monitoring sensor network with N = [50, 100, 150, 200] randomly deployed nodes. The sensing area had a radius of 250 m, with a base station at the center. Each node had an initial energy of 100 joules, and the power consumption of the node ranged from 0.01 J/s to 0.03 J/s. Each MV had an energy capacity of 10 kJ, with a charging power of 10 W and a charging efficiency σ = 0.6 . All MVs moved at a speed of 8 m/s, and the energy consumption per MV was 16 J/s.
To verify the adaptability of the proposed scheme to any node distribution, two types of networks were established in the simulation (referred to as Net1 and Net2). In Net1, the nodes were uniformly distributed, while in Net2, the nodes followed a Gaussian distribution. The network topologies for N = 50 and N = 100 are shown in Figure 3.
Three criteria were used to demonstrate the performance of the MTS-HACO algorithm, the PE-FWA algorithm, and the periodic algorithm.
  • Average Travelling Distance of MV: This was the ratio of the total travelling distance of the MV during the charging path to the number of nodes it charged, represented as D j / N j , where D j is the travelling distance of the MV during a certain time slot, and N j is the number of nodes it charges. By calculating the average travelling distance, the performance of the MV was assessed. A shorter average distance indicated that the MV was able to efficiently charge nodes with relatively low energy consumption. Conversely, if the average distance was long, further optimization of the MV’s movement transition firing sequence would be needed to reduce the travelling distance for lower energy consumption.
  • Number of Energy-Depleted Sensor Nodes: This referred to the number of sensor nodes in the network that had their energy depleted due to not being charged in time. The greater the number of energy-depleted sensor nodes, the worse was the network performance. Therefore, the number of dead nodes was an important metric for evaluating the MTS-HACO algorithm.
  • Charging Benefit: This was the target of optimization in this study, representing the ratio of the energy consumed for charging to the total energy consumption. High charging benefit indicates effective utilization of the MVs for energy replenishment.

6.1. Charging Benfits

In this part of the simulation, the number of nodes was set to 100, and it was calculated that the complete charging cycles in Net1 and Net2 contained 370 and 77 time slots, respectively, requiring four MVs. After running the TPPS, K-Means, and MTS-HACO algorithms in Net1 and Net2, the charging benefit for each time slot was obtained, as shown in Figure 4 and Figure 5. TPPS and K-Means are both region-based charging task allocation methods [7,27]. K-Means divided the network into several subregions based on the node locations. Each MV was assigned to one of these regions and independently charged the nodes within that region, with the advantage of avoiding long-distance movement by a single MV. On the other hand, TPPS, in addition to network partitioning, introduced a group member adjustment strategy to minimize the energy consumption of the MVs.
The simulation results showed that, regardless of the network topology, the MTS-HACO algorithm had a significant advantage in terms of charging benefit. The average charging benefit of the MTS-HACO algorithm in Net2 was 6.7% higher than in Net1, due to the more concentrated distribution of nodes in Net2, which helped the MVs improve energy utilization. In Net1 and Net2, the average charging benefits of the MTS-HACO algorithm were 16.6% and 27.9% higher than TPPS, and 18.2% and 25.3% higher than K-Means, respectively. This improvement was because TPPS and K-Means did not consider the differences in energy demand between nodes when establishing MV trajectories; their optimization objectives were focused on balancing the energy consumption of MVs during movement.
Additionally, as shown in Figure 6 and Figure 7, the optimal, median, and worst values of the HTS-HACO algorithm in both scenarios were significantly better than those of the other two algorithms.

6.2. Network Performance with Various Number of MVs

In a network with 100 deployed nodes, it can be calculated using Equation (12) that the theoretically required number of MVs is three or four. Without loss of generality, we increased the number of MVs from one to five and recorded the average travelling distance of the MVs, the number of dead nodes, and the charging benefit of the MVs. The results are shown in Figure 8, Figure 9 and Figure 10.
As seen in Figure 8, when m = 1 , 72 nodes sent charging requests in the 13th time slot. At the same time, 55 nodes died due to not being charged in time. When m 2 , the node death rate in the network dropped to zero.
In Figure 9, when m = 1 , the average travelling distance of the MV was nearly the longest. However, the experimental results for the 26th, 39th, 52nd, and 65th charging time slots were inconsistent with the above conclusion. This discrepancy was due to the fact that many nodes died by the end of the 13th time slot. As a result, the number of charging nodes in the subsequent time slots decreased sharply, leading to a reduction in the MV’s average travelling distance. However, it is important to note that in other time slots, when m = 1 , the MV’s average travelling distance remained the longest.
When m 2 , the average travelling distance of the MVs decreased as m increased, indicating that increasing the number of MVs would be an effective way to enhance network performance. However, it should be noted that when m = 3 , the average travelling distance of the MVs was significantly shorter than when m = 2 , with an average reduction of 559 m. Conversely, when m = 5, the average travelling distance of the MVs was not significantly shorter than when m = 4 . This suggests that more MVs are not always better, and there is an optimal number of MVs for achieving the best performance.
Figure 10 shows the charging benefits of MVs with different numbers of MVs. When the numbers of MVs were one, two, three, four, and five, the average charging benefits were 29.2%, 35.8%, 41.3%, 48.1%, and 50.4%, respectively. When m = 2 , the charging benefit was relatively high, but the average travelling distance of the MVs was also longer. For 3 m 5 , it was observed that when m = 4 , the charging benefit was the second highest, and the average travelling distance was close to that when m = 5 . Therefore, when deploying 100 nodes, setting the number of MVs to four would be more reasonable.
The simulation results for node death rate, average travelling distance of MVs, and average charging benefit with different numbers of nodes are shown in Figure 11, Figure 12 and Figure 13.
As shown in Figure 11, when the number of MVs remained constant, the more nodes in the network, the higher the node death rate. This was clearly due to the limited number and energy capacity of the MVs, which were unable to meet the increasing charging demands of the nodes. On the other hand, as the number of MVs increased, the node death rate in the network gradually decreased, regardless of the number of nodes. For example, in a network with N = 200 nodes, there were no node deaths when the number of MVs was seven.
As shown in Figure 12, when the number of MVs remained constant, the average travelling distance of the MVs generally increased with the number of nodes. It is noteworthy that when m = 1, the average travelling distance of MVs in a network with N = 50 was actually the highest. This was because, in networks with N = 100, 150, or 200 nodes, the node death rate was relatively high. As shown in Figure 9, when N = 200 and m = 1, more than 90% of the nodes in the network died. In such a scenario, the MV only needed to charge a few surviving nodes, which shortened the average travelling distance.
As seen in Figure 13, in a network with N = 50, the average charging benefit of MVs significantly improved when the number of MVs increased from one to four. As the number of nodes increased, correspondingly increasing the number of MVs significantly enhanced the average charging benefit.

6.3. Network Performance with Different Charging Strategies

In this section, the proposed MTS-HACO is compared with the PE-FWA and periodic methods [7,8]. In PE-FWA, nodes are clustered based on their locations, and when a cluster head sends a charging request, the MV charges all the nodes within that cluster. The clustering and grouping depend on both the request threshold of the cluster head and a unified charging threshold. Therefore, improper settings of these two thresholds may lead to excessive charging of nodes. In this method, the MV often needs to move back and forth between different cluster heads, resulting in a higher proportion of energy consumption due to movement.
These three strategies were all run in the same network. The charging times, energy changes, movement trajectories, and energy consumption of each MV were recorded during one cycle T ( T = 22,170 s , T = 15 × T 0 , T0 = 1478s).
Assume that the network has 100 nodes, divided into seven non-empty node groups with sequence numbers 2, 3, 5, 7, 8, 9, and 14. One node was randomly selected from each group, with node IDs 4, 17, 19, 6, 37, 55, and 79, respectively. The number of charging times, the average remaining energy of each node before and after charging during cycle T , and the remaining energy of each node at the end of the cycle are shown in Figure 14, Figure 15, Figure 16 and Figure 17.
As shown in Figure 14, Figure 15 and Figure 16, all seven nodes under the MTS-HACO algorithm survived within a cycle, with fewer charging instances, and the average remaining energy before charging was less than 16% of their initial energy. The MTS-HACO algorithm performed better overall. In contrast, the periodic charging strategy involved the most charging instances among the three strategies, as it frequently replenished energy to ensure node survival, resulting in the nodes having the most remaining energy before charging. Additionally, under the PE-FWA strategy, nodes 4, 17, 37, and 79 had fewer charging instances than under MTS-HACO. However, these nodes died before the end of the cycle. Although nodes 6, 19, and 55 remained active throughout the cycle, they had more charging instances than under MTS-HACO. This was because, in the PE-FWA strategy, nodes were clustered based on their location, and when the cluster head sent a charging request, the MV charged all nodes within the cluster. As a result, nodes that did not send a charging request also received a charge.
Figure 17 shows the remaining energy of each node after charging. As can be seen from the previous figures, MTS-HACO minimized energy replenishment while ensuring that no nodes died, thereby significantly reducing the waiting time for subsequent nodes.
Figure 18, Figure 19, Figure 20 and Figure 21 present a comparison of the dead nodes, total MV energy consumption, charging benefit, and charging delay under the three charging strategies over one cycle.
As shown in Figure 18, under the PE-FWA strategy, in the early stages of network operation, the MV had sufficient energy and time to charge all the requesting nodes. However, as more nodes’ remaining energy dropped below the threshold, the number of cluster heads sending charging requests increased significantly, leading to a situation where the MV could not service all the cluster heads, resulting in an increasing number of node deaths. In contrast, under the periodic charging strategy and MTS-HACO, no nodes died throughout the entire cycle. As previously mentioned, the periodic charging strategy ensured that each node had enough power to survive until the next charging round by periodically charging all the nodes in the network. Therefore, no dead nodes occurred. Meanwhile, MTS-HACO established an independent energy replenishment cycle for each node, ensuring they were recharged before their energy was depleted. Consequently, there were no dead nodes, and the number of charging instances was reduced, improving the energy utilization of the MV.
Figure 19 shows the energy consumption composition of the MV in each charging time slot. It was evident that under the periodic charging strategy, the total energy consumption of the MV remained relatively stable and was significantly higher than that of the other two methods. This is because the periodic charging strategy resulted in longer travel distances for the MV. The average proportion of energy consumed for charging under each of the three charging strategies was 20.2%, 23.8%, and 30.0%, respectively. In the MTS-HACO algorithm, the MV charged only nodes with low remaining energy, with reasonably allocated and optimized trajectories. Therefore, it achieved the highest charging efficiency. In the PE-FWA strategy, the MV frequently moved back and forth between different cluster heads, leading to higher movement energy consumption compared with the MTS-HACO.
As shown in Figure 20, the charging benefit of the MTS-HACO algorithm was found to be significantly higher than that of the other two algorithms. It is important to note that in the 14th time slot of MTS-HACO, 17 nodes with low remaining energy sent charging requests, leading to substantial energy replenishment. As a result, in this time slot, the charging benefit of MTS-HACO was lower than that of the PE-FWA algorithm.
Figure 21 shows the average charging delay of the nodes; it is clear that MTS-HACO outperformed the other two charging strategies. Although there was a sudden increase in charging delay during the 14th time slot due to the sharp rise in the number of nodes sending charging requests, it still remained lower than with the PE-FWA strategy, with no node deaths.
In the periodic charging strategy, the fixed charging cycle and energy demand led to slight variations in charging delay within the cycle. In contrast, under the PE-FWA strategy, fewer nodes sent charging requests in the early stages of network operation, resulting in relatively short average charging delays, which were close to those of the MTS-HACO. However, as the number of nodes requiring charging increased, the average charging delay increased significantly. It is worth noting that the shorter delays in the 7th and 13th time slots were due to the smaller numbers of nodes needing charging.

7. Conclusions

Due to sensor node lifespans in precision agriculture and the impact of the MV’s travelling path on charging benefit, this paper proposes a mobile charging transition optimization algorithm based on the ant colony and fireworks algorithms. In this method, the remaining lifespan of nodes is used as a criterion for selecting charging nodes. We innovatively propose the Generalized Synchronizing Continuous Cyber Petri-net System, which unifies the energy flow, motion flow, and control flow in WRSNs. The algorithm’s performance was compared across different network topologies, and the simulation results indicate that, regardless of the network topology, the MTS-HACO algorithm demonstrated a significant advantage in terms of charging benefit. Furthermore, under various combinations of MV numbers and node counts, the MTS-HACO algorithm consistently exhibited superior performance.
In conclusion, the MTS-HACO algorithm can effectively improve the charging benefit of MVs while meeting the energy demands of the nodes and significantly reduce charging delays.
However, as the network scale continues to expand, this method may not be fully applicable. In real-world scenarios, factors such as terrain and obstacles impose additional demands on MVs’ scheduling. For instance, MVs may struggle to navigate rough and uneven mountainous terrain. Additionally, avoiding obstacles while reaching target nodes with minimal cost presents another challenge. Therefore, future work will focus on enhancing the algorithm’s adaptability to these practical conditions and scaling issues. Moreover, this approach can be further extended to other types of sensor networks. For example, in smart city applications, sensors are used to monitor traffic flow, air quality, or water resource management, where optimizing energy scheduling is equally crucial. Additionally, the field of environmental monitoring can also benefit from the charging scheduling strategies proposed in this study, especially in remote areas where improving node lifespan through optimized charging paths and energy allocation can significantly enhance data collection efficiency. Future research can explore how this method can be applied to other IoT scenarios with high energy demands and distributed architectures, such as industrial IoT and smart grids.

Author Contributions

Conceptualization, H.Q.; methodology, H.Q. and C.R.; software, W.D.; validation, H.Q. and L.X.; formal analysis, H.Q.; investigation, H.Q.; resources, H.Q. and C.R.; data curation, H.Q.; writing—original draft preparation, W.D.; writing—review and editing, H.Q.; visualization, H.Q.; supervision, W.D. and L.X.; funding acquisition, H.Q. and C.R. 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 under Grant [NO. 62171204] and supported by the Open Project Program of the Key Laboratory for Agricultural Machinery Intelligent Control and Manufacturing of Fujian Education Institutions [NO. AMICM202303].

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to privacy.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Qin, H.; Zhao, B.; Xu, L.; Bai, X. Hybrid Cyber Petri net Modelling, Simulation and Analysis of Master-Slave Charging for Wireless Rechargeable Sensor Networks. Sensors 2021, 21, 551. [Google Scholar] [CrossRef] [PubMed]
  2. Qin, H.; Zhao, B.; Xu, L.; Bai, X. Petri-Net Based Multi-Objective Optimization in Multi-UAV Aided Large-Scale Wireless Power and Information Transfer Networks. Remote Sens. 2021, 13, 2611. [Google Scholar] [CrossRef]
  3. Polat, H.; Hosseinabadi, F.; Hasan, M.; Chakraborty, S.; Geury, T.; El Baghdadi, M.; Wilkins, S.; Hegazy, O. A Review of DC Fast Chargers with BESS for Electric Vehicles: Topology, Battery, Reliability Oriented Control and Cooling Perspectives. Batteries 2023, 9, 121. [Google Scholar] [CrossRef]
  4. Deng, T.; Tang, S.; Chen, Y.; Lin, F. A Hybrid Charging Scheme for Minimizing the Number of Energy-exhausted Nodes in Wireless Rechargeable Sensor Networks. IEEE Sens. J. 2024, 24, 169–182. [Google Scholar] [CrossRef]
  5. Xu, W.; Liang, W.; Jia, X.; Kan, H.; Xu, Y.; Zhang, X. Minimizing the Maximum Charging Delay of Multiple Mobile Chargers Under the Multi-Node Energy Charging Scheme. IEEE Trans. Mob. Comput. 2021, 20, 1846–1861. [Google Scholar] [CrossRef]
  6. Yang, Y.; Liu, X.; Tang, K.; Che, W.; Xue, Q. Multi-Type Charging Scheduling Based on Area Requirement Difference for Wireless Rechargeable Sensor Networks. IEEE Trans. Sustain. Comput. 2024, 9, 182–196. [Google Scholar] [CrossRef]
  7. Hu, M.; Chen, Z.; Peng, K.; Ma, X.; Zhou, P.; Liu, J. Periodic charging for wireless sensor networks with multiple portable chargers. IEEE Access 2018, 7, 2612–2626. [Google Scholar] [CrossRef]
  8. Lyu, Z.; Wei, Z.; Wang, X.; Fan, Y.; Xia, C.; Shi, L. A Periodic Multinode Charging and Data Collection Scheme with Optimal Traveling Path in WRSNs. IEEE Syst. J. 2020, 14, 3518–3529. [Google Scholar] [CrossRef]
  9. Sha, C.; Song, D.; Malekian, R. A Periodic and Distributed Energy Supplement Method Based on Maximum Recharging Benefit in Sensor Networks. IEEE Internet Things J. 2021, 8, 2649–2669. [Google Scholar] [CrossRef]
  10. Li, J.; Sun, G.; Wang, A.; Lei, M.; Liang, S.; Kang, H.; Liu, Y. A many-objective optimization charging scheme for wireless rechargeable sensor networks via mobile charging vehicles. Comput. Netw. 2022, 215, 196–211. [Google Scholar] [CrossRef]
  11. Dash, D. A novel two-phase energy efficient load balancing scheme for efficient data collection for energy harvesting WSNs using mobile sink. Ad Hoc Netw. 2023, 144, 136–147. [Google Scholar] [CrossRef]
  12. Guo, H.; Wu, R.; Qi, B.; He, Y.; Xu, C.; Gao, J.; Sun, Y. Adaptive Payoff Balance Among Mobile Wireless Chargers for Rechargeable Wireless Sensor Networks. IEEE Internet Things J. 2024, 11, 7013–7023. [Google Scholar] [CrossRef]
  13. Jiang, C.; Chen, W.; Wang, Z.; Xiao, W. Deep Reinforcement Learning-based Joint Sequence Scheduling and Trajectory Planning in Wireless Rechargeable Sensor Networks. IEEE Sens. J. 2024, 24, 699–711. [Google Scholar] [CrossRef]
  14. Guo, H.; Wu, R.; Qi, B.; Xu, C. Deep-q-Networks-Based Adaptive Dual-Mode Energy-Efficient Routing in Rechargeable Wireless Sensor Networks. IEEE Sens. J. 2022, 22, 9956–9966. [Google Scholar] [CrossRef]
  15. Shan, T.; Wang, Y.; Zhao, C.; Li, Y.; Zhang, G.; Zhu, Q. Multi-UAV WRSN charging path planning based on improved heed and IA-DRL. Comput. Commun. 2023, 203, 77–88. [Google Scholar] [CrossRef]
  16. Yang, C.Y.; Lin, Y.N.; Shen, V.R.; Shen, F.H.; Wang, C.C. A Novel IoT-Enabled System for Real-Time Face Mask Recognition Based on Petri Nets. IEEE Internet Things J. 2024, 11, 6992–7001. [Google Scholar] [CrossRef]
  17. Zhong, W.; Zhou, J.-T.; Sun, T.; Song, X.; Li, Z. A Verification Framework for Time-triggered Networks Based on Timed Colored Petri Net. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2024, 43, 2112–2125. [Google Scholar] [CrossRef]
  18. Hu, S.; Li, Z.; Wisniewski, R. Optimal Sensor Selection for Diagnosability Enforcement in Labeled Petri Nets. IEEE Trans. Syst. Man Cybern. Syst. 2024, 54, 2965–2977. [Google Scholar] [CrossRef]
  19. Qi, H.; Wang, J.; Yan, C.; Jiang, C. The Probabilistic Liveness Decision Method of Unbounded Petri Nets Based on Machine Learning. IEEE Trans. Syst. Man Cybern. Syst. 2024, 54, 1070–1081. [Google Scholar] [CrossRef]
  20. Yue, H.; Xu, Y.; Xing, K.; Hu, H.; Pang, S. Minimum Initial Marking Estimation in Labeled Petri Nets with Unobservable Transitions Based on Minimal Explanations. IEEE Trans. Syst. Man Cybern. Syst. 2024, 54, 3427–3438. [Google Scholar] [CrossRef]
  21. Dou, H.; Zhou, M.; Wang, S.; Albeshri, A. An Efficient Liveness Analysis Method for Petri Nets via Maximally Good-Step Graphs. IEEE Trans. Syst. Man Cybern. Syst. 2024, 54, 3908–3919. [Google Scholar] [CrossRef]
  22. Lv, J.; Huang, B. A Petri-Net-Based Anytime A* Search for Scheduling Resource Allocation Systems. IEEE Trans. Ind. Inform. 2024, 20, 2865–2872. [Google Scholar] [CrossRef]
  23. Ahn, J.; Kim, H.J. A Novel Mixed Integer Programming Model with Precedence Relation-Based Decision Variables for Non-Cyclic Scheduling of Cluster Tools. IEEE Trans. Autom. Sci. Eng. 2024, 1–16. [Google Scholar] [CrossRef]
  24. Hustiu, S.; Mahulea, C.; Kloetzer, M.; Lesage, J.J. On Multi-Robot Path Planning based on Petri Net Models and LTL Specifications. IEEE Trans. Autom. Control 2024, 1–8. [Google Scholar] [CrossRef]
  25. Dorigo, M.; Gambardella, L.M. Ant colony system: A cooperative learning approach to the traveling salesman problem. IEEE Trans. Evol. Comput. 1997, 1, 53–56. [Google Scholar] [CrossRef]
  26. Tan, Y.; Zhu, Y. Fireworks Algorithm for Optimization. In Proceedings of International Conference on Swarm Intelligence; Springer: Berlin/Heidelberg, Germany, 2010. [Google Scholar]
  27. Dasgupta, R.; Yoon, S. Energy-Efficient Deadline-Aware Data-Gathering Scheme Using Multiple Mobile Data Collectors. Sensors 2017, 17, 742. [Google Scholar] [CrossRef]
Figure 1. Model of wireless rechargeable sensor network.
Figure 1. Model of wireless rechargeable sensor network.
Sensors 24 06316 g001
Figure 2. GSCCPNS model of wireless rechargeable sensor network.
Figure 2. GSCCPNS model of wireless rechargeable sensor network.
Sensors 24 06316 g002
Figure 3. Network topologies with different nodes’ numbers and distribution. (a) Net1, N = 50; (b) Net2, N = 50; (c) Net1, N = 100; (d) Net2, N = 100.
Figure 3. Network topologies with different nodes’ numbers and distribution. (a) Net1, N = 50; (b) Net2, N = 50; (c) Net1, N = 100; (d) Net2, N = 100.
Sensors 24 06316 g003
Figure 4. Charging benefits with Net1 in three recharging methods.
Figure 4. Charging benefits with Net1 in three recharging methods.
Sensors 24 06316 g004
Figure 5. Charging benefits with Net2 in three recharging methods.
Figure 5. Charging benefits with Net2 in three recharging methods.
Sensors 24 06316 g005
Figure 6. Box plot of charging benefits with Net1 in three recharging methods.
Figure 6. Box plot of charging benefits with Net1 in three recharging methods.
Sensors 24 06316 g006
Figure 7. Box plot of charging benefits with Net2 in three recharging methods.
Figure 7. Box plot of charging benefits with Net2 in three recharging methods.
Sensors 24 06316 g007
Figure 8. Number of dead nodes with different numbers of mobile vehicles.
Figure 8. Number of dead nodes with different numbers of mobile vehicles.
Sensors 24 06316 g008
Figure 9. Average travelling distance with different numbers of mobile vehicles.
Figure 9. Average travelling distance with different numbers of mobile vehicles.
Sensors 24 06316 g009
Figure 10. Charging benefits with different numbers of mobile vehicles.
Figure 10. Charging benefits with different numbers of mobile vehicles.
Sensors 24 06316 g010
Figure 11. Proportion of dead nodes with different numbers of sensor nodes.
Figure 11. Proportion of dead nodes with different numbers of sensor nodes.
Sensors 24 06316 g011
Figure 12. Average travelling distance with different numbers of sensor nodes.
Figure 12. Average travelling distance with different numbers of sensor nodes.
Sensors 24 06316 g012
Figure 13. Charging benefits with different numbers of sensor nodes.
Figure 13. Charging benefits with different numbers of sensor nodes.
Sensors 24 06316 g013
Figure 14. Charging times of the three algorithms.
Figure 14. Charging times of the three algorithms.
Sensors 24 06316 g014
Figure 15. Average residual energy before being recharged for the three algorithms.
Figure 15. Average residual energy before being recharged for the three algorithms.
Sensors 24 06316 g015
Figure 16. The residual energy at T for the three algorithms.
Figure 16. The residual energy at T for the three algorithms.
Sensors 24 06316 g016
Figure 17. Average residual energy after being recharged for the three algorithms.
Figure 17. Average residual energy after being recharged for the three algorithms.
Sensors 24 06316 g017
Figure 18. Dead nodes for the three algorithms.
Figure 18. Dead nodes for the three algorithms.
Sensors 24 06316 g018
Figure 19. Energy consumption composition for the three algorithms.
Figure 19. Energy consumption composition for the three algorithms.
Sensors 24 06316 g019
Figure 20. Charging benefits of the three algorithms.
Figure 20. Charging benefits of the three algorithms.
Sensors 24 06316 g020
Figure 21. Average recharging delay with the three algorithms.
Figure 21. Average recharging delay with the three algorithms.
Sensors 24 06316 g021
Table 1. Parameter definitions of network model.
Table 1. Parameter definitions of network model.
SymbolDefinitionUnit
mnumber of mobile vehicles-
nnumber of sensor nodes-
δ moving consumption of a mobile vehicleJ/s
U charging power of a mobile vehicleJ/s
σ charging ratio
P s i energy consumption of the ith sensor nodeJ/s
d i 1 , i j travelling distance from the i − 1th node to ith node of the jth mobile vehiclem
vspeed of a mobile vehiclem/s
τ i , i + 1 j moving time from the i − 1th node to ith node of the jth mobile vehicles
τ m o v j total moving time of the jth mobile vehicles
τ v a c j dwell time of the jth mobile vehicle at base stations
τ c h a r j charging time of the jth mobile vehicles
T 0 duration of a slots
Table 2. Description of components of GSCCPNS.
Table 2. Description of components of GSCCPNS.
SymbolDefinitionCategory
s i energy of the ith sensor nodePlace
c j , i energy of the jth mobile vehicle located
at the ith sensor node
Place
t r i 1 , i j travelling event between two nodes of
the jth mobile vehicle
Transition
c h i j charging event of the jth mobile vehicle for
the ith sensor node
Transition
c o n s i consuming event of the ith sensor nodeTransition
W ( t r i 1 , i j , c j , i ) moving consumption of the jth mobile vehicleWeight
W ( c j , i , c h i j ) charging power of the jth mobile vehicleWeight
W ( c h i j , s i ) receiving power of the ith sensor nodeWeight
W ( s i , c o n s i ) consuming power of the ith sensor nodeWeight
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

Qin, H.; Ding, W.; Xu, L.; Ruan, C. Petri-Net-Based Charging Scheduling Optimization in Rechargeable Sensor Networks. Sensors 2024, 24, 6316. https://doi.org/10.3390/s24196316

AMA Style

Qin H, Ding W, Xu L, Ruan C. Petri-Net-Based Charging Scheduling Optimization in Rechargeable Sensor Networks. Sensors. 2024; 24(19):6316. https://doi.org/10.3390/s24196316

Chicago/Turabian Style

Qin, Huaiyu, Wei Ding, Lei Xu, and Chenzhi Ruan. 2024. "Petri-Net-Based Charging Scheduling Optimization in Rechargeable Sensor Networks" Sensors 24, no. 19: 6316. https://doi.org/10.3390/s24196316

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