A method and system for sharing edge computing resources
Through the edge computing resource sharing system, the computing power needs of production equipment are analyzed and clustered, a complementary demand map is established, and an optimal distribution strategy is generated, which solves the problem of low utilization of computing power resources of industrial production equipment and improves processing efficiency and system Flexibility and reduced operating costs.
Patent Information
- Application Number
- CN202410988031.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-23
AI Technical Summary
In the existing technology, the utilization rate of computing resources of industrial production equipment is low, resulting in low efficiency in processing production tasks, and increased energy consumption and waste of resources through hardware upgrades.
Through the edge computing resource sharing system, the historical computing resource demand of production equipment is obtained, the target equipment is analyzed and clustered, a demand complementary map is established, the optimal edge computing power distribution strategy is generated, and computing resource allocation and regulation are optimized.
It improves computing resource utilization and data processing efficiency, reduces operating costs, enhances system flexibility and stability, and reduces resource waste and bottlenecks.
Smart Images

Figure CN118519788B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to an edge computing resource sharing method and system. Background Art
[0002] With the development of the industrial Internet, the amount of data generated in industrial production is becoming increasingly large, resulting in a sharp increase in the load pressure of production equipment on computing power. Some production tasks require enormous computing power to complete. Therefore, how to reasonably allocate and share computing power resources has become a focus of research for technical personnel in this field.
[0003] In the prior art, a closed computing architecture is used for production equipment, and computing resources form islands inside the production equipment. In order to meet the computing power requirements of different production tasks, the corresponding computing power is improved by upgrading the hardware of the production equipment. The control characteristics of the production equipment determine that most of the computing resources are idle, but some production tasks require the support of high-performance computing resources, which cannot be achieved only by the computing resources of the production equipment itself. Increasing the computing power of the production equipment by upgrading the hardware will increase the overall energy consumption of the production equipment and waste of resources. Therefore, the prior art has the technical problems of low utilization of computing resources and low processing efficiency of production tasks.
[0004] Therefore, it is necessary to provide an edge computing resource sharing method and system to improve the utilization rate of computing resources and data processing efficiency. Summary of the invention
[0005] The present invention provides an edge computing resource sharing system, comprising: a data acquisition module, used to obtain the historical computing resource requirements of multiple production devices; a demand analysis module, used to determine the computing resource requirement characteristics of each production device based on the historical computing resource requirements of the production device, determine multiple target production devices from the multiple production devices based on the computing resource requirement characteristics of each production device, cluster the multiple target production devices based on the computing resource requirement characteristics of each target production device, and determine multiple target production device clusters; a graph establishment module, used to repeatedly perform, for any two target production device clusters, sampling one target production device from each of the two target production device clusters, and clustering the target production devices based on the computing resource requirement characteristics of each target production device. The historical computing power resource requirements of the production equipment are calculated, and the equipment demand complementary parameters are calculated until the preset conditions are met. Based on the equipment demand complementary parameters, a demand complementary map is established, wherein the demand complementary map is used to record the cluster demand complementary parameters between any two of the target production equipment clusters and the target production equipment included in each of the target production equipment clusters; a distribution optimization module is used to generate an optimal edge computing power distribution strategy based on the computing power demand characteristics of each of the production equipment and the demand complementary map, and to set multiple edge computing power terminals based on the optimal edge computing power distribution strategy; a computing power regulation module is used to adjust the optimal edge computing power distribution strategy in response to new production equipment instructions, and is also used to adjust the optimal edge computing power distribution strategy in response to production equipment failure instructions.
[0006] Furthermore, the demand analysis module determines the computing power demand characteristics of the production equipment based on the historical computing power resource requirements of the production equipment, and determines multiple target production equipment from the multiple production equipment based on the computing power demand characteristics of each of the production equipment, including: calculating the overall demand change parameters of the production equipment based on the historical computing power resource requirements of the production equipment; dividing the historical computing power resource requirements of the production equipment into multiple historical demand segments based on a preset time window, and calculating the segment demand mean and segment demand change parameters of each of the historical demand segments, wherein the computing power demand characteristics of the production equipment at least include the overall demand change parameters of the production equipment, the segment demand mean and the segment demand change parameters of each of the historical demand segments; calculating the demand change value of the production equipment based on the overall demand change parameters and the segment demand change parameters of the production equipment; when the demand change value is greater than the preset demand change value threshold, determining that the production equipment is a target production equipment.
[0007] Furthermore, the demand analysis module clusters the multiple target production devices based on the computing power demand characteristics of each of the target production devices to determine multiple target production device clusters, including: for any two of the target production devices, calculating the demand similarity between the two target production devices based on the segment demand mean and segment demand change parameters of each of the historical demand segments of the two target production devices; clustering the multiple target production devices based on the demand similarity between any two of the target production devices through an iterative clustering analysis algorithm to determine multiple target production device clusters.
[0008] Furthermore, the graph establishment module repeatedly executes sampling of one target production device from each of the two target production equipment clusters, and based on the historical computing resource requirements of the target production devices sampled from the two target production equipment clusters, calculates the equipment demand complementary parameters until the preset conditions are met, including: S11, sampling one target production device from each of the two target production equipment clusters; S12, for each sampled target production device, fitting the segment demand mean of each of the historical demand segments of the target production device to generate a mean change curve, fitting the segment demand change parameters of each of the historical demand segments of the target production device to generate a fluctuation change curve, performing local mean decomposition on the mean change curve to obtain multiple first product function components and first residual components, and performing local mean decomposition on the fluctuation change curve to obtain A plurality of second product function components and a second residual component, based on the plurality of second product function components and the second residual components, a plurality of first product function components and the first residual component, the mean change curve is denoised to obtain a denoised mean change curve; S13, based on the denoised mean change curve of the two sampled target production equipment, the equipment demand complementary parameters of the current iteration are calculated; S14, based on the equipment demand complementary parameters of the current iteration and the equipment demand complementary parameters of the historical iteration, the complementary discrete parameters are calculated; S15, judging whether the complementary discrete parameters are less than a preset complementary discrete parameter threshold, if so, the preset conditions are met and the iteration is terminated, if not, executing S16; S16, judging whether the number of samplings of the target production equipment included in the two target production equipment clusters is greater than the preset number threshold, if so, the preset conditions are met and the iteration is terminated, if not, executing S11.
[0009] Furthermore, the equipment demand complementarity parameter is calculated based on the following formula: ,in, is the complementary discrete parameter between the i-th target production equipment and the j-th target production equipment, is the first sampled value from the denoised mean change curve corresponding to the i-th target production equipment. The value corresponding to each time point, is the first sampled value from the denoised mean change curve corresponding to the jth target production equipment. The value corresponding to each time point, is the total number of sampled time points, is the preset parameter, is a positive number, are the initial complementary discrete parameters.
[0010] Furthermore, the map establishment module establishes a demand complementarity map based on the equipment demand complementarity parameters, including: for any two of the target production equipment clusters, when the complementary discrete parameter is less than a preset complementary discrete parameter threshold, calculating the mean of the equipment demand complementarity parameters of the current iteration and the equipment demand complementarity parameters of the historical iteration as the cluster demand complementarity parameters between the two target production equipment clusters; for any two of the target production equipment clusters, when the complementary discrete parameter is greater than or equal to the preset complementary discrete parameter threshold, calculating the cluster demand complementarity parameters between the two target production equipment clusters based on the mean of the equipment demand complementarity parameters of the current iteration and the equipment demand complementarity parameters of the historical iteration according to preset correction rules; establishing the demand complementarity map based on the cluster demand complementarity parameters between any two of the target production equipment clusters.
[0011] Furthermore, the distribution optimization module generates an optimal edge computing power distribution strategy based on the computing power demand characteristics of each of the production equipment and the demand complementarity map, including: determining multiple optimization indicators, and establishing an objective function based on the multiple optimization indicators; generating an optimal edge computing power distribution strategy based on a set of constraints, an objective function, the computing power demand characteristics of each of the production equipment, and the demand complementarity map through a simulated annealing algorithm.
[0012] Furthermore, the computing power control module is also used to adjust the optimal edge computing power distribution strategy in response to an instruction to reduce production equipment.
[0013] Furthermore, the computing power control module is also used to adjust the optimal edge computing power distribution strategy in response to an edge computing power terminal fault instruction.
[0014] The present invention provides an edge computing resource sharing method, comprising: obtaining historical computing resource requirements of multiple production devices; for each of the production devices, determining the computing resource requirements of the production device based on the historical computing resource requirements of the production device; determining multiple target production devices from the multiple production devices based on the computing resource requirements of each of the production devices; clustering the multiple target production devices based on the computing resource requirements of each of the target production devices to determine multiple target production device clusters; for any two of the target production device clusters, repeatedly sampling one target production device from each of the two target production device clusters, and clustering the target production devices based on the computing resource requirements of each of the target production devices. The historical computing power resource requirements of the equipment are calculated, and the equipment demand complementarity parameters are calculated until the preset conditions are met; based on the equipment demand complementarity parameters, a demand complementarity map is established, wherein the demand complementarity map is used to record the cluster demand complementarity parameters between any two of the target production equipment clusters and the target production equipment included in each of the target production equipment clusters; based on the computing power demand characteristics of each of the production equipment and the demand complementarity map, an optimal edge computing power distribution strategy is generated, and based on the optimal edge computing power distribution strategy, multiple edge computing power terminals are set; in response to the new production equipment instruction, the optimal edge computing power distribution strategy is adjusted; in response to the production equipment failure instruction, the optimal edge computing power distribution strategy is adjusted.
[0015] Compared with the prior art, the edge computing resource sharing method and system provided by the present invention have at least the following beneficial effects:
[0016] 1. Improve resource utilization efficiency: By analyzing the historical computing resource requirements of production equipment and determining its computing demand characteristics, computing resources can be predicted and allocated more accurately. This avoids over-allocation or under-allocation of computing resources, thereby improving overall resource utilization efficiency.
[0017] 2. Optimize computing power distribution: Through cluster analysis, production equipment with similar computing power demand characteristics are grouped into the same cluster, and a demand complementation map is constructed based on the demand complementation parameters between clusters, so that the layout of edge computing power terminals can be planned more systematically. This helps to achieve a balanced distribution of computing power resources and reduce resource waste and bottlenecks.
[0018] 3. Enhanced system flexibility: The generated optimal edge computing power distribution strategy is not only based on the current state of production equipment, but also takes into account the complementary relationship between the needs of equipment. This strategy design enables the system to respond and adjust quickly when facing new production equipment or production equipment failures, enhancing the flexibility and scalability of the system.
[0019] 4. Reduce operating costs: By accurately predicting and allocating computing resources, unnecessary computing investment and maintenance costs can be reduced. At the same time, due to the improvement of resource utilization, the overall energy consumption of the system will also be reduced accordingly, further reducing operating costs.
[0020] 5. Improve production efficiency: The reasonable allocation of computing resources can ensure that production equipment has sufficient computing support when needed, so as to maintain efficient operation. This helps to improve overall production efficiency, shorten product time to market, and enhance market competitiveness.
[0021] 6. Promote intelligent decision-making: Based on data analysis and model prediction, it provides decision makers with rich data support and visualization tools. This helps decision makers understand the system status more intuitively and make more accurate and intelligent decisions based on data.
[0022] 7. Enhance system stability: By monitoring and adjusting the edge computing power distribution strategy, potential resource bottlenecks or overload problems can be discovered and resolved in a timely manner. This helps to enhance the stability and reliability of the system and reduce production interruptions caused by insufficient computing power or resource conflicts. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0024] Figure 1 It is a module schematic diagram of an edge computing resource sharing system according to some embodiments of this specification;
[0025] Figure 2 It is a schematic diagram of modules for establishing a demand complementation map according to some embodiments of this specification;
[0026] Figure 3 is a schematic diagram of modules of a demand complementation map according to some embodiments of this specification;
[0027] Figure 4 It is a flow chart of an edge computing resource sharing method according to some embodiments of this specification. DETAILED DESCRIPTION
[0028] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0029] Figure 1 is a module schematic diagram of an edge computing resource sharing system according to some embodiments of this specification, such as Figure 1 As shown, an edge computing resource sharing system may include a data acquisition module, a demand analysis module, a graph building module, a distribution optimization module and a computing power regulation module.
[0030] The data acquisition module can be used to obtain the historical computing resource requirements of multiple production devices.
[0031] Specifically, the historical computing power resource requirements of the production equipment may include the amount of data that the production equipment needs to process at multiple historical time points.
[0032] The data acquisition module can also be used to obtain other computing power requirement information of production equipment, such as the type of data that needs to be processed (for example, images, structured data, etc.), computing power performance indicator requirements (for example, main frequency, number of cores, floating-point computing power, etc.) and real-time requirements for data processing.
[0033] The demand analysis module can be used to determine the computing power demand characteristics of each production equipment based on the historical computing power resource requirements of the production equipment, determine multiple target production equipment from multiple production equipment based on the computing power demand characteristics of each production equipment, cluster multiple target production equipment based on the computing power demand characteristics of each target production equipment, and determine multiple target production equipment clusters.
[0034] In some embodiments, the demand analysis module determines the computing power demand characteristics of the production equipment based on the historical computing power resource requirements of the production equipment, and determines multiple target production equipment from multiple production equipment based on the computing power demand characteristics of each production equipment, including:
[0035] Based on the historical computing resource requirements of production equipment, calculate the overall demand change parameters of production equipment;
[0036] Based on a preset time window, the historical computing power resource demand of the production equipment is divided into multiple historical demand segments, and the segment demand mean and segment demand change parameters of each historical demand segment are calculated, wherein the computing power demand characteristics of the production equipment at least include the overall demand change parameters of the production equipment, the segment demand mean and the segment demand change parameters of each historical demand segment;
[0037] Calculate the demand change value of the production equipment based on the overall demand change parameter and the segment demand change parameter of the production equipment;
[0038] When the demand change value is greater than a preset demand change value threshold, the production equipment is determined to be the target production equipment.
[0039] For example, the overall demand change parameter can be calculated based on the following formula:
[0040]
[0041] in, is the overall demand change parameter of the i-th target production equipment, Produce equipment for the i-th target in the The amount of data that needs to be processed at each historical time point, is the total number of historical time points.
[0042] The segment demand mean and segment demand change parameters of the historical demand segment can be calculated based on the following formula:
[0043]
[0044]
[0045] in, is the segment demand mean of the rth historical demand segment of the i-th target production equipment, The rth historical demand fragment for the i-th target production equipment includes The amount of data that needs to be processed at each historical time point, is the total number of historical time points included in the preset time window, The segment demand change parameter of the rth historical demand segment of the i-th target production equipment.
[0046] The demand change value of production equipment can be calculated based on the following formula:
[0047]
[0048] in, is the demand change value of the i-th production equipment, and are preset weights, and and greater than 0, , To preset the required change parameters of the fragment, To preset the overall demand change parameters, is the total number of historical demand fragments.
[0049] In some embodiments, the demand analysis module clusters multiple target production devices based on the computing power demand characteristics of each target production device to determine multiple target production device clusters, including:
[0050] For any two target production equipment, based on the segment demand mean and segment demand change parameter of each historical demand segment of the two target production equipment, the demand similarity of the two target production equipment is calculated;
[0051] The iterative clustering analysis algorithm is used to cluster multiple target production equipment based on the demand similarity of any two target production equipment, and multiple target production equipment clusters are determined.
[0052] For example, the demand similarity of two target production equipment can be calculated based on the following formula:
[0053]
[0054] in, is the demand similarity between the i-th target production equipment and the j-th target production equipment, and are preset weights, and and greater than 0, , The mean value of the segment demand of the rth historical demand segment of the jth target production equipment, The segment demand change parameter of the rth historical demand segment of the jth target production equipment, and is the preset parameter, and and Greater than 0.
[0055] As an example only, a K-means clustering algorithm may be used to cluster multiple target production equipment based on the similarity of requirements between any two target production equipment to determine multiple target production equipment clusters.
[0056] The graph establishment module can be used to repeatedly sample one target production device from each of the two target production equipment clusters for any two target production equipment clusters, calculate the equipment demand complementarity parameters based on the historical computing resource requirements of the target production devices sampled from the two target production equipment clusters, until preset conditions are met, and establish a demand complementarity graph based on the equipment demand complementarity parameters.
[0057] The demand complementation map is used to record the cluster demand complementation parameters between any two target production equipment clusters and the target production equipment included in each target production equipment cluster. Figure 3 is a schematic diagram of a module of a demand complementation map according to some embodiments of this specification, such as Figure 3 As shown, for example only, the cluster demand complementarity parameter between the target production equipment cluster 1 and the target production equipment cluster 2 is 0.9, and the target production equipment cluster 1 includes the target production equipment 1, the target production equipment 2 and the target production equipment 3, and the target production equipment cluster 2 includes the target production equipment 4, the target production equipment 5 and the target production equipment 6.
[0058] Figure 2 is a schematic diagram of a module for establishing a demand complementation map according to some embodiments of this specification, such as Figure 2 As shown, in some embodiments, the graph building module repeatedly performs sampling of a target production device from two target production device clusters respectively, and based on the historical computing resource requirements of the target production devices sampled from the two target production device clusters respectively, calculates the device demand complementary parameters until the preset conditions are met, including:
[0059] S11, sampling one target production equipment from each of the two target production equipment clusters;
[0060] S12. For each sampled target production equipment, fit the segment demand mean of each historical demand segment of the target production equipment to generate a mean change curve, fit the segment demand change parameters of each historical demand segment of the target production equipment to generate a fluctuation change curve, perform local mean decomposition on the mean change curve to obtain a plurality of first product function components and a first residual component, perform local mean decomposition on the fluctuation change curve to obtain a plurality of second product function components and a second residual component, and denoise the mean change curve based on the plurality of second product function components and the second residual components and the plurality of first product function components and the first residual component to obtain a denoised mean change curve;
[0061] S13, calculating the equipment demand complementarity parameter of the current iteration based on the denoised mean change curve of the two sampled target production equipment;
[0062] S14, calculating complementary discrete parameters based on the complementary parameters of equipment requirements of the current iteration and the complementary parameters of equipment requirements of the historical iteration;
[0063] S15, determining whether the complementary discrete parameter is less than a preset complementary discrete parameter threshold, if so, the preset condition is met and the iteration ends, if not, executing S16;
[0064] S16: Whether the number of samplings of the target production equipment included in the two target production equipment clusters is greater than the preset number threshold, if so, the preset condition is met and the iteration ends, if not, execute S11.
[0065] Specifically, the mean change curve can be denoised based on multiple second product function components and second residual components, multiple first product function components and first residual components through a denoising model to obtain a denoised mean change curve, wherein the denoising model can be a convolutional neural network (CNN).
[0066] In some embodiments, the device demand complementation parameter is calculated based on the following formula:
[0067]
[0068] in, is the complementary discrete parameter between the i-th target production equipment and the j-th target production equipment, is the first sampled value from the denoised mean change curve corresponding to the i-th target production equipment. The value corresponding to each time point, is the first sampled value from the denoised mean change curve corresponding to the jth target production equipment. The value corresponding to each time point, is the total number of sampled time points, is the preset parameter, is a positive number, are the initial complementary discrete parameters.
[0069] The complementary discrete parameters can be calculated based on the following formula:
[0070]
[0071] in, are complementary discrete parameters, To conduct the first Sub-sampling of complementary discrete parameters between the two target production devices, is the total number of samplings for the two target production equipment clusters, Can be based on The calculation formula is obtained.
[0072] In some embodiments, the map building module builds a demand complement map based on the device demand complement parameters, including:
[0073] For any two target production equipment clusters, when the complementary discrete parameter is less than the preset complementary discrete parameter threshold, the mean of the equipment demand complementary parameter of the current iteration and the equipment demand complementary parameter of the historical iteration is calculated as the cluster demand complementary parameter between the two target production equipment clusters;
[0074] For any two target production equipment clusters, when the complementary discrete parameter is greater than or equal to a preset complementary discrete parameter threshold, the cluster demand complementary parameter between the two target production equipment clusters is calculated based on the device demand complementary parameter of the current iteration and the device demand complementary parameter mean of the device demand complementary parameter of the historical iteration according to the preset correction rule;
[0075] Based on the cluster demand complementarity parameters between any two target production equipment clusters, a demand complementarity map is established.
[0076] Specifically, the preset correction rule may be:
[0077]
[0078] in, is the cluster demand complementarity parameter between the g-th target production equipment cluster and the h-th target production equipment cluster, is the preset parameter, and Greater than 0.
[0079] The distribution optimization module can be used to generate the optimal edge computing power distribution strategy based on the computing power demand characteristics and demand complementarity map of each production equipment, and set up multiple edge computing power terminals based on the optimal edge computing power distribution strategy.
[0080] In some embodiments, the distribution optimization module generates an optimal edge computing power distribution strategy based on the computing power demand characteristics and demand complementation map of each production device, including:
[0081] Determine multiple optimization indicators, and establish an objective function according to the multiple optimization indicators, wherein the optimization indicators may include a communication distance indicator between each production device and the corresponding edge computing power terminal, a computing power balance indicator of the edge computing power terminal, and a computing power utilization indicator of the edge computing power terminal. The objective function may include multiple optimization goals, namely, the shortest communication distance, the most balanced computing power of the edge computing power terminal, and the higher the computing power utilization rate;
[0082] The optimal edge computing power distribution strategy is generated by the simulated annealing algorithm based on the constraint set, the objective function, the computing power demand characteristics of each production equipment and the demand complementarity map. The constraint set may include the maximum computing power constraint of the edge computing power terminal and the maximum communication distance constraint, etc. The optimal edge computing power distribution strategy may include the number of edge computing power terminals and the production equipment corresponding to the edge computing power terminals.
[0083] Specifically, the objective function is:
[0084]
[0085] in, is the communication distance between the i-th production device and the corresponding edge computing terminal, is the computing load of the e-th edge computing terminal at the t-th time point in the data processing cycle, is the computing load of the fth edge computing terminal at the tth time point in the data processing cycle, is the total number of edge computing terminals, is the length of the data processing cycle, , and are preset weights, and , and greater than 0, , To preset the computing load, , and are preset normalization parameters, and , and Greater than 0.
[0086] As an example only, the optimal edge computing power distribution strategy can be generated according to the following process through the simulated annealing algorithm based on the constraint set, the objective function, the computing power demand characteristics of each production device, and the demand complementation map:
[0087] S21, setting parameters such as initial temperature, cooling rate, termination temperature, number of iterations at each temperature of the simulated annealing algorithm;
[0088] S22. Use random generation, greedy algorithm or other heuristic methods to generate an initial computing power distribution strategy as the starting point of the algorithm;
[0089] S23. Based on the constraint set, the computing power demand characteristics of each production equipment and the demand complementation map, define the neighborhood structure, that is, the solution space around the current solution. The neighborhood structure should contain all possible computing power adjustment schemes, randomly generate new solutions in the neighborhood of the current solution, and calculate its objective function value. For example, the domain structure may include exchanging the production equipment corresponding to multiple edge computing power terminals according to the demand complementation map, on the premise of satisfying the constraint set and the computing power demand characteristics of each production equipment, so that the mean value of the cluster demand complementation parameter between the target production equipment clusters to which any two production equipment corresponding to each edge computing power terminal in the new solution belong is greater than the initial computing power distribution strategy;
[0090] S24. If the objective function value of the new solution is better, it is accepted unconditionally; if the objective function value of the new solution is worse, it is accepted with a certain probability, which is related to the quality difference of the new solution and the current temperature;
[0091] S25, update the temperature parameters according to the set cooling rate and number of iterations. As the temperature gradually decreases, the search range of the algorithm in the solution space gradually narrows, and the search process tends to be stable;
[0092] S26. Repeat S23-S25 until a termination condition is met, where the termination condition may be reaching a termination temperature, reaching a maximum number of iterations, or the quality of the solution reaching a threshold.
[0093] The computing power control module can be used to adjust the optimal edge computing power distribution strategy in response to the instruction of adding new production equipment, and can also be used to adjust the optimal edge computing power distribution strategy in response to the instruction of production equipment failure. The computing power control module is also used to adjust the optimal edge computing power distribution strategy in response to the instruction of reducing production equipment. The computing power control module is also used to adjust the optimal edge computing power distribution strategy in response to the instruction of edge computing power terminal failure.
[0094] Specifically, in response to new production equipment instructions, production equipment failure instructions, production equipment instructions or edge computing power terminal failure instructions, the optimal edge computing power distribution strategy is adjusted through a simulated annealing algorithm based on a set of constraints, an objective function, the computing power demand characteristics of each production equipment, and a demand complementarity map.
[0095] Figure 4 is a flow chart of an edge computing resource sharing method according to some embodiments of this specification, such as Figure 4 As shown, a method for sharing edge computing resources may include the following steps.
[0096] Obtain historical computing resource requirements for multiple production devices;
[0097] For each production equipment, determine the computing power demand characteristics of the production equipment based on the historical computing power resource requirements of the production equipment;
[0098] Based on the computing power requirement characteristics of each production device, multiple target production devices are determined from multiple production devices;
[0099] Based on the computing power requirement characteristics of each target production device, multiple target production devices are clustered to determine multiple target production device clusters;
[0100] For any two target production equipment clusters, repeatedly sampling one target production equipment from each of the two target production equipment clusters, and calculating equipment demand complementary parameters based on the historical computing resource requirements of the target production equipment sampled from each of the two target production equipment clusters, until a preset condition is met;
[0101] Based on the equipment demand complementarity parameters, a demand complementarity map is established, wherein the demand complementarity map is used to record the cluster demand complementarity parameters between any two target production equipment clusters and the target production equipment included in each target production equipment cluster;
[0102] Generate the optimal edge computing power distribution strategy based on the computing power demand characteristics and demand complementation map of each production equipment, and set up multiple edge computing power terminals based on the optimal edge computing power distribution strategy;
[0103] In response to new production equipment instructions, adjust the optimal edge computing power distribution strategy;
[0104] In response to production equipment failure instructions, the optimal edge computing power distribution strategy is adjusted.
[0105] An edge computing resource sharing method can be executed by an edge computing resource sharing system. For more descriptions of an edge computing resource sharing method, please refer to the relevant descriptions of an edge computing resource sharing system, which will not be repeated here.
[0106] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. An edge computing resource sharing system, characterized in that: include: Data acquisition module, used to obtain historical computing resource requirements of multiple production devices; A demand analysis module is used to determine, for each of the production devices, a computing power demand feature of the production device based on the historical computing power resource demand of the production device, determine a plurality of target production devices from the plurality of production devices based on the computing power demand feature of each of the production devices, and cluster the plurality of target production devices based on the computing power demand feature of each of the target production devices to determine a plurality of target production device clusters; A graph establishment module is used for, for any two of the target production equipment clusters, repeatedly sampling one target production equipment from the two target production equipment clusters respectively, calculating equipment demand complementarity parameters based on the historical computing power resource requirements of the target production equipment sampled from the two target production equipment clusters respectively, until a preset condition is met, and establishing a demand complementarity graph based on the equipment demand complementarity parameters, wherein the demand complementarity graph is used to record the cluster demand complementarity parameters between any two of the target production equipment clusters and the target production equipment included in each of the target production equipment clusters; A distribution optimization module, configured to generate an optimal edge computing power distribution strategy based on the computing power demand characteristics of each of the production equipment and the demand complementation map, and to set a plurality of edge computing power terminals based on the optimal edge computing power distribution strategy; A computing power control module, used to adjust the optimal edge computing power distribution strategy in response to a new production equipment instruction, and also used to adjust the optimal edge computing power distribution strategy in response to a production equipment failure instruction; The demand analysis module determines the computing power demand characteristics of the production equipment based on the historical computing power resource requirements of the production equipment, and determines multiple target production equipment from the multiple production equipment based on the computing power demand characteristics of each of the production equipment, including: Based on the historical computing power resource requirements of the production equipment, calculating the overall demand change parameters of the production equipment; Based on a preset time window, the historical computing power resource demand of the production equipment is divided into a plurality of historical demand segments, and the segment demand mean and segment demand change parameters of each of the historical demand segments are calculated, wherein the computing power demand characteristics of the production equipment at least include the overall demand change parameters of the production equipment, the segment demand mean and the segment demand change parameters of each of the historical demand segments; Calculating a demand change value of the production equipment based on the overall demand change parameter and the segment demand change parameter of the production equipment; When the demand change value is greater than a preset demand change value threshold, determining that the production equipment is a target production equipment; The graph building module repeatedly samples a target production device from each of the two target production device clusters, and calculates the device demand complementary parameter based on the historical computing resource requirements of the target production devices sampled from each of the two target production device clusters until a preset condition is met, including: S11, sampling one target production equipment from each of the two target production equipment clusters; S12. For each sampled target production equipment, fit the segment demand mean of each of the historical demand segments of the target production equipment to generate a mean change curve, fit the segment demand change parameters of each of the historical demand segments of the target production equipment to generate a fluctuation change curve, perform local mean decomposition on the mean change curve to obtain a plurality of first product function components and a first residual component, perform local mean decomposition on the fluctuation change curve to obtain a plurality of second product function components and a second residual component, and denoise the mean change curve based on the plurality of second product function components and the second residual components and the plurality of first product function components and the first residual component to obtain a denoised mean change curve; S13, calculating the equipment demand complementarity parameter of the current iteration based on the denoised mean change curve of the two sampled target production equipment; S14, calculating complementary discrete parameters based on the complementary parameters of equipment requirements of the current iteration and the complementary parameters of equipment requirements of the historical iteration; S15, determining whether the complementary discrete parameter is less than a preset complementary discrete parameter threshold, if so, the preset condition is met and the iteration ends, if not, executing S16; S16: Whether the number of sampling times of the target production equipment included in the two target production equipment clusters is greater than the preset number threshold, if so, the preset condition is met and the iteration is terminated, if not, S11 is executed.
2. The edge computing resource sharing system according to claim 1, characterized in that: The demand analysis module clusters the multiple target production devices based on the computing power demand characteristics of each of the target production devices to determine multiple target production device clusters, including: For any two of the target production equipment, based on the segment demand mean and segment demand change parameter of each of the historical demand segments of the two target production equipment, calculate the demand similarity of the two target production equipment; The multiple target production equipment are clustered based on the demand similarity of any two of the target production equipment through an iterative clustering analysis algorithm to determine multiple target production equipment clusters.
3. The edge computing resource sharing system according to claim 1, characterized in that: The equipment demand complementarity parameter is calculated based on the following formula: in, is the complementary discrete parameter between the i-th target production equipment and the j-th target production equipment, is the first sampled value from the denoised mean change curve corresponding to the i-th target production equipment. The value corresponding to each time point, is the first sampled value from the denoised mean change curve corresponding to the jth target production equipment. The value corresponding to each time point, is the total number of sampled time points, is the preset parameter, is a positive number, are the initial complementary discrete parameters.
4. The edge computing resource sharing system according to claim 1, characterized in that: The map establishment module establishes a demand complementation map based on the device demand complementation parameters, including: For any two of the target production equipment clusters, when the complementary discrete parameter is less than a preset complementary discrete parameter threshold, the device demand complementary parameter average of the device demand complementary parameter of the current iteration and the device demand complementary parameter of the historical iteration is calculated as the cluster demand complementary parameter between the two target production equipment clusters; For any two of the target production equipment clusters, when the complementary discrete parameter is greater than or equal to a preset complementary discrete parameter threshold, the cluster demand complementary parameter between the two target production equipment clusters is calculated based on the device demand complementary parameter of the current iteration and the device demand complementary parameter mean of the device demand complementary parameter of the historical iteration according to the preset correction rule; The demand complementation map is established based on cluster demand complementation parameters between any two of the target production equipment clusters.
5. An edge computing resource sharing system according to any one of claims 1 to 4, characterized in that: The distribution optimization module generates an optimal edge computing power distribution strategy based on the computing power demand characteristics of each of the production equipment and the demand complementation map, including: Determine multiple optimization indicators and establish an objective function based on the multiple optimization indicators; The optimal edge computing power distribution strategy is generated by a simulated annealing algorithm based on a set of constraints, an objective function, the computing power demand characteristics of each of the production equipment, and the demand complementarity map.
6. An edge computing resource sharing system according to any one of claims 1 to 4, characterized in that: The computing power control module is also used to adjust the optimal edge computing power distribution strategy in response to an instruction to reduce production equipment.
7. An edge computing resource sharing system according to any one of claims 1 to 4, characterized in that: The computing power control module is also used to adjust the optimal edge computing power distribution strategy in response to an edge computing power terminal fault instruction.
8. A method for sharing edge computing resources, characterized in that: include: Obtain historical computing resource requirements for multiple production devices; For each of the production equipment, determining a computing power demand characteristic of the production equipment based on the historical computing power resource demand of the production equipment; Based on the computing power requirement characteristics of each of the production devices, determining a plurality of target production devices from the plurality of production devices; Based on the computing power requirement characteristics of each of the target production devices, clustering the multiple target production devices to determine multiple target production device clusters; For any two of the target production equipment clusters, repeatedly sampling a target production equipment from each of the two target production equipment clusters, and calculating equipment demand complementary parameters based on historical computing resource requirements of the target production equipment sampled from each of the two target production equipment clusters, until a preset condition is met; Based on the equipment demand complementarity parameters, a demand complementarity map is established, wherein the demand complementarity map is used to record the cluster demand complementarity parameters between any two of the target production equipment clusters and the target production equipment included in each of the target production equipment clusters; Based on the computing power demand characteristics of each of the production equipment and the demand complementation map, an optimal edge computing power distribution strategy is generated, and based on the optimal edge computing power distribution strategy, a plurality of edge computing power terminals are set; In response to the newly added production equipment instruction, adjusting the optimal edge computing power distribution strategy; In response to a production equipment failure instruction, adjusting the optimal edge computing power distribution strategy; Wherein, based on the historical computing power resource requirements of the production equipment, determining the computing power requirement characteristics of the production equipment, and based on the computing power requirement characteristics of each of the production equipment, determining multiple target production equipment from the multiple production equipment, including: Based on the historical computing power resource requirements of the production equipment, calculating the overall demand change parameters of the production equipment; Based on a preset time window, the historical computing power resource demand of the production equipment is divided into a plurality of historical demand segments, and the segment demand mean and segment demand change parameters of each of the historical demand segments are calculated, wherein the computing power demand characteristics of the production equipment at least include the overall demand change parameters of the production equipment, the segment demand mean and the segment demand change parameters of each of the historical demand segments; Calculating a demand change value of the production equipment based on the overall demand change parameter and the segment demand change parameter of the production equipment; When the demand change value is greater than a preset demand change value threshold, determining that the production equipment is a target production equipment; Repeating the steps of sampling a target production device from each of the two target production device clusters, and calculating the device demand complementary parameter based on the historical computing resource requirements of the target production devices sampled from each of the two target production device clusters, until a preset condition is met, includes: S11, sampling one target production equipment from each of the two target production equipment clusters; S12. For each sampled target production equipment, fit the segment demand mean of each of the historical demand segments of the target production equipment to generate a mean change curve, fit the segment demand change parameters of each of the historical demand segments of the target production equipment to generate a fluctuation change curve, perform local mean decomposition on the mean change curve to obtain a plurality of first product function components and a first residual component, perform local mean decomposition on the fluctuation change curve to obtain a plurality of second product function components and a second residual component, and denoise the mean change curve based on the plurality of second product function components and the second residual components and the plurality of first product function components and the first residual component to obtain a denoised mean change curve; S13, calculating the equipment demand complementarity parameter of the current iteration based on the denoised mean change curve of the two sampled target production equipment; S14, calculating complementary discrete parameters based on the complementary parameters of equipment requirements of the current iteration and the complementary parameters of equipment requirements of the historical iteration; S15, determining whether the complementary discrete parameter is less than a preset complementary discrete parameter threshold, if so, the preset condition is met and the iteration ends, if not, executing S16; S16: Whether the number of sampling times of the target production equipment included in the two target production equipment clusters is greater than the preset number threshold, if so, the preset condition is met and the iteration is terminated, if not, S11 is executed.
Citation Information
Patent Citations
Computing power scheduling knowledge graph construction method, device and equipment and readable storage medium
CN117009070A
Computing power resource processing method
CN118069380A
