A mobile edge computing task offloading method based on SSA-SA algorithm

Through the mobile edge computing task offloading method based on the SSA-SA algorithm, combined with the multi-channel wireless interference model and the Sparrow search algorithm, the objective function of task offloading is optimized, solving the problem of poor task offloading effect in the existing technology, and achieving different tasks in different applications. Efficient task offloading in scenarios.

CN112256349BActive Publication Date: 2024-09-13BEIJING JINSHI JIAYE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011157580.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-26
Publication Date
2024-09-13
Estimated Expiration
2040-10-26

AI Technical Summary

Technical Problem

Existing mobile edge computing task offloading methods have different time and energy consumption when processing different tasks, resulting in poor task offloading effects for users in different scenarios, and finding the optimal offloading energy consumption is slow and has low accuracy.

Method used

A mobile edge computing task offloading method based on the SSA-SA algorithm is adopted. By establishing a multi-channel wireless interference user mobility model, a local time and energy consumption model is constructed, and the sparrow search algorithm and simulated annealing algorithm are combined to optimize the objective function of task offloading and dynamically adjust it. Iterative process to find the global optimal solution.

Benefits of technology

This method comprehensively considers task completion time and energy consumption, improves the effect of task offloading, ensures parameter optimization in different scenarios, has the ability of rapid convergence and efficient optimization, and effectively solves the energy consumption and time issues in task offloading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112256349B
    Figure CN112256349B
Patent Text Reader

Abstract

The present invention belongs to the field of mobile edge computing, and specifically relates to a mobile edge computing task unloading method based on an SSA-SA algorithm, the method comprising: establishing a multi-channel wireless interference user mobility model; determining a time model and an energy consumption model under a user mobility state according to the established model, and calculating the cost of a mobile device unloading task; optimizing the edge unloading by adopting a sparrow search algorithm and a simulated annealing algorithm, and determining an optimal solution for the cost of the mobile device unloading task; in the present invention, the sparrow search algorithm and the simulated annealing algorithm are adopted to optimize the edge unloading strategy, and the algorithm has a strong global optimization capability in the search process, and effectively avoids the situation where the search falls into a local optimal solution; the method of the present invention can effectively reduce the execution cost of tasks in mobile edge computing, so that the time consumption and energy consumption cost are optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of mobile edge computing, and in particular relates to a mobile edge computing task offloading method based on the SSA-SA algorithm. Background Art

[0002] Driven by the Internet of Things and cloud computing, since the computing power and energy resources of most mobile devices are limited, transferring cloud computing tasks from the network center to the edge is a way to optimize network resources, namely mobile edge computing. Mobile edge computing technology deploys edge servers on the wireless access network side, shortening the distance between edge servers and mobile devices. Due to the shortened data transmission distance, tasks do not need to pass through the backhaul link and core network when offloading to the MEC server, thereby reducing latency overhead and reducing energy consumption during transmission. The introduction of mobile edge computing technology can well solve the high latency, high load and high overhead problems in traditional cloud computing, which is of great significance to improving user experience.

[0003] Currently, there are two ways of computing offloading in MEC: binary offloading and local offloading. In binary offloading, the computing tasks and data of mobile users cannot be divided and need to be executed as a whole on the local device or offloaded as a whole to the edge server for execution. With local offloading, the computing tasks of mobile users can be divided, with some executed locally and other parts offloaded to the edge server for execution.

[0004] When using traditional task offloading methods, different offloading tasks have different processing times and energy consumptions, resulting in poor task offloading effects in different scenarios. When using traditional task offloading methods to find the optimal offloading energy consumption, the search time is slow and the search accuracy is low, resulting in poor task offloading effects. Summary of the invention

[0005] In order to solve the problems existing in the above prior art, the present invention proposes a mobile edge computing task offloading method based on the SSA-SA algorithm, the method comprising:

[0006] S1: Establish a multi-channel wireless interference user mobility model; determine the parameters of the model; set the current task set;

[0007] S2: If the current task is calculated locally, a local time model and a local computing energy consumption model are constructed according to the model parameters;

[0008] S3: If the current task needs to be unloaded, obtain the relevant parameters of the mobile device, calculate the upload time of the mobile device, the running time of the edge server, the energy consumption of the mobile device unloading and the energy consumption of the mobile device running according to the relevant parameters; and calculate the cost of the mobile device unloading task;

[0009] S4: Calculate the optimization objective function based on the time and energy consumption model of local computing and edge servers;

