An edge computing method for cloud-edge-device collaboration
Through the edge computing method of cloud-edge-device cooperation, deep reinforcement learning and other algorithms are used to optimize the computing task offloading and resource allocation of drones, solving the problem of insufficient drone working time in mobile edge computing and achieving efficient computing tasks. Processing and service quality improvements.
Patent Information
- Application Number
- CN202210197990.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-02
AI Technical Summary
In existing mobile edge computing, there are few collaborative relationships between base stations, drones and task processing equipment, and the difficulty of charging drones results in insufficient working time in mobile edge computing, making it unable to effectively handle the needs of multiple mobile users. Computational tasks.
Adopting the edge computing method of cloud-edge cooperation, through the cooperation of base stations, drones and task processing equipment, deep reinforcement learning, Lagrangian duality method and genetic algorithm are used to optimize the computing task offloading strategy and drone resource allocation. Extend drone operating hours and improve service quality.
It effectively reduces the system processing energy consumption of computing tasks, improves user service quality, has flexibility, can adapt to dynamic environmental changes, and efficiently utilizes solar clean energy.
Smart Images

Figure CN114521002B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of mobile communications, and specifically relates to an edge computing method for cloud-edge-end collaboration. Background Art
[0002] With the development of electronic information, people have an increasing demand for computing-intensive applications. However, one of the inevitable challenges of mobile devices (MDs) is their own battery capacity, which makes it difficult for them to maintain these computing-intensive applications. In addition, with the popularity of MDs, a large number of communication computing tasks have emerged, and the computing capacity segment generated by MDs alone is not enough to handle such a large number of computing tasks. Therefore, how to meet the needs of MDs for intensive applications and handle a large number of computing tasks has become an urgent problem to be solved. Fortunately, the booming development of mobile edge computing (MEC) provides a feasible solution to these problems. The MEC architecture usually consists of three parts: MD, MEC service layer, and cloud server. The cloud server has a large computing capacity. The cloud server has strong computing power. When MDs generate intensive tasks, these tasks can be offloaded to the cloud server to efficiently process the computing tasks. However, due to the long distance between the cloud server and the MD, it usually causes transmission delays and uncertainties in the transmission process. The MEC service layer acts as an intermediary at this point, which makes up for the shortcomings of the remote cloud. The MEC service layer has a certain computing power relative to the MD, and when the computing task can be processed, the MEC service layer first processes the task. When the computing task exceeds the computing capacity of MEC, the MEC service layer can act as a relay layer to send the task to the cloud server for further processing.
[0003] With the development of MEC and drones, drones are gradually appearing in the application scenarios of mobile edge computing (MEC). Drone-assisted MEC can solve traditional edge computing problems well. Drones can play a role when traditional base stations suffer disasters. For example, the heavy rain in Zhengzhou this year interrupted the communication lines, and drones were sent to the disaster area to provide communication services. For example, in remote mountainous areas, it is difficult and expensive to build base stations. In this case, an edge service platform can be installed on drones to provide communication services to remote areas with high mobility and low cost. Drone-assisted mobile edge computing can flexibly and quickly deploy innovative applications and services for mobile terminal users, thanks to the flexible deployment, low cost and high mobility of drones. Since MD is mobile, it can cope with a small number of users, but if the number of users is large, the coping ability will be poor. How to make drone-assisted mobile edge computing have good responsiveness to multiple mobile users is a question worth exploring. Summary of the invention
[0004] In existing mobile edge computing, the collaboration between base stations, drones, and task processing equipment is rarely considered. In addition, charging drones has always been a difficult problem. How to extend the working time of drones in mobile edge computing and use clean energy such as solar energy can improve the service quality of mobile devices while being green and environmentally friendly.
[0005] In order to solve the above technical problems, the present invention adopts the following technical means:
[0006] A cloud-edge-end cooperation edge computing method, for a target area corresponding to a base station, a cloud-edge-end system consisting of a base station, mobile devices, drones, and task processing devices, performs the following steps based on the computing tasks generated by each mobile device to obtain an offloading strategy for the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drones, or task processing devices, a computing resource allocation strategy for drones, and a location deployment strategy for each drone in the target area:
[0007] Step A: Based on the communication between each mobile device in the target area and the base station, each mobile device transmits the data volume of the generated computing task and the location data of each mobile device when the computing task is generated to the base station;
[0008] Step B: Initialize the position deployment of each drone and check the drone's own power status;
[0009] Step C: For the cloud-edge-end system, the computing tasks of the mobile device are offloaded to the base station, drone or task processing device to calculate the corresponding energy consumption, and the optimization problem of the cloud-edge-end system is constructed with the goal of reducing the total energy consumption of the cloud-edge-end system;
[0010] Step D: Based on the optimization problem constructed by the cloud-edge-end system, for the amount of data received by the base station from the computing tasks transmitted by each mobile device in step A and the location data of each mobile device when the computing tasks are generated, steps D1 to D3 are executed cyclically until the results converge or the maximum number of loop iterations is reached, and the offloading strategy of the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drone or task processing device, the computing resource allocation strategy of the drone, and the location deployment strategy of each drone in the target area are obtained:
[0011] Step D1: Based on the optimization problem constructed by the cloud-edge-end system, according to the location deployment of each drone, the amount of data of the computing tasks transmitted by each mobile device received by the base station in step A and the location data of each mobile device when the computing tasks are generated, a deep reinforcement learning method is used to solve the offloading decision of the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drone or task processing device;
[0012] Step D2: Based on the cloud-edge system offloading strategy solved in step D1 and the location deployment of each drone, the Lagrangian dual method is used to solve the computing resources allocated to each drone carrying the computing task for its corresponding computing task;
[0013] Step D3: Based on the cloud-edge system unloading strategy solved in step D1 and the computing resources allocated to the corresponding computing tasks of each drone that does not carry computing tasks solved in step D2, a genetic method is used to solve the position deployment of each drone in the target area, thereby realizing the update of the position of each drone in the drone swarm.
[0014] As a preferred technical solution of the present invention, the specific process of step A is as follows:
[0015] Step A1: The three-dimensional coordinates of the location of mobile device i at time slot t are expressed as L i (t) = (x i (t), y i (t),0),x i (t), y i (t) are the x-axis coordinate value and y-axis coordinate value of mobile device i at time slot t;
[0016] Based on the Gauss-Markov mobility model and the random mobility model, the moving speed v of the i-th mobile device in time slot t is i (t) and direction θ i (t) are respectively expressed as:
[0017]
[0018]
[0019] In the formula, and To adjust the coefficient of the impact of the previous time slot on the current time slot, and The values are all between 0 and 1; is the average speed of all mobile devices in the target area; is the average direction of the i-th mobile device; Φ i is an independent Gaussian distribution that obeys the mean speed and speed variance of the i-th mobile device The constant, Ψ i is an independent Gaussian distribution that obeys the direction mean and direction variance of the i-th mobile device The constant of
[0020] In summary, the position L of the i-th mobile device in time slot t is i (t) is expressed as
[0021] Li (t) = (x i (t-1)+τv i (t)cosθ i (t), y i (t-1)+τv i (t)sinθ i (t), 0);
[0022] Where τ is the length of a time slot;
[0023] Step A2: The amount of data D of the computing task generated by the i-th mobile device in time slot t i (t), and the location L of each mobile device when the computing task is generated i (t) Transmit to the base station.
[0024] As a preferred technical solution of the present invention, the specific process of step B is as follows:
[0025] Detect the remaining energy E of the drone after the last time slot ends U (t-1), if the remaining energy of the drone is E U (t-1) is less than the energy E required for drone and mobile device services and communications c , the drone is charged by harvesting solar energy through the solar panels installed on the drone;
[0026] Therefore, the remaining energy E of the drone before the start of time slot t can be obtained U (t) Formula:
[0027]
[0028] In the formula, E solar Solar energy is harvested for drones through solar panels installed on the drones.
[0029] As a preferred technical solution of the present invention, the specific process of step C is as follows:
[0030] Step C1: When the computing task generated by the i-th mobile device in time slot t is offloaded to the j-th UAV, the data transmission rate between the i-th mobile device and the j-th UAV is obtained based on the Shannon formula: It is expressed as:
[0031]
[0032] In the formula, represents the channel bandwidth between the mobile device and the drone, U refers to the drone, M refers to the mobile device, and p irepresents the transmission power of the i-th mobile device, g0 represents the channel gain at 1m, G0 and γ are both constants, N0 represents the noise power spectral density, ||L i (t)-L j || is the distance between the i-th mobile device and the j-th drone, L i (t) represents the position of the i-th mobile device in time slot t, L j represents the position of the jth UAV;
[0033] When the computing task of the i-th mobile device is offloaded to the j-th drone in time slot t, the data transmission time and transmission energy consumption Respectively expressed as:
[0034]
[0035]
[0036] Where D i (t) represents the data volume of the computing task generated by the i-th mobile device in time slot t;
[0037] The computation time of the jth drone to calculate the computation task of the ith mobile device and calculate energy consumption It is expressed as:
[0038]
[0039]
[0040] In the formula, The computing resources allocated to the i-th mobile device for the j-th UAV, ρ represents the proportion of computing tasks required, and κ represents the capacitive switch;
[0041] In summary, when the computing task of the i-th mobile device in time slot t is offloaded to the j-th drone, the total time T1 and total energy consumption E1 of the cloud-edge system are expressed as:
[0042]
[0043]
[0044] Step C2: When the computing task of the i-th mobile device in time slot t is offloaded to the base station, the data transmission rate between the i-th mobile device and the base station is obtained based on the Shannon formula Expressed as
[0045]
[0046] Among them, ||L i(t)|| is the distance between the ith mobile device and the base station, Represents the channel bandwidth between the mobile device and the base station, M refers to the drone, and B refers to the base station;
[0047] When the computation task of the i-th mobile device is offloaded to the base station in time slot t, the data transmission time is and transmission energy consumption Respectively expressed as:
[0048]
[0049]
[0050] In summary, when the computing task of the i-th mobile device in time slot t is offloaded to the base station, the total time T2 and total energy consumption E2 of the cloud-edge system are expressed as:
[0051]
[0052]
[0053] Step C3: When the computing task of the i-th mobile device in time slot t is offloaded to the task processing device, the data transmission rate between the i-th mobile device and the task processing device is obtained based on the Shannon formula Expressed as
[0054]
[0055] In the formula, ||L i (t)-L C || is the distance between the i-th mobile device and the task processing device, L C represents the coordinates of the task processing device, represents the channel bandwidth between the mobile device and the task processing device, M refers to the drone, and C refers to the task processing device;
[0056] When the computing task of the oth mobile device is offloaded to the task processing device in time slot t, the data transmission time and transmission energy consumption Respectively expressed as
[0057]
[0058]
[0059] The task processing device calculates the computing time of the computing task of the i-th mobile device and calculate energy consumption It is expressed as:
[0060]
[0061]
[0062] In the formula, f c Allocating computing resources of the mobile device to the task processing device;
[0063] In summary, when the computing task of the i-th mobile device in time slot t is offloaded to the task processing device, the total time T3 and total energy consumption E3 of the cloud-edge system are expressed as
[0064]
[0065]
[0066] Step C4, in summary, the optimization problem can be expressed as
[0067]
[0068] st constraint 1:
[0069] Constraint 2: ||L j -L k ||≥d min
[0070] Constraint 3: ||L j ||<||L j || max
[0071] Constraint 4:
[0072] Constraint 5:
[0073] Where A represents the mobile device unloading decision matrix; F represents the drone resource allocation matrix; L represents the drone location matrix; I represents the total number of mobile devices in the target area; a i is the offloading decision action of the cloud-edge system for the i-th mobile device, a i =1 means unloading to the drone, a i =2 means offloading to the base station, a i =3 means offloading to the task processing device; constraint 1 means the processing time of each task cannot exceed its own service quality time T QoS ; Constraint 2 means that the distance between every two drones must be greater than or equal to the minimum distance d mim ; Constraint 3 means that the position of each drone cannot exceed the space limit; Constraint 4 means that when the drone serves the mobile device, the remaining energy of the drone should be greater than the energy required for processing this task; Constraint 5 means that the computing resources allocated by the drone to the mobile device cannot exceed the upper limit of the drone's computing resources.
[0074] As a preferred technical solution of the present invention, the specific process of step D1 is as follows:
[0075] Based on the optimization problem constructed by the cloud-edge-end system, according to the position of each drone, the amount of data received by the base station from the computing tasks transmitted by each mobile device in step A and the position data of each mobile device when the computing tasks are generated, the DDQN deep reinforcement learning method is used to loop through steps D1.1 to D1.5 until the maximum number of cycles is reached or the absolute value of the loss function is less than the preset threshold, and the offloading decision of the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drone or task processing device is obtained;
[0076] Step D1.1: Obtain the state of the cloud-edge-end system in time slot t, that is, the data volume D(t) and location data L(t) of the computing tasks of all mobile devices in the cloud-edge-end system in time slot t. The state is represented by S t =(D(t), L(t));
[0077] Step D1.2: The DDQN network has an action space A including the offloading decision actions of the mobile device t ,The offloading decision actions of the mobile device include offloading to the base station, UAV, or task processing equipment;
[0078] Step D1.3: Set the state S of the cloud-edge system in time slot t t Input into the DDQN network, based on the output action space A t The value of each action in the ∈-greddy criterion is then used to select the generated action a t , and calculate the negative value of the cloud-edge system energy consumption as the reward of DDQN, denoted as r t ; and update the state S of the (t+1) time slot t+1 ,
[0079] Step D1.4: Combine the (S t , a t , r t , S t+1 ,) is stored in the memory. If the memory is full, the old data will be overwritten by the new data one by one;
[0080] Step D1.5: When the data in the memory reaches a preset amount, extract the preset amount of data in the memory to train the DDQN network.
[0081] As a preferred technical solution of the present invention, the DDQN network includes a prediction network and a target network, and the loss function L is:
[0082] L=(Q预测 -Q 目标 ) 2
[0083] Q 预测 -Q(S t , a t )
[0084] Q 目标 =r t +γQ(S t+1 , a t+1 )
[0085] In the formula, Q 预测 Based on S t 、a t The predicted output value obtained by inputting into the prediction network of DDQN, Q 目标 Based on r t , S t+1 、a t+1 The target output value obtained by inputting into the target network of DDQN.
[0086] As a preferred technical solution of the present invention, the specific process of step D2 is as follows:
[0087] Step D2.1: Step D2: Based on the cloud-edge-end system offloading strategy solved in step D1 and the location deployment of each drone, the optimization problem of the cloud-edge-end system is reshaped as:
[0088]
[0089] st constraint 1: T1<T QoS
[0090] Constraint 4:
[0091] Constraint 5:
[0092] Where F represents the UAV resource allocation matrix; H represents the set of mobile devices whose offloading action is to be offloaded to the UAV; E1 represents the total system energy consumption corresponding to the offloading action to the UAV; T1 represents the total system time corresponding to the offloading action to the UAV; constraint 1 represents that the processing time of each task cannot exceed its own service quality time T QoS ; Constraint 4 indicates that when the jth UAV serves the i-th mobile device, the remaining energy E of the UAV U (t) should be greater than the energy required for processing this task Constraint 5 indicates that the computing resources allocated to the drone are The computing resource limit of the drone cannot be exceeded;
[0093] Step D2.2: Introducing the generalized Lagrangian function, the problem in step D2.1 becomes
[0094]
[0095] Among them, α j , β j , γ j is the Lagrangian operator, It's about α j , β j , γ j Function of
[0096] Step D2.3: Define the function
[0097]
[0098] If one of the constraints is not satisfied, will approach infinity, and we get
[0099]
[0100] In summary, when the constraints are met,
[0101] Step D2.4: Define about α j , β j , γ j Function
[0102]
[0103] Step D2.5: Define the dual problem of the reshaping problem
[0104]
[0105] The solution to the dual problem can be solved to find the solution to the reshaping problem, and the computing resources allocated to each drone carrying the computing task for its corresponding computing task can be obtained.
[0106] As a preferred technical solution of the present invention, the specific process of step D3 is as follows:
[0107] Step D3.1: The position of each drone is represented by a binary number of preset length, and zeros are added in front if the number of bits is insufficient;
[0108] Step D3.2: Based on each drone whose position is represented by a binary representation of a preset length, a drone population is generated, where the total number of drones is I, and each drone is a drone individual. The drone population formula can be expressed as:
[0109]
[0110] Step D3.3: randomly select K drone individuals from population I as fathers, and then randomly select K drone individuals as mothers to form a group;
[0111] Step D3.4, for each set of male and female parent, determine two decimal random numbers, the sum of which is less than the decimal number corresponding to the length of the drone individual; replace the corresponding part of the male parent with the DNA from the front end of the female parent to the first random number length and the DNA from the back end of the female parent to the second random number length to obtain a new individual;
[0112] Step D3.5, for each digit of the new individual, mutate with a preset probability, that is, 1 becomes 0, and 0 becomes 1. If the new individual satisfies the constraints of the drone's position, it is retained;
[0113] Step D3.6, substitute the new individual and the corresponding parent into the objective function for comparison, and retain the one with less energy consumption;
[0114] Step D3.7, repeatedly iterate steps D3.3 to D3.6 until the set number of iterations is reached to obtain the screened drone population;
[0115] Step D3.8, extracting the drone position deployment of a preset number of drones from the screened drone population as the position deployment of the current drone in the target area.
[0116] As a preferred technical solution of the present invention, the step D3.1 represents the position of each drone in binary format with a preset length, and fills the position with zeros if the number of bits is insufficient. The process is as follows:
[0117] Determine the range of the drone's horizontal and vertical coordinates and the upper and lower limits of its height. The highest value of the three is used as the standard and converted into binary. The other two numbers are converted into binary based on the binary length corresponding to the highest value. If the length is insufficient, add 0 in front.
[0118] The beneficial effects of the present invention are as follows: the present invention provides an edge computing method of cloud-edge cooperation, which uses base stations, drones and task processing equipment to collaborate to help mobile devices process computing tasks, uses DDQN deep reinforcement learning to solve the unloading strategy, uses the Lagrange duality method to solve the total resource allocation of drones, and uses genetic algorithms to solve the deployment of drones. The present invention comprehensively considers all available computing devices in the network, effectively reduces the system processing energy consumption of computing tasks, improves the user's service quality, and has a certain degree of flexibility. The present invention uses DDQN deep reinforcement learning to calculate the optimal unloading strategy, which can obtain the unloading actions of a large number of mobile devices with lower complexity and can adapt to dynamic environmental changes. After reducing the complexity, one is to save computing resources and reduce the power consumption of the mobile system; the second is to save computing time, which can improve the real-time performance of the system; and the third is to efficiently utilize solar clean energy. BRIEF DESCRIPTION OF THE DRAWINGS
[0119] Figure 1 is a flow chart of an edge computing method for cloud-edge-device collaboration according to an embodiment of the present invention;
[0120] Figure 2 A schematic diagram of the structure of a UAV-assisted computing network according to an embodiment of the present invention;
[0121] Figure 3 A schematic diagram of DDQN deep reinforcement learning according to an embodiment of the present invention;
[0122] Figure 4 A schematic diagram of individual drones using a genetic algorithm for solving drone deployment according to an embodiment of the present invention;
[0123] Figure 5 A schematic diagram of a genetic algorithm crossover for solving drone deployment in an embodiment of the present invention;
[0124] Figure 6 A schematic diagram of energy consumption changes of four calculation methods according to an embodiment of the present invention as the number of mobile devices increases;
[0125] Figure 7 Schematic diagram of how the energy consumption of four calculation methods according to embodiments of the present invention changes as the amount of tasks on a mobile device increases. DETAILED DESCRIPTION
[0126] The present invention will be further described below in conjunction with the accompanying drawings.
[0127] In existing mobile edge computing, the collaboration between base stations, drones, and task processing equipment is rarely considered. In addition, charging drones has always been a difficult problem. How to extend the working time of drones in mobile edge computing and use clean energy such as solar energy can improve the service quality of mobile devices while being green and environmentally friendly. Figure 1This is a flow chart of the edge computing method for cloud-edge-device cooperation in an embodiment of the present invention. Mobile devices may generate computing tasks at any time. Since the computing power of the devices is limited, this embodiment considers introducing base stations, multiple drones, and idle devices to help multiple users process computing tasks, thereby reducing the total energy consumption of the system and improving service quality.
[0128] A cloud-edge-end cooperation edge computing method, for the target area corresponding to the base station, a cloud-edge-end system consisting of a base station, various mobile devices, various drones, and various task processing devices, such as Figure 2 As shown, the task processing device is a hardware device for accessing the system to process computing tasks. Based on the computing tasks generated by each mobile device, the following steps are performed, such as Figure 1 As shown, the offloading strategy of the computing tasks of mobile devices in the cloud-edge system to base stations, drones or task processing devices, the computing resource allocation strategy of drones, and the location deployment strategy of each drone in the target area are obtained.
[0129] Step A: Based on the communication between each mobile device in the target area and the base station, each mobile device transmits the data volume of the generated computing task and the location data of each mobile device when the computing task is generated to the base station.
[0130] The specific process of step A is as follows:
[0131] Step A1: The three-dimensional coordinates of the location of mobile device i at time slot t are expressed as L i (t) = (x i (t), y i (t),0),x i (t),u i (t) are the x-axis coordinate value and y-axis coordinate value of mobile device i at time slot t;
[0132] Based on the Gauss-Markov mobility model and random mobility model (GMRM), the moving speed v of the i-th mobile device in time slot t is i (t) and direction θ i (t) are respectively expressed as:
[0133]
[0134]
[0135] In the formula, and To adjust the coefficient of the impact of the previous time slot on the current time slot, and The values are all between 0 and 1; is the average speed of all mobile devices in the target area; is the average direction of the ith mobile device, and different devices have different average directions; Φ i is an independent Gaussian distribution that obeys the mean speed and speed variance of the i-th mobile device The constant, Ψ i is an independent Gaussian distribution that obeys the direction mean and direction variance of the i-th mobile device The constant of
[0136] In summary, the position L of the i-th mobile device in time slot t is i (t) is expressed as
[0137] L i (t) = (x i (t-1)+τv i (t)cosθ i (t), y i (t-1)+τv i (t)sinθ i (t), 0);
[0138] Where τ is the length of a time slot;
[0139] Step A2: The amount of data D of the computing task generated by the i-th mobile device in time slot t i (t), and the location L of each mobile device when the computing task is generated i (t) is transmitted to the base station. Since the size of the task and the amount of data of the location information are very small, the energy consumed by the system sending it to the base station is negligible.
[0140] Step B: Initialize the position deployment of each drone, check the drone's own battery status, and harvest energy from solar energy if the battery is insufficient.
[0141] The specific process of step B is as follows:
[0142] Detect the remaining energy E of the drone after the last time slot ends U (t-1), if the remaining energy of the drone is E U (t-1) is less than the energy E required for drone and mobile device services and communications c , the drone is charged by harvesting solar energy through the solar panels installed on the drone;
[0143] Therefore, the remaining energy E of the drone before the start of time slot t can be obtained U (t) Formula:
[0144]
[0145] In the formula, E solarSolar energy is harvested for drones through solar panels installed on the drones.
[0146] Step C: For the cloud-edge system, the computing tasks of the mobile device are offloaded to the base station, drone or task processing device to calculate the corresponding energy consumption, and the optimization problem of the cloud-edge system is constructed with the goal of reducing the total energy consumption of the cloud-edge system.
[0147] Each computing task has three computing modes: (1) a i =1 offload to the drone for calculation; (2)a i =2 offload to the base station for calculation; (3)a i =3 offloads the computation to nearby task processing equipment.
[0148] The specific process of step C is as follows:
[0149] Step C1: When the computing task generated by the i-th mobile device in time slot t is offloaded to the j-th UAV, the data transmission rate between the i-th mobile device and the j-th UAV is obtained based on the Shannon formula: It is expressed as:
[0150]
[0151] In the formula, represents the channel bandwidth between the mobile device and the drone, U refers to the drone, M refers to the mobile device, and p i represents the transmission power of the i-th mobile device, g0 represents the channel gain at 1m, G0 and γ are both constants, N0 represents the noise power spectral density, ||L i (t)-L j || is the distance between the i-th mobile device and the j-th drone, L i (t) represents the position of the i-th mobile device in time slot t, L j represents the position of the jth UAV;
[0152] When the computing task of the i-th mobile device is offloaded to the j-th drone in time slot t, the data transmission time and transmission energy consumption Respectively expressed as:
[0153]
[0154]
[0155] Where D i (t) represents the data volume of the computing task generated by the i-th mobile device in time slot t;
[0156] The computation time of the jth drone to calculate the computation task of the ith mobile device and calculate energy consumption It is expressed as:
[0157]
[0158]
[0159] In the formula, The computing resources allocated to the i-th mobile device for the j-th UAV, ρ represents the proportion of computing tasks required, and κ represents the capacitive switch;
[0160] In summary, when the computing task of the i-th mobile device in time slot t is offloaded to the j-th drone, the total time T1 and total energy consumption E1 of the cloud-edge system are expressed as:
[0161]
[0162]
[0163] Step C2: When the computing task of the i-th mobile device in time slot t is offloaded to the base station, the data transmission rate between the i-th mobile device and the base station is obtained based on the Shannon formula Expressed as
[0164]
[0165] Among them, ||L i (t)|| is the distance between the ith mobile device and the base station, Represents the channel bandwidth between the mobile device and the base station, M refers to the drone, and B refers to the base station;
[0166] When the computation task of the i-th mobile device is offloaded to the base station in time slot t, the data transmission time is and transmission energy consumption Respectively expressed as:
[0167]
[0168]
[0169] Since the computing power of the base station is very strong, the computing time and computing energy consumption of the base station can be ignored. In summary, when the computing task of the i-th mobile device in time slot t is offloaded to the base station, the total time T2 and total energy consumption E2 of the cloud-edge system are expressed as:
[0170]
[0171]
[0172] Step C3: When the computing task of the i-th mobile device in time slot t is offloaded to the task processing device, the data transmission rate between the i-th mobile device and the task processing device is obtained based on the Shannon formula Expressed as
[0173]
[0174] In the formula, ||L i (t)-L C || is the distance between the i-th mobile device and the task processing device, L C represents the coordinates of the task processing device, represents the channel bandwidth between the mobile device and the task processing device, M refers to the drone, and C refers to the task processing device;
[0175] When the computing task of the i-th mobile device is offloaded to the task processing device in time slot t, the data transmission time and transmission energy consumption Respectively expressed as
[0176]
[0177]
[0178] The task processing device calculates the computing time of the computing task of the i-th mobile device and calculate energy consumption It is expressed as:
[0179]
[0180]
[0181] In the formula, it is assumed that the computing power of the task processing device is fixed, that is, the computing resources allocated to the mobile device are fixed to f c , f c Allocating computing resources of the mobile device to the task processing device;
[0182] In summary, when the computing task of the i-th mobile device in time slot t is offloaded to the task processing device, the total time T3 and total energy consumption E3 of the cloud-edge system are expressed as
[0183]
[0184]
[0185] Step C4, in summary, the optimization problem can be expressed as
[0186]
[0187] st constraint 1:
[0188] Constraint 2: ||L j -L k ||≥d min
[0189] Constraint 3: ||L j ||<||L j || max
[0190] Constraint 4:
[0191] Constraint 5:
[0192] Where A represents the mobile device unloading decision matrix; F represents the drone resource allocation matrix; L represents the drone location matrix; I represents the total number of mobile devices in the target area; a i is the offloading decision action of the cloud-edge system for the i-th mobile device, a i =1 means unloading to the drone, a i =2 means offloading to the base station, a i =3 means offloading to the task processing device; constraint 1 means the processing time of each task cannot exceed its own service quality time T QoS ; Constraint 2 means that the distance between every two drones must be greater than or equal to the minimum distance d min , to prevent UAVs from colliding; Constraint 3 means that the position of each UAV cannot exceed the space limit, for example, the horizontal and vertical coordinates cannot exceed the upper limit, and the flight altitude cannot be lower than the lower limit or higher than the upper limit; Constraint 4 means that when the UAV serves the mobile device, the remaining energy of the UAV should be greater than the energy required for processing this task; Constraint 5 means that the computing resources allocated by the UAV to the mobile device cannot exceed the upper limit of the UAV's computing resources.
[0193] Given F and L, the original problem becomes a problem of solving the unloading strategy. Since this problem is an integer nonlinear programming problem, if the traditional convex optimization technology is used to solve it, the complexity will increase with the increase in the number of mobile devices, and the number of iterations will be too much. Therefore, a deep reinforcement learning method of DDQN is used to solve the unloading strategy. Using the DDQN algorithm, the complexity of the algorithm does not increase with the increase in the number of mobile devices. Although the training process may take some time, once the network is fitted, the unloading strategy of the mobile device can be given in a very short time.
[0194] Step D: Based on the optimization problem constructed by the cloud-edge-end system, for the amount of data received by the base station from the computing tasks transmitted by each mobile device in step A and the location data of each mobile device when the computing tasks are generated, steps D1 to D3 are executed cyclically until the results converge or the maximum number of loop iterations is reached, and the offloading strategy of the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drone or task processing device, the computing resource allocation strategy of the drone, and the location deployment strategy of each drone in the target area are obtained, such as Figure 3 shown.
[0195] Step D1: Based on the optimization problem constructed by the cloud-edge system, according to the location deployment of each drone, the amount of data of the computing tasks transmitted by each mobile device received by the base station in step A and the location data of each mobile device when the computing tasks are generated, a deep reinforcement learning method is used to solve the offloading decision of the computing tasks of the mobile devices in the cloud-edge system to the base station, drone or task processing device.
[0196] The amount of task data based on mobile devices D i (t) and geographical location L i (t), with the goal of reducing the total energy consumption of the system, the specific process of step D1 of using DDQN to solve the user's offloading strategy is as follows:
[0197] Based on the optimization problem constructed by the cloud-edge-end system, according to the position of each drone, the amount of data received by the base station from the computing tasks transmitted by each mobile device in step A and the position data of each mobile device when the computing tasks are generated, the DDQN deep reinforcement learning method is used to loop through steps D1.1 to D1.5 until the maximum number of cycles is reached or the absolute value of the loss function is less than the preset threshold, and the offloading decision of the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drone or task processing device is obtained;
[0198] Step D1.1: Obtain the state of the cloud-edge-end system in time slot t. The state of DDQN in time slot t includes two parts: the data volume D(t) and location data L(t) of the computing tasks of all mobile devices in the cloud-edge-end system in time slot t. The state is represented by S t =(D(t), L(t));
[0199] Step D1.2: The DDQN network has an action space A including the offloading decision actions of the mobile device t , the action space of DDQN in time slot t is the alternative space of the mobile device's offloading strategy. The offloading decision actions of the mobile device include offloading to the base station, drone or task processing device; (1) a i =1 offload to the drone for calculation; (2)a i =2 offload to the base station for calculation; (3)a i=3 offload the calculation to nearby task processing equipment;
[0200] Step D1.3: Input the state St of the cloud-edge system in time slot t into the DDQN network, based on the output action space A t The value of each action in the ∈-greddy criterion is then used to select the generated action a t , and calculate the negative value of the cloud-edge system energy consumption as the reward of DDQN, denoted as r t ; and update the state S of the (t+1) time slot t+1 ,
[0201] Step D1.4: Combine the (S t , a t , r t , S t+1 ,) are stored in the memory. If the data in the memory is full, the old data are overwritten one by one with the new data;
[0202] Step D1.5: When the data in the memory reaches a preset amount, extract the preset amount of data in the memory to train the DDQN network.
[0203] The DDQN network includes a prediction network and a target network. The two networks use exactly the same structure and different parameters to generate predicted Q values and target Q values. The loss function L is:
[0204] L=(Q 预测 -Q 目标 ) 2
[0205] Q 预测 =Q(S t , a t )
[0206] Q 目标 =r t +γQ(S t+1 , a t+1 )
[0207] In the formula, Q 预测 Based on S t 、a t The predicted output value obtained by inputting into the prediction network of DDQN, Q 目标 Based on r t , S t+1 、a t+1 The target output value obtained by inputting into the target network of DDQN.
[0208] Step D2: Based on the cloud-edge system unloading strategy solved in step D1 and the location deployment of each drone, the Lagrangian dual method is used to solve the computing resources allocated to each drone carrying the computing task for its corresponding computing task. The computing resources of the base station and the computing resources of the task processing device are assumed to be infinite.
[0209] The specific process of step D2 is as follows:
[0210] Step D2.1: Step D2: Based on the cloud-edge-end system offloading strategy solved in step D1 and the location deployment of each drone, the optimization problem of the cloud-edge-end system is reshaped as:
[0211]
[0212] st constraint 1: T1<T QoS
[0213] Constraint 4:
[0214] Constraint 5:
[0215] Where F represents the UAV resource allocation matrix; H represents the set of mobile devices whose offloading action is to be offloaded to the UAV; E1 represents the total system energy consumption corresponding to the offloading action to the UAV; T1 represents the total system time corresponding to the offloading action to the UAV; constraint 1 represents that the processing time of each task cannot exceed its own service quality time T QoS ; Constraint 4 indicates that when the jth UAV serves the i-th mobile device, the remaining energy E of the UAV U (t) should be greater than the energy required for processing this task Constraint 5 indicates that the computing resources allocated to the drone are The computing resource limit of the drone cannot be exceeded;
[0216] Step D2.2: Introducing the generalized Lagrangian function, the problem in step D2.1 becomes
[0217]
[0218] Among them, α j , β j , γ j is the Lagrangian operator, It's about α j , β j , γ j Function of
[0219] Step D2.3: Define the function
[0220]
[0221] If one of the constraints is not satisfied, will approach infinity, and we get
[0222]
[0223] In summary, when the constraints are met,
[0224] Step D2.4: Define about α j , β j , γ j Function
[0225]
[0226] Step D2.5: Define the dual problem of the reshaping problem
[0227]
[0228] The solution to the dual problem can be solved to find the solution to the reshaping problem, and the computing resources allocated to each drone carrying the computing task for its corresponding computing task can be obtained.
[0229] Step D3: Based on the cloud-edge system unloading strategy solved in step D1 and the computing resources allocated to the corresponding computing tasks of each drone that does not carry computing tasks solved in step D2, a genetic method is used to solve the position deployment of each drone in the target area, thereby realizing the update of the position of each drone in the drone swarm.
[0230] As a preferred technical solution of the present invention, the specific process of step D3 is as follows:
[0231] Step D3.1: The position of each drone is represented by a binary number of preset length, and zeros are added in front if the number of bits is insufficient;
[0232] As a preferred technical solution of the present invention, the step D3.1 represents the position of each drone in binary format with a preset length, and fills the position with zeros if the number of bits is insufficient. The process is as follows:
[0233] Determine the range of the horizontal and vertical coordinates of the drone and the upper and lower limits of the height. The highest value of the three is used as the standard and converted into binary. The other two numbers are converted into binary based on the binary length corresponding to the highest value. If the length is insufficient, add 0 in front.
[0234] Step D3.2: Based on each drone with a binary representation of the position using a preset length, a drone population is generated, where the total number of drones is I, and each drone is a drone individual, such as Figure 4As shown, the UAV population formula can be expressed as:
[0235]
[0236] Step D3.3: randomly select K drone individuals from population I as fathers, and then randomly select K drone individuals as mothers to form a group;
[0237] Step D3.4, for each set of male and female parent, determine two decimal random numbers, the sum of which is less than the decimal number corresponding to the length of the drone individual; replace the corresponding part of the male parent with the DNA from the front end of the female parent to the first random number length and the DNA from the back end of the female parent to the second random number length, such as Figure 5 As shown, a new individual is obtained;
[0238] Step D3.5, for each digit of the new individual, mutate with a preset probability, that is, 1 becomes 0, and 0 becomes 1. If the new individual satisfies the constraints of the drone's position, it is retained;
[0239] Step D3.6, substitute the new individual and the corresponding parent into the objective function for comparison, and retain the one with less energy consumption;
[0240] Step D3.7, repeatedly iterate steps D3.3 to D3.6 until the set number of iterations is reached to obtain the screened drone population;
[0241] Step D3.8, extracting the drone position deployment of a preset number of drones from the screened drone population as the position deployment of the current drone in the target area.
[0242] like Figure 6 The energy consumption of the four calculation methods of the embodiment of the present invention changes with the increase of the number of mobile devices, Figure 7 The schematic diagram of the energy consumption of the four computing methods of the embodiment of the present invention as the task volume of the mobile device increases is shown. The present invention designs an edge computing method of cloud-edge-end cooperation, which uses base stations, drones and task processing equipment to collaborate to help mobile devices process computing tasks, uses DDQN deep reinforcement learning to solve the unloading strategy, uses the Lagrange dual method to solve the total resource allocation of drones, and uses genetic algorithms to solve the deployment of drones. The present invention comprehensively considers all available computing devices in the network, effectively reduces the system processing energy consumption of computing tasks, improves the user's service quality, and has a certain flexibility. The present invention uses DDQN deep reinforcement learning to calculate the optimal unloading strategy, which can obtain the unloading actions of a large number of mobile devices with lower complexity and can adapt to dynamic environmental changes. After reducing the complexity, one is to save computing resources and reduce the power consumption of the mobile system, the second is to save computing time, which can improve the real-time performance of the system, and the third is to efficiently utilize solar clean energy.
[0243] The above are only preferred embodiments of the present invention. The protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A cloud-edge-device collaborative edge computing method. Features: For the target area corresponding to the base station, the cloud-edge-end system composed of the base station, each mobile device, each drone, and each task processing device performs the following steps based on the computing tasks generated by each mobile device to obtain the offloading strategy of the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drone or task processing device, the computing resource allocation strategy of the drone, and the location deployment strategy of each drone in the target area: Step A: Based on the communication between each mobile device in the target area and the base station, each mobile device transmits the data volume of the generated computing task and the location data of each mobile device when the computing task is generated to the base station; Step B: Initialize the position deployment of each drone and check the drone's own power status; Step C: For the cloud-edge-end system, the computing tasks of the mobile device are offloaded to the base station, drone or task processing device to calculate the corresponding energy consumption, and the optimization problem of the cloud-edge-end system is constructed with the goal of reducing the total energy consumption of the cloud-edge-end system; Step D: Based on the optimization problem constructed by the cloud-edge-end system, for the amount of data received by the base station from the computing tasks transmitted by each mobile device in step A and the location data of each mobile device when the computing tasks are generated, steps D1 to D3 are executed cyclically until the results converge or the maximum number of loop iterations is reached, and the offloading strategy of the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drone or task processing device, the computing resource allocation strategy of the drone, and the location deployment strategy of each drone in the target area are obtained: Step D1: Based on the optimization problem constructed by the cloud-edge-end system, according to the location deployment of each drone, the amount of data of the computing tasks transmitted by each mobile device received by the base station in step A and the location data of each mobile device when the computing tasks are generated, a deep reinforcement learning method is used to solve the offloading decision of the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drone or task processing device; The specific process of the above step D1 is as follows: Based on the optimization problem constructed by the cloud-edge-end system, according to the position of each drone, the amount of data received by the base station from the computing tasks transmitted by each mobile device in step A and the position data of each mobile device when the computing tasks are generated, the DDQN deep reinforcement learning method is used to loop through steps D1.1 to D1.5 until the maximum number of cycles is reached or the absolute value of the loss function is less than the preset threshold, and the offloading decision of the computing tasks of the mobile devices in the cloud-edge-end system to the base station, drone or task processing device is obtained; Step D1.1: Obtain the state of the cloud-edge-end system in time slot t, that is, the data volume D(t) and location data L(t) of the computing tasks of all mobile devices in the cloud-edge-end system in time slot t. The state is represented by S t =(D(t),L(t)); Step D1.2: The DDQN network has an action space A including the offloading decision actions of the mobile device t ,The offloading decision actions of the mobile device include offloading to the base station, UAV, or task processing equipment; Step D1.3: Set the state S of the cloud-edge system in time slot t t Input into the DDQN network, based on the output action space A t The value of each action in the ∈-greddy criterion is then used to select the generated action a t , and calculate the negative value of the cloud-edge system energy consumption as the reward of DDQN, denoted as r t ; and update the state S of the (t+1) time slot t+1 , Step D1.4: Combine the (S t ,a t ,r t ,S t+1 ,) is stored in the memory. If the memory is full, the old data will be overwritten by the new data one by one; Step D1.5: When the data in the memory bank reaches a preset amount, extract the preset amount of data in the memory bank to train the DDQN network; The DDQN network includes a prediction network and a target network, and the loss function L is: L=(Q 预测 -Q 目标 ) 2 Q 预测 =Q(S t ,a t ) Q 目标 =r t +dQ(S t+1 ,a t+1 ) In the formula, Q 预测 Based on S t 、a t The predicted output value obtained by inputting into the prediction network of DDQN, Q 目标 Based on r t , S t+1 、a t+1 The target output value obtained by inputting into the target network of DDQN; Step D2: Based on the cloud-edge system offloading strategy solved in step D1 and the location deployment of each drone, the Lagrangian dual method is used to solve the computing resources allocated to each drone carrying the computing task for its corresponding computing task; The specific process of the above step D2 is as follows: Step D2.1: Step D2: Based on the cloud-edge-end system offloading strategy solved in step D1 and the location deployment of each drone, the optimization problem of the cloud-edge-end system is reshaped as: st constraint 1: T 1 <T QoS Constraint 4: Constraint 5: Where F represents the drone resource allocation matrix; H represents the set of mobile devices whose offloading action is to be offloaded to the drone, and E 1 represents the total system energy consumption corresponding to the unloading action to the drone; T 1 represents the total system time corresponding to the unloading action to the drone. Constraint 1 indicates that the processing time of each task cannot exceed its own service quality time T QoS ; Constraint 4 indicates that when the jth UAV serves the i-th mobile device, the remaining energy E of the UAV U (t) should be greater than the energy required for processing this task represents the computing energy consumption of the jth UAV computing the computing task of the i-th mobile device; constraint 5 represents the computing resources allocated by the UAV to the mobile device The computing resource limit of the drone cannot be exceeded. max ; Step D2.2: Introducing the generalized Lagrangian function, the problem in step D2.1 becomes Among them, α j , β j , γ j is the Lagrangian operator, j refers to the jth UAV, It's about α j , β j , γ j Function of Step D2.3: Define the function If one of the constraints is not satisfied, will approach infinity, and we get In summary, when the constraints are met, Step D2.4: Define about α j , β j , γ j Function Step D2.5: Define the dual problem of the reshaping problem Solving the dual problem can solve the reshaping problem, and obtain the computing resources allocated to the corresponding computing tasks of each UAV carrying the computing task; Step D3: Based on the cloud-edge system unloading strategy solved in step D1 and the computing resources allocated to the corresponding computing tasks of each drone that does not carry computing tasks solved in step D2, a genetic method is used to solve the position deployment of each drone in the target area, thereby realizing the update of the position of each drone in the drone swarm; The specific process of the above step D3 is as follows: Step D3.1: The position of each drone is represented by a binary number of preset length, and zeros are added in front if the number of bits is insufficient; Step D3.2: Based on each drone whose position is represented by a binary representation of a preset length, a drone population is generated, where the total number of drones is I, and each drone is a drone individual. The drone population formula can be expressed as: Step D3.3: randomly select K drone individuals from population I as fathers, and then randomly select K drone individuals as mothers to form a group; Step D3.4, for each set of male and female parent, determine two decimal random numbers, the sum of which is less than the decimal number corresponding to the length of the drone individual; replace the corresponding part of the male parent with the DNA from the front end of the female parent to the first random number length and the DNA from the back end of the female parent to the second random number length to obtain a new individual; Step D3.5, for each digit of the new individual, mutate with a preset probability, that is, 1 becomes 0, and 0 becomes 1. If the new individual satisfies the constraints of the drone's position, it is retained; Step D3.6, substitute the new individual and the corresponding parent into the objective function for comparison, and retain the one with less energy consumption; Step D3.7, repeatedly iterate steps D3.3 to D3.6 until the set number of iterations is reached to obtain the screened drone population; Step D3.8, extracting the drone position deployment of a preset number of drones from the screened drone population as the position deployment of the current drone in the target area.
2. According to the edge computing method of cloud-edge-end cooperation according to claim 1, Features: The specific process of step A is as follows: Step A1: The three-dimensional coordinates of the location of mobile device i at time slot t are expressed as L i (t) = (x i (t),y i (t),0),x i (t), y i (t) are the x-axis coordinate value and y-axis coordinate value of mobile device i at time slot t; Based on the Gauss-Markov mobility model and the random mobility model, the moving speed v of the i-th mobile device in time slot t is i (t) and direction θ i (t) are respectively expressed as: In the formula, and To adjust the coefficient of the impact of the previous time slot on the current time slot, and The values are all between 0 and 1; is the average speed of all mobile devices in the target area; is the average direction of the i-th mobile device; Φ i is an independent Gaussian distribution that obeys the mean speed and speed variance of the i-th mobile device The constant, Ψ i is an independent Gaussian distribution that obeys the direction mean and direction variance of the i-th mobile device The constant of In summary, the position L of the i-th mobile device in time slot t is i (t) is expressed as L i (t)=(x i (t-1)+τv i (t)cosθ i (t),y i (t-1)+τv i (t)sinθ i (t),0); Where τ is the length of a time slot; Step A2: The amount of data D of the computing task generated by the i-th mobile device in time slot t i (t), and the location L of each mobile device when the computing task is generated i (t) Transmit to the base station.
3. According to the edge computing method for cloud-edge-end collaboration according to claim 1, Features: The specific process of step B is as follows: Detect the remaining energy E of the drone after the last time slot ends U (t-1), if the remaining energy of the drone is E U (t-1) is less than the energy E required for drone and mobile device services and communications c , the drone is charged by harvesting solar energy through the solar panels installed on the drone; Therefore, the remaining energy E of the drone before the start of time slot t can be obtained U (t) Formula: In the formula, E solar Solar energy is harvested for drones through solar panels installed on the drones.
4. According to the edge computing method for cloud-edge-end collaboration according to claim 1, Features: The specific process of step C is as follows: Step C1: When the computing task generated by the i-th mobile device in time slot t is offloaded to the j-th UAV, the data transmission rate between the i-th mobile device and the j-th UAV is obtained based on the Shannon formula: It is expressed as: In the formula, represents the channel bandwidth between the mobile device and the drone, U refers to the drone, M refers to the mobile device, and p i represents the transmission power of the ith mobile device, g 0 represents the channel gain at 1m, G 0 , γ are constants, N 0 represents the noise power spectral density, ||L i (t)-L j || is the distance between the i-th mobile device and the j-th drone, L i (t) represents the position of the i-th mobile device in time slot t, L j represents the position of the jth UAV; When the computing task of the i-th mobile device is offloaded to the j-th drone in time slot t, the data transmission time and transmission energy consumption Respectively expressed as: Where D i (t) represents the data volume of the computing task generated by the i-th mobile device in time slot t; The computation time of the jth drone to calculate the computation task of the ith mobile device and calculate energy consumption It is expressed as: In the formula, The computing resources allocated to the i-th mobile device for the j-th UAV, ρ represents the proportion of computing tasks required, and κ represents the capacitive switch; In summary, when the computing task of the i-th mobile device in time slot t is offloaded to the j-th drone, the total time T of the cloud-edge system is 1 and total energy consumption E 1 It is expressed as: Step C2: When the computing task of the i-th mobile device in time slot t is offloaded to the base station, the data transmission rate between the i-th mobile device and the base station is obtained based on the Shannon formula Expressed as Among them, ||L i (t)|| is the distance between the ith mobile device and the base station, Represents the channel bandwidth between the mobile device and the base station, M refers to the drone, and B refers to the base station; When the computation task of the i-th mobile device is offloaded to the base station in time slot t, the data transmission time is and transmission energy consumption Respectively expressed as: In summary, when the computing task of the i-th mobile device in time slot t is offloaded to the base station, the total time of the cloud-edge system is T 2 and total energy consumption E 2 It is expressed as: Step C3: When the computing task of the i-th mobile device in time slot t is offloaded to the task processing device, the data transmission rate between the i-th mobile device and the task processing device is obtained based on the Shannon formula Expressed as In the formula, ||L i (t)-L C || is the distance between the i-th mobile device and the task processing device, L C represents the coordinates of the task processing device, represents the channel bandwidth between the mobile device and the task processing device, M refers to the drone, and C refers to the task processing device; When the computing task of the i-th mobile device is offloaded to the task processing device in time slot t, the data transmission time and transmission energy consumption Respectively expressed as The task processing device calculates the computing time of the computing task of the i-th mobile device and calculate energy consumption It is expressed as: In the formula, f c Allocating computing resources of the mobile device to the task processing device; In summary, when the computing task of the i-th mobile device in time slot t is offloaded to the task processing device, the total time of the cloud-edge system is T 3 and total energy consumption E 3 Expressed as Step C4, in summary, the optimization problem can be expressed as st constraint 1: Constraint 2: ||L j -L k ||≥d min Constraint 3: ||L j ||<||L j || max Constraint 4: Constraint 5: Where A represents the mobile device unloading decision matrix; F represents the drone resource allocation matrix; L represents the drone location matrix; I represents the total number of mobile devices in the target area; a i is the offloading decision action of the cloud-edge system for the i-th mobile device, a i =1 means unloading to the drone, a i =2 means offloading to the base station, a i =3 means offloading to the task processing device; constraint 1 means the processing time of each task cannot exceed its own service quality time T QoS ; Constraint 2 means that the distance between every two drones must be greater than or equal to the minimum distance d min ; Constraint 3 means that the position of each drone cannot exceed the space limit; Constraint 4 means that when the drone serves the mobile device, the remaining energy of the drone should be greater than the energy required for processing this task; Constraint 5 means that the computing resources allocated by the drone to the mobile device cannot exceed the upper limit of the drone's computing resources.
5. The edge computing method for cloud-edge-device collaboration according to claim 1, Features: In step D3.1, the position of each drone is represented by a binary representation of a preset length, and the process of adding 0 in front of the insufficient number of bits is as follows: Determine the range of the drone's horizontal and vertical coordinates and the upper and lower limits of its height. The highest value of the three is used as the standard and converted into binary. The other two numbers are converted into binary based on the binary length corresponding to the highest value. If the length is insufficient, add 0 in front.
Citation Information
Patent Citations
Multi-unmanned aerial vehicle auxiliary edge computing resource allocation method based on task prediction
CN112351503A
Multi-unmanned aerial vehicle air charging and task scheduling method based on deep reinforcement learning
CN114048689A
