Affinity-based industrial service network resource allocation method and device, electronic equipment and storage medium

By establishing an affinity matrix in the industrial service network to calculate the overall benefits and adjust resource allocation, the problem of unreasonable resource allocation in complex networks by traditional methods is solved, and more efficient resource allocation is achieved.

CN120639721APending Publication Date: 2025-09-12BEIHANG UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510760827.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-09
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

Traditional game evolution methods have difficulty in capturing the diversity and dynamics of nodes when allocating resources in complex industrial service networks, resulting in irrational resource allocation.

Method used

By establishing an affinity matrix between service nodes, the overall benefit is calculated, and resource allocation is adjusted based on the affinity matrix until the preset conditions are met.

Benefits of technology

It has achieved more reasonable resource allocation in complex industrial service networks, improving network operation efficiency and corporate competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120639721A_ABST
    Figure CN120639721A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an industrial service network resource allocation method and device based on affinity, electronic equipment and a storage medium, and relates to the technical field of resource management. According to the method, the resource ratio of each service node in the industrial service network at the current moment is obtained, the overall benefit of the industrial service network is calculated according to each resource ratio and an affinity matrix among the service nodes, and the resource allocation on each service node is adjusted according to each resource ratio and the overall benefit. And the overall benefit reaches the preset condition. Therefore, the resource allocation of each service node is more reasonable according to the affinity matrix of each service node in the industrial service network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of resource management, and in particular to an affinity-based industrial service network resource allocation method, device, electronic device and storage medium. Background Art

[0002] Among the core issues of industrial service networks, resources and their optimal allocation are crucial. A scientific and rational resource allocation mechanism ensures that each participant in the network receives the required resources at the appropriate time, thereby maintaining stable system operation. For example, optimizing resource allocation in the power system not only ensures the stability of power supply but also effectively reduces the incidence of power outages and energy loss. Across a wider range of industrial network applications, precise resource allocation strategies can significantly improve operational efficiency, reduce production costs, and enhance a company's market competitiveness.

[0003] In related technical fields, researchers generally use heuristic algorithms (such as genetic algorithms) to optimize scheduling processes and minimize time costs and resource waste. In cloud computing environments, in particular, game-theoretic evolutionary methods have been widely applied to address resource allocation problems within simple network architectures. However, while traditional game-theoretic evolutionary methods have achieved significant success in simple network environments, their application to complex industrial service networks faces numerous challenges. These methods often assume uniform node characteristics and interactions, failing to capture the diversity and dynamics of real-world industrial networks. Summary of the Invention

[0004] In view of this, an object of embodiments of the present invention is to provide an affinity-based industrial service network resource allocation method, apparatus, electronic device, and storage medium to at least partially improve the above-mentioned problem.

[0005] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows: In a first aspect, an embodiment of the present invention provides an affinity-based industrial service network resource allocation method, comprising: Obtaining the resource proportion of each service node in the industrial service network at the current moment; wherein the resource proportion represents the proportion of each service node in the total resources; Calculating the overall benefit of the industrial service network based on the resource proportions and the affinity matrix between the service nodes; wherein the affinity matrix describes the affinity relationship between the service nodes; According to the proportion of each resource and the overall benefit, the resource allocation on each service node is adjusted until the overall benefit reaches a preset condition.

[0006] Optionally, calculating the overall benefit of the industrial service network according to the resource proportions and the affinity matrix between the service nodes includes: Calculating the basic benefit of each service node based on the resource proportions and the benefit coefficient of each service node; the benefit coefficient represents the resource processing capacity of the service node; Calculating the competition cost and synergy effect of each of the service nodes according to the resource proportions and the affinity matrix; Based on the basic benefits, the competitive costs, and the synergistic effects, the overall benefit of the industrial service network is calculated.

[0007] Optionally, the calculation formula for the overall benefit is:

[0008]

[0009]

[0010]

[0011] in, For the overall benefit, N is the number of the service nodes, For the basic benefit, is the competition cost, For the synergistic effect, is a collection of the service nodes, is the efficiency coefficient, is the resource ratio, represents the set of neighbor nodes of the service node, is the resource ratio of neighbor nodes, represents the collaborative weight, 、 are all elements of the affinity matrix, , .