[0010] S5: Initialize the sparrow population, set the maximum number of iterations, the number of discoverers, the number of joiners, the ratio of alerters and the safety threshold parameters; set the simulated annealing algorithm parameters initial temperature, end temperature and annealing coefficient; each sparrow in the population represents an unloading ratio vector;

[0011] S6: Calculate the fitness value of each sparrow according to the optimized objective function, sort the fitness values, select the current optimal value and the worst value among the fitness values; set the maximum number of iterations;

[0012] S7: Update the position of the discoverer, the position of the joiner, and the position of the alerter according to the current optimal value;

[0013] S8: Obtain the optimal value of the updated sparrow population. If the updated optimal value is better than the optimal value of the previous iteration, update the optimal value; otherwise, use the annealing algorithm to process the value so that the population accepts the value.

[0014] S9: Determine whether the current number of iterations has reached the maximum number of iterations, and the temperature of the annealing algorithm is greater than or equal to the end temperature. If the maximum number of iterations has been reached or the temperature is less than the end temperature, output the result; otherwise, return to S7, increase the number of iterations by 1, and decrease the temperature.

[0015] Preferably, the parameters of the model are determined as follows: the number of cycles required for the mobile device to calculate 1 bit of data is C, the total data volume of task i is D i , the local computing power of the mobile device F l .

[0016] Preferably, the local time model is: The local computing energy consumption model is: E local,i =kCL i F l 2 .

[0017] Preferably, the relevant parameters of the mobile device include: the upload rate r of the mobile device i , edge server computing power F e , channel bandwidth B, transmission power p when the mobile device offloads task i i , the channel gain g between the current mobile device and base station s i,s , the distance l between the current mobile device and base station s i,s .

[0018] Preferably, the mobile device upload time is:

[0019]

[0020] Edge server uptime:

[0021]

[0022] Energy consumption of mobile device offload:

[0023] E up,i =p i T up,i

[0024] Time of mobile device task offloading:

[0025] T off,i =T up,i +T exe,i

[0026] Preferably, the cost of offloading tasks from a mobile device is:

[0027]

[0028] Preferably, the formula for calculating the fitness value of each sparrow is:

[0029]

[0030] Preferably, the model for updating the finder's location is:

[0031]

[0032] Preferably, the location model of the updated joiner is:

[0033]

[0034] Preferably, the updated vigilant model is:

[0035]

[0036] Advantages and beneficial effects of the present invention:

[0037] 1) The method of the present invention comprehensively considers the task completion time and the energy consumption required for the task, allowing users to focus on different parameters in different scenarios. In addition, the mobility of mobile devices is also considered to ensure the effect of task offloading;

[0038] 2) Combine the sparrow search algorithm (SSA) to deal with the task offloading problem in mobile edge computing. The SSA algorithm is relatively novel and has the advantages of strong optimization ability and fast convergence speed. It can effectively solve the energy consumption and time problems in the task offloading problem, so that the task can be reasonably offloaded;

[0039] 3) This strategy is based on the time energy consumption model and the sparrow search algorithm. On the basis of the sparrow search algorithm, each iteration result is compared with the previous iteration result. If it is worse than the previous iteration result, the simulated annealing algorithm (SA) is used to accept this worse value with a certain probability, so that the algorithm eventually tends to the global optimal solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of the mobile edge computing task offloading method of the present invention;

[0041] Figure 2 This is a structural diagram of the MEC system of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] like Figure 2 As mentioned above, the MEC system consists of some mobile devices, a base station, and an edge server. In the MEC system, a quasi-static scenario is considered, where the mobile device task remains unchanged during the computation offloading period (e.g., within a few seconds), but may change in different time periods. This assumption is applicable to many applications, such as face recognition and natural language processing, in which the size of the computation input data is not very large, so the computation offloading can be completed at a time scale smaller than the time scale of user mobility.

[0044] A mobile edge computing task offloading method based on SSA-SA algorithm, such as Figure 1 As shown, the method includes:

[0045] S1: Establish a multi-channel wireless interference user mobility model; determine the parameters of the model; set the current task set;

[0046] S2: If the current task is calculated locally, a local time model and a local computing energy consumption model are constructed according to the model parameters;

[0047] S3: If the current task needs to be unloaded, obtain the relevant parameters of the mobile device, calculate the upload time of the mobile device, the running time of the edge server, the energy consumption of the mobile device unloading and the energy consumption of the mobile device running according to the relevant parameters; and calculate the cost of the mobile device unloading task;

