Intelligent model automatic tuning method and system based on edge cloud cooperation mode
By integrating particle swarm optimization and genetic algorithm, the target ephemera algorithm is combined with the tabu search mechanism to optimize computing offloading and resource allocation in edge-cloud collaboration mode, solving the problem of poor robustness and adaptability of computing task optimization in edge-cloud collaboration mode. , achieving more efficient resource allocation and task tuning.
Patent Information
- Application Number
- CN202410814956.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-10
AI Technical Summary
Existing computing task optimization methods in edge-cloud collaboration mode have problems of poor robustness and poor adaptability, and cannot effectively solve the energy consumption and delay requirements of computing-intensive tasks and delay-sensitive tasks of network edge devices.
The target ephemera algorithm that combines the particle swarm algorithm and the genetic algorithm is combined with the tabu search mechanism to optimize computation offloading and resource allocation. Through the random generation of ephemera populations, inertia factor updates, reverse elitist strategies, and mutation behavior algorithms, we seek solutions to computational offloading and resource optimization. Global optimal solution.
It improves the robustness and adaptability of tuning, improves the tuning rate, allocates computing and communication resources more effectively, reduces energy consumption and delay, and meets the energy consumption and delay requirements of tasks.
Smart Images

Figure CN118632299A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an intelligent model automatic tuning method and system based on an edge-cloud collaborative mode. Background Art
[0002] With the continuous development of communication technology and the upgrading of local devices, more and more computing-intensive and delay-sensitive tasks have appeared at the edge of the network, and the amount of data generated by edge devices has increased rapidly. Due to the very limited computing power of local devices, if these computing tasks are arranged to be executed locally, it will lead to high energy consumption and a sharp increase in computing latency, which does not meet the energy consumption and latency requirements of the tasks.
[0003] The computing layers involved in traditional mobile cloud computing and mobile edge computing usually consist of only two parts, namely the local device side and the edge server side, or the local device side and the central cloud server side. However, with the development of related communication technologies and the upgrade of local devices, while the latency of wireless transmission has been greatly improved, local devices also have certain computing and processing capabilities, which makes it possible to realize the coordinated optimization of the central cloud, edge, and end networking architecture.
[0004] However, most current research on edge-cloud collaboration still uses traditional combinatorial optimization methods or basic intelligent methods, which generally have problems such as poor robustness and poor adaptability. Summary of the invention
[0005] In order to solve at least one of the above problems, the embodiments of the present application propose an intelligent model automatic tuning method and system based on the edge-cloud collaborative mode, aiming to improve the robustness, adaptability and tuning rate of the tuning.
[0006] To achieve the above purpose, one aspect of an embodiment of the present application proposes an automatic tuning method for an intelligent model based on an edge-cloud collaborative mode, the method comprising:
[0007] Acquire tasks, computing resources, and communication resources;
[0008] Input the objective function of computation offloading and resource optimization problem;
[0009] The objective function is solved by integrating the particle swarm algorithm and the genetic algorithm to obtain a local optimal solution;
[0010] The local optimal solution is optimized by a taboo search mechanism to obtain a global optimal solution;
[0011] Determine an optimization solution for the computation offloading and resource optimization problem according to the global optimal solution;
[0012] According to the optimization scheme, computing offloading and resource optimization are performed on the tasks, the computing resources and the communication resources.
[0013] In some embodiments, solving the objective function by using a target ephemera algorithm that integrates a particle swarm algorithm and a genetic algorithm to obtain a local optimal solution includes:
[0014] Randomly generate male and female mayfly populations;
[0015] In combination with the inertia factor, updating the first current position of each male mayfly individual in the male mayfly population and the second current position of each female mayfly individual in the female mayfly population;
[0016] Based on the first current position, using the objective function to evaluate a first objective function value of the male mayfly individual;
[0017] Based on the second current position, using the objective function to evaluate a second objective function value of the female mayfly individual;
[0018] Ranking all the male mayfly individuals according to the first objective function value to obtain a first ranking result;
[0019] Ranking all the female mayfly individuals according to the second objective function value to obtain a second ranking result;
[0020] According to the first ranking result and the second ranking result, mating the male and female mayflies to obtain offspring mayflies;
[0021] The offspring mayflies are processed and their fitness is evaluated by using a reverse elite strategy and a mutation behavior algorithm to obtain an evaluation result;
[0022] After the number of mayflies is controlled, the step of combining the particle swarm algorithm to update the first current position and the first current speed of each male mayfly individual in the male mayfly population, and the second current position and the second current speed of each female mayfly individual in the female mayfly population is repeatedly performed until the preset conditions are met, and the optimal evaluation result is taken as the local optimal solution.
[0023] In some embodiments, the step of updating the first current position of each male mayfly individual in the male mayfly population and the second current position of each female mayfly individual in the female mayfly population in combination with the inertia factor comprises:
[0024] Combined with the inertia factor, the first current position is updated according to the male mayfly speed update formula;
[0025] In combination with the inertia factor, the second current position is updated according to the magnetic mayfly speed update formula;
[0026] The expression of the inertia factor is:
[0027]
[0028] Where w represents the inertia factor; w max is the maximum value of the inertia weight; w min is the minimum value of the inertia weight; l is the current iteration number of the target mayfly algorithm, and T is the maximum iteration number of the target mayfly algorithm;
[0029] The male mayfly speed update formula is:
[0030]
[0031] in, represents the updated male mayfly speed; represents the speed of male mayfly i in dimension j at time t; a1 and a2 are positive learning factor constants; pbest ij is the best individual position that male mayfly i has ever reached in dimension j; gbest ij represents the optimal position of individuals in the current population; β represents the mayfly visibility coefficient; r g Indicates the distance between the current position of the male mayfly and its best historical position;
[0032] The female mayfly speed update formula shown is:
[0033]
[0034] Among them, the represents the updated female mayfly speed; represents the velocity of the female mayfly g in dimension h at time t; r mf represents the optimal distance between the current position and the historical position of the female mayfly; fl is the random walk coefficient; r represents the custom parameter; y g Indicates the vertical coordinate of the current position of the female mayfly; x g The horizontal coordinate representing the current position of the female mayfly.
[0035] In some embodiments, in the step of processing the offspring mayflies by using the reverse elite strategy and the mutation behavior algorithm and evaluating the fitness to obtain the evaluation result, the step of processing the offspring mayflies by using the reverse elite strategy includes:
[0036] During each mating, an offspring mayfly is generated that is completely opposite to the elite individual; wherein, the completely opposite means that the value of the offspring mayfly in each dimension is the value of the elite individual in the dimension minus the critical value of the solution space.
[0037] In some embodiments, in the step of processing the offspring mayflies by using the reverse elite strategy and the mutation behavior algorithm and evaluating the fitness to obtain the evaluation result, the step of processing the offspring mayflies by using the mutation behavior algorithm includes:
[0038] Configure random probability;
[0039] Whether the offspring mayfly has gene mutation behavior is determined according to the random probability.
[0040] In some embodiments, after the number of mayflies is controlled, the step of combining the particle swarm algorithm to update the first current position and the first current speed of each male mayfly individual in the male mayfly population, and the second current position and the second current speed of each female mayfly individual in the female mayfly population is repeatedly performed until the preset conditions are met, and the optimal evaluation result is used as the local optimal solution. The step of controlling the number of mayflies includes:
[0041] adding the offspring mayflies to the male mayfly population or the female mayfly population;
[0042] When the number of individuals in a population exceeds a preset individual number threshold, mayfly individuals with low fitness are eliminated.
[0043] In some embodiments, the step of optimizing the local optimal solution by using a taboo search mechanism to obtain a global optimal solution includes:
[0044] A taboo table is suggested, in which the result of each optimization search is put as the initial value of the taboo search, and the initial value is used as the current optimal solution and the current solution;
[0045] Determine a current optimal objective function value and a current objective function value according to the current optimal solution and the current solution;
[0046] Generate a neighborhood solution in the taboo region, take the best of the neighborhood solutions as a candidate solution, and determine a candidate objective function value according to the candidate solution;
[0047] When the candidate objective function value is greater than the current objective function value, taking the candidate solution as the current solution and updating the taboo table;
[0048] When the candidate objective function value is less than the current objective function value, and the candidate objective function value is less than the current optimal objective function value, the candidate solution is used as the current optimal solution, and the taboo table is updated;
[0049] After the search is completed, the current optimal solution is output.
[0050] To achieve the above purpose, another aspect of the embodiment of the present application proposes an intelligent model automatic tuning system based on the edge-cloud collaborative mode, and the system includes:
[0051] The first module is used to obtain tasks, computing resources and communication resources;
[0052] The second module is used to input the objective function of computation offloading and resource optimization problems;
[0053] The third module is used to solve the objective function by integrating the particle swarm algorithm and the genetic algorithm to obtain a local optimal solution;
[0054] The fourth module is used to optimize the local optimal solution through a taboo search mechanism to obtain a global optimal solution;
[0055] A fifth module is used to determine an optimization solution for the computation offloading and resource optimization problem according to the global optimal solution;
[0056] The sixth module is used to perform computing offloading and resource optimization on the tasks, computing resources and communication resources according to the optimization scheme.
[0057] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0058] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0059] The embodiments of the present application include at least the following beneficial effects: The present application provides an intelligent model automatic tuning method and system based on the edge-cloud collaborative mode, which obtains tasks, computing resources and communication resources; inputs the objective function of computing offloading and resource optimization problems; solves the objective function by the target ephemera algorithm that integrates the particle swarm algorithm and the genetic algorithm to obtain a local optimal solution; optimizes the local optimal solution through the taboo search mechanism to obtain a global optimal solution; determines the optimization plan for computing offloading and resource optimization problems based on the global optimal solution; according to the optimization plan, performs the overall steps of computing offloading and resource optimization for tasks, computing resources and communication resources, and improves the local optimization capability in the early stage of population iteration and the overall optimization capability in the later stage, thereby improving the tuning rate, and having good robustness and adaptability. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0061] Figure 1 This is a diagram of the cloud, edge, and end collaborative networking architecture provided by an embodiment of the present application;
[0062] Figure 2 It is a step diagram of the intelligent model automatic tuning method based on the edge-cloud collaborative mode provided in an embodiment of the present application;
[0063] Figure 3 It is a flowchart of an embodiment of the intelligent model automatic tuning method based on the edge-cloud collaborative mode provided in an embodiment of the present application;
[0064] Figure 4 It is a structural diagram of the intelligent model automatic tuning system based on the edge-cloud collaborative mode provided in an embodiment of the present application;
[0065] Figure 5 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0067] Although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first / S100", "second / S200", etc. in the specification, claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0068] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0069] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0070] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0071] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0072] Reference Figure 1 As shown in the figure, computing tasks can intelligently select task processing locations based on factors such as the current system environment, remaining resources, and task characteristics. For tasks that are sensitive to latency and require little computation, placing them on local devices or edge servers can reduce communication overhead and further sink computing power; for tasks that are not sensitive to latency and require a lot of computation, they can be offloaded to the central cloud server or other edge servers in the network, freeing up computing resources for other tasks and ensuring maximum benefits for the system.
[0073] At present, the main research content of computation offloading is to find the optimal solution, that is, to customize the optimization strategy. One of the main goals of computation offloading is to reasonably allocate computing needs and improve user experience. In general, there are the following performance requirements:
[0074] (1) Reduce energy consumption. In computational offloading, the collaborative energy consumption mainly includes the computational energy consumption of processing computing tasks and the transmission energy consumption generated by transmitting tasks to the server. Reducing system energy consumption is one of the important directions of computational offloading.
[0075] (2) Reduce latency. For some tasks, the maximum completion latency of the system is also an important indicator. Generally speaking, different computation offloading decisions will result in different task completion times. The task completion latency mainly includes three aspects: the first is the task upload time of the local device; the second is the event of task computation processing; and the third is the time to return the computation result to the local device. In addition, if the random arrival of tasks and the coordination between cloud-edge and edge-edge are considered, the waiting time of the tasks also needs to be considered.
[0076] (3) Reduce rental costs. In the actual process of hardware system unloading, additional fees may be charged to encourage other edge servers to open up resources, including the costs of computing resources and transmission resources. This can further encourage more computing resources to participate.
[0077] The offloading methods of computing tasks can be divided into full offloading and partial offloading. Full offloading refers to the process in which the entire computing task is offloaded to the server for execution or the entire task is executed on the local device; partial offloading refers to the process in which a part of a computing task is executed on the local device, while the rest is offloaded to the server for execution. For some relatively simple tasks, there is no sub-task relationship, and they must be executed as a whole on the local device or server; for divisible tasks, a certain proportion of the task can be chosen to be executed on the server or on the local device.
[0078] Service resource optimization is similar to computing offloading technology. Server resource allocation technology is also a core issue in mobile edge computing. However, local devices do not need to consider resource optimization during offloading, but multi-local device systems need to consider the reasonable allocation of computing and communication resources during offloading. The allocation of communication resources usually includes aspects such as channel allocation and power allocation, and the allocation of computing resources usually refers to the allocation of server computing power.
[0079] In general, service resource optimization has the following performance requirements:
[0080] (1) Computing resource optimization. Different local devices usually generate tasks with different data volumes and thus have different computing resource requirements. Reasonable allocation of limited computing resources between local devices and edge servers to maximize resource utilization efficiency is a key part of improving system efficiency and user service quality.
[0081] (2) Communication resource optimization. For the wireless communication process between local devices and edge servers, when multiple local devices perform data transmission at the same time, they will face the problem of how to allocate communication resources (such as power allocation, wireless channel allocation, and bandwidth allocation). If there is no reasonable communication resource allocation plan, some users' computing tasks will be forced to wait for transmission or be unloaded with extremely low transmission efficiency, which will affect the timeliness of the task. Therefore, it is of great significance to optimize the allocation of communication resources reasonably.
[0082] (3) Joint optimization of computing and communication resources, that is, dealing with the allocation of computing resources and communication resources at the same time.
[0083] However, most of the current methods for solving edge-cloud collaboration related problems mostly use traditional combinatorial optimization methods or basic intelligent methods. These methods generally have problems such as complex algorithms, poor robustness, and poor adaptability.
[0084] In order to further improve the tuning rate, the embodiment of the present application proposes an intelligent model automatic tuning method and system based on the edge-cloud collaborative mode on the basis of the standard mayfly algorithm. This scheme significantly improves the local optimization capability in the early stage of population iteration and the overall optimization capability in the later stage, which can avoid falling into local extreme values and reduce high-dimensional disturbances.
[0085] The automatic tuning method of intelligent models based on edge-cloud collaborative mode provided in the embodiment of the present application relates to the field of computer technology. The automatic tuning method of intelligent models based on edge-cloud collaborative mode provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the automatic tuning method of intelligent models based on edge-cloud collaborative mode, etc., but is not limited to the above forms.
[0086] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0087] Figure 2 This is an optional flowchart of the intelligent model automatic tuning method based on the edge-cloud collaborative mode provided in an embodiment of the present application. Figure 2 The method may include but is not limited to steps S100 to S600.
[0088] Step S100, obtaining tasks, computing resources and communication resources.
[0089] Specifically, the embodiments of the present application can be used to handle the task allocation of edge computing, such as information security, smart cities or real-time detection and other application scenarios. These applications often require a large amount of data for calculation, and one device is not enough to complete them. Therefore, multiple devices are required. The computing power of each device is different, and the distance from the data processing center is also different, so task allocation is required. In step S100, the task can be the computing demand generated by the application in the above field; the computing resource can be the computing power of each device; due to the different distances from the computing device to the data processing center, the energy required during the data transmission process The delay is also different, and the communication resources can be determined by the computing device and the equipment, lines or pipes (channels) facilities required to reach the data processing center, the communication room, radio frequency, power line carrier frequency, communication bandwidth, communication number, IP address and related communication software.
[0090] Step S200, inputting the objective function of the computation offloading and resource optimization problem.
[0091] Step S300, solving the objective function by integrating the particle swarm algorithm and the genetic algorithm to obtain a local optimal solution.
[0092] Step S400, optimizing the local optimal solution through a taboo search mechanism to obtain a global optimal solution.
[0093] Step S500: determining an optimization solution for the computation offloading and resource optimization problem based on the global optimal solution.
[0094] Step S600: performing computation offloading and resource optimization on the task, the computing resources and the communication resources according to the optimization scheme.
[0095] Steps S100 to S600 shown in the embodiment of the present application improve the local optimization capability in the early stage of population iteration and the overall optimization capability in the later stage, improve the tuning rate, and have good robustness and adaptability.
[0096] In some embodiments, step S300 may include but is not limited to steps S310 to S390:
[0097] Step S310, randomly generating male mayfly populations and female mayfly populations;
[0098] Step S320, updating the first current position of each male mayfly individual in the male mayfly population and the second current position of each female mayfly individual in the female mayfly population in combination with the inertia factor;
[0099] Step S330, based on the first current position, using the objective function to evaluate a first objective function value of the male mayfly individual;
[0100] Step S340, based on the second current position, using the objective function to evaluate a second objective function value of the female mayfly individual;
[0101] Step S350, ranking all the male mayfly individuals according to the first objective function value to obtain a first ranking result;
[0102] Step S360, ranking all the female mayfly individuals according to the second objective function value to obtain a second ranking result;
[0103] Step S370, mating the male and female mayflies according to the first ranking result and the second ranking result to obtain offspring mayflies;
[0104] Step S380, processing the offspring mayflies and evaluating their fitness by using the reverse elite strategy and the mutation behavior algorithm to obtain an evaluation result;
[0105] Step S390, after controlling the number of mayflies, repeatedly execute the step of combining with the particle swarm algorithm to update the first current position and the first current speed of each male mayfly individual in the male mayfly population, and the second current position and the second current speed of each female mayfly individual in the female mayfly population, until the preset conditions are met, and take the optimal evaluation result as the local optimal solution.
[0106] In step S320 of some embodiments, the following steps may be included but not limited to S321 to S322:
[0107] Step S321, combining the inertia factor and updating the first current position according to the male mayfly speed update formula;
[0108] Step S322: updating the second current position according to the magnetic mayfly speed update formula in combination with the inertia factor.
[0109] In step S321 of some embodiments, the expression of the inertia factor is:
[0110]
[0111] Where w represents the inertia factor; w max is the maximum value of the inertia weight; w min is the minimum value of the inertia weight; l is the current iteration number of the target mayfly algorithm, and T is the maximum iteration number of the target mayfly algorithm;
[0112] The male mayfly speed update formula is:
[0113]
[0114] Among them, among them, represents the updated male mayfly speed; represents the speed of male mayfly i in dimension j at time t; a1 and a2 are positive learning factor constants; pbest ij is the best individual position that male mayfly i has ever reached in dimension j; gbest ij represents the optimal position of individuals in the current population; β represents the mayfly visibility coefficient; r g Indicates the distance between the current position of the male mayfly and its best historical position;
[0115] The female mayfly speed update formula shown is:
[0116]
[0117] Among them, the represents the updated female mayfly speed; represents the velocity of the female mayfly g in dimension h at time t; r mf represents the optimal distance between the current position and the historical position of the female mayfly; fl is the random walk coefficient; r represents the custom parameter; y g Indicates the vertical coordinate of the current position of the female mayfly; x g The horizontal coordinate representing the current position of the female mayfly.
[0118] In step S380 of some embodiments, the step of processing the offspring mayfly with the reverse elite strategy may include: generating an offspring mayfly that is completely opposite to the elite individual each time mating occurs; wherein, completely opposite means that the value of the offspring mayfly in each dimension is obtained by subtracting the value of the elite individual in the dimension from the critical value of the solution space.
[0119] In step S380 of some embodiments, the step of processing the offspring mayfly by using a mutation behavior algorithm may include: configuring a random probability; and determining whether the offspring mayfly has a gene mutation behavior according to the random probability.
[0120] In step S390 of some embodiments, the step of controlling the number of mayflies may include: adding the offspring mayflies to the male mayfly population or the female mayfly population; when the number of individuals in the population exceeds a preset individual number threshold, eliminating mayfly individuals with low fitness.
[0121] In some embodiments, step S400 may include but is not limited to the following steps S410 to S460:
[0122] Step S410, suggesting a taboo table, in which the result of each optimization search is placed as the initial value of the taboo search, and the initial value is used as the current optimal solution and the current solution;
[0123] Step S420, determining a current optimal objective function value and a current objective function value according to the current optimal solution and the current solution;
[0124] Step S430, generating a neighborhood solution in the taboo region, taking the best of the neighborhood solutions as a candidate solution, and determining a candidate objective function value according to the candidate solution;
[0125] Step S440, when the candidate objective function value is greater than the current objective function value, taking the candidate solution as the current solution and updating the taboo table;
[0126] Step S450, when the candidate objective function value is less than the current objective function value, and the candidate objective function value is less than the current optimal objective function value, the candidate solution is used as the current optimal solution, and the taboo table is updated;
[0127] Step S460: After the search is completed, the current optimal solution is output.
[0128] The following is a detailed description and explanation of the solution of the embodiment of the present invention in combination with specific application examples of computing offloading and resource optimization scenarios:
[0129] In an embodiment of the present application, an intelligent model automatic tuning method based on edge-cloud collaborative mode is provided, which finds an optimal solution when servers and computing tasks can be allocated in multiple ways. An intelligent model is proposed to imitate the biological behavior of mayflies, and transform the above-mentioned problem of finding the optimal solution into which mayfly can live the longest in the natural state to solve the problem. For different situations, parameters can be adaptively adjusted to find the optimal solution. It can be applied to the joint optimization of computing and communication resources.
[0130] The problem of computing and offloading resource optimization is a tuning problem with multiple local peak solution spaces. According to the optimization goal of the problem, the problem can be expressed as:
[0131]
[0132] Or it can be expressed as:
[0133]
[0134] Among them, min represents the minimum value; max represents the maximum value; f(x) represents the objective function; x i Indicates the number of devices used; a i Indicates the minimum number of devices used; b i Indicates the maximum number of devices in use.
[0135] The solution of this application mainly obtains tasks, computing resources and communication resources; inputs the objective function of the above-mentioned computing offloading and resource optimization problem; solves the objective function through the target ephemera algorithm that integrates the particle swarm algorithm and the genetic algorithm to obtain the local optimal solution. The local optimal solution is optimized through the taboo search mechanism to obtain the global optimal solution; according to the global optimal solution, the optimization plan for computing offloading and resource optimization problem is determined; according to the optimization plan, computing offloading and resource optimization are performed on tasks, computing resources and communication resources.
[0136] Reference Figure 3 After obtaining the tasks, computing resources, and communication resources and inputting the objective function, first, two groups of mayflies are randomly generated, representing the male population and the female population respectively. That is, each mayfly individual is randomly placed in the solution space as a d-dimensional vector x = (x1, x2, …, x d) represents the potential solution and evaluates its performance according to the predefined objective function f(x). The flight speed of the mayfly v = (v1, v2…, v d ) is defined as the change in its position. The flight direction of each mayfly is determined by a combination of individual and social flight experience. Specifically, each mayfly adjusts its trajectory toward its individual best position so far and toward the group best position reached by all mayflies in the group so far.
[0137] Male mayflies gather in groups, which means that the position of each male mayfly is adjusted based on its own experience and that of its neighbors. is the position of mayfly i in the search space at time step t, which is obtained by adding a velocity to the current position Its position can be changed. The position of male mayfly i at t+1 can be expressed as:
[0138]
[0139] Since male mayflies always perform their wedding dance above the water, their speed is not too fast and they keep moving. Therefore, the speed of male mayflies can be expressed as:
[0140]
[0141] The above formula (2) is the speed of the male mayfly at time t in dimension j = 1, ..., n, is the position of male mayfly i on dimension j at time t, a1 and a2 are positive learning factor constants, which are used to indicate the degree to which male mayflies are affected by individual experience and social experience, pbest i It is the optimal individual position that a male mayfly has ever reached.
[0142] Finally, β is a fixed visibility coefficient in the formula, which is used to limit the visibility of mayflies. p is x i and pbest i The Cartesian distance between g is x i The Cartesian distance between and gbest can be calculated as:
[0143]
[0144] where x ij is the position component of mayfly i at position j, X i Corresponds to pbest and gbest; X ij represents the position component of the best mayfly i at position j.
[0145] Considering the minimization problem, the optimal position of the male mayfly i at the next time t+1 can be calculated as:
[0146]
[0147] Where f is the objective function used to evaluate the quality of the offloading solution.
[0148] The optimal position gbest of the group at time t can be expressed as:
[0149] gbest=min{f(pbest1),…,f(pbest N )} (5)
[0150] In formula (5), N is the total number of male mayflies in the population.
[0151] In order to ensure the normal operation of the algorithm, the best mayflies in the group should be able to continue to perform their wedding dance in the group. Therefore, the best mayflies must constantly change their flight speed, which can be expressed as:
[0152] Among them, d is the dance coefficient, and r is a random number in the range of [-1,1]. This up and down movement of the wedding dance introduces a possibility of expanding exploration for the algorithm.
[0153] Unlike male mayflies, female mayflies do not live in groups. Instead, they fly to groups of males for reproduction. is the position of the female mayfly g in the search space at time step t, which is obtained by adding the velocity to the current position The position of the female mayfly can be changed, namely:
[0154]
[0155] The attraction process of female mayflies to male mayflies is modeled as a deterministic process. That is, according to their fitness functions, the best females should be attracted to the best males, the second best females should be attracted to the second best males, and so on. Therefore, the speed of female mayflies can be expressed as:
[0156]
[0157] In the above formula is the velocity of the female mayfly g in dimension h = 1, 2, …, n; is the position of the female mayfly g in the hth dimension at time t, a2 is the positive learning factor constant, β is the fixed visibility coefficient of the mayfly, r mfis the formula used to calculate the Cartesian distance between male and female mayflies. Finally, fl is the random walk coefficient, which is applicable when the female mayfly is not attracted to the male mayfly. At this time, the female mayfly will perform a random walk, and r is a random number in the range of [-1,1].
[0158] The crossover operator represents the mating process of two mayflies: a father is selected from the male population, and a mother is selected from the female population. The way the father and mother are selected is the same as the way the female mayfly is attracted to the male mayfly. In other words, based on their fitness functions, the best female mayfly mates with the best male mayfly, the second best female mayfly mates with the second best male mayfly, and so on. The two offspring produced after mating can be expressed as:
[0159]
[0160] Where male is the father, female is the mother, L is a random value within a specific range, and the initial speed of the offspring is set to 0.
[0161] In some cases, the speed may grow to a huge value, so when updating the speed of a mayfly that is far away from the group, the mayfly may escape from the solution space. Considering this and drawing inspiration from the real mayfly movement, the mayfly should not have too large a speed in the iteration to ensure that the mayfly can always stay on the water surface. In the embodiment of the present application, each mayfly can obtain a fixed maximum speed V at most. max , the speed of each male mayfly can be expressed as:
[0162]
[0163] For female mayflies, replace Replace with
[0164] Importantly, even if V max controls the pace of exploration of the search space, but too small a value may prevent development beyond the local optimum. max The possible values are:
[0165] V max =rand*(x max -x min ) (11)
[0166] The random value rand∈(0,1] in the above formula.
[0167] The wedding dance of male mayflies and the random walk of female mayflies are two very powerful local search methods that can help the algorithm escape the local optimum. However, since the wedding dance or random walk usually takes a large initial value, performing a random walk may cause the mayfly to move to a worse search area. This can be alleviated by gradually reducing the amplitude of the wedding dance and random walk in the iteration. Therefore, a geometric series formula can be used to update these two values:
[0168]
[0169] Where t is the population iteration count, and δ is a fixed value ranging from (0,1).
[0170] Based on this, this application optimizes the mayfly algorithm to obtain the target mayfly algorithm. The specific optimization contents are as follows:
[0171] (1) Fusion Particle Swarm Optimization
[0172] Add the inertia factor w. From formula (2) and formula (8), we know that the speed of each iteration of male and female mayflies is completely inherited from the speed in the previous iteration, which will cause the speed of the mayflies to rise rapidly until it reaches the maximum speed limit specified by formula (10), which can prevent the mayflies from developing too high a speed and maintaining movement at this limited speed. However, sometimes it is necessary to reduce the acceleration to slow down the speed evolution of the mayflies in order to better control the balance between the exploration and development capabilities of the mayflies.
[0173] The embodiment of the present application adds an inertia factor w to the speed update of the standard mayfly algorithm, which helps to improve the local optimization ability of the algorithm in the early iterations. Therefore, the speed update formula of the male mayfly can be modified as follows:
[0174]
[0175] At the same time, the speed update formula of the female mayfly can be modified to:
[0176]
[0177] Different from the inertia weight in the particle swarm algorithm, which is randomly selected in the range of (0,1], the inertia factor in the improved mayfly algorithm is stipulated to be gradually reduced during the iteration process to utilize certain specific areas. The update of the inertia factor is defined by the following formula:
[0178]
[0179] where w max and w minis the maximum and minimum value of the inertia weight, t is the current iteration number of the improved mayfly algorithm, and T is the maximum iteration number of the improved mayfly algorithm.
[0180] (2) Fusion Genetic Algorithm
[0181] The genetic algorithm is integrated into the Mayfly algorithm as a whole, and now there are reverse elite strategies and gene mutation behaviors, as well as growth and extinction behaviors.
[0182] Reverse elite strategy: that is, at each mating, an individual that is completely opposite to the elite individual is generated. The reverse meaning is that the value in each dimension is the critical value of the solution space minus the value of the elite individual in that dimension, and competition leads to better convergence.
[0183] Gene mutation behavior: When reproducing in the above mating process, the offspring will mutate with a certain probability. When the random probability is less than the threshold set by the algorithm in advance, gene mutation behavior is found. When the random probability is greater than the threshold set by the algorithm in advance, no gene mutation behavior occurs. Gene mutation behavior is achieved by randomly perturbing the variables in one dimension.
[0184] Growth and death behavior: Growth and death behavior has been added. Different from the genetic algorithm that replaces the parent generation with the offspring to keep the population unchanged, this mechanism allows the offspring to explore the algorithm together with the parent generation, increasing the algorithm's exploration ability. Since the food in a body of water is limited, when the number of individuals in the population exceeds the pre-set threshold, the population will enter a population decline mode due to food shortage. Weak and sick mayflies (i.e., low fitness) will be eliminated, and those with high fitness will remain. In the decline mode, the population reproduces as usual, but the number of eliminated individuals is greater than the number of new individuals, so as to balance the algorithm's computational efficiency and exploration ability.
[0185] (3) Taboo Search Mechanism
[0186] The specific taboo search mechanism is as follows. The specific taboo search mechanism is as follows.
[0187] ① First, by establishing a taboo table, put the results of each search into the taboo table, and put the results of each search into the taboo table as the initial value of the taboo search, and use it as the current optimal solution X best and the current solution X now , and take their corresponding objective function values as the function value Y of the current solution now And the solution of ad hoc criteria is best so far.
[0188] ② Generate neighborhood solutions in the taboo area and take the best one as the candidate solution X candidate , the corresponding function value is Y candidate , if Ycandidate > Y now , then take X candidate as the current solution X for the next iteration now , and update the tabu list;
[0189] ③ If Y candidate < Y now , and Y candidate < best so far, take X candidate as the current optimal solution X best , and add it to the tabu list. By incorporating the tabu search mechanism into the algorithm, it is possible to prevent repeated search for local optimal values during the optimization process, further improve the global search ability of the algorithm, and reduce the task completion delay.
[0190] In summary, the embodiments of the present application at least include the following beneficial effects: The present application provides an intelligent model automatic tuning method and system based on the edge-cloud collaboration mode. The solution obtains tasks, computing resources, and communication resources; inputs the objective function of the computing offloading and resource optimization problem; solves the objective function through the objective mayfly algorithm that combines the particle swarm algorithm and the genetic algorithm to obtain a local optimal solution; performs optimization processing on the local optimal solution through the tabu search mechanism to obtain a global optimal solution; determines the optimization solution for the computing offloading and resource optimization problem according to the global optimal solution; and performs the overall steps of computing offloading and resource optimization on tasks, computing resources, and communication resources according to the optimization solution, and improves the local optimization ability in the early stage of population iteration and the overall optimization ability in the later stage, improves the tuning rate, and has good robustness and adaptability.
[0191] Please refer to Figure 4 , the embodiments of the present application also provide an intelligent model automatic tuning system based on the edge-cloud collaboration mode, which can implement the above intelligent model automatic tuning method based on the edge-cloud collaboration mode. The system includes:
[0192] The first module 101 is used to obtain tasks, computing resources, and communication resources;
[0193] The second module 102 is used to input the objective function of the computing offloading and resource optimization problem;
[0194] The third module 103 is used to solve the objective function through the objective mayfly algorithm that combines the particle swarm algorithm and the genetic algorithm to obtain a local optimal solution;
[0195] The fourth module 104 is used to perform optimization processing on the local optimal solution through the tabu search mechanism to obtain a global optimal solution;
[0196] The fifth module 105 is used to determine the optimization solution for the computing offloading and resource optimization problem according to the global optimal solution;
[0197] The sixth module 106 is used to perform computing offloading and resource optimization on the task, the computing resources and the communication resources according to the optimization scheme.
[0198] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0199] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned intelligent model automatic tuning method based on the edge-cloud collaborative mode when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0200] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0201] See also Figure 5 , Figure 5 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0202] The processor 201 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0203] The memory 202 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 202 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 202, and the processor 201 calls and executes the intelligent model automatic tuning method based on the edge-cloud collaborative mode of the embodiment of this application;
[0204] Input / output interface 203, used to implement information input and output;
[0205] The communication interface 204 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0206] Bus 205 , which transmits information between various components of the device (e.g., processor 201 , memory 202 , input / output interface 203 , and communication interface 204 );
[0207] The processor 201 , the memory 202 , the input / output interface 203 and the communication interface 204 are connected to each other in communication within the device via the bus 205 .
[0208] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned intelligent model automatic tuning method based on the edge-cloud collaborative mode.
[0209] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0210] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0211] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0212] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0213] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0214] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0215] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0216] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0217] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0218] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0219] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0220] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0221] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. An intelligent model automatic tuning method based on edge-cloud collaboration mode, characterized in that: include: Acquire tasks, computing resources, and communication resources; Input the objective function of computation offloading and resource optimization problem; The objective function is solved by integrating the particle swarm algorithm and the genetic algorithm to obtain a local optimal solution; The local optimal solution is optimized by a taboo search mechanism to obtain a global optimal solution; Determine an optimization solution for the computation offloading and resource optimization problem according to the global optimal solution; According to the optimization scheme, computing offloading and resource optimization are performed on the tasks, the computing resources and the communication resources.
2. The method according to claim 1, characterized in that The objective function is solved by a target ephemera algorithm that integrates a particle swarm algorithm and a genetic algorithm to obtain a local optimal solution, including: Randomly generate male and female mayfly populations; In combination with the inertia factor, updating the first current position of each male mayfly individual in the male mayfly population and the second current position of each female mayfly individual in the female mayfly population; Based on the first current position, using the objective function to evaluate a first objective function value of the male mayfly individual; Based on the second current position, using the objective function to evaluate a second objective function value of the female mayfly individual; Ranking all the male mayfly individuals according to the first objective function value to obtain a first ranking result; Ranking all the female mayfly individuals according to the second objective function value to obtain a second ranking result; According to the first ranking result and the second ranking result, mating the male and female mayflies to obtain offspring mayflies; The offspring mayflies are processed and their fitness is evaluated by using a reverse elite strategy and a mutation behavior algorithm to obtain an evaluation result; After the number of mayflies is controlled, the step of combining the particle swarm algorithm to update the first current position and the first current speed of each male mayfly individual in the male mayfly population, and the second current position and the second current speed of each female mayfly individual in the female mayfly population is repeatedly performed until the preset conditions are met, and the optimal evaluation result is taken as the local optimal solution.
3. The method according to claim 2, characterized in that The step of updating the first current position of each male mayfly individual in the male mayfly population and the second current position of each female mayfly individual in the female mayfly population in combination with the inertia factor comprises: Combined with the inertia factor, the first current position is updated according to the male mayfly speed update formula; In combination with the inertia factor, the second current position is updated according to the magnetic mayfly speed update formula; The expression of the inertia factor is: Where w represents the inertia factor; w max is the maximum value of the inertia weight; w min is the minimum value of the inertia weight; l is the current iteration number of the target mayfly algorithm, and T is the maximum iteration number of the target mayfly algorithm; The male mayfly speed update formula is: in, represents the updated male mayfly speed; represents the speed of male mayfly i in dimension j at time t; a1 and a2 are positive learning factor constants; pbest ij is the best individual position that male mayfly i has ever reached in dimension j; gbest ij represents the optimal position of individuals in the current population; β represents the fixed visibility coefficient of the mayfly; r g Indicates the distance between the current position of the male mayfly and its best historical position; The female mayfly speed update formula shown is: Among them, the represents the updated female mayfly speed; represents the velocity of the female mayfly g in dimension h at time t; r mf represents the optimal distance between the current position and the historical position of the female mayfly; fl is the random walk coefficient; r represents the custom parameter; y g Indicates the vertical coordinate of the current position of the female mayfly; x g The horizontal coordinate representing the current position of the female mayfly.
4. The method according to claim 2, characterized in that: In the step of processing the offspring mayflies by using the reverse elite strategy and the mutation behavior algorithm and evaluating the fitness to obtain the evaluation result, the step of processing the offspring mayflies by using the reverse elite strategy includes: During each mating, an offspring mayfly is generated that is completely opposite to the elite individual; wherein, the completely opposite means that the value of the offspring mayfly in each dimension is the value of the elite individual in the dimension minus the critical value of the solution space.
5. The method according to claim 2, characterized in that: In the step of processing the offspring mayflies by using the reverse elite strategy and the mutation behavior algorithm and evaluating the fitness to obtain the evaluation result, the step of processing the offspring mayflies by using the mutation behavior algorithm includes: Configure random probability; Whether the offspring mayfly has gene mutation behavior is determined according to the random probability.
6. The method according to claim 2, characterized in that After the number of mayflies is controlled, the step of combining the particle swarm algorithm to update the first current position and the first current speed of each male mayfly individual in the male mayfly population, and the second current position and the second current speed of each female mayfly individual in the female mayfly population is repeatedly performed until the preset conditions are met, and the optimal evaluation result is used as the local optimal solution. The step of controlling the number of mayflies includes: adding the offspring mayflies to the male mayfly population or the female mayfly population; When the number of individuals in a population exceeds a preset individual number threshold, mayfly individuals with low fitness are eliminated.
7. The method according to claim 1, characterized in that The step of performing optimization processing on the local optimal solution by using a taboo search mechanism to obtain a global optimal solution includes: A taboo table is suggested, in which the result of each optimization search is placed as the initial value of the taboo search, and the initial value is used as the current optimal solution and the current solution; Determine a current optimal objective function value and a current objective function value according to the current optimal solution and the current solution; Generate a neighborhood solution in the taboo region, take the best of the neighborhood solutions as a candidate solution, and determine a candidate objective function value according to the candidate solution; When the candidate objective function value is greater than the current objective function value, taking the candidate solution as the current solution and updating the taboo table; When the candidate objective function value is less than the current objective function value, and the candidate objective function value is less than the current optimal objective function value, the candidate solution is used as the current optimal solution, and the taboo table is updated; After the search is completed, the current optimal solution is output.
8. Based on the intelligent model automatic tuning system in edge-cloud collaborative mode, it is characterized by: include: The first module is used to obtain tasks, computing resources and communication resources; The second module is used to input the objective function of computation offloading and resource optimization problems; The third module is used to solve the objective function by integrating the particle swarm algorithm and the genetic algorithm to obtain a local optimal solution; The fourth module is used to optimize the local optimal solution through a taboo search mechanism to obtain a global optimal solution; A fifth module is used to determine an optimization solution for the computation offloading and resource optimization problem according to the global optimal solution; The sixth module is used to perform computing offloading and resource optimization on the tasks, computing resources and communication resources according to the optimization scheme.
9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 7.
10. A computer storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the method according to any one of claims 1 to 7 when executed by the processor.