[0012] Optionally, each element in the affinity matrix is:

[0013] in, A ij Represents a service node i With service nodes j The relationship between the elements is shown as affinity, the elements are used to calculate the synergy effect, the elements are shown as alienation, and the elements are shown as irrelevant.i With service nodes j A non-neighbor node.

[0014] Optionally, the overall benefit includes sub-benefits of each of the service nodes; and adjusting resource allocation on each of the service nodes according to the resource proportions and the overall benefit until the overall benefit reaches a preset condition includes: Determine whether the overall benefits meet the preset conditions; If yes, end resource allocation; If not, calculating the fitness of each of the service nodes according to each of the sub-benefits; Based on the evolution equation, adjusting the resource allocation on each of the service nodes according to the fitness and the resource proportion; After the resources are allocated, the overall benefit of the industrial service network is recalculated, and it is re-determined whether the overall benefit meets the preset conditions.

[0015] Optionally, the calculation formula of the fitness is:

[0016] in, For the sub-benefit, is the resource ratio, is the fitness.

[0017] Optionally, the evolution equation is:

[0018] in, Indicates the rate of change of the resource proportion of the service node, Indicates the i The resource ratio of each of the service nodes, No. i The set of neighbor nodes of the service node, Indicates the i the fitness of the service nodes, If the function value is greater than zero, then its value is taken; otherwise, its value is equal to zero.

[0019] In a second aspect, an embodiment of the present invention provides an affinity-based industrial service network resource allocation device, comprising: A resource proportion acquisition unit is used to obtain the resource proportion of each service node in the industrial service network at the current moment; wherein the resource proportion represents the proportion of each service node in the total resources; A benefit calculation unit, configured to calculate the overall benefit of the industrial service network based on the resource proportions and the affinity matrix between the service nodes; wherein the affinity matrix describes the affinity relationship between the service nodes; The resource allocation unit is used to adjust the resource allocation on each of the service nodes according to the proportion of each resource and the overall benefit until the overall benefit reaches a preset condition.

[0020] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements any of the above-described methods when executing the program.

[0021] In a fourth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, wherein the computer program implements any of the above-described methods when executed by a processor.

[0022] An embodiment of the present invention provides an affinity-based industrial service network resource allocation method, device, electronic device and storage medium. By establishing an affinity matrix between service nodes in the industrial service network, the overall benefit of the industrial service network is calculated according to the affinity matrix to adjust the resource allocation on each service node, thereby making the resource allocation of each service node more reasonable.

[0023] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 A schematic structural block diagram of an electronic device provided by an embodiment of the present invention; Figure 2 A flowchart of an affinity-based industrial service network resource allocation method provided by an embodiment of the present invention; Figure 3 Another flowchart of an affinity-based industrial service network resource allocation method provided by an embodiment of the present invention; Figure 4 Another flowchart of an affinity-based industrial service network resource allocation method provided by an embodiment of the present invention; Figure 5 An allocation logic diagram of an affinity-based industrial service network resource allocation method provided by an embodiment of the present invention; Figure 6 This is a schematic structural block diagram of an affinity-based industrial service network resource allocation device provided by an embodiment of the present invention.

[0026] Icons: 100 - electronic device; 101 - memory; 102 - communication interface; 103 - processor; 104 - communication bus; 300 - affinity-based industrial service network resource allocation device; 310 - resource proportion acquisition unit; 320 - benefit calculation unit; 330 - resource allocation unit. DETAILED DESCRIPTION

[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.

[0028] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort shall fall within the scope of protection of the present invention.

[0029] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are used only to distinguish the description and should not be understood as indicating or implying relative importance.

[0030] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0031] As mentioned in the background, traditional game evolution methods have achieved significant success in simple network environments. However, their applicability to complex industrial service networks faces numerous challenges. This is because these methods typically assume uniform node characteristics and homogeneous interactions, making them ineffective in capturing the heterogeneity and dynamic evolutionary characteristics of real industrial networks. This discrepancy between theoretical assumptions and actual conditions results in inefficient resource allocation using traditional methods in complex industrial service networks.

