1. Introduction
The rapid evolution and widespread application of IoT devices, alongside advancements in wireless technology, have led to the proliferation of numerous computation-intensive applications, such as online gaming, augmented reality, and online video streaming. However, these new applications often have high sensitivity to latency, necessitating significant computational capabilities in terminal devices for efficient operation [
1,
2]. Simultaneously, the volume of data generated by these devices and their associated applications has exhibited explosive growth [
3]. However, due to limited computing capability and battery capacities, these devices may be unable to handle computation tasks independently, potentially reducing the Quality of Service (QoS) of the applications [
4,
5].
MEC is widely regarded as a technology that aids in processing compute-intensive, latency-critical tasks at resource-constrained edge devices [
6,
7]. MEC can provide intensive computing services at the network edge, offering low transmission latency and transmission capability, enabling swift computation result returns and effectively alleviating user task burdens [
8]. Although MEC technology can enhance users’ computing capability by assisting in computation, the severely limited energy supply of users significantly restricts computing performance. WPT based on Radio Frequency (RF) signals can effectively solve this problem. Currently, RF-based WPT can transmit a few milliwatts of power over tens of meters [
9], which makes it suitable for use with low-power IoT devices [
10]. Due to the benefits of WPT and MEC technologies for IoT development, the combination of RF-based WPT and MEC technologies is receiving increasing attention [
11].
The integration of MEC and WPT represents an innovative technology in the era of IoT, delivering robust computing capability and sustainable energy to a multitude of low-power mobile devices [
12,
13]. Therefore, the integration of WPT and MEC can optimize latency, energy consumption, and effectiveness more effectively in real-world environments [
14]. The authors in [
15] considered a MEC system powered wirelessly that comprises an Access Point (AP) and two mobile devices, utilizing WPT technology to charge users, effectively enhancing the endurance of mobile devices. The authors in [
16] considered a multi-user MEC network powered by WPT, where user nodes adopt a binary computation offloading strategy. This strategy aims to maximize the computing rate, i.e., the number of processed bits per second, of all user nodes in the network through joint optimization of the selection of each computation mode and the allocation of system transmission duration. The authors in [
17] considered a wireless-powered Mobile Edge Computing (MEC) system comprising a hybrid access point and multiple cooperative fogs. In this system, users within each cooperative fog shared communication and computation resources to enhance their computational performance. Based on the classic time-division multiple-access protocol, the authors proposed a harvest-and-offload protocol to jointly schedule wireless energy transfer and cooperative computation offloading.
The above studies focus exclusively on fixed energy transmitters and MEC servers. However, due to the limited service coverage radius of these fixed servers, additional infrastructure deployment is necessary to cover larger areas and serve more user devices, resulting in substantial cost escalation [
18].
Due to their high flexibility, ease of deployment, and low cost, UAV equipped with MEC can serve as aerial base stations for providing computing services to mobile users [
19,
20]. The authors of [
21] considered an UAV-based MEC system where UAVs have strong computing capability, providing edge computing services to users with limited computing capability. The authors in [
22] considered an UAV-assisted dynamic environment system, deploying an UAV to provide relay and edge computing services to mobile users. To address the non-convex problem of maximizing system tasks, they proposed a Deep Reinforcement Learning (DRL)-based algorithm. The authors in [
23] considered an UAV-assisted MEC framework where UAVs assist user devices in task computation, aiming to minimize the system’s weighted total energy usage. To tackle the non-convex problem in the proposed system, a three-order alternating iterative algorithm was proposed. The authors in [
24] considered an UAV-assisted relay MEC network system where UAVs serve as MEC servers to assist mobile users in computing and relay sub-tasks to the ground base station for execution. They achieved this by collectively optimizing communication bandwidth, UAV transmission power, computing resources, and UAV positions in three dimensions to minimize task completion duration in the system. The authors in [
25] aimed to minimize the weighted sum of communication consumption, computation consumption, and UAV flight energy within a limited UAV mission duration. This objective is achieved through joint optimization of task allocation ratios, power allocation, and UAV flight paths. The target problem is partitioned into two sub-problems using the Block Coordinate Descent (BCD) method and iteratively solved using the Lagrangian dual method and SCA technique.
The integration of MEC and UAV technologies to provide computing services to mobile users was explored in References [
21,
22,
23,
24,
25]; however, energy harvesting in the MEC system was not investigated. The authors of [
26] considered a novel UAV wireless energy transmission system, utilizing UAV-mounted mobile Energy Transmitters (ET) to transmit sustainable energy to ground Energy Receivers (ER). The optimization of the UAV trajectory aimed to maximize the energy transferred to all user devices within a limited timeframe. The authors of [
27] considered an UAV-based MEC wireless-powered system, aiming to maximize the task computation rate while considering constraints related to energy harvesting and UAV speed. The authors of [
28] explored time slot optimization for an UAV-assisted wireless-powered cooperative MEC system, which includes an UAV access point and two mobile devices. The goal was to minimize total UAV transmission energy while meeting delay and computation task requirements. The authors of [
29] proposed an energy consumption optimization method for UAV-based wireless energy transmission MEC systems. This method optimizes energy harvesting duration, user offloading power, and offloading decisions to minimize overall system energy consumption.
In the above studies, UAVs were equipped with both MEC servers and energy transmitters, capable of edge computing and wireless energy transmission. UAV trajectory optimization was the focus of references [
26,
27], which did not include optimization of the duration for wireless energy transmission. The optimization of wireless energy transmission duration was considered in references [
28,
29], but the impact of UAV deployment positions on optimization results was not accounted for.
Therefore, different from these existing works, an optimization method for UAV-assisted MEC is proposed in this study, which optimizes both UAV deployment positions and wireless energy transmission. The detailed differences between our work and the related works are shown in
Table 1. By jointly optimizing energy harvesting duration, user offloading power, user offloading duration, CPU frequency, and UAV deployment positions, the method aims to maximize the quantity of computation bits, i.e., the number of bits processed within the entire time slot for all users. The proposed method is suitable in many practical applications. For example, in emergency rescue, due to lack of computing base station, amounts of monitoring data from mobile users are needed to be computed by the optimized deployment of UAVs for timely identifying of survivors and assess of disaster areas. In smart agriculture, the distances between agricultural sensors are usually far, leading to inconvenience to replace batteries of the devices. However, by UAV equipped with MEC and WPT function, electric energy can be transmitted to the agricultural sensors with a non-contact mode. This greatly reduces the human and financing cost. Additionally, the combination of UAV with MEC and WPT technology has also been applied in smart cities, military operation, and so on.
The main contributions of this paper can be summarized as follows:
An UAV-assisted MEC model is developed to maximize the quantity of computation bits for all users in the system. The UAV provides wireless power supply and task computation assistance. In the partial offloading mode, the model jointly optimizes energy harvesting duration, offloading duration, user transmission power, CPU frequency, and UAV deployment positions to maximize computation bits for all users.
A two-stage alternating iterative resource allocation method is proposed to decompose the original non-convex problem into two sub-problems. Initially, other variables are optimized with a fixed UAV deployment position, and then the UAV deployment position is optimized based on the variables obtained in the first step. This process iterates alternately until convergence.
Simulation results demonstrate significant performance improvements using the proposed method in different scenarios (e.g., different user distribution areas, UAV heights, fixed UAV positions, etc.). Compared to other benchmark methods, the proposed method significantly improves the system’s computational amount, enabling more computational tasks to be computed with limited energy conditions. The application of Wireless Power Transfer (WPT) technology in IoT can effectively solve the energy supply problem for distributed IoT devices. It significantly reduces the human and financing cost and is helpful to implement a green IoT ecosystem.
3. Problem Formulation
This section explores the resource allocation challenge specifically within partial offloading mode. By jointly optimizing the energy harvesting time
, user CPU clock frequency
, offloading transmission power
, offloading time
, and UAV deployment position
, the goal is to maximize the total computation bits for all users. The objective problem can be formulated as:
where
represents the maximum CPU clock frequency for user
k, and
is the maximum offloading transmission power for user
k. The constraint
represents the energy causality constraint;
ensures that the energy harvesting time and offloading time do not surpass the duration of the time slot;
and
represents constrain on the CPU clock frequency and offloading transmission power for user
k.
Since the variables are coupling, the problem is a non-convex problem. To tackle this issue, we propose a two-stage alternating iterative algorithm. The original issue is broken down into two sub-problems to optimize the CPU clock frequency , energy harvesting time , user offloading transmission power , offloading time , and UAV coordinates . Then, by alternating iterations, the algorithm converges to the optimal solution.
3.1. Fixed UAV Position
In order to deal with the non-convex constraints , Let . Given this fixed UAV position, can be transformed into as described below. Since the problem is a convex optimization problem that can be addressed using the Lagrangian dual method.
Let
represent the dual variables corresponding to the constraints
, respectively. The Lagrangian function can be formulated as:
Since the problem is a convex optimization problem that can be addressed using the Lagrangian dual method.
Let
represent the dual variables corresponding to the constraints
, respectively. The Lagrangian function can be formulated as:
where
.
The Lagrangian function for problem
P1.1 can be expressed as follows:
According to the Lagrangian dyadic function of
, the dyadic problem can be expressed as:
To deal with Problem , solve Problem (14) by the given Lagrange multipliers to obtain the optimal variables , and then minimize the function by searching for the optimal dyadic variables.
Thus, given an arbitrary UAV position, the optimal can be guaranteed to satisfy the Karush–Kuhn–Tucker (KKT) condition.
According to the Lagrangian function, the partial derivatives of
are obtained flowing the KKT condition, respectively:
From Equation (18), since the energy collection time is linear for the objective function, the problem is addressed using the interior point method in the paper.
For a given UAV position
, setting Equation (15) to zero enables us to obtain the optimal CPU clock frequency
for the user:
Let Equation (16) be equal to 0. Since
and
, the case where
thus implies
. Therefore, the user-optimal transmission power
can be expressed as:
where
denotes the maximum value between 0 and
x.
Let Equation (17) be equal to 0, the optimal unloading time
can be obtained by solving Equation (21) using the bisection method.
Then, update the values of
according to Formulas (22) and (23) using the sub-gradient method.
where
l is the number of iterations,
and
denote the iteration steps.
4. Simulation Result
The simulation results are obtained by using MATLAB R2021a software. An UAV-assisted wireless powered cooperative MEC system is simulated, in which the number of users is four, and each user is randomly distributed in the region of
, with the positions
and
, respectively, in order. The specific simulation parameters are configured as shown in
Table 2.
Figure 3 demonstrates the convergence of the proposed algorithm under various transmission power levels and UAV altitudes. As observed from
Figure 3, the algorithm begins to converge after approximately 7 to 8 iterations, indicating good convergence and high efficiency. Furthermore, it is evident that when the UAV’s transmission power is at its maximum and altitude is at its lowest, the maximum number of computational bits can be achieved for all users. Conversely, when the UAV’s transmission power is at its minimum and flight altitude is at its highest, the minimum number of computational bits can be achieved for all users. It is also evident that, for a given UAV transmission power, the total number of computational bits for all users is influenced by the UAV’s altitude; as the altitude decreases, the spatial distance between the UAV and users decreases, thereby improving user service and resulting in a higher total computation bits. When the spatial distance between the UAV and the users is fixed (i.e., the UAV altitude is fixed), higher UAV transmission power enables users to harvest more energy for local computation and task offloading, thereby increasing the total computation bits. This further illustrates that optimizing UAV transmission power and altitude is crucial for enhancing computational capabilities and ensuring efficient task performance in UAV-assisted systems.
Figure 4 illustrates the optimized deployment position of the UAV. The UAV altitude is set to
. From
Figure 4a, it can be seen that the optimized UAV position is closer to user 1, user 2, and user 3. From
Figure 4b, it is evident that the optimized UAV position is closer to user 2, user 3, and user 4. As expected, due to the influence of the channel link, the UAV needs to be closer to the users to better serve them. Therefore, to serve more users and maximize the total computation capacity of the system, the optimized UAV position is closer to the areas with more users.
Figure 4c,d show that when user positions are evenly distributed along the edges of a
area, the optimized UAV position is near the center of the area. This is because, due to the impact of spatial distance between the UAV and the users, positioning the UAV closer to the center minimizes the distance between the UAV and each user.
Figure 5 selects
Figure 4a to compare the computation bits of each user before and after optimizing the UAV position. The fixed position of the UAV is set to
. From
Figure 4a, it is evident that the optimized UAV position is closer to user 1, user 2, and user 3, while it is farthest from user 4.
Figure 5 shows that the computation bits for user 1, user 2, and user 3 are significantly higher than those for user 4. Meanwhile, it can also be seen from
Figure 5 that the number of computed bits for user 2 and user 3 in the fixed UAV position is higher than that for user 1 and user 4, which is because the UAV in the fixed position is closer to user 2 and user 3 and farther away from user 1 and user 4, it can also be seen from
Figure 5 that the total number of computed bits of all users after optimizing the UAV position is higher than that in the fixed UAV, which again illustrates the effectiveness of the method implemented in this study.
Figure 6 compares the total computation bits of users under different UAV transmission powers and energy conversion efficiencies, with fixed and optimized UAV positions. The UAV altitude is set to
H. The UAV transmission power in
Figure 6 is set to from 0.1
W to
W according to [
27]. From the figure, it can be observed that the total computation bits of the users increase with the UAV transmission power. This is because, as the UAV transmission power increases, users can harvest more energy, enabling them to compute more bits. Additionally,
Figure 6 demonstrates that the overall computation bits obtained with the optimized UAV deployment position are greater than those obtained with the fixed UAV deployment position. It can also be seen that, for a given UAV position, the higher the energy conversion efficiency, the more energy the users can harvest, resulting in a greater total computation bits for the users
Figure 7 illustrates the relationship involving the average computation bits per user and the number of users. From the figure, it is evident that the average computation capacity per user declines with an increasing number of users. This is because, under the constraints of delay and total bandwidth, the sub-bandwidth allocated to each user decreases as the number of users increases. Consequently, the computation bits that each user can offload to the UAV also decrease, leading to a reduction in the average computation bits per user. It can also be observed that the rate of decrease in average computation bits slows down as the number of users increases. This is because of the limitations of total bandwidth and system total delay. When the sub-bandwidth per user becomes smaller, the offloading time for each user increases, reducing the energy harvesting time. As a result, the amount of energy harvested by the users decreases, affecting their computation bits. Therefore, the average computation bits per user will eventually approach a threshold as the number of users increases. Additionally,
Figure 7 further validates that the computation results obtained by optimizing the UAV deployment position are superior to those obtained with a fixed UAV position.
Figure 8 illustrates the relationship between the total computation bits of users and the system time slot
T at different UAV altitudes. From the figure, it can be seen that as
T increases, the total computation bits of users also increase. This is because a larger
T provides users with more time for energy harvesting and task offloading, thereby in-creasing the total computation bits. As depicted in the figure, an increase in UAV altitude correlates with an increase in the distance between the UAV and the users. This increased distance weakens the channel between the UAV and the users, adversely affecting energy harvesting and task offloading. Consequently, the computation bits of the users decrease as the UAV altitude increases.
Figure 9 shows the comparisons of the proposed method with other benchmark methods under different UAV transmission powers. In the fixed UAV position offloading method, the UAV position is fixed at
, and other variables are optimized to maximize the total computation bits of the system by using an alternating iterative algorithm. In the fixed energy harvesting duration offloading method, the energy harvesting duration is fixed at
, and other variables are optimized using an alternating iterative algorithm. In the fixed energy harvesting duration and UAV position offloading method, both the UAV position and energy harvesting duration are fixed to maximize the computation bits of the system. From
Figure 9, it can be seen that as the UAV transmission power
increases, the total computation bits obtained by both the proposed method and other benchmark methods increase. This is because when
increases, the energy harvested by users also increases, allowing them to handle more tasks. Furthermore, it is evident from the figure that as
increases, the energy harvested by users also increases, allowing them to handle more tasks. Furthermore, the proposed method can compute more computation bits compared to other benchmark methods.
Figure 10 shows the comparison of the proposed method and other benchmark methods under different
T. From
Figure 10, it can be seen that as
T increases, the computation bits obtained of both the proposed method and the benchmark methods increase. This is because with the increase of
T, in both the proposed method and the fixed UAV position offloading method, users have more time to harvest energy, enabling them to handle more computation tasks. For the fixed energy harvesting duration offloading method and the fixed energy harvesting duration and UAV position offloading method, when
T increases, the users’ offloading time increases accordingly, allowing more computation tasks to be offloaded to the UAV. Therefore, the total computation tasks of the users increase, too. From
Figure 10, it can also be seen that as
T increases, the proposed method can compute more computation bits compared to other benchmark methods.