Multi-terminal multi-edge task unloading method based on improved shuffled frog leaping algorithm

By introducing partial greedy initialization and harmonic optimization operators into the hybrid frog leaping algorithm, the problems of low fitness and insufficient local search of the first-generation population are solved, and the efficiency and performance of multi-terminal and multi-edge task offloading are improved.

CN118574157APending Publication Date: 2024-08-30ANHUI POLYTECHNIC UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410628818.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The traditional hybrid frog leaping algorithm under the multi-terminal and multi-edge model has low fitness and lack of local search capabilities in the first generation population, resulting in slow iteration speed and affecting the efficiency of task offloading decision-making.

Method used

The partial greedy initialization method is used to generate the first generation population, and the harmony optimization operator is introduced to enhance the local search capability of the algorithm. The hybrid frog leaping algorithm is improved through partial greedy initialization and the harmony optimization operator, which improves the quality and iteration efficiency of the population.

Benefits of technology

It significantly improves the efficiency of the algorithm in solving multi-edge and multi-terminal task offloading problems, reduces the number of iterations, and improves solution-finding capabilities, showing obvious advantages over traditional algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574157A
    Figure CN118574157A
Patent Text Reader

Abstract

The invention provides an improved shuffled frog-leaping fusion algorithm to solve the problem of multi-edge and multi-end edge unloading, firstly, aiming at the phenomenon that the fitness of a primary population is relatively low, a partial greedy initialization method is used for generating the primary population, and the effectiveness of the improved method is verified through a repetitive experiment; secondly, considering that a traditional leapfrog algorithm lacks local search for excellent individuals of a population, based on the principle of a harmony search algorithm, introducing a harmony optimization operator to enhance the local search capability of the algorithm, reduce the number of iterations of the algorithm and improve the solution searching efficiency of the algorithm; a large number of simulation results show that the ISFLA algorithm provided by the invention has an obvious effect on solving the multi-edge and multi-end edge unloading problem, and the overall performance of the ISFLA algorithm has obvious advantages compared with a traditional SFLA algorithm and other heuristic algorithms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge offloading technology, and in particular to a multi-edge edge offloading method based on an improved hybrid frog leaping algorithm. Background Art

[0002] As the application of device terminals in life becomes more and more extensive, such as the popular use of various IoT devices and smartphones, the computing tasks running on terminal devices have an increasing demand for resources. To solve this problem, cloud computing allows the data of terminal devices to be transmitted to remote servers for processing via the Internet, thereby reducing the computing burden of terminal devices. However, not all applications are suitable for running in a cloud computing environment, especially those that are sensitive to latency and require a lot of computing resources. In order to make up for this deficiency in the nature of cloud computing, scholars have proposed the method of mobile edge computing (MEC). By deploying small base stations at the edge of the network, data collection and processing are close to where the data is generated, which significantly shortens the time required for processing tasks. The main difference between edge computing and cloud computing lies in the difference in the physical location where storage and processing tasks are performed. Edge computing transforms centralized clouds into distributed ubiquitous points, enabling terminal devices to send data to the nearest server for processing with lower latency and lower power consumption, and return the results to the terminal. In addition, thanks to the excellent adaptability, agility and security of edge computing, the development of intelligent manufacturing has been greatly promoted in the field of industrial Internet, such as new progress in smart factories, smart traffic scheduling and smart data management.

[0003] In edge computing, computation offloading is a crucial component and a key factor in measuring edge computing performance. The core idea of ​​computation offloading is to selectively offload computation tasks from mobile devices to nearby edge devices for processing, thereby significantly improving the capabilities of mobile services. Because not all computation tasks are suitable for execution on edge devices when considering network conditions and the limitations of edge device computing capabilities, some tasks may still need to be processed on central servers due to network latency or device performance issues. Therefore, in order to ensure service quality and improve user experience, it is crucial to quickly and accurately determine the number of computation tasks that need to be performed locally. Only by making reasonable decisions on the offloading of computation tasks can the advantages of edge computing be maximized to ensure the efficiency of services and the good quality of user experience. The implementation of offloading strategies helps to optimize the utilization of computing resources and improve overall system performance while considering network and device limitations.