[0032] Based on the above situation, an embodiment of the present invention provides an affinity-based industrial service network resource allocation method, device, electronic device and storage medium. By establishing an affinity matrix between each service node in the industrial service network, the relationship between each service node is taken into account according to the affinity matrix, and the overall benefit of the industrial service network is calculated to adjust the resource allocation on each service node, so that the resource allocation of each service node can be more reasonable.

[0033] To implement the process steps and functions of each example of the present invention, please refer to Figure 1 , Figure 1 This is a schematic block diagram of an electronic device provided in an embodiment of the present invention. The electronic device 100 includes a memory 101 and a processor 103. The memory 101 and processor 103 are electrically connected to each other, directly or indirectly, to enable data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 104 or signal lines. The memory 101 can be used to store software programs and modules, and the processor 103 executes the software programs and modules stored in the memory 101, thereby performing various functional applications and data processing.

[0034] The electronic device 100 may be, but is not limited to, a personal computer (PC), a server, a distributed computer, or the like. It is understood that the electronic device 100 is not limited to a physical server and may also be a virtual machine on a physical server, a virtual machine built on a cloud platform, or other computer that provides the same functionality as the server or virtual machine. The operating system of the electronic device 100 may be, but is not limited to, Windows, Linux, or the like.

[0035] The memory 101 may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.

[0036] The communication connection between the electronic device 100 and an external device is achieved through at least one communication interface 102 (which can be wired or wireless).

[0037] Processor 103 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the embodiments of the present invention may be completed by hardware integrated logic circuits in processor 103 or by software instructions. Processor 103 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0038] I understand. Figure 1 The structure shown is for illustration only. The electronic device 100 may further include Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown. Figure 1Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0039] The following is an exemplary description of the affinity-based industrial service network resource allocation method provided by the present invention. Figure 2 , the execution subject of this method can be the above Figure 1 The electronic device 100 shown in FIG. 1 includes the following steps: Figure 2 The following steps are described: S210: Obtain the resource proportion of each service node in the industrial service network at the current moment; wherein the resource proportion represents the proportion of each service node to the total resources.

[0040] Industrial service networks can include the Industrial Internet of Things, cloud computing platforms, and smart grid systems. For example, cloud computing platforms include multiple service nodes, each of which has data processing capabilities. When the cloud computing platform is operating, it needs to process certain data, which is then distributed to different service nodes for computation. The proportion of data allocated to each service node relative to the total data volume represents the resource usage of each service node.

[0041] S220: Calculate the overall benefit of the industrial service network based on the proportion of each resource and the affinity matrix between each service node; wherein the affinity matrix describes the affinity relationship between each service node.

[0042] The affinity matrix can be set based on historical empirical data. Industrial service networks often exhibit varying resource allocation and information exchange patterns among service nodes. Some service nodes tend to cooperate in terms of resources, exchanging resources and communicating information through paths between them. We refer to this tendency as node affinity. Similarly, some service nodes may connect through specialized paths, but this exchange comes at a cost, resulting in resource competition and confrontation between nodes. We refer to this tendency as node alienation.

[0043] S230: Adjust resource allocation on each service node according to the proportion of each resource and the overall benefit until the overall benefit reaches a preset condition.

[0044] When the industrial service network is operating, the resource proportion of each service node at the current moment is obtained. At this time, the overall benefit of the industrial service network is calculated based on the affinity matrix and resource proportion that have been constructed to represent the closeness relationship between each service node. Finally, the resources on each service node are reallocated according to the overall benefit, that is, the resource proportion of each service node is changed so that the overall benefit reaches the preset condition. The preset condition can be that the overall benefit reaches the preset value, or that after multiple resource allocations, the fluctuation of the overall benefit is within a preset range.

[0045] This method establishes an affinity matrix between each service node in the industrial service network, calculates the overall benefit of the industrial service network based on the affinity matrix, and adjusts the resource allocation on each service node, so that the resource allocation of each service node can be more reasonable.

[0046] In step S220, there are many ways to calculate the overall benefit of the industrial service network. In order to take into account the heterogeneous relationship between the service nodes when calculating the overall benefit, in one possible implementation, see Figure 3 , step S220 may include the following steps: S221: Calculate the basic benefit of each service node based on the proportion of each resource and the benefit coefficient of each service node; wherein the benefit coefficient represents the resource processing capacity of the service node.

[0047] S222: Calculate the competition cost and synergy effect of each service node based on the proportion of each resource and the affinity matrix.

[0048] S223: Based on the basic benefits, competitive costs and synergy effects, the overall benefits of the industrial service network are calculated.

[0049] The benefit coefficient represents the resource processing capacity of a service node and can be a predefined value or calculated from historical data. Base benefit refers to the benefit of each service node when operating independently. It is calculated based on the node's resource usage and resource processing capacity (benefit coefficient).

[0050] Competition cost refers to the loss of benefits due to resource competition, while synergy effect refers to the additional benefits brought about by cooperation between nodes. These two values ​​can be calculated using the affinity matrix.

[0051] First, calculate the basic benefits of each service node, then calculate the competitive cost and synergy effect of each service node, and finally add up the basic benefits, competitive costs and synergy effects to obtain the overall benefit of the industrial service network.

[0052] Among them, each element in the affinity matrix is:

[0053] in, A ij Represents a service node i With service nodes j The relationship between them is represented by the affinity elements used to calculate the synergy effect, the alienation elements used to calculate the competition cost, and the irrelevant elements represent the service nodes. i With service nodes j A non-neighbor node.

[0054] Affinity Matrix Describes the relationship between service nodes in the industrial service network. A ij The definition of is as follows: If the service node and service nodes Demonstrates affinity (collaborates and communicates on resources), then A ij >0; if they are isolated (competing for resources despite being connected), then A ij <0; if there is no relationship between them, then A ij = 0.

[0055] The calculation process of the overall benefit can be expressed by the following formula:

[0056]

[0057]

[0058]

[0059] in, For overall benefit, N is the number of service nodes, As the basic benefit, For the cost of competition, For synergistic effect, is the collection of service nodes, is the benefit coefficient, is the resource ratio, Represents the set of neighbor nodes of the service node, is the resource ratio of neighbor nodes, represents the collaborative weight, 、 are all elements of the affinity matrix, , .

[0060] The following uses three service nodes to illustrate the overall benefit calculation process. Suppose the three service nodes are service node 1, service node 2, and service node 3. Service node 1 and service node 2 are neighbors, showing affinity with an affinity of 0.5. Service node 2 is a neighbor of both service node 1 and service node 3, but is alienated from service node 3 with an affinity of -0.6. Service node 1 and service node 3 are not neighbors. Then, the constructed affinity matrix is:

[0061] For example, at the current moment, the resource proportions of service nodes 1, 2, and 3 are 0.3, 0.3, and 0.4 respectively, the benefit coefficients are 0.8, 0.7, and 0.9 respectively, and the collaborative weights are 1, 1.1, and 1.2 respectively. First, calculate the basic benefits of each service node. The basic benefit of service node 1 is , the basic benefit of service node 2 is , the basic benefit of service node 3 is , and then calculate the competition cost of each service node. The competition cost is calculated using only the elements in the affinity matrix that show alienation. Service node 1 has no alienated neighbors, and the competition cost is 0. The competition cost of service node 2 is , the competition cost of service node 3 is , and then calculate the synergy effect of each service node. The synergy effect of service node 1 is , the synergistic effect of service node 2 is , service node 3 has no friendly neighbors, and the synergy effect is 0. Finally, the basic benefits, competition costs, and synergy effects are added together to obtain the overall benefit.

[0062] In order to make the allocation of resources on each service node more intelligent in step S230, the distributed Smith dynamics evolution equation can be used to allocate the resources on each service node. The overall benefit of the industrial service network includes the sub-benefits of each service node, see Figure 4 , step S230 may include the following steps: S231: Determine whether the overall benefits meet the preset conditions.

[0063] S232: If yes, end resource allocation.

[0064] S233: If not, calculate the fitness of each service node based on each sub-benefit.

[0065] S234: Based on the evolution equation, adjust the resource allocation on each service node according to each fitness and each resource ratio.

[0066] S235: After resource allocation, recalculate the overall benefits of the industrial service network and re-judge whether the overall benefits meet the preset conditions.

[0067] When the overall benefits meet the preset conditions, resource allocation ends.

[0068] It is necessary to reallocate resources to each service node and first calculate the fitness of each service node based on each sub-benefit. The fitness calculation formula is:

[0069] in, For sub-benefits, is the resource ratio, is the fitness. The sub-benefits include the basic benefits of the service node, the competition cost, and the synergy effect. In the above example, the sub-benefits of service node 1 are , the fitness of service node 1 is obtained by taking the partial derivative of the sub-benefit with respect to the resource proportion of service node 1.

[0070] After obtaining the fitness of each service node, the resource allocation on each service node is adjusted according to the evolution equation. The evolution equation is:

[0071] in, Indicates the rate of change of resource proportion of service node, Indicates the i The resource ratio of service nodes, No. i The set of neighbor nodes of a service node, Indicates the i The fitness of the service nodes, If the function value is greater than zero, then its value is taken; otherwise, its value is equal to zero.

[0072] The resource allocation principle of the evolution equation is that if the service node i Fitness F i Higher than neighboring nodes j , then the resources from j Flow direction i , flow and and fitness difference Proportional; if the service node i Fitness F i Lower than neighbor nodes j , then the resources from i Flow direction j , the loss and and fitness difference Directly proportional.

[0073] We continue to illustrate with an industrial service network of three service nodes. Suppose the fitness of service node 1, service node 2, and service node 3 are 0.5, 0.3, and 0.2, and the resource proportions are 0.3, 0.3, and 0.4. The neighbor nodes of service node 1 include service node 2, the neighbor nodes of service node 2 include service node 1 and service node 3, and the neighbor nodes of service node 3 include service node 2.

[0074] For service node 1, the change rate is .

[0075] Among them, the first part: .

[0076] Part II: .

[0077] Rate of change .

[0078] For service node 2, the change rate is .

[0079] Among them, the first part: , , totaling 0.04.

[0080] Part II: .

[0081] Rate of change .

[0082] Similarly, the change rate of service node 2 can be obtained .

[0083] The resource allocation this time is: 0.02 of the resource proportion of service node 2 and 0.04 of the resource proportion of service node 3 are allocated to service node 1.

[0084] Furthermore, the main logic of resource allocation of this method is as follows Figure 5 As shown, first obtain the resource proportion of the industrial service network, then calculate the overall benefit of the industrial service network, and judge whether the overall benefit meets the preset conditions. If so, end the resource allocation. If not, allocate resources to each service node of the industrial service network, obtain the resource proportion again, and calculate the overall benefit until the overall benefit meets the preset conditions.

[0085] Furthermore, the embodiment of the present invention also provides an affinity-based industrial service network resource allocation device 300, see Figure 6 The affinity-based industrial service network resource allocation device 300 includes: The resource proportion acquisition unit 310 is used to obtain the resource proportion of each service node in the industrial service network at the current moment; wherein the resource proportion represents the proportion of each service node to the total resources.

[0086] The benefit calculation unit 320 is used to calculate the overall benefit of the industrial service network based on the proportion of each resource and the affinity matrix between each service node; wherein the affinity matrix describes the affinity relationship between each service node.

[0087] The resource allocation unit 330 is used to adjust the resource allocation on each service node according to the proportion of each resource and the overall benefit until the overall benefit reaches a preset condition.

[0088] In summary, the embodiments of the present invention provide an affinity-based industrial service network resource allocation method, apparatus, electronic device, and storage medium. By establishing an affinity matrix between service nodes in the industrial service network and calculating the overall benefits of the industrial service network based on the affinity matrix, resource allocation on each service node can be adjusted, resulting in a more rational resource allocation for each service node. Using evolution equations, resources can be allocated more efficiently to each service node.

[0089] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified functions or actions, or can be implemented using a combination of dedicated hardware and computer instructions.

[0090] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0091] If a function is implemented as a software module 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 invention, or the portion that contributes to the prior art, or the portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the method of the present invention. The aforementioned storage medium includes various media that can store program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0092] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.

[0093] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims, not the foregoing description, and all variations within the meaning and range of equivalents of the claims are intended to be included therein. Any reference sign in a claim should not be construed as limiting the claim to which it relates.

Claims

1. A resource allocation method for industrial service networks based on affinity, characterized in that: include: Obtaining the resource proportion of each service node in the industrial service network at the current moment; wherein the resource proportion represents the proportion of each service node in the total resources; Calculating the overall benefit of the industrial service network based on the resource proportions and the affinity matrix between the service nodes; wherein the affinity matrix describes the affinity relationship between the service nodes; According to the proportion of each resource and the overall benefit, the resource allocation on each service node is adjusted until the overall benefit reaches a preset condition.

2. The method according to claim 1, characterized in that Calculating the overall benefit of the industrial service network based on the resource proportions and the affinity matrix between the service nodes includes: Calculating the basic benefit of each service node based on the resource proportions and the benefit coefficient of each service node; the benefit coefficient represents the resource processing capacity of the service node; Calculating the competition cost and synergy effect of each of the service nodes according to the resource proportions and the affinity matrix; Based on the basic benefits, the competitive costs, and the synergistic effects, the overall benefit of the industrial service network is calculated.

3. The method according to claim 2, characterized in that The calculation formula for the overall benefit is: in, For the overall benefit, N is the number of the service nodes, For the basic benefit, is the competition cost, For the synergistic effect, is a collection of the service nodes, is the efficiency coefficient, is the resource ratio, represents the set of neighbor nodes of the service node, is the resource ratio of neighbor nodes, represents the collaborative weight, 、 are all elements of the affinity matrix, , .

4. The method according to claim 3, characterized in that Each element in the affinity matrix is: in, A ij Represents a service node i With service nodes j The relationship between the elements is shown as affinity, the elements are used to calculate the synergy effect, the elements are shown as alienation, and the elements are shown as irrelevant. i With service nodes j A non-neighbor node.

5. The method according to claim 1, wherein The overall benefit includes the sub-benefits of each of the service nodes; and adjusting the resource allocation on each of the service nodes according to the resource proportions and the overall benefit until the overall benefit reaches a preset condition includes: Determine whether the overall benefits meet the preset conditions; If yes, end resource allocation; If not, calculating the fitness of each of the service nodes according to each of the sub-benefits; Based on the evolution equation, adjusting the resource allocation on each of the service nodes according to the fitness and the resource proportion; After the resources are allocated, the overall benefit of the industrial service network is recalculated, and it is re-determined whether the overall benefit meets the preset conditions.

6. The method according to claim 5, characterized in that The calculation formula of the fitness is: in, For the sub-benefit, is the resource ratio, is the fitness.

7. The method according to claim 5, characterized in that The evolution equation is: in, Indicates the rate of change of the resource proportion of the service node, Indicates the i The resource ratio of each of the service nodes, No. i The set of neighbor nodes of the service node, Indicates the i the fitness of the service nodes, If the function value is greater than zero, then its value is taken; otherwise, its value is equal to zero.

8. An affinity-based industrial service network resource allocation device, characterized in that: include: A resource proportion acquisition unit is used to obtain the resource proportion of each service node in the industrial service network at the current moment; wherein the resource proportion represents the proportion of each service node in the total resources; A benefit calculation unit, configured to calculate the overall benefit of the industrial service network based on the resource proportions and the affinity matrix between the service nodes; wherein the affinity matrix describes the affinity relationship between the service nodes; The resource allocation unit is used to adjust the resource allocation on each of the service nodes according to the proportion of each resource and the overall benefit until the overall benefit reaches a preset condition.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Large model interaction method and system based on multi-model collaborative dialogue

    CN119557842A

  • Distributed real-time processing method and system for spatio-temporal data

    CN119922195A

  • Using process location to bind IO resources on NUMA architectures

    WO2012036961A1