Unmanned aerial vehicle position optimization and task scheduling method based on multi-unmanned aerial vehicle edge computing network

By optimizing drone location and mission migration in a multi-drone edge computing network, and utilizing Stackelberg game theory and CVX convex optimization tools, the problems of low utilization of drone edge cloud resources and high energy consumption were solved, achieving optimization of latency and energy consumption and improving the quality of user service.

CN116669106BActive Publication Date: 2026-11-24HEFEI UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310442818.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2026-11-24
Estimated Expiration
2043-04-20

AI Technical Summary

Technical Problem

In drone edge computing networks, existing technologies struggle to effectively utilize limited edge cloud resources, resulting in poor user service quality and high drone energy consumption, making it impossible to simultaneously optimize latency and energy consumption.

Method used

By establishing a multi-UAV edge computing network, utilizing UAV location optimization and task migration methods, a Stackelberg game model is constructed. Combined with CVX convex optimization tools, UAV location and task allocation are optimized to reduce latency and energy consumption.

Benefits of technology

It improves the utilization rate of edge cloud resources, reduces network task completion latency and energy consumption, extends the operational life of drones, and provides users with better service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116669106B_ABST
    Figure CN116669106B_ABST
Patent Text Reader

Abstract

This invention discloses a method for drone location optimization and task scheduling based on a multi-drone edge computing network, comprising: 1. Calculating the latency and energy consumption of all transmission tasks in the multi-drone edge computing network during the uploading, migration, and processing processes; 2. Constructing drone location update formulas and migration action update formulas with the goal of reducing overall network latency and energy consumption; 3. Each drone sequentially searches for and updates its optimal location; 5. Each drone sequentially searches for and updates its optimal task migration action; 6. Comparing all drone locations and transmission task migration actions before and after the update, continuing to update if different, and accepting the same result as the optimal one. This invention can optimize the multi-drone location and task scheduling problem, thereby reducing the task completion latency and energy consumption of the entire edge cloud network, improving network service quality, and increasing drone service duration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of wireless communication, specifically a method for UAV location optimization and task scheduling based on a multi-UAV edge computing network. Background Technology

[0002] The widespread adoption of mobile devices such as smartphones and tablets has significantly impacted mobile and wireless networks, posing challenges to global mobile networks. Mobile edge computing is one of the most promising technologies for addressing this challenge in next-generation wireless communication systems. Mobile edge computing technology improves the service capabilities of the entire cloud computing system by deploying edge clouds to compensate for the disadvantages of large spatial distances to remote clouds. However, in areas with inadequate infrastructure, unforeseen circumstances, or special needs, there is no condition or capability for large-scale fixed deployment of edge clouds, and the limited storage and computing resources of edge clouds restrict their service capabilities. For specific scenarios, spatially deployed drones acting as edge cloud nodes can effectively meet user needs. However, there is a conflict between limited edge cloud node resources and the large number of tasks on mobile devices. Existing methods often involve users offloading tasks to remote clouds or other edge clouds. Offloading to remote clouds does not significantly improve the system's service quality, and the limited communication capabilities of users offloading to other edge clouds cannot guarantee that multiple edge clouds can always be connected. Furthermore, the transmission rates of tasks from users and drones to the same drone affect each other, and the strength of interference is related to the distance between the interference source and the drone. In view of this, this invention proposes a mobile edge computing technology based on multi-UAV position transformation and task migration. The specific content of the UAV position transformation and task migration method is as follows: For a multi-user, multi-UAV edge cloud computing system, the edge cloud position transformation, task transfer, and computing resource allocation decisions are made with the goal of minimizing the latency and energy of user task uploading, UAV migration, and UAV task processing. We establish the UAV position transformation and task migration as a Stackelberg game, and then use the CVX convex optimization tool to solve the resource allocation for a single UAV, ultimately obtaining the UAV position, task transfer, and resource allocation scheme with minimum latency and energy.

[0003] Zhao J, Li Q, Gong Y, et al. Computation Offloading and Resource Allocation For Cloud Assisted Mobile Edge Computing in Vehicular Networks[J].IEEE Transactions on Vehicular Technology,2019,68(8):7944-7956. Considering the collaboration between mobile edge cloud and remote cloud, a collaborative computing offloading and resource allocation optimization scheme is proposed. The optimization problem is decoupled into two sub-problems: computing offloading decision and resource allocation. The Lagrange multiplier method is used for resource allocation, and the game theory method is used for offloading decision to minimize task processing latency. However, the edge cloud still relies on the remote cloud during busy periods, which inevitably reduces the user's service experience. Furthermore, the optimization of energy consumption is not considered, which may cause the edge cloud to fall into a long-term high-load operation state and consume a lot of unnecessary power.

[0004] Alfakih T, Hassan MM, Gumaei A, et al. Task Offloading and Resource Allocation for Mobile Edge Computing by Deep Reinforcement Learning Based on SARSA[J].IEEE Access, 2020, 8: 54074-54084. This paper proposes a state-action-reward-state-action method based on offloading decision to utilize adjacent edge clouds to serve offloadable tasks when the nearest edge cloud for a mobile intelligent device cannot serve its task. Reinforcement learning is used to address resource management of edge servers and offloading decisions for mobile intelligent devices in multi-edge networks, reducing system costs in terms of energy consumption and computational latency. However, the communication distance of users is limited, and it cannot be guaranteed that users can communicate with multiple edge clouds. User task offloading cannot be reliably guaranteed. To ensure that users can communicate with multiple edge clouds, dense deployment of edge cloud servers is required, which may lead to excessive computational resources. Furthermore, reinforcement learning algorithms require significant time and experience to learn.