[0004] Although existing scholars' research has provided feasible solutions to many problems in the field of edge offloading, there are still some problems that need to be solved. For example, when calculating the efficiency of load and resource allocation, it is necessary to consider resource limitations, delays and energy consumption at the same time, and existing edge offloading research is mostly based on a multi-terminal single-edge model. In contrast, a multi-terminal multi-edge model is more in line with the actual situation. Summary of the invention

[0005] The purpose of the present invention is to provide a multi-terminal multi-edge task offloading method based on the ISFLA (Improved Hybrid Frog Leaping Algorithm) algorithm, which can overcome the shortcomings of the traditional hybrid frog leaping algorithm when solving problems, such as the low fitness of the initial population and the slow iteration speed caused by the lack of local search for excellent individuals in the population, thereby improving the efficiency of the algorithm in solving offloading tasks.

[0006] The present invention proposes an improved hybrid frog leaping algorithm to solve the task offloading decision problem under the multi-terminal and multi-edge model. First, in view of the low fitness of the initial population, the present invention uses a partial greedy initialization method to generate the initial population, and verifies the effectiveness of the improved method through repeatable experiments; secondly, considering that the traditional frog leaping algorithm lacks local search for excellent individuals in the population, based on the principle of the harmony search algorithm, a harmony optimization operator is introduced to enhance the local search capability of the algorithm of the present invention, reduce the number of iterations of the algorithm, and improve the solution efficiency of the algorithm. A large number of simulation results show that the ISFLA algorithm proposed in the present invention is effective in solving the edge offloading problem of multiple sides and multiple terminals, and its overall performance has obvious advantages over the traditional SFLA algorithm and other heuristic algorithms.

[0007] In the present invention, a multi-edge multi-terminal offloading model is designed as follows Figure 1 As shown in the figure, there are 3 edge servers (numbered 1, 2 and 3) distributed on the edge layer, and 9 terminals on the terminal layer. It is worth noting that for any terminal, it may be within the working range of one or more edge servers. For example, terminal 3 in the figure is within the working range of server 1 and server 2, which means that the tasks of terminal 3 can be calculated locally or offloaded to these two servers for calculation.

[0008] Based on the above content, the offloading model of the present invention can be described as follows: In a space, there are N edge servers that can be used for task offloading, and the server information matrix is ​​EM, as shown in formula (1). Each row contains a piece of server information e n , which contains the coordinate information of the nth server (x n ,y n ), CPU calculation frequency f n , and the channel gain H n, as shown in formula (2). At the same time, there are M terminals randomly distributed in the space, and the terminal information matrix TM is as shown in formula (3). In which, each row is a piece of information t m , which contains the coordinate information of the mth terminal (x m ,y m ), and the CPU calculation frequency f m , transmission power P m , task calculation list A m , and the task data size D m , as shown in formula (4). m It is mainly composed of 0 and non-0 elements, as shown in formula (5). In the present invention, 0 indicates that the task is calculated locally, and the other non-0 elements a i Indicates that the task can be offloaded to the edge server i Calculate on, that is, for any a i , terminal t m On server i Within the working range R, as shown in formula (6), Figure 2 is a schematic diagram of an unloading model of the present invention;

[0009] EM=[e 1 ,e 2 ,e 3 ...e N ] T (1)

[0010] e n =[x n ,y n ,f n ,H n ],1≤n≤N (2)

[0011] TM=[t 1 ,t 2 ,t 3 ...t M ] T (3)

[0012] t m =[x m ,y m ,f m ,P m ,A m ,D m ],1≤m≤M (4)

[0013] A m ={0,a 1 ,a 2 ...a N |a i∈{1,2...N},1≤i≤N} (5)

[0014]

[0015] The present invention also makes the following assumptions:

[0016] 1) Tasks of any terminal device can only be offloaded by selecting the device in the corresponding task calculation list, and the offloaded tasks cannot be further divided;

[0017] 2) Any edge server can handle tasks for any terminal within its working range;

[0018] 3) The energy consumption of edge servers in standby mode is negligible.

[0019] In the present invention, the delay part mainly considers the data transmission time and the task calculation time. m Transmission time Tr to the nth edge server m,n The calculation is shown in formula (7), where f is the number of cycles consumed to process each bit, r m,n is the transmission rate. According to Shannon’s theorem, we get the calculation formula (8), where W is the transmission bandwidth, N 0 is the transmission noise spectral density.

[0020]

[0021]

[0022] Task Data D m The calculation time Tc m The calculation of is shown in formula (9), where α is the offloading decision vector. When the value is 0, it is a local operation, and when it is 1, it is an offloading operation.

[0023]

[0024] Based on the above, define the delay T generated by terminal m m As shown in formula (10).

[0025]

[0026] The energy consumption E generated by any terminal m in the system m The energy consumption E is mainly calculated by the local terminal m l , Unload to edge E m tr ,Energy consumption of edge computing E m e The calculation formula is as follows:m Follow PC n are the computing power of terminal m and edge server n for task offloading respectively.

[0027]

[0028] In order to measure the rationality of the edge offloading strategy, an evaluation model is constructed as shown in formula (12), where F is the total evaluation value of the system, β is the weight coefficient, which is used to weigh the sensitivity of the system to delay and energy consumption, where T and E are the total delay and total energy consumption of the system, and the calculation formula is as shown in formula (13) and formula (14). The optimization goal of the algorithm of the present invention is defined as solving the minimum value of the total evaluation value F of the system,

[0029] F=β·T+(1-β)·E (12)

[0030]

[0031]

[0032] The Shuffled Frog Leaping Algorithm (SFLA) was proposed by Muzaffar M et al. in 2003. The algorithm adds information exchange between individuals in the group on the basis of the particle swarm algorithm, simulates the behavior of frog populations looking for food, and has stronger search capabilities.

[0033] In SFLA, the problem solution is usually mapped to the coordinate information of the frog. In this invention, we define the position information of any i-th frog as frog_info i =[0,1,2,3,0,0,1,0...], where the value of the jth bit is the uninstallation decision information of the jth terminal. When it is 0, it represents local calculation, and the remaining values ​​represent uninstallation to the corresponding edge server. Figure 3 Schematic diagram of decoding frog position information.

[0034] In the traditional hybrid frog leaping algorithm, the initialization of the individuals in the population is usually randomly generated. In this way, due to the lack of effective reference, the fitness of the initial population is generally large, which brings difficulties to the iterative search of the algorithm. In the present invention, the frog position corresponds to the unloading decision information of the terminal cluster, which can be simply regarded as a combination of 0 and non-0 fragments in terms of composition. Therefore, for the initialization of this structure, the present invention proposes a partial greedy initialization method, that is, 0-bit data is randomly generated, and non-0-bit data is selected according to the greedy algorithm, such as Figure 4 As shown. For any selection of non-zero decision information at the i-th position, formula (15) is satisfied, where e[0:i-1] is the first i-1 decision information fragments, and F() is the evaluation function.

[0035] F(e[0:i-1]+α i )=min(F(e[0:i-1]+α j )),α j ∈A m (15)

[0036] In the hybrid frog leaping algorithm, each generation optimizes the worst frogs on different lotus leaves. Since the best frog lacks an optimization process, although the worst frogs get better results, from the perspective of problem solving, the entire population has not made any progress. To address this problem, the present invention proposes a harmony optimization operator based on the principle of the harmony search algorithm to improve the optimization ability of the best frog on the lotus leaf. For the jth decision information frog_info of the best frog i on any lotus leaf, i,j , the decision information after being processed by the harmony optimization operator is frog_info H i,j , satisfying formula (16), where PAR is the pitch adjusting rate (PAR) in the harmony search algorithm, A j is the uninstallable list of the jth terminal.

[0037]

[0038] The technical solution adopted by the present invention to solve its technical problem is:

[0039] A multi-terminal multi-edge task offloading method based on an improved hybrid frog jumping algorithm comprises the following steps: Step 1: initializing algorithm-related parameters, including frog population size I, lotus leaf number L, edge server number N, terminal number M, and pitch fine-tuning probability PAR;

[0040] Step 2: Initialize the population partially greedily according to formula (15). For any i-th non-zero decision information, the formula (15) is satisfied, where e[0:i-1] is the first i-1 decision information fragment, F() is the evaluation function,

[0041] F(e[0:i-1]+α i )=min(F(e[0:i-1]+α j )),α j ∈A m (15)

[0042] Step 3: Start the loop:

[0043] Step 4: Divide the frogs into different lotus leaf groups according to the quality of their positions;

[0044] Step 5: Select frog A with the worst position in each group in turn to update its position;

[0045] Step 5.1: Frog A moves towards frog B, which has the best position in the lotus leaf, according to formula (17), where x A,j is the jth decision information of frog A. If the new position evaluation value is better, replace the old position information and execute Step 6. Otherwise, execute Step 5.2.

[0046] x A,j =x A,j +rand(0,1)*(x B,j -x A,j ) (17)

[0047] Step 5.2: Frog A moves towards frog C, which has the best position in the lotus leaf. According to formula (18), if the new position evaluation value is better, the old position information is replaced and Step 6 is executed. Otherwise, Step 5.3 is executed.

[0048] x A,j =x A,j +rand(0,1)*(x C,j -x A,j ) (18)

[0049] Step 5.3: Frog A regenerates a new position information according to the partial greedy initialization method. If the new position evaluation value is better, the old position information is replaced. Otherwise, it is not replaced and Step 6 is executed.

[0050] Step 6: Select frog A with the worst position in each group in turn to update its position, generate a random number rand for each decision information, and if rand ≤ PAR, replace it with other values ​​in the uninstallable list;

[0051] Step 7: Has the maximum number of iterations been reached? If yes, proceed to Step 8; otherwise, increase the number of iterations by 1 and proceed to Step 4;

[0052] Step8: Output the global optimal frog information.

[0053] According to the above steps, a flowchart of the algorithm of the present invention is made as follows: Figure 5 shown.

[0054] The beneficial effects of the present invention are as follows: firstly, a partial greedy initialization method is proposed to construct the initial population, thereby greatly improving the quality of the initial population; a harmony optimization operator is introduced to enhance the local search capability of the algorithm of the present invention, reduce the number of iterations of the algorithm, and improve the solution-finding efficiency of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The present invention is further described below in conjunction with the accompanying drawings and embodiments:

[0056] Figure 1 It is a multi-edge and multi-terminal offloading model;

[0057] Figure 2 is a schematic diagram of the unloading model;

[0058] Figure 3 This is a schematic diagram of frog position information decoding;

[0059] Figure 4 This is a partial greedy initialization diagram;

[0060] Figure 5 The improved hybrid frog leaping algorithm flow chart of the present invention;

[0061] Figure 6 Comparison chart of two initialization methods;

[0062] Figure 7 Experimental simulation results of the superiority of harmony optimization factors;

[0063] Figure 8 Algorithm simulation results under different terminal scales. DETAILED DESCRIPTION

[0064] The purpose of the present invention is to provide a multi-terminal multi-edge task offloading method based on ISFLA, which can overcome the shortcomings of the traditional hybrid frog leaping algorithm when solving problems, such as the low fitness of the initial population and the slow iteration speed caused by the lack of local search for excellent individuals in the population, thereby improving the efficiency of the algorithm in solving offloading tasks.

[0065] The technical solution adopted by the present invention to solve its technical problem is:

[0066] A multi-terminal multi-edge task offloading method based on an improved hybrid frog leaping algorithm comprises the following steps:

[0067] Step 1: Initialize algorithm-related parameters, including frog population size I, number of lotus leaves L, number of edge servers N, number of terminals M, and pitch fine-tuning probability PAR;

[0068] Step 2: Initialize the population partially greedily according to formula (15). For any i-th non-zero decision information, the formula (15) is satisfied, where e[0:i-1] is the first i-1 decision information fragment, F() is the evaluation function,

[0069] F(e[0:i-1]+α i )=min(F(e[0:i-1]+α j )),αj ∈A m (15)

[0070] Step 3: Start the loop:

[0071] Step 4: Divide the frogs into different lotus leaf groups according to the quality of their positions;

[0072] Step 5: Select frog A with the worst position in each group in turn to update its position;

[0073] Step 5.1: Frog A moves towards frog B, which has the best position in the lotus leaf, according to formula (17), where x A,j is the jth decision information of frog A. If the new position evaluation value is better, replace the old position information and execute Step 6. Otherwise, execute Step 5.2.

[0074] x A,j =x A,j +rand(0,1)*(x B,j -x A,j ) (17)

[0075] Step 5.2: Frog A moves towards frog C, which has the best position in the lotus leaf. According to formula (18), if the new position evaluation value is better, the old position information is replaced and Step 6 is executed. Otherwise, Step 5.3 is executed.

[0076] x A,j =x A,j +rand(0,1)*(x C,j -x A,j ) (18)

[0077] Step 5.3: Frog A regenerates a new position information according to the partial greedy initialization method. If the new position evaluation value is better, the old position information is replaced. Otherwise, it is not replaced and Step 6 is executed.

[0078] Step 6: Select frog A with the worst position in each group in turn to update its position, generate a random number rand for each decision information, and if rand≤PAR, replace it with other values ​​in the uninstallable list; Step 7: Has the maximum number of iterations been reached? If yes, execute Step 8; otherwise, increase the number of iterations by 1 and execute Step 4;

[0079] Step8: Output the global optimal frog information.

[0080] The beneficial effects of the present invention are as follows: firstly, a partial greedy initialization method is proposed to construct the initial population, thereby greatly improving the quality of the initial population; a harmony optimization operator is introduced to enhance the local search capability of the algorithm of the present invention, reduce the number of iterations of the algorithm, and improve the solution-finding efficiency of the algorithm.

[0081] The effect of the present invention can be further illustrated by the following simulation experiment:

[0082] In order to verify the feasibility and effectiveness of the improved hybrid frog leaping algorithm proposed in the present invention, the present invention adopts Python programming for simulation, the version is Python3.11.1, the experimental environment is Win10 64-bit operating system, IntelCoreTM i58250U, 8GB memory. The algorithm related parameters are shown in Table 1.

[0083] Table 1 Main parameters of the algorithm

[0084]

[0085]

[0086] First, in order to verify the effectiveness of the partial greedy initialization of the present invention, a repetitive experimental simulation is performed on it, and the results are compared with the population generated by the random initialization method. The experimental results are as follows: Figure 6 As shown in the experimental results, the average value and the optimal value of the initial solution generated by the partial greedy strategy are 925835.58 and 795519.62 respectively, which are 7.3% and 9.8% higher than the values ​​of the randomized initial population of 998846.96 and 881558.23, respectively. This proves the effectiveness of the partial greedy initialization of the present invention.

[0087] Secondly, in order to ensure the superiority of the harmony optimization factor introduced in the present invention, the same primary population is selected to simulate the improved algorithm with harmony optimization factor introduced and the traditional frog leaping algorithm. The simulation results are as follows: Figure 7 As shown. Figure 7 From the results, we can see that although both the improved algorithm and the traditional frog leaping algorithm can produce optimization effects in the early stage of iteration, the optimization speed of the improved algorithm is significantly better than that of the traditional frog leaping algorithm in terms of magnitude. Moreover, after 15 generations, the optimization ability of the traditional frog leaping algorithm gradually weakened, while the optimization ability of the improved algorithm is still very good. In terms of the final results, the traditional frog leaping algorithm converged to the suboptimal solution of 768339.63, while the improved algorithm converged to the optimal solution of 686320.01, which was 11.95% higher than the former.

[0088] To further verify the performance of the improved algorithm proposed in this invention under different terminal scales, 30, 50, 100, 150, and 200 terminals were selected for simulation, and the simulation results were compared with the LOCAL algorithm, the RANDOM algorithm, the traditional hybrid frog leaping algorithm, and the traditional genetic algorithm. The LOCAL algorithm performs the nearest edge offloading process on all task terminal devices, and the RANDOM algorithm adopts a random method for task decision making. The simulation results are shown in Figure 2. Figure 8 shown.

[0089] It can be seen from the simulation results that when the number of terminals is small, although the results obtained by the improved algorithm of the present invention are optimal, the differences in the evaluation values ​​of the algorithms are not obvious. As the number of terminals increases, the evaluation values ​​of the LOCAL algorithm and the RANDOM algorithm increase rapidly. The increase in the evaluation values ​​of the traditional GA algorithm and the traditional SFLA algorithm is almost the same, but better than the LOCAL and RANDOM algorithms. The increase in the evaluation value of the improved algorithm ISFLA of the present invention is significantly reduced compared with other algorithms. Therefore, the experiment proves that the improved algorithm of the present invention has a good optimization effect on different terminals.

[0090] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form; any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the above disclosed methods and technical contents without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent replacement, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.

Claims

1. A multi-terminal multi-edge task offloading method based on improved hybrid frog leaping algorithm, The following steps are involved: Step 1: Initialize algorithm-related parameters, including frog population size I, number of lotus leaves L, number of edge servers N, number of terminals M, and pitch fine-tuning probability PAR; Step 2: Initialize the population partially greedily according to formula (15). For any i-th non-zero decision information, the formula (15) is satisfied, where e[0:i-1] is the first i-1 decision information fragment, F() is the evaluation function, F(e[0:i-1]+α i )=min(F(e[0:i-1]+α j )),a j ∈A m (15) Step 3: Start the loop: Step 4: Divide the frogs into different lotus leaf groups according to the quality of their positions; Step 5: Select frog A with the worst position in each group in turn to update its position; Step 5.1: Frog A moves towards frog B, which has the best position in the lotus leaf, according to formula (17), where x A,j is the jth decision information of frog A. If the new position evaluation value is better, replace the old position information and execute Step 6. Otherwise, execute Step 5.

2. x A,j =x A,j +rand(0,1)*(x B,j -x A,j ) (17) Step 5.2: Frog A moves towards frog C, which has the best position in the lotus leaf. According to formula (18), if the new position evaluation value is better, the old position information is replaced and Step 6 is executed. Otherwise, Step 5.3 is executed. x A,j =x A,j +rand(0,1)*(x C,j -x A,j ) (18) Step 5.3: Frog A regenerates a new position information according to the partial greedy initialization method. If the new position evaluation value is better, the old position information is replaced. Otherwise, it is not replaced and Step 6 is executed. Step 6: Select frog A with the worst position in each group in turn to update its position, generate a random number rand for each decision information, and if rand ≤ PAR, replace it with other values ​​in the uninstallable list; Step 7: Has the maximum number of iterations been reached? If yes, proceed to Step 8; otherwise, increase the number of iterations by 1 and proceed to Step 4; Step8: Output the global optimal frog information.