[0048] S4: Calculate the optimization objective function based on the time and energy consumption model of local computing and edge servers;

[0049] S5: Initialize the sparrow population, set the maximum number of iterations, the number of discoverers, the number of joiners, the ratio of alerters and the safety threshold parameters; set the simulated annealing algorithm parameters initial temperature, end temperature and annealing coefficient; each sparrow in the population represents an unloading ratio vector;

[0050] S6: Calculate the fitness value of each sparrow according to the optimized objective function, sort the fitness values, select the current optimal value and the worst value among the fitness values; set the maximum number of iterations;

[0051] S7: Update the position of the discoverer, the position of the joiner, and the position of the alerter according to the current optimal value;

[0052] S8: Obtain the optimal value of the updated sparrow population. If the updated optimal value is better than the optimal value of the previous iteration, update the optimal value; otherwise, use the annealing algorithm to process the value so that the population accepts the value.

[0053] S9: Determine whether the current number of iterations has reached the maximum number of iterations, and the temperature of the annealing algorithm is greater than or equal to the end temperature. If the maximum number of iterations has been reached or the temperature is less than the end temperature, output the result; otherwise, return to S7, increase the number of iterations by 1, and decrease the temperature.

[0054] The present invention provides a method for computing offloading tasks when a user is in a moving state under a multi-channel wireless interference environment. The moving path is generated by using a random waypoint moving model RWP.

[0055] Set the current task set to J = {1, 2, ..., J}. The parameters for determining the multi-channel wireless interference user mobility model include the number of cycles C required for the current mobile device to calculate 1 bit of data; the total data volume D of task i i , whose unit is bits; the local computing power of the current mobile device (measured in CPU cycles per second) F l , unit is cycles / sec. If L i The amount of data is calculated locally, then D i -L i Offload to edge servers.

[0056] The local time model and the local computing energy consumption model are determined according to the parameters of the multi-channel wireless interference user mobility model. The local time model is:

[0057]

[0058] The local computing energy consumption model is:

[0059] E local,i=kCL i F l 2

[0060] Among them, T local,i represents the local computing time, C represents the number of cycles required for the mobile device to calculate 1 bit of data, and L i Indicates the amount of data, F l Represents the local computing power of the mobile device; E local,i represents the local computing energy consumption, and k represents the effective switch capacitance. Preferably, the effective switch capacitance is set to k=10 -11 .

[0061] Preferably, the relevant parameters of the mobile device include: the upload rate r of the mobile device i , edge server computing power F e , channel bandwidth B, transmission power p when the mobile device offloads task i i , the distance l between the current mobile device and base station s i,s .

[0062] When there is a task i that needs to be unloaded, the task upload rate of the mobile device is calculated; the formula for calculating the task upload rate of the mobile device according to the movement is:

[0063]

[0064] Where B represents the channel bandwidth, p i represents the transmission power of the mobile device when unloading task i, g i,s represents the channel gain between the current mobile device and base station s, ω 0 represents the additive white Gaussian noise power, I i,s It represents the interference of other mobile devices k on the channel of the mobile device.

[0065] in, l i,s represents the distance between the current mobile device and the base station s, and α represents the path loss factor. When performing task offloading, the path loss factor is set to 4, that is, α=4.

[0066] Calculate the interference I on the channel i,s The expression is:

[0067] I i,s =∑a k p κ q κ,s

[0068] Among them, a k ∈{0,1} indicates whether other devices offload tasks, p κrepresents the transmission power of other mobile devices when offloading task k, q κ,s Represents the channel gain between other mobile devices and base station s.

[0069] Preferably, the model adopts a physical layer channel access scheme, allowing multiple users to effectively share the same spectrum resources simultaneously. The physical layer channel access scheme adopts code division multiple access CDMA.

[0070] Preferably, the upload time of the mobile device, the running time of the edge server, the energy consumption of the mobile device unloading and the time of the mobile device task unloading are calculated based on the above mobile device parameters.

[0071] Upload time for mobile devices:

[0072]

[0073] Edge server uptime:

[0074]

[0075] Energy consumption of mobile device offload:

[0076] E up,i =p i T up,i

[0077] Time of mobile device task offloading:

[0078] T off,i =T up,i +T exe,i