[0005] Yan KT, Dang TN, Kim K, et al. Collaboration in the Sky: A Distributed Framework for Task Offloading and Resource Allocation in Multi-Access Edge Computing[J]. 2021. Considering the energy consumption of UAVs and the scarcity of their communication resources (i.e., bandwidth), under the constraint of UAV energy, the problem is decomposed into three sub-problems: user task offloading decision, communication resource allocation, and UAV-assisted mobile edge cloud decision, with the total delay experienced by mobile users in the system as the objective. Then, the decomposed problem is solved alternately by Lagrange relaxation method and multiplier alternating direction method. However, when there are many users requesting services, the limited resources of a single UAV are difficult to meet the service needs of multiple users. Summary of the Invention

[0006] This invention addresses the shortcomings of existing technologies by proposing a method for drone location optimization and task scheduling based on a multi-drone edge computing network. The aim is to effectively improve the utilization rate of computing resources on drone edge servers by leveraging the cooperation of drones, thereby reducing task completion latency and energy consumption across the entire network, ultimately extending the operational lifespan of drones and providing users with better service quality.

[0007] To achieve the above-mentioned objectives, the present invention adopts the following technical solution:

[0008] This invention provides a method for drone location optimization and task scheduling based on a multi-drone edge computing network, wherein the multi-drone edge computing network consists of N drones and their corresponding servers, and M users;

[0009] In the multi-UAV edge computing network, the nth UAV receives M signals within a communication area. n The task unloading request for each user, and M n Each user can only communicate with the nth drone; 1≤n≤N,1≤M n ≤M;

[0010] Let N drones fly at the same altitude H. Divide the two-dimensional plane in which the N drones fly into a set of S discrete points.

[0011] Let the position of the nth UAV be denoted as L. n =(x n ,y n ,H), x n ,y nRepresents the two-dimensional coordinates of the position of the nth drone. Let F be the computational resources of the nth UAV. n ;

[0012] Within the communication area of ​​the nth UAV, the mth... n A user uploads their user information to the nth drone, including: the mth drone. n Transmission tasks for individual users m n Location of individual users and upload power in, and They represent the m-th n The amount of data uploaded by each user and the number of CPUs required for computation. Indicates the m-th n The three-dimensional coordinates of each user's location; 1 n ≤m n ≤M n ;

[0013] The nth drone to the mth n Transmission tasks uploaded by individual users The transfer action is denoted as All M of the nth drone n The set of migration actions for a user task is denoted as Its characteristic lies in that the UAV position optimization and task scheduling method is performed according to the following steps:

[0014] Step 1: Calculate the latency and energy consumption of all transmission tasks in the multi-UAV edge computing network during the uploading, migration, and processing processes;

[0015] Step 2: Based on the latency and energy consumption, with the goal of reducing the latency and energy consumption of the entire network, construct the UAV's position update formula and migration action update formula;

[0016] Step 3: Randomly determine the initial position of each UAV and the migration action of the transmission task, and use them as the position of each UAV in the v-th iteration and the migration action in the v-th iteration, respectively; and initialize v = 1;

[0017] Step 4: In the v-th iteration, with the goal of minimizing the latency and energy consumption of uploading and migrating transmission tasks for all users within the communication area of ​​each UAV, the optimal position of each UAV in the v-th iteration is obtained by cyclically changing the position of the UAVs in sequence until the position of all UAVs no longer changes.

[0018] Step 5: In the v-th iteration, with the goal of minimizing the latency and energy consumption of the transmission task migration and processing of all users in the communication area of ​​each UAV, the optimal migration action of each UAV is obtained by cyclically changing the transmission task migration action in sequence until the transmission task migration action of all UAVs no longer changes.

[0019] Step 6: If the optimal position of each UAV in the v-th iteration is the same as the optimal position of each UAV in the (v-1)-th iteration, and the optimal migration action of each UAV in the v-th iteration is the same as the optimal migration action of each UAV in the (v-1)-th iteration, then the iteration ends, and the optimal position and optimal migration action of each UAV in the v-th iteration are output as the optimal scheduling scheme; otherwise, after assigning v+1 to v, return to step 4 to execute sequentially.

[0020] The UAV position optimization and mission migration method described in this invention is also characterized in that step 1 includes:

[0021] Step 1.1: Calculate the m-th digit using equations (1) and (2) respectively. n Communication link between a user and the nth drone The communication link h between the nth drone and the n′th drone n,n′ :

[0022]

[0023]

[0024] In equations (1) and (2), β represents the channel power gain at the reference distance; n′≠n; 1≤n′≤N;

[0025] Step 1.2: Calculate the m-th digit using equations (3) and (4) respectively. n The rate at which a user uploads a transmission task to the nth drone The migration rate r of the nth drone transmitting the task to the n′th drone n,n′ :

[0026]

[0027]

[0028] In equations (3) and (4), B represents the channel bandwidth, σ 2 Indicates noise power;

[0029] Step 1.3: Calculate the m-th term using equations (5) and (6) respectively. n The latency of a user uploading a transmission task to the nth drone The delay of the nth drone transmitting the migration task to the n′th drone

[0030]

[0031]

[0032] Step 1.4: Calculate the m-th term using equations (7) and (8) respectively. n Energy consumption of a user uploading a transmission task to the nth drone Energy consumption for transferring the task from the nth drone to the n′th drone

[0033]

[0034]

[0035] In equation (8), p n This represents the task transfer power of the nth UAV;

[0036] Step 1.5: Construct the objective function V of the computational resource allocation model for the n′th UAV using equation (9). n′ (f n′ The constraints of the computational resource allocation model for the n′ UAV are constructed using equations (10) and (11). Then, the computational resource allocation model for the n′ UAV is solved using the CVX convex optimization tool to obtain the set of computational resource allocation schemes for the n′ UAV.

[0037]

[0038]

[0039]

[0040] In equation (9), It is a symbolic function and is obtained from equation (12). This represents the transmission task from the nth drone to the nth drone. The allocated computing resources, where α represents the weight parameter;

[0041]

[0042] Step 1.6: Calculate the m-th term using equations (13) and (14). n Transmission tasks for individual users The processing latency on the nth drone and the processing latency on the n′th drone respectively

[0043]

[0044]

[0045] Step 1.7: Calculate the m-th term using equations (15) and (16) respectively. n Transmission tasks for individual users Energy consumption processed on the nth drone The energy consumption processed by the n′-th drone

[0046]

[0047]

[0048] Step 1.8: Calculate the m-th digit using equation (17). n Transmission tasks for individual users Latency and energy consumption during uploading, migration, and processing.

[0049]

[0050] Step 1.9: Calculate the latency and energy consumption U of all transmission tasks during the uploading, migration, and processing processes using equation (18):

[0051]

[0052] Step 2 includes:

[0053] Step 2.1: Use equation (19) to construct the latency and energy consumption of uploading and migrating transmission tasks for all users within the communication area of ​​the nth UAV.

[0054]

[0055] In equation (19), A = {A1, A2, ..., A} N} represents all M of all drones n The set of migration actions for each user task, L = {L1, L2, ..., L...} N} represents the set of locations of all drones;

[0056] Step 2.2: Construct the position update formula for the nth UAV using equation (20):

[0057]

[0058] In equation (20), L represents the updated position of the nth drone; -nLet $\mathbf{n}$ represent the set of locations of all drones except the $n$-th drone, and this set is called the reference set of locations of other drones besides the $n$-th drone.

[0059] Step 2.3: Use equation (22) to construct the latency and energy consumption of transmission task migration and processing for all users within the communication area of ​​the nth UAV.

[0060]

[0061] Step 2.4: Construct the migration action update formula for the transmission task of the nth UAV using equation (23):

[0062]

[0063] In equation (23), A represents the migration action of the updated transmission task for the nth drone. -n This represents the set of mission migration actions for all drones except the nth drone, and is called the reference set of mission migration actions for the nth drone.

[0064] Step 4 includes:

[0065] Step 4.1: Define and initialize the position iteration round k = 0, and take the position of each UAV in the v-th iteration as the position of each UAV in the k-th iteration in the v-th iteration;

[0066] Step 4.2: Initialize n = 1;

[0067] Step 4.3: Calculate the position of the nth drone in the (k+1)th round of the vth iteration using equation (20) and broadcast it to other drones, so that other drones add the position of the nth drone in the (k+1)th round of the vth iteration to their own reference set of other drone positions;

[0068] Step 4.4: After assigning n+1 to n, return to step 4.3, and continue until n>N;

[0069] Step 4.5: Initialize n = 1;

[0070] Step 4.6: If the position of the nth drone in round k+1 of the vth iteration is the same as the position of the nth drone in round k of the vth iteration, then the optimal position of the nth drone in the vth iteration is obtained and output. Otherwise, assign k+1 to k and return to step 4.2 to execute sequentially.

[0071] Step 5 includes:

[0072] Step 5.1: Define and initialize the task migration action iteration round l = 0, and take each UAV task migration action in the v-th iteration as the UAV task migration action in the l-th round of the v-th iteration;

[0073] Step 5.2: Initialize n = 1;

[0074] Step 5.3: Calculate the nth UAV mission migration action in the (l+1)th round of the vth iteration using equation (20) and broadcast it to other UAVs, so that other UAVs add the nth UAV mission migration action in the (l+1)th round of the vth iteration to their own reference set of other UAV mission migration actions.

[0075] Step 5.4: After assigning n+1 to n, return to step 4.3, and continue until n>N;

[0076] Step 5.5: Initialize n = 1;

[0077] Step 5.6: If the migration action of the nth drone in round l+1 of the vth iteration is the same as the migration action of the nth drone in round l of the vth iteration, then the optimal migration action of the nth drone in the vth iteration is obtained and output. Otherwise, assign l+1 to l and return to step 5.2 to execute sequentially.

[0078] The present invention provides an electronic device, including a memory and a processor, wherein the memory is used to store a program that supports the processor in executing any of the UAV position optimization and task scheduling methods, and the processor is configured to execute the program stored in the memory.

[0079] The present invention discloses a computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, performs the steps of any of the UAV position optimization and task scheduling methods.

[0080] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0081] 1. Compared to edge cloud computing systems that only consider latency or energy optimization, this invention adopts a weighted sum of latency and energy as the optimization objective. In UAV edge computing systems, both user latency experience and UAV energy consumption are crucial. As a platform for offloading user tasks in edge cloud computing, the UAV's energy is limited. To provide users with uninterrupted service for extended periods and protect the UAV's lifespan, energy consumption optimization is essential. Therefore, optimizing the weighted sum of latency and energy consumption can effectively guarantee user service latency experience while saving energy and increasing the UAV's loiter time.

[0082] 2. Compared with traditional edge cloud collaboration systems, this invention avoids the shortcomings of insufficient computing power of a single edge cloud and excessive latency of a remote cloud in edge cloud-remote cloud collaboration systems. It also avoids the uncertainty of communication between the main user and other edge clouds in traditional multi-edge cloud collaboration systems. Instead, it establishes a network for migrating tasks between edge clouds, so that all users' tasks can be processed by all edge clouds, improving the utilization rate of edge cloud resources and ensuring the quality of service for users.

[0083] 3. This invention proposes a task migration and resource allocation scheme for a multi-edge cloud collaborative system. To further reduce user latency and energy consumption, it proposes a UAV position change method based on Stackelberg game theory. This method achieves an equilibrium state that minimizes the latency and energy consumption of the entire system through a game of spatial movement of UAVs and migration schemes between UAVs. The game theory approach allows each UAV to achieve system latency and energy consumption optimization even without complete knowledge of other UAVs, greatly simplifying the system's complexity and improving its scalability. Attached Figure Description

[0084] Figure 1 This is a schematic diagram of the UAV edge computing network of the present invention;

[0085] Figure 2 This is a flowchart of the method of the present invention. Detailed Implementation

[0086] In this implementation case, a method for UAV location optimization and task scheduling based on a multi-UAV edge computing network is presented, such as... Figure 1As shown, in a UAV edge computing network environment, there are 4 UAVs and 8 users. The 4 UAVs are UAV A, UAV B, UAV C, and UAV D. UAV A is responsible for communicating with three users, denoted as A1, A2, and A3 respectively; UAV B is responsible for communicating with one user, denoted as B1; UAV C is responsible for communicating with three users, denoted as C1, C2, and C3 respectively; and UAV D is responsible for communicating with one user, denoted as D1. The UAVs and users are in a 2km × 2km × 300m area, and the two-dimensional plane of this area is divided into 2601 discrete points with a 40m interval. Assume the locations of all users are A1: (1840, 1880, 0), A2: (1680, 1960, 0), A3: (1960, 1760, 0), B1: (360, 1720, 0), C1: (80, 200, 0), C2: (40, 40, 0), C3: (240, 40, 0), D1: (1920, 80, 0), unit: m; assume the data volume and required CPU cycles for all user upload tasks are A1: (2.0, 1.0), A2: (1.0, ... A1: (4.0, 0.4), B2: (3.0, 0.9), C3: (4.0, 0.6), C4: (2.0, 0.6), C5: (3.0, 0.6), C6: (4.0, 1.2), D1: (1.0, 0.3), Unit: (MB, Gcycles), All user-uploaded data power is assumed to be 100mW; the computing resource limit for all drones is A: 1, B: 3, C: 1, D: 3, Unit: Gcycles / s; the power for all drone transmission tasks is 300mW; Figure 2 As shown, the four drones update their positions in a random order based on the initial positions and mission migration decisions of all drones, seeking to minimize the weighted sum of transmission latency and energy consumption. After all drone positions have been updated, they then update their mission migration decisions in a random order, seeking to minimize the weighted sum of mission migration and processing latency and energy consumption. After all drones have updated their positions and mission migration decisions once, they are compared with the previously updated positions and mission migration decisions. If they are the same, the iteration ends; otherwise, the iteration continues. Specifically, the method includes:

[0087] Step 1: Calculate the latency and energy consumption of all transmission tasks in the multi-UAV edge computing network during the upload, migration, and processing processes;

[0088] In this embodiment, the initial positions of all drones are assumed to be: A: (1160, 1120, 300), B: (520, 1280, 300), C: (720, 840, 300), D: (1120, 880, 300), in meters; the initial migration strategies of all drones are: A: (C, D, B), B: (C), C: (B, D, C), D: (C); the following steps demonstrate how the network calculates the latency and energy consumption during the upload, migration, and processing of each task:

[0089] Step 1.1: Calculate the m-th digit using equations (1) and (2) respectively. n Communication link between a user and the nth drone The communication link h between the nth drone and the n′th drone n,n′ :

[0090]

[0091]

[0092] In equations (1) and (2), β represents the channel power gain at the reference distance; n′≠n; 1≤n′≤N;

[0093] In this process, β, as a fixed reference distance of 1 meter, is set to -80dB. All UAVs calculate the value of the communication link between themselves and the user they are connected to according to formulas (1) and (2). Taking UAV A as an example, the following data can be calculated: the communication link from user A1 to UAV A is -7.08 × 10 -5 dB / m 2 The communication link between user A2 and drone A is: -7.50×10 -5 dB / m 2 The communication link between user A3 and drone A is: -7.02×10 - 5 dB / m 2 The communication link from UAV A to UAV B is: -1.84 × 10 -4 dB / m 2 The communication link between UAV A and UAV C is: -2.94 × 10 -4 dB / m 2 The communication link from UAV A to UAV D is: -1.35 × 10⁻⁶ -3 dB / m 2 ;

[0094] Step 1.2: Calculate the m-th digit using equations (3) and (4) respectively. n The rate at which a user uploads a transmission task to the nth drone The migration rate r of the nth drone transmitting the task to the n′th drone n,n′ :

[0095]

[0096]

[0097] In equations (3) and (4), B represents the channel bandwidth, σ 2 Indicates noise power;

[0098] In this process, B, as a fixed available signal bandwidth, is set to 40MHz, and σ 2 As a fixed noise power, it was set to 10. -16 W, all drones calculate the data transmission rate between the user and the drone they are connected to according to formulas (3) and (4). Taking drone A as an example, using the communication link calculated in step 1.1, the following data can be calculated: the data upload rate from user A1 to drone A is 7.21 × 10 5 The data upload rate from user A2 to drone A is 7.64 × 10^6 bits / s. 5 The data upload rate from user A3 to drone A is 7.17 × 10^6 bits / s. 5 The data transfer rate from drone A to drone B is 1.58 × 10^6 bits / s. 7 The data transfer rate from drone A to drone C is 1.61 × 10^6 bits / s. 7 The data transfer rate from UAV A to UAV D is 6.38 × 10^6 bits / s. 7 bit / s;

[0099] Step 1.3: Calculate the m-th term using equations (5) and (6) respectively. n The latency of a user uploading a transmission task to the nth drone The delay of the nth drone transmitting the migration task to the n′th drone

[0100]

[0101]

[0102] In this process, all drones calculate the data transmission delay between the user and the drone they are connected to according to formulas (5) and (6). Taking drone A as an example, using the data transmission rate calculated in step 1.2, the data volume of the user in step 1, and the migration decision of the drone in step 1, the following data can be calculated: the data upload delay from user A1 to drone A is 2.77s, the data upload delay from user A2 to drone A is 1.31s, the data upload delay from user A3 to drone A is 4.18s, the data transfer delay from drone A to drone B is 0.19s, the data transfer delay from drone A to drone C is 0.12s, and the data transfer delay from drone A to drone D is 0.02s.

[0103] Step 1.4: Calculate the m-th term using equations (7) and (8) respectively. n Energy consumption of a user uploading a transmission task to the nth drone Energy consumption for transferring the task from the nth drone to the n′th drone

[0104]

[0105]

[0106] In equation (8), p n This represents the task transfer power of the nth UAV;

[0107] In this process, It has been set to 100mW, p n The power consumption has been set to 300mW. All drones calculate the data transmission energy consumption between the user and the drone they are connected to according to formulas (7) and (8). Taking drone A as an example, using the data transmission delay calculated in step 2.3, the following data can be calculated: data upload energy consumption from user A1 to drone A: 0.277J; data upload energy consumption from user A2 to drone A: 0.131J; data upload energy consumption from user A3 to drone A: 0.418J; data transfer energy consumption from drone A to drone B: 0.057J; data transfer energy consumption from drone A to drone C: 0.036J; data transfer energy consumption from drone A to drone D: 0.005J.

[0108] Step 1.5: Construct the objective function V of the computational resource allocation model for the n′th UAV using equation (9). n′ (f n′The constraints of the computational resource allocation model for the n′ UAV are constructed using equations (10) and (11). Then, the computational resource allocation model for the n′ UAV is solved using the CVX convex optimization tool to obtain the set of computational resource allocation schemes for the n′ UAV.

[0109]

[0110]

[0111]

[0112] In equation (9), It is a symbolic function and is obtained from equation (12). This represents the transmission task from the nth drone to the nth drone. The allocated computing resources, where α represents the weight parameter;

[0113]

[0114] In this process, all UAVs allocate computing resources to the tasks they need to process according to equation (9), where the value of α is set to 0.5. Equations (10) and (12) indicate that when a task is not transmitted to UAV n′ for processing, the UAV will not allocate computing resources to that task; when a task is transmitted to UAV n′ for processing, the computing resources allocated by the UAV to that task must be greater than zero. Equation (11) indicates that the total computing resources allocated by UAV n′ must not exceed its upper limit. Taking the user task of UAV A as an example, UAV B allocates 0.79 Gcycles / s of computing resources to user task A3 of UAV A, UAV C allocates 0.29 Gcycles / s of computing resources to user task A1 of UAV A, and UAV D allocates 0.79 Gcycles / s of computing resources to user task A2 of UAV A.

[0115] Step 1.6: Calculate the m-th term using equations (13) and (14). n Transmission tasks for individual users The processing latency on the nth drone and the processing latency on the n′th drone respectively

[0116]

[0117]

[0118] In this process, all UAVs calculate the processing latency of all tasks according to equations (13) and (14). Taking the user tasks of UAV A as an example, the processing latency of user A1 task is 3.45s, the processing latency of user A2 task is 0.51s, and the processing latency of user A3 task is 1.14s.

[0119] Step 1.7: Calculate the m-th term using equations (15) and (16) respectively. n Transmission tasks for individual users Energy consumption processed on the nth drone The energy consumption processed by the n′-th drone

[0120]

[0121]

[0122] In this process, all UAVs calculate the processing latency of all tasks according to equations (13) and (14). Taking the user tasks of UAV A as an example, the processing latency of user A1 task is 0.08J, the processing latency of user A2 task is 0.22J, and the processing latency of user A3 task is 0.56J.

[0123] Step 1.8: Calculate the m-th digit using equation (17). n Transmission tasks for individual users Latency and energy consumption during uploading, migration, and processing.

[0124]

[0125] In this process, all UAVs calculate the weighted sum of latency and energy consumption for the completion of each task (including uploading, migration, and processing) within their communication area according to equations (13) and (14). Taking the user tasks of UAV A as an example, the weighted sum of latency and energy consumption for the completion of user A1 task is 3.37, the weighted sum of latency and energy consumption for the completion of user A2 task is 1.10, and the weighted sum of latency and energy consumption for the completion of user A3 task is 3.27.

[0126] Step 1.9: Calculate the latency and energy consumption U of all transmission tasks during the uploading, migration, and processing processes using equation (18):

[0127]

[0128] In this process, the weighted sum of latency energy consumption for all task completion (including uploading, migration, and processing) is calculated to be 18.67 according to equations (13) and (14).

[0129] Step 2: Based on latency and energy consumption, with the goal of reducing the latency and energy consumption of the entire network, construct the UAV's position update formula and migration action update formula;

[0130] In this process, the optimization problem will be broken down into two sub-problems. First, UAV location optimization will be performed with the goal of reducing the latency and energy consumption of uploading and migrating transmission tasks for all users. Second, UAV mission migration decision optimization will be performed with the goal of reducing the latency and energy consumption of migrating and processing transmission tasks for all users.

[0131] Step 2.1: Use equation (19) to construct the latency and energy consumption of uploading and migrating transmission tasks for all users within the communication area of ​​the nth UAV.

[0132]

[0133] In equation (19), A = {A1, A2, ..., A} N} represents all M of all drones n The set of migration actions for each user task, L = {L1, L2, ..., L...} N} represents the set of locations of all drones;

[0134] In this process, all UAVs calculate the weighted sum of the upload and migration delay energy consumption of all tasks within their communication area according to equation (19). Taking UAV A as an example, its value is 4.76.

[0135] Step 2.2: Construct the position update formula for the nth UAV using equation (20):

[0136]

[0137] In equation (20), L represents the updated position of the nth drone; -n Let $\mathbf{n}$ represent the set of locations of all drones except the $n$-th drone, and this set is called the reference set of locations of other drones besides the $n$-th drone.

[0138] In this process, all UAVs select the optimal position from 2601 discrete positions according to equation (20). Taking UAV A as an example, its optimal position is (1240, 1200, 300).

[0139] Step 2.3: Use equation (22) to construct the latency and energy consumption of transmission task migration and processing for all users within the communication area of ​​the nth UAV.

[0140]

[0141] In this process, the positions of all UAVs are the positions updated in step 2.2, and all UAVs calculate the weighted sum of migration, processing delay, and energy consumption of all tasks within their communication area according to equation (19). At this time, taking UAV A as an example, its value is 3.83.

[0142] Step 2.4: Construct the migration action update formula for the transmission task of the nth UAV using equation (23):

[0143]

[0144] In equation (23), A -n This represents the set of locations of all drones except the nth drone. This represents the migration action of the updated transmission task for the nth drone.

[0145] In this process, all UAVs select the optimal mission migration action from their mission migration action set according to equation (20). Taking UAV A as an example, its optimal position is A(D,D,A).

[0146] Step 3: Randomly determine the initial position of each UAV and the migration action of the transmission task, and use them as the position of each UAV in the v-th iteration and the migration action in the v-th iteration, respectively; and initialize v = 1;

[0147] In this embodiment, it is assumed that the initial positions of all UAVs are: A: (1160, 1120, 300), B: (520, 1280, 300), C: (720, 840, 300), D: (1120, 880, 300), in meters; the initial migration strategy of all UAVs is: A: (C, D, B), B: (C), C: (B, D, C), D: (C), and the initial iteration rounds are v = 1.

[0148] Step 4: In the v-th iteration, with the goal of minimizing the latency and energy consumption of uploading and migrating transmission tasks for all users within the communication area of ​​each UAV, the optimal position of each UAV in the v-th iteration is obtained by cyclically changing the position of the UAVs in sequence until the position of all UAVs no longer changes.

[0149] In this embodiment, all drones update their positions in a sequential cycle until the positions of all drones no longer change.

[0150] Step 4.2: Initialize n = 1;

[0151] Step 4.3: Calculate the position of the nth drone in the (k+1)th round of the vth iteration using equation (20) and broadcast it to other drones, so that other drones add the position of the nth drone in the (k+1)th round of the vth iteration to their own reference set of other drone positions;

[0152] Step 4.4: After assigning n+1 to n, return to step 4.3, and continue until n>N;

[0153] Step 4.5: Initialize n = 1;

[0154] Step 4.6: If the position of the nth drone in round k+1 of the vth iteration is the same as the position of the nth drone in round k of the vth iteration, then the optimal position of the nth drone in the vth iteration is obtained and output. Otherwise, assign k+1 to k and return to step 4.2 to execute sequentially.

[0155] In this process, when the position of the nth drone in round k+1 of all drones in the vth iteration is the same as the position of the nth drone in round k of the vth iteration, then all drones obtain the optimal position as one of the input conditions for the vth iteration in step 5, and at the same time as one of the conditions for determining whether the vth iteration has ended in step 6.

[0156] Step 5: In the v-th iteration, with the goal of minimizing the latency and energy consumption of the transmission task migration and processing of all users in the communication area of ​​each UAV, the optimal migration action of each UAV is obtained by cyclically changing the transmission task migration action in sequence until the transmission task migration action of all UAVs no longer changes.

[0157] In this embodiment, all drones update their respective mission migration actions in sequence until all drone mission migration actions no longer change.

[0158] Step 5.1: The main iteration round is still v=1, and the positions of all drones are L. (v) Task migration to A (v-1) Next, for the migration and update iteration process of all UAV missions, L in the formula (20) repeatedly used in step 5.3 is L. (v) ;

[0159] Step 5.2, Task migration iteration round l=0, all UAV tasks are migrated to...

[0160] Step 5.3, Iteration round l=1, the drone sorted as 1 updates its mission migration according to formula (23), and the updated mission migration is denoted as And broadcast to all drones, among which The drone ranked 2 updates its mission migration according to formula (23), and the updated mission migration is denoted as And broadcast to all drones, among which The drone ranked 3 updates its mission migration according to formula (23), and the updated mission migration is denoted as... And broadcast to all drones, among which

[0161] Step 5.4: After all drones have executed step 5.3 above to update their positions in sequence, the N drone missions are migrated to... If A <l>< / l> =A <l-1>< / l-1> A (v) =A <l>< / l> The task migration iteration ends; if A <l>< / l> ≠A <l-1>< / l-1> l = l + 1, and the iteration continues, that is, repeating steps 5.3 and 5.4.

[0162] In this process, if the nth drone mission migration action in round k+1 of all drones in the vth iteration is the same as the nth drone mission migration action in round k of the vth iteration, then all drones obtain the optimal mission migration action and output it as one of the conditions for determining whether the vth iteration has ended in step 6.

[0163] Step 6: If the optimal position of each UAV in the v-th iteration is the same as the optimal position of each UAV in the (v-1)-th iteration, and the optimal migration action of each UAV in the v-th iteration is the same as the optimal migration action of each UAV in the (v-1)-th iteration, then the iteration ends, and the optimal position and optimal migration action of each UAV in the v-th iteration are output as the optimal scheduling scheme; otherwise, after assigning v+1 to v, return to step 4 to execute sequentially.

[0164] In this embodiment, at the end of the final iteration, the positions of each UAV are: A(2000,1240,300), B(240,2000,300), C(160,600,300), D(2000,0,300), and the mission migration actions of each UAV are: A(D,D,A), B(B), C(B,B,C), D(D).

[0165] In this embodiment, an electronic device includes a memory and a processor. The memory stores a program that supports the processor in executing the above-described method, and the processor is configured to execute the program stored in the memory.

[0166] In this embodiment, a computer-readable storage medium stores a computer program, which is executed by a processor to perform the steps of the above method.

Claims

1. A method for UAV location optimization and task scheduling based on a multi-UAV edge computing network, wherein the multi-UAV edge computing network is composed of... One drone and its corresponding server, Composed of 10 users; In the multi-UAV edge computing network, the first A drone received a signal within a communication area. Each user's task uninstallation request, and The user can only interact with the first... Communication between drones; , , ; make Several drones at the same altitude Flight, will The two-dimensional plane in which each drone flies is divided into A set of discrete points ; Order No. The location of the drone is recorded as , Indicates the first Two-dimensional coordinates of the location of each drone. Order No. The computing resources of the drone are denoted as The unit is Gcycles / s; In the Within the communication range of the first drone The user to the first Each drone uploads its own user information, including: No. Transmission tasks for individual users , No. Location of individual users and upload power ,in, and They represent the first The amount of data uploaded by each user and the number of CPUs required for computation. Indicates the first The three-dimensional coordinates of each user's location; ; The first The drone is the first Transmission tasks uploaded by individual users The transfer action is denoted as , No. All of the drones The set of migration actions for a user task is denoted as The method for optimizing UAV location and scheduling tasks is characterized by the following steps: Step 1: Calculate the latency and energy consumption of all transmission tasks in the multi-UAV edge computing network during the uploading, migration, and processing processes; Step 2: Based on the latency and energy consumption, with the goal of reducing the latency and energy consumption of the entire network, construct the UAV's position update formula and migration action update formula; Step 3: Randomly determine the initial position of each UAV and the migration action of the transmission task, and use them as the position of each UAV in the v-th iteration and the migration action in the v-th iteration, respectively; and initialize v=1; Step 4: In the v-th iteration, with the goal of minimizing the latency and energy consumption of uploading and migrating transmission tasks for all users within the communication area of ​​each UAV, the optimal position of each UAV in the v-th iteration is obtained by cyclically changing the position of the UAVs in sequence until the position of all UAVs no longer changes. Step 5: In the v-th iteration, with the goal of minimizing the latency and energy consumption of the transmission task migration and processing of all users in the communication area of ​​each UAV, the optimal migration action of each UAV is obtained by cyclically changing the transmission task migration action in sequence until the transmission task migration action of all UAVs no longer changes. Step 6: If the optimal position of each UAV in the v-th iteration is the same as the optimal position of each UAV in the (v-1)-th iteration, and the optimal migration action of each UAV in the v-th iteration is the same as the optimal migration action of each UAV in the (v-1)-th iteration, then the iteration ends, and the optimal position and optimal migration action of each UAV in the v-th iteration are output as the optimal scheduling scheme; otherwise, after assigning v+1 to v, return to step 4 to execute sequentially.

2. The UAV position optimization and task scheduling method according to claim 1, characterized in that, Step 1 includes: Step 1.1: Calculate the first step using equations (1) and (2) respectively. The user and the first Communication links between drones , No. The drone and the first Communication links between drones : (1) (2) In equations (1) and (2), Indicates the channel power gain at the reference distance; ; ; Step 1.2: Calculate the first step using equations (3) and (4) respectively. The user to the first The rate of data transmission for each drone upload task , No. The drone directed to the first Migration rate of each UAV delivery mission : (3) (4) In equations (3) and (4), Indicates channel bandwidth. Indicates noise power; Step 1.3: Calculate the first step using equations (5) and (6) respectively. The user to the first Latency of drone upload and transmission tasks , No. The drone directed to the first Latency of drone transfer migration mission : (5) (6) Step 1.4: Calculate the first step using equations (7) and (8) respectively. The user to the first Energy consumption of a drone upload and transmission task , No. The drone directed to the first Energy consumption for migration of a drone delivery mission : (7) (8) In equation (8), Indicates the first Task transfer power of each drone; Step 1.5: Construct the first... using equation (9) The objective function of the computational resource allocation model for a single UAV And using equations (10) and (11) to construct the first The constraints of the computational resource allocation model for the first UAV are determined, and the CVX convex optimization tool is used to optimize the first UAV. Solving the computational resource allocation model for the first UAV yields the result. A set of computing resource allocation schemes for each drone : (9) (10) (11) In equation (9), It is a symbolic function and is obtained from equation (12). Indicates the first The drone gave to the first Transmission task of a drone Allocated computing resources Indicates the weighting parameter; (12) Step 1.5: Calculate the first step using equations (13) and (14). Transmission tasks for individual users respectively in the The latency processed on the first drone, the first The latency processed on a drone : (13) (14) Step 1.6: Calculate the first step using equations (15) and (16) respectively. Transmission tasks for individual users respectively in the Energy consumption processed on a drone , No. Energy consumption of a drone : (15) (16) Step 1.7: Calculate the first step using equation (17). Transmission tasks for individual users Latency and energy consumption during uploading, migration, and processing. : (17) Step 1.8: Use equation (18) to calculate the latency and energy consumption of all transmission tasks during the uploading, migration, and processing processes. : (18)。 3. The UAV position optimization and task scheduling method according to claim 2, characterized in that, Step 2 includes: Step 2.1: Construct the first equation using equation (19). The latency and energy consumption of uploading and migrating transmission tasks for all users within the communication area of ​​a single drone. : (19) In equation (19), Representing all drones A set of migration actions for a user task. This represents the set of locations for all drones; Step 2.2: Construct the first equation using equation (20). The formula for updating the location of a drone: (20) In equation (20), Indicates the first The updated location of the drone; Indicates except the first The set of locations of all drones other than the first drone, and this set is called the first drone. A reference set of other drone locations for each drone; Step 2.3: Construct the first equation using equation (22). The latency and energy consumption of transmission task migration and processing for all users within the communication area of ​​a single drone. : (22) Step 2.4: Construct the first equation using equation (23). The migration action update formula for a drone's transmission task: (23) In equation (23), Indicates the first The migration action of the updated transmission task of a drone. Indicates except the first The set of mission migration actions for drones other than the first drone, and this set is referred to as the first set. Reference set of other drone mission migration actions for each drone.

4. The UAV position optimization and task scheduling method according to claim 3, characterized in that, Step 4 includes: Step 4.1: Define and initialize the position iteration rounds. And the positions of each drone in the vth iteration are taken as the positions of each drone in the kth round of the vth iteration; Step 4.2: Initialize n=1; Step 4.3: Calculate the position of the nth drone in the (k+1)th round of the vth iteration using equation (20) and broadcast it to other drones, so that other drones add the position of the nth drone in the (k+1)th round of the vth iteration to their own reference set of other drone positions; Step 4.4: After assigning n+1 to n, return to step 4.3, and continue until n>N; Step 4.5: Initialize n=1; Step 4.6: If the position of the nth drone in round k+1 of the vth iteration is the same as the position of the nth drone in round k of the vth iteration, then the optimal position of the nth drone in the vth iteration is obtained and output. Otherwise, assign k+1 to k and return to step 4.2 to execute sequentially.

5. The UAV position optimization and task scheduling method according to claim 4, characterized in that, Step 5 includes: Step 5.1: Define and initialize the task migration action iteration rounds. And the migration actions of each UAV mission in the v-th iteration are taken as the v-th iteration. The migration actions of each drone mission in each round; Step 5.2: Initialize n=1; Step 5.3: Calculate the v-th iteration using equation (23). The nth drone in round n performs a mission migration action and broadcasts it to other drones, causing the other drones to migrate in the vth iteration. The nth drone mission migration action in a round is added to its own set of reference actions for other drone mission migration actions. Step 5.4: After assigning n+1 to n, return to step 4.3, and continue until n>N; Step 5.5: Initialize n=1; Step 5.6: If in the v-th iteration... The nth drone mission migration action in round n and the vth iteration If the mission migration actions of the nth drone in each round are the same, then the optimal mission migration action for the nth drone in the vth iteration is obtained and output; otherwise, ... Assign to Then, return to step 5.2 and execute sequentially.

6. An electronic device, comprising a memory and a processor, characterized in that, The memory is used to store programs that support the processor in executing any of the UAV position optimization and task scheduling methods of claims 1-5, and the processor is configured to execute the programs stored in the memory.

7. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is run by the processor, it performs the steps of the UAV position optimization and task scheduling method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Edge calculation method and system for satellite-ground cooperative network

    CN110647391A

  • Managing session continuity for edge services in multi-access environments

    US20220248296A1