[0079] Among them, T up,i represents the local computing energy consumption, D i represents the total data volume of task i, L i Indicates the amount of data, r i represents the upload rate of the mobile device, T exe,i represents the running time of the edge server, C represents the number of cycles required for the mobile device to calculate 1 bit of data, and F e represents the computing power of the edge server, E up,i represents the energy consumption of mobile device offloading, p i represents the transmission power of the mobile device when offloading task i, T off,i Indicates the time when the mobile device task is offloaded.

[0080] The cost of the current mobile device unloading task i is calculated based on the mobile device upload time, edge server running time, mobile device unloading energy consumption, and mobile device task unloading time; the cost of unloading task i is:

[0081]

[0082] in, represents the user's weight on computing time, T local,i represents the local computing time, T off,i Indicates the time when the mobile device task is unloaded. represents the user's weight on energy consumption, E local,i represents the energy consumption of local computing, E up,i Represents the energy consumption of mobile device offloading.

[0083] If a mobile device has a series of tasks to perform while on the move, it will first request the recommended offload ratio from the edge server. When a new service request arrives, there will be some information exchange between the edge cloud and the local device. The edge cloud will obtain some task information of the mobile device, namely the input data size, program code, transmission rate, etc.

[0084] The Sparrow Search Algorithm (SSA) includes a discoverer model, a joiner model, and a vigilant model. When the Sparrow Search Algorithm is used to optimize the optimization objective function, the sparrow population is initialized first, and the maximum number of iterations, the number of discoverers, the number of joiners, the vigilant ratio, and the safety threshold parameters are set. In the present invention, each sparrow represents an unloading ratio vector (x 1 ,..x j ), the amount of local data calculated by each task is L j =D j *(1-x j ).

[0085] The steps of optimizing edge offloading using the sparrow search algorithm and the simulated annealing algorithm are as follows:

[0086] Step 1: Randomly initialize the sparrow population and define the maximum number of iterations, the number of discoverers, the number of joiners, the proportion of vigilants, the safety threshold parameter, the initial temperature, the end temperature, and the annealing coefficient.

[0087] Step 2: Calculate the fitness of the initial population and sort it to select the current optimal and worst values.

[0088] Step 3: Update the location of the discoverer, the location of the joiner, and the location of the sparrows that are aware of the danger.

[0089] Step 4: Get the current optimal value. If the current optimal value is better than the optimal value of the previous iteration, update it. Otherwise, accept the worse solution with probability P(dE).

[0090] Step 5: Check if the maximum number of iterations is reached and the temperature range is satisfied. If so, exit and output the result; otherwise, repeat Step 3 and Step 4.

[0091] Preferably, the formula for calculating the fitness value of each sparrow is:

[0092]

[0093] where Cost i represents the actual cost of a single task i, i represents a single task, and j represents the total task volume.

[0094] Preferably, in the discoverer model, the discoverer has a high energy reserve and is responsible for searching for areas with abundant food in the entire population, providing foraging areas and directions for all followers. In model establishment, the level of energy reserve depends on the quality of the fitness value corresponding to the sparrow individual. Once a sparrow discovers a predator, the individual starts to emit a chirping sound as an alarm signal. When the alarm value is greater than the safety value, the discoverer will lead the followers to other safe areas for foraging.

[0095] During each iteration, the position of the discoverer is updated as follows:

[0096]

[0097] where t represents the current iteration number, j = 1, 2, 3,..., d. iter max is a constant representing the maximum number of iterations. represents the position information of the i-th sparrow in the j-th dimension at the t-th iteration. α ∈ (0, 1] is a random number. R 2 (R 2 ∈ [0, 1]) and ST (ST ∈ [0.5, 1]) represent the warning value and the alert threshold respectively. Q is a random number following the standard normal distribution. L represents a 1×d matrix where each element in the matrix is all 1. When R 2 < ST, this means that there is no predator around the foraging environment at this time, and the discoverer can perform extensive search operations. If R 2 ≥ ST, this indicates that some sparrows in the population have discovered a predator and sent an alarm to other sparrows in the population. At this time, all sparrows need to quickly fly to other safe places for foraging.

[0098] Preferably, the lower the energy of the participants in the participant model, the worse their foraging position in the entire population. Some hungry participants are more likely to fly to other places to forage for more energy. During the foraging process, participants can always search for the finder that provides the best food, and then obtain food from the best position or forage around the finder. At the same time, some participants may constantly monitor the finder in order to increase their predation rate and then compete for food resources.

[0099] One method uses the SSA-SA algorithm to optimize the target. The specific process is as follows: initialize the sparrow population, initial temperature, end temperature, and annealing coefficient. Here, it is assumed that the population size is 100, and the discoverer accounts for 20% of the entire population, that is, the number is 20. Then the number of followers is 80. The proportion of vigilants is 10%, that is, the number is 10. The safety threshold is 0.8, and the maximum number of iterations is 1000. Here, it is assumed that the number of user task sets is 4, then each sparrow represents a four-dimensional unloading vector, for example (0.3, 0.5, 0.7, 0.2). In each iteration, the positions of the discoverer, follower, and vigilant are updated, that is, the coordinates of each sparrow in the sparrow population are updated. After the sparrow's coordinates are updated, the coordinates of the sparrow with the lowest cost in the current iteration number, that is, the coordinates of the sparrow with the best fitness, are calculated from the sparrow population according to the optimization target. If the best fitness in the current iteration number is worse than the previous iteration number, the simulated annealing algorithm is used to accept this poor solution with probability P(dE). The loop is iterated until the maximum number of iterations or the temperature range is not met. Finally, the optimal solution is output, that is, the optimal offloading vector. Each dimension of the offloading vector is represented by the offloading ratio of each task.

[0100] Preferably, during each iteration, the finder's position is updated as follows:

[0101]

[0102] in, is the optimal position currently occupied by the discoverer, X worst It represents the current global worst position. A represents a 1×d matrix, in which each element is randomly assigned a value of 1 or -1, and A + =A T (AA T ) -1 When i>n / 2, it means that the i-th participant with a lower fitness value has not obtained food and is in a very hungry state. At this time, it needs to fly to other places to find food to obtain more energy.

[0103] Preferably, the position of the alerter is updated as follows:

[0104]

[0105] in, is the optimal position among all sparrows in the current iteration. β is a step size control parameter, which is a random number that obeys a normal distribution with a mean of 0 and a variance of 1. K∈[0,1] is a random number, f i is the fitness value of the current sparrow individual. g and f w are the global best and worst fitness values ​​in the current iteration, respectively. ε is a very small constant to avoid zero in the denominator.

[0106] When f i >f g This means that the sparrows are at the edge of the population and are extremely vulnerable to predators. This means that the sparrow in this position is the best position in the population and is also very safe. i =f g This indicates that the sparrows in the middle of the population are aware of the danger and need to get closer to other sparrows to minimize their risk of being preyed upon. K represents the direction in which the sparrows move and is also a step length control parameter.

[0107] Preferably, the simulated annealing algorithm (SA) is a general probabilistic algorithm used to find the optimal solution of a proposition in a large search space. The starting point of simulated annealing is based on the similarity between the annealing process of solid materials in physics and general combinatorial optimization problems. The algorithm starts from a relatively high initial temperature, and with the continuous decrease of the temperature parameter, it combines the probability jump characteristics to randomly search for the global optimal solution of the objective function in the solution space, that is, the local optimal solution can jump out with a certain probability and eventually tend to the global optimal.

[0108] According to the principles of thermodynamics, when the temperature is T, the probability of a temperature drop with an energy difference of dE is P(dE), which is expressed as:

[0109]

[0110] Where k is a constant and exp represents the natural exponential. When dE<0 (temperature always decreases), The value is (0,1), then the function range of P(dE) is (0,1). A move to a worse solution is regarded as a temperature jump process, and such a move is accepted with probability P(dE).

[0111] The method in this paper is directly based on the sparrow search algorithm. It compares the optimal value of the previous iteration with the optimal value after the current iteration. If it is worse than the previous iteration, the current poor solution is accepted with a certain probability, and finally tends to the global optimal solution.

[0112] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A mobile edge computing task offloading method based on the SSA-SA algorithm, characterized in that: The method includes: S1: Establish a multi-channel wireless interference user mobility model; determine the parameters of the model; set the current task set; the parameters of the model include: the number of cycles required for the mobile device to calculate 1 bit of data is C, the total data volume of task i is D i , the local computing power of the mobile device F l ; S2: If the current task is calculated locally, a local time model and a local computing energy consumption model are constructed according to the model parameters; the local time model is: The local computing energy consumption model is: E local,i =kCL i F l 2 Among them, T local,i represents the local computing time, C represents the number of cycles required for the mobile device to calculate 1 bit of data, and L i Indicates the amount of data, F l Represents the local computing power of the mobile device; E local,i represents the local computing energy consumption, k represents the effective switching capacitance; S3: If the current task needs to be unloaded, obtain the relevant parameters of the mobile device, calculate the upload time of the mobile device, the running time of the edge server, the energy consumption of the mobile device unloading and the energy consumption of the mobile device running according to the relevant parameters; and calculate the cost of the mobile device unloading task; The relevant parameters of the mobile device include: the upload rate r of the mobile device i , edge server computing power F e , channel bandwidth B, transmission power p when the mobile device offloads task i i , the channel gain g between the current mobile device and base station s i,s , the distance l between the current mobile device and base station s i,s ; Upload time for mobile devices: Edge server uptime: Energy consumption of mobile device offload: E up,i =p i T up,i Time of mobile device task offloading: T off,i =T up,i +T exe,i Among them, T up,i represents the local computing energy consumption, D i represents the total data volume of task i, L i Indicates the amount of data, r i represents the upload rate of the mobile device, T exe,i represents the running time of the edge server, C represents the number of cycles required for the mobile device to calculate 1 bit of data, and F e represents the edge server computing power, E up,i represents the energy consumption of mobile device offloading, p i represents the transmission power of the mobile device when offloading task i, T off,i Indicates the time when the task is unloaded from the mobile device; The cost of the mobile device offloading task is: in, represents the user's weight on computing time, T local,i represents the local computing time, T off,i Indicates the time when the mobile device task is unloaded. represents the user's weight on energy consumption, E local,i represents the energy consumption of local computing, E up,i represents the energy consumption of mobile device offloading; S4: Calculate the optimization objective function based on the time and energy consumption model of local computing and edge servers; S5: Initialize the sparrow population, set the maximum number of iterations, the number of discoverers, the number of joiners, the ratio of alerters and the safety threshold parameters; set the simulated annealing algorithm parameters: initial temperature, end temperature and annealing coefficient; each sparrow in the population represents an unloading ratio vector; S6: Calculate the fitness value of each sparrow according to the optimized objective function, sort the fitness values, and select the current optimal value and the worst value among the fitness values; set the maximum number of iterations; the formula for calculating the fitness value of each sparrow is: Among them, Cost i represents the actual cost of a single task i, i represents a single task, and j represents the total task volume; S7: Update the position of the discoverer, the position of the joiner, and the position of the alerter according to the current optimal value; S8: Obtain the optimal value of the updated sparrow population. If the updated optimal value is better than the optimal value of the previous iteration, update the optimal value; otherwise, use the annealing algorithm to process the value so that the population accepts the value. S9: Determine whether the current number of iterations has reached the maximum number of iterations, and the temperature of the annealing algorithm is greater than or equal to the end temperature. If the maximum number of iterations has been reached or the temperature is less than the end temperature, output the result; otherwise, return to S7, increase the number of iterations by 1, and decrease the temperature.

2. According to a method for offloading mobile edge computing tasks based on the SSA-SA algorithm according to claim 1, it is characterized in that: The model for updating the finder's location is: Where t represents the current iteration number, j = 1, 2, 3, ..., d; iter max represents the maximum number of iterations, represents the position information of the i-th sparrow in the j-th dimension in the t-th iteration, α∈(0,1] represents a random number, R2 represents the warning value, ST represents the warning threshold, Q is a random number that obeys the standard normal distribution, and L represents a 1×d matrix, in which all elements are 1.

3. According to a method for offloading mobile edge computing tasks based on the SSA-SA algorithm of claim 1, it is characterized in that: Update the joiner's location model to: in, represents the position information of the i-th sparrow in the j-th dimension in the t-th iteration, represents the optimal position currently occupied by the discoverer, X worst represents the current global worst position, A represents a 1×d matrix in which each element is randomly assigned a value of 1 or -1, n represents the number of populations, and L represents a 1×d matrix in which all elements are 1.

4. According to a method for offloading mobile edge computing tasks based on the SSA-SA algorithm according to claim 1, it is characterized in that: The updated Vigilante model is: in, is the optimal position among all sparrows in the current iteration number, β represents the step size control parameter, represents the position information of the i-th sparrow in the j-th dimension in the t-th iteration, represents the global worst position in the tth iteration, K∈[0,1] is a random number, f i represents the fitness value of the current sparrow individual, f g Indicates the global best fitness value in the current iteration number, f w It represents the global worst fitness value in the current iteration, and ε represents a constant.