WO2023134403A1 - 一种物联网资源分配方法、系统、终端以及存储介质 - Google Patents
一种物联网资源分配方法、系统、终端以及存储介质 Download PDFInfo
- Publication number
- WO2023134403A1 WO2023134403A1 PCT/CN2022/140066 CN2022140066W WO2023134403A1 WO 2023134403 A1 WO2023134403 A1 WO 2023134403A1 CN 2022140066 W CN2022140066 W CN 2022140066W WO 2023134403 A1 WO2023134403 A1 WO 2023134403A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- moth
- flame
- vector
- resource
- resource allocation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present application belongs to the field of Internet of Things application technology, and in particular relates to a resource allocation method, system, terminal and storage medium of the Internet of Things.
- IoT devices With the rapid development of IoT technology and the rapid popularization of IoT devices in people's production and life, IoT devices have made many application scenarios more intelligent. For example, in smart medical care, patient health monitoring is performed through IoT devices, and in smart logistics, parcels are automatically delivered through IoT devices.
- IoT devices are often heterogeneous. For example, different IoT devices may have different availability times and usage costs. Similarly, scenarios driven by IoT devices are also heterogeneous, such as scenarios with sufficient resources and scenarios with scarce resources.
- each application task may request one or more types of IoT devices to complete this task. Also, each application task typically specifies a demand period for each resource required by the task.
- IoT tasks how to efficiently allocate heterogeneous resources for these tasks with resource requirements, so as to maximize the benefits obtained by satisfying tasks and reduce the cost of satisfying tasks through more effective resource allocation. The cost has become an urgent problem to be solved.
- the Internet of Things resource allocation scheme in the prior art mainly proceeds from two perspectives, specifically:
- the above-mentioned IoT resource allocation models are only aimed at the allocation of IoT resources in a single scenario.
- the above-mentioned IoT resource allocation models are aimed at the allocation of computing, storage, and communication resources in IoT devices, but do not regard IoT device resources as a whole and allocate resources at the IoT device level.
- these allocation models do not take into account that the task's request for resources has a time limit, and do not adopt a reserved resource allocation method, which may cause resource deadlocks.
- the above-mentioned IoT resource allocation models do not adopt any unified IoT device resource management framework.
- IoT resource allocation model only optimizes a certain cost, without considering the cost of satisfying the service and the benefits of satisfying the service at the same time.
- Moth-flame optimization algorithm A novel nature-inspired heuristic compassion. Knowledge-based systems 89, 228–249.], which simulates the moth The flight navigation mechanism of the moth guides the optimal search in the solution space. Among the above-mentioned optimization methods, the moth-flame algorithm has the best performance. However, the moth-flame algorithm still has the following disadvantages:
- the moth-flame algorithm uses a purely random moth initialization mechanism that does not use additional information at all, and does not take any additional model information into account, so its effect is not good.
- each moth only matches one flame, which is easy to cause a local optimal solution dilemma, so that the algorithm cannot effectively approach the optimal solution.
- the moth flame-fighting algorithm adopts a matching mechanism that uniformly matches the worst survival flame for all moths whose corresponding flames have been eliminated.
- the matching mechanism for matching the worst survival flame is unreasonable, and the worst survival flame is often far from the optimal solution. Using multiple moths to match the same flame will also cause the algorithm to fall into a local optimal solution to a large extent, thus damaging the optimization effect of the algorithm.
- the present application provides an Internet of Things resource allocation method, system, terminal and storage medium, aiming to solve one of the above-mentioned technical problems in the prior art at least to a certain extent.
- a method for allocating Internet of Things resources comprising:
- the target and density-aware algorithm is used to initialize the moth vector set of the moth-flaming algorithm, and the initialized moth vector set is obtained;
- the resource abstraction architecture of the Internet of Things based on digital objects uses a resource scheduling and allocation algorithm to execute the resource allocation plan, and performs resource scheduling and allocation for the task request.
- the technical solution adopted in the embodiment of the present application also includes: the initialization of the moth vector set of the moth-flaming algorithm by using the target and density-sensing algorithm is specifically:
- the resource scenario includes a resource-sufficient scenario and a resource-poor scenario
- the technical solution adopted in the embodiment of the present application also includes: based on the new flame vector, using the progressive class flame matching algorithm and the exploratory moth flame matching algorithm to calculate the class flame corresponding to the moth includes:
- the exploratory moth flame matching algorithm is used to calculate the class flame according to the progressive coefficient, and the moth is matched with the corresponding class flame.
- the technical solution adopted in the embodiment of the present application also includes: the stepwise flame matching algorithm is used to calculate the class flame according to the progressive coefficient, and the moth is matched with the corresponding class flame, specifically:
- the matching method is:
- flame matching is performed based on the flame corresponding to the moth and the three flames with the highest health values:
- w is a progressive coefficient that increases linearly from 0 to 1 as the iteration progresses
- F i is the flame corresponding to the moth
- F 1 , F 2 , and F 3 are the three flames with the highest health values
- F 1 , F 2 , and F 3 are given weights of 0.15, 0.1, and 0.05 respectively, and the flame with the highest health value has the highest weight
- the matching method is:
- the technical solution adopted in the embodiment of the present application also includes: using the exploratory moth flame matching algorithm, calculating the class flame according to the progressive coefficient, and matching the moth with the corresponding class flame, specifically:
- the matching method is:
- moth-flame matching is performed based on the randomly selected surviving flames and the three flames with the highest health values:
- the moth position is updated according to the flame matching result.
- the technical solution adopted in the embodiment of the present application also includes: the abstract architecture of the Internet of Things resources based on digital objects, and the resource allocation model adopts the resource scheduling and allocation algorithm to execute the resource allocation scheme, which is specifically:
- the resource allocation model transmits the task request to the digital object of the IoT device, the digital object includes an API module and a communication module, and the API module is used to judge whether the IoT device can meet the task request, and if it can be satisfied, the Satisfied task request information is sent back to the resource allocation model; if the IoT device cannot satisfy the task request, it communicates with other similar IoT devices through the communication module, and sends the task request to other similar IoT devices.
- the technical solution adopted in the embodiment of the present application also includes: the resource allocation model adopts a resource scheduling and allocation algorithm to implement a resource allocation plan, specifically:
- the lengths of the moth vector and the flame vector are the quantity requested by the task;
- the assigned task request judge whether all the required resources of the task request in the assigned resource scenario can be satisfied on demand, and if it can be satisfied on demand, the task request in the assigned resource scenario is allocated on demand and on time
- the requested resources update the resource availability in the assigned resource scenario, and calculate the benefits, costs and optimization goals of meeting the task in the assigned resource scenario; otherwise, if it cannot be satisfied on demand, make the task request Lost.
- an Internet of Things resource allocation system including:
- Initialization module used to initialize the moth vector set of the moth-flaming algorithm by using the target and density-aware algorithm based on the received resource allocation task request, and obtain the initialized moth vector set;
- Health value evaluation module used to evaluate the health value of each moth in the initialized moth vector set, and select the top k moths with the highest health value as new flame vectors;
- Moth-flame matching module used to calculate the class flame corresponding to the moth by using the progressive class flame matching algorithm and the exploratory moth flame matching algorithm based on the new flame vector, and match the moth with the corresponding class flame, And when there is only one surviving flame, generate a resource allocation plan for the task request according to the surviving flame;
- Resource allocation module used for the resource abstraction architecture of the Internet of Things based on digital objects, adopting resource scheduling and allocation algorithms to implement the resource allocation plan, and performing resource scheduling and allocation for the task requests.
- a terminal includes a processor and a memory coupled to the processor, wherein,
- the memory stores program instructions for realizing the resource allocation method of the Internet of Things
- the processor is configured to execute the program instructions stored in the memory to control resource allocation of the Internet of Things.
- a storage medium storing program instructions executable by a processor, and the program instructions are used to execute the method for allocating resources of the Internet of Things.
- the beneficial effect of the embodiment of the present application is that: the Internet of Things resource allocation method, system, terminal, and storage medium of the embodiment of the present application introduce an abstract framework of Internet of Things resources based on digital objects in the resource allocation model, Using the concept of digital objects, heterogeneous IoT devices form a digital object architecture, which facilitates the management of IoT device resources and the coordination between resources in resource allocation.
- the resource allocation model simultaneously optimizes the benefits generated by satisfying the tasks and the costs caused by satisfying the tasks. The optimization goal considers both benefits and costs, which is more practical .
- the moth-flame optimizer with multiple improvements is used for optimization, so as to meet the profit and cost of the task as the common optimization goal, and optimize the allocation of the proposed resource allocation model, so as to obtain a better resource allocation plan for IoT devices .
- the present application has at least the following beneficial effects:
- the target and density-sensing algorithm are introduced for initialization, which can eliminate the relatively dense moth vectors in the initialization moth vector set, thereby enhancing the performance of the swarm-based algorithm, so that the initialization process can optimize the target Under the guidance of , it becomes more refined and solves the damage to the effect of the optimization algorithm caused by random initialization.
- the exploration and excavation can be better balanced in the training process, thereby better approaching the optimal solution, avoiding a single matching mechanism, and making the algorithm It is less likely to fall into a local optimal solution.
- the abstract framework of Internet of Things resources based on digital objects uses the concept of digital objects to manage and dispatch a variety of Internet of Things devices in a unified manner, covering up the diversity of various Internet of Things devices, thus making the Internet of Things devices.
- the management of resources and the coordination between resources in resource allocation become more convenient, which solves the resource management difficulties caused by the heterogeneity of IoT devices.
- Fig. 1 is the flowchart of the Internet of Things resource allocation method of the embodiment of the present application
- Fig. 2 is a schematic diagram of the initialization process based on the target and density sensing algorithm in the embodiment of the present application;
- Fig. 3 is a schematic diagram of the asymptotic class flame matching algorithm in the embodiment of the present application.
- Fig. 4 is the schematic diagram of the exploratory moth flame matching algorithm of the embodiment of the present application.
- FIG. 5 is a schematic diagram of a resource scheduling and allocation algorithm in an embodiment of the present application.
- FIG. 6 is a schematic structural diagram of an Internet of Things resource allocation system according to an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of a storage medium according to an embodiment of the present application.
- FIG. 1 is a flowchart of a method for allocating resources of the Internet of Things according to an embodiment of the present application.
- the Internet of Things resource allocation method in the embodiment of the present application includes the following steps:
- S10 Receive a task request requesting resource allocation through the resource allocation model, and based on the received task request, use the target and density sensing algorithm to initialize the moth vector set of the moth-flaming algorithm, and obtain the initialized moth vector set;
- the moth-to-flame algorithm is a population-based genetic algorithm, by using multiple searchers, it has a greater possibility of approaching the global optimal solution. Therefore, in the initial stage of the algorithm, a set of moth vectors needs to be initialized to generate a set number of moth vectors.
- the present invention initializes the moth vector set of the moth flame attack algorithm based on the target and density sensing algorithm.
- the algorithm uses the optimization target as prior knowledge to guide the initialization, and increases the alienation of the initialized moth vectors according to its density sensing characteristics. to improve the performance of the algorithm.
- Figure 2 it is a schematic diagram of the initialization process based on the target and density-aware algorithm in the embodiment of the present application, and the initialization process includes the following steps:
- the embodiment of the present application includes two kinds of resource scenarios with resource heterogeneity, that is, the scenario R with sufficient resources and the scenario S with scarce resources, so as to reflect the uneven resource allocation that usually occurs in real application scenarios.
- the scenario R with sufficient resources a large hospital is a scenario with sufficient resources
- a community clinic is a scenario with scarce resources
- a central warehouse is a scenario with sufficient resources
- a regional post office is a scenario with scarce resources.
- a mobile health monitor starts to be available at 9:00 am and ends at 6:00 pm, then its available period is from 9:00 am to 6:00 pm. If the mobile health monitor is requested to be occupied between 10:00 am and 11:00 am, the available time period of the device is updated as 9:00 am to 10:00 am, and 11:00 am to 6:00 pm.
- each resource request will specify the start time and end use time, recorded as and
- the resource request of a certain task is: to use an IoT device from 9:00 am to 9:30 am, that is, the request specifies a start time of 9:00 am and an end time of 9:30 am.
- each IoT device will generate a cost per unit time, which is denoted as Define the usage period length len of each resource as: Therefore, the total cost generated under the allocation scheme A is defined as:
- the usage cost may also include other costs such as energy usage overhead, making the definition of heterogeneous cost universal.
- the optimization objective of the resource allocation model in the embodiment of the present application takes into account both the cost and the income generated by satisfying the task, so the final optimization objective is to minimize the cost while optimizing the income.
- the final optimization goal is:
- w is the trade-off coefficient, which is a negative value, Represents the optimized resource allocation scheme.
- the embodiment of the present application guides the initialization process of initializing the moth vector set by using the income, the cost and the optimization objective, so that the initialization method is more reasonable, thereby effectively improving the efficiency of the algorithm.
- S12 Determine whether the number of initialized moth vectors in the initialized moth vector set has reached the set multiple of the set number, if not, execute S13; otherwise, execute S14;
- the length of each initialization moth vector is the number of tasks to be allocated resources.
- the initialized moth vectors When generating the initialized moth vectors, generate 1.5 times more initialized moth vectors than the set number, and the specific multiple can be set according to the actual application.
- S14 Use the target and density sensing algorithm to find out the two initialization moth vectors with the smallest distance (that is, the closest distance) from the initialization moth vector set, and use the mean vector of the two initialization moth vectors as a new moth vector.
- the moth vector is added to the set of initialized moth vectors, and the two initialized moth vectors are deleted from the set of initialized moth vectors;
- the embodiment of the present application continuously finds two initialization moth vectors with the smallest distance from the generated initialization moth vector set by using the target and density sensing algorithm, and adds the mean vector of the two to the initialization moth vector set , and delete the two from the set, so as to detect the initialized moth vector group with higher density and closer distance, and merge and remove them until the moth vector in the initialized moth vector set reaches the set value number, so that the moth vectors in the final initialization moth vector set are as far away from each other as possible, thereby enhancing the exploration ability of the algorithm.
- S30 update the number of flame vectors, and judge whether there is only one surviving flame, if there are multiple surviving flames, execute S40; if there is only one surviving flame vector, execute S70;
- S50 Use the progressive class flame matching algorithm to calculate the class flame corresponding to the moth according to the progressive coefficient, match the moth with the corresponding class flame, and re-execute S30;
- FIG. 3 it is a schematic diagram of the asymptotic class flame matching algorithm in the embodiment of the present application, which specifically includes the following steps:
- the embodiment of the present invention adopts an asymptotic hierarchical flame matching method, and the specific matching method is:
- the flame matching is performed according to the flame corresponding to the moth and the three flames with the highest health values.
- the matching formula is:
- w is the asymptotic coefficient
- F i is the flame corresponding to the moth
- F 1 , F 2 , and F 3 are the three flames with the highest health values, respectively
- F 1 , F 2 , and F 3 are assigned 0.15, 0.1
- With a weight of 0.05, the flame with the highest health value has the highest weight (ie influence) to represent the class level that each flame has.
- the asymptotic coefficient w is a coefficient that increases linearly from 0 to 1 as the iteration progresses.
- the use of the asymptotic coefficient makes the influence of the top three flames with the health value on the moth matching Grow incrementally as iterations progress. The reason is as follows: at the initial stage of the iteration, the top three flames in terms of health value may not be very close to the global optimal solution. Therefore, using a small asymptotic coefficient w at this time can reduce the difficulty of matching the moths and flames for these three flames. , which encourages moths to explore the search space more. As the iteration continues, the top three flames with the health value will become closer to the optimal solution.
- the asymptotic coefficient that increases with the iteration will gradually strengthen the three flames for the moth flame matching process. Therefore, the algorithm is gradually transformed from the exploration stage to the excavation stage. Therefore, the use of the asymptotic coefficient w enables the algorithm to effectively balance exploration and excavation when using the asymptotic class flame matching algorithm, and better approach the optimal solution.
- the algorithm calculates which class flame each moth is matched to and matches the moth to it.
- S60 using an exploratory moth flame matching algorithm, calculating the class flame corresponding to the moth according to the progressive coefficient, and matching the moth with the corresponding class flame;
- the embodiment of this application adopts an exploratory method to randomly select the surviving flames as the flames corresponding to the moths that have lost their flames, record for F I .
- the embodiment of the present invention adopts an exploratory hierarchical flame matching method, which is similar to the asymptotic hierarchical flame matching algorithm.
- the exploratory hierarchical flame matching algorithm uses randomly explored flames , with the effect of the asymptotic class flame, and being the corresponding matching flame of the moth.
- the specific matching method is:
- moth-flame matching will be performed based on the randomly selected surviving flames and the three flames with the highest health values.
- the matching formula is:
- the algorithm will continue to repeat the above operations.
- the parameter k of the number of flames will gradually decrease, and finally reduce to 1, that is, only one flame vector can survive, then the algorithm outputs the final surviving flame vector, and uses It guides the resource scheduling and allocation module to perform resource scheduling and allocation.
- S70 A resource allocation scheme according to the final surviving flame generation task request
- S80 The resource abstraction architecture of the Internet of Things based on digital objects, the resource allocation model uses resource scheduling and allocation algorithms to implement resource allocation plans, and performs resource scheduling and allocation for received task requests;
- the Internet of Things devices with different characteristics are digitized and unified, so as to facilitate communication and distribution with Internet of Things devices, as well as collaboration and cooperation between devices.
- the abstract architecture of IoT devices based on digital objects is as follows: abstract each IoT device into a digital object, thereby transforming the management and collaboration of IoT devices into the management and collaboration of digital objects with a unified architecture.
- the abstraction of objects masks the heterogeneity inherent in IoT devices. For IoT devices in different resource scenarios, when they communicate with the resource allocation algorithm as an IoT device, the resource allocation algorithm communicates with the abstract architecture of the digital object of the IoT device and will not be affected by the IoT device itself. have a differential impact.
- each digital object there are two modules, namely API module and collaboration module.
- the API module is responsible for reflecting the current status of each IoT device, including whether the device is available, and the information generated by using the device. The cost and whether the specified task request is acceptable, etc.
- the collaboration module is responsible for the cooperative communication between the IoT device and other similar IoT devices.
- the resource allocation model receives a task request, it transmits the task request to the digital object of the IoT device. It is judged through the API module of the digital object whether the IoT device can meet the task request, and if it can be satisfied, the task request information is sent back to the resource allocation model through the digital object.
- the IoT device Conversely, if the IoT device cannot satisfy the task request, the IoT device communicates with other IoT devices of the same type through the communication module of its digital object, and sends the task request to other IoT devices of the same type to try to satisfy the task Requests enable collaboration between similar IoT devices in the process of resource allocation.
- FIG. 5 it is a schematic diagram of the resource scheduling and allocation algorithm in the embodiment of the present application, which specifically includes the following steps:
- S82 Allocate each task sequentially according to the resource allocation scheme in the moth vector and the flame vector;
- the resource allocation scheme specifically includes: setting a constant ub so that all values in the moth vector and the flame vector are between 0-ub, and the lengths of the moth vector and the flame vector are equal to the number of tasks.
- Each value in the moth vector and the flame vector is regarded as the allocation method of the task. If the value in the moth vector and the flame vector is between [0, ub/2], the task is assigned to In a scenario with sufficient resources; if the value in the moth vector and the flame vector is between (ub/2,ub], then assign the task to a resource-poor scenario.
- Each value in the moth vector and flame vector The order of determines the order in which the corresponding tasks are assigned.
- ub 10 and the moth vector is [3,7,2,9], it means that the value corresponding to task 1 is 3, the value corresponding to task 2 is 7, and the value corresponding to task 3 The corresponding value is 2, and the value corresponding to task 4 is 9. Since the values of task 1 and task 3 are between [0,10/2], assign task 1 and task 3 to the scene with sufficient resources; and Since the values of task 2 and task 4 are between (10/2,10], assign task 2 and task 4 to the resource-poor scenario. After the scenario assignment, since the value corresponding to task 3 is smaller than task 1 , so task 3 will be executed before task 1. Because tasks have strict time requirements for resource requests, if task 3 is executed, task 1 cannot be executed within the time requirement because the requested resources are occupied by task 3, Then task 1 will be defeated. Similarly, task 2 will be executed before task 4.
- S83 Determine whether the task is assigned to a scene with sufficient resources or a scene with insufficient resources, if the task is assigned to a scene with sufficient resources, execute S84; if the task is assigned to a scene with scarce resources, execute S87;
- S85 Allocate the requested resources for the task on demand and on time in the resource-sufficient scene, update the resource availability in the resource-sufficient scene, and calculate the benefit, cost and optimization goal of satisfying the task in the resource-sufficient scene;
- S88 Allocate the requested resources for the task on demand and on time in the resource-poor scenario, update the resource availability in the resource-poor scenario, and calculate the benefit, cost and optimization goal of meeting the task in the resource-poor scenario.
- the embodiment of the present application adopts the reserved allocation method.
- the requested resources are allocated to the task on time as needed, otherwise, the task will be out of service, effectively avoiding resource deadlocks caused by a certain task receiving only part of the resource allocation.
- After allocating resources to a task update the resource availability in the scenario, and calculate the benefits, costs and optimization goals that meet the task. Finally, the optimization goal under this resource allocation scheme is returned.
- the Internet of Things resource allocation method of the embodiment of the present application introduces an abstract framework of Internet of Things resources based on digital objects in the resource allocation model, and uses the concept of digital objects to form a digital object architecture with heterogeneous Internet of Things devices, so that It facilitates the management of IoT device resources and the coordination between resources in resource allocation.
- the resource allocation model simultaneously optimizes the benefits generated by satisfying the tasks and the costs caused by satisfying the tasks. The optimization goal considers both benefits and costs, which is more practical .
- the moth-flame optimizer with multiple improvements is used for optimization, so as to meet the profit and cost of the task as the common optimization goal, and optimize the allocation of the proposed resource allocation model, so as to obtain a better resource allocation plan for IoT devices .
- the present application has at least the following beneficial effects:
- the target and density-sensing algorithm are introduced for initialization, which can eliminate the relatively dense moth vectors in the initialization moth vector set, thereby enhancing the performance of the swarm-based algorithm, so that the initialization process can optimize the target Under the guidance of , it becomes more refined and solves the damage to the effect of the optimization algorithm caused by random initialization.
- the exploration and excavation can be better balanced in the training process, thereby better approaching the optimal solution, avoiding a single matching mechanism, and making the algorithm It is less likely to fall into a local optimal solution.
- the abstract framework of Internet of Things resources based on digital objects uses the concept of digital objects to manage and dispatch a variety of Internet of Things devices in a unified manner, covering up the diversity of various Internet of Things devices, thus making the Internet of Things devices.
- the management of resources and the coordination between resources in resource allocation become more convenient, which solves the resource management difficulties caused by the heterogeneity of IoT devices.
- FIG. 6 is a schematic structural diagram of an IoT resource allocation system according to an embodiment of the present application.
- the Internet of Things resource allocation system 40 of the embodiment of the present application includes:
- Initialization module 41 used to initialize the moth vector set of the moth-flaming algorithm by using the target and density sensing algorithm based on the received resource allocation task request, to obtain the initialized moth vector set;
- Health value evaluation module 42 used to evaluate the health value of each moth in the initial moth vector set, and select the top k moths with the highest health values as new flame vectors;
- Moth-flame matching module 43 used to calculate the class flame corresponding to the moth based on the new flame vector, using the progressive class flame matching algorithm and the exploratory moth flame matching algorithm, matching the moth with the corresponding class flame, and When there is only one surviving flame, generate the resource allocation plan requested by the task according to the surviving flame;
- Resource allocation module 44 used for the resource abstraction architecture of the Internet of Things based on digital objects, adopting resource scheduling and allocation algorithms to implement resource allocation schemes, and performing resource scheduling and allocation for task requests.
- FIG. 7 is a schematic diagram of a terminal structure according to an embodiment of the present application.
- the terminal 50 includes a processor 51 and a memory 52 coupled to the processor 51 .
- the memory 52 stores program instructions for realizing the above-mentioned Internet of Things resource allocation method.
- the processor 51 is used to execute the program instructions stored in the memory 52 to control resource allocation of the Internet of Things.
- the processor 51 may also be referred to as a CPU (Central Processing Unit, central processing unit).
- the processor 51 may be an integrated circuit chip with signal processing capabilities.
- the processor 51 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components .
- a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
- FIG. 8 is a schematic structural diagram of a storage medium according to an embodiment of the present application.
- the storage medium of the embodiment of the present application stores a program file 61 capable of realizing all the above-mentioned methods, wherein the program file 61 can be stored in the above-mentioned storage medium in the form of a software product, and includes several instructions to make a computer device (which can It is a personal computer, a server, or a network device, etc.) or a processor (processor) that executes all or part of the steps of the methods in various embodiments of the present invention.
- a computer device which can It is a personal computer, a server, or a network device, etc.
- processor processor
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. , or terminal devices such as computers, servers, mobile phones, and tablets.
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
Claims (10)
- 一种物联网资源分配方法,其特征在于,包括:基于接收到的资源分配任务请求,采用目标与密度感知算法对飞蛾扑火算法的飞蛾向量集合进行初始化,得到初始化飞蛾向量集合;对所述初始化飞蛾向量集合中每个飞蛾的健康值进行评估,并选出健康值最高的前k个飞蛾作为新的火焰向量;基于所述新的火焰向量,采用渐进阶级火焰匹配算法以及探索式飞蛾火焰匹配算法计算飞蛾对应的阶级火焰,将飞蛾与对应的阶级火焰进行匹配;当仅有一个存活火焰时,根据所述存活火焰生成所述任务请求的资源分配方案;基于数字对象的物联网资源抽象架构,采用资源调度与分配算法执行所述资源分配方案,对所述任务请求进行资源调度与分配。
- 根据权利要求1所述的物联网资源分配方法,其特征在于,所述采用目标与密度感知算法对飞蛾扑火算法的飞蛾向量集合进行初始化具体为:对于接收到的任务请求,分别计算每个任务在不同资源场景下的收益、代价和优化目标;所述资源场景包括资源充足的场景和资源匮乏的场景;判断初始化飞蛾向量集合中的初始化飞蛾向量是否达到设定数量的设定倍数,如果没有达到设定数量的设定倍数,根据所述优化目标大小对每个任务请求进行分配并重复判断;如果达到设定数量的设定倍数,采用目标与密度感知算法从所述初始化飞蛾向量集合中找出间距最小的两个初始化飞蛾向量,将所述两个初始化飞蛾向量的均值向量作为新的飞蛾向量加入所述初始化飞蛾向量集合中,并从所述初始化飞蛾向量集合中删除所述的两个初始化 飞蛾向量;其中,每个初始化飞蛾向量的长度为待分配资源的任务请求个数;判断初始化飞蛾向量集合中的初始化飞蛾向量是否达到设定数量,如果没有达到设定数量,继续执行目标与密度感知算法;如果达到设定数量,输出初始化飞蛾向量集合。
- 根据权利要求2所述的物联网资源分配方法,其特征在于,所述基于所述新的火焰向量,采用渐进阶级火焰匹配算法以及探索式飞蛾火焰匹配算法计算飞蛾对应的阶级火焰包括:判断飞蛾所对应的火焰向量是否被淘汰,如果飞蛾所对应的火焰向量未被淘汰,采用渐进阶级火焰匹配算法,根据渐进系数计算阶级火焰,将飞蛾与对应的阶级火焰进行匹配;如果飞蛾所对应的火焰向量已被淘汰,采用探索式飞蛾火焰匹配算法,根据渐进系数计算阶级火焰,将飞蛾与对应的阶级火焰进行匹配。
- 根据权利要求3所述的物联网资源分配方法,其特征在于,所述采用渐进阶级火焰匹配算法,根据渐进系数计算阶级火焰,将飞蛾与对应的阶级火焰进行匹配具体为:从k个新的火焰向量中选取健康值最高的三个火焰;更新渐进系数;结合渐进系数以及健康值最高的三个火焰计算阶级火焰,并将飞蛾与对应的阶级火焰进行匹配;所述匹配方式为:如果当前的存活火焰数量≥3,则根据飞蛾所对应的火焰以及健康值最高的三个火焰进行火焰匹配:其中,w为一个随着迭代的进行从0线性增长为1的渐进系数,F i为飞蛾所对应的火焰,F 1、F 2、F 3分别为健康值最高的三个火焰,F 1、F 2、F 3分别被赋予0.15、0.1和0.05的权重,健康值最高的火焰拥有最高的权重;当健康值最高的三个火焰中只有两个火焰存在时,匹配方式为:根据火焰匹配结果更新飞蛾位置。
- 根据权利要求1至5任一项所述的物联网资源分配方法,其特征在于,所述基于数字对象的物联网资源抽象架构,资源分配模型采用资源调度与分配算法执行资源分配方案具体为:所述资源分配模型将任务请求传送给物联网设备的数字对象,所述数字对象包括API模块和通信模块,所述API模块用于判断该物联网设备是否可以满足任务请求,如果可以满足,将满足任务请求信息回传至资源分配模型;如果该物联网设备无法满足任务请求,则通过所述通信模块与其他同类物联网设备进行通信,将所述任务请求发送给其他同类物联网设备。
- 根据权利要求6所述的物联网资源分配方法,其特征在于,所述资源分配模型采用资源调度与分配算法执行资源分配方案具体为:获取飞蛾向量和火焰向量;所述飞蛾向量和火焰向量的长度均为任务请求的数量;设定一个常数ub,使得所述飞蛾向量和火焰向量中的所有数值都介于0-ub之间,如果飞蛾向量和火焰向量中的值介于[0,ub/2]范围之间,则将该任务请求分配至资源充足的场景下;如果飞蛾向量和火焰向量中的值介于(ub/2,ub]之间,则将该任务请求分配至资源匮乏的场景下;所述飞蛾向量和火焰向量中每个值的顺序决定对应任务被分配的顺序;对于被分配后任务请求,判断所述任务请求在被分配的资源场景中所有所需资源是否均可按需满足,如果可以按需满足,被分配的资源场景中为该任务请求按需按时分配所请求的资源,更新被分配的资源场景中的资源可用情况,并计算在被分配的资源场景中满足该任务的收益、代价与优化目标;否则,如果不可以按需满足,使该任务请求失服。
- 一种物联网资源分配系统,其特征在于,包括:初始化模块:用于基于接收到的资源分配任务请求,采用目标与密度感知算法对飞蛾扑火算法的飞蛾向量集合进行初始化,得到初始化飞蛾向量集合;健康值评估模块:用于对所述初始化飞蛾向量集合中每个飞蛾的健康值进行评估,并选出健康值最高的前k个飞蛾作为新的火焰向量;飞蛾-火焰匹配模块:用于基于所述新的火焰向量,采用渐进阶级火焰匹配算法以及探索式飞蛾火焰匹配算法计算飞蛾对应的阶级火焰,将飞蛾与对应的阶级火焰进行匹配,并当仅有一个存活火焰时,根据所述存活火焰生成所述任务请求的资源分配方案;资源分配模块:用于基于数字对象的物联网资源抽象架构,采用资源调度与分配算法执行所述资源分配方案,对所述任务请求进行资源调度与分配。
- 一种终端,其特征在于,所述终端包括处理器、与所述处理器耦接的存储器,其中,所述存储器存储有用于实现权利要求1-7任一项所述的物联网资源分配方法的程序指令;所述处理器用于执行所述存储器存储的所述程序指令以控制物联网资源分配。
- 一种存储介质,其特征在于,存储有处理器可运行的程序指令,所述程序指令用于执行权利要求1至7任一项所述物联网资源分配方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210026373.0A CN114390102B (zh) | 2022-01-11 | 2022-01-11 | 一种物联网资源分配方法、系统、终端以及存储介质 |
| CN202210026373.0 | 2022-01-11 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023134403A1 true WO2023134403A1 (zh) | 2023-07-20 |
Family
ID=81201951
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/140066 Ceased WO2023134403A1 (zh) | 2022-01-11 | 2022-12-19 | 一种物联网资源分配方法、系统、终端以及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN114390102B (zh) |
| WO (1) | WO2023134403A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113723867A (zh) * | 2021-05-21 | 2021-11-30 | 深圳市海柔创新科技有限公司 | 资源分配的方法、装置、设备、存储介质及程序产品 |
| CN119172407A (zh) * | 2024-08-27 | 2024-12-20 | 厦门多多云技术创新研究院有限公司 | 一种用于物联网智能设备的通信协调优化方法 |
| CN120091318A (zh) * | 2025-03-11 | 2025-06-03 | 广东电网有限责任公司惠州供电局 | 灾后无人机基站部署方法、装置、设备及存储介质 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114390102B (zh) * | 2022-01-11 | 2023-07-14 | 中国科学院深圳先进技术研究院 | 一种物联网资源分配方法、系统、终端以及存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108062585A (zh) * | 2017-12-29 | 2018-05-22 | 航天科工智慧产业发展有限公司 | 一种基于飞蛾扑火算法计算函数最值的方法 |
| CN109598296A (zh) * | 2018-11-26 | 2019-04-09 | 长安大学 | 一种基于改进飞蛾扑火k均值聚类方法 |
| WO2019217629A1 (en) * | 2018-05-11 | 2019-11-14 | Qualcomm Incorporated | Shared channel design around reserved resources |
| CN114390102A (zh) * | 2022-01-11 | 2022-04-22 | 中国科学院深圳先进技术研究院 | 一种物联网资源分配方法、系统、终端以及存储介质 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106802822A (zh) * | 2016-12-30 | 2017-06-06 | 南京邮电大学 | 一种基于飞蛾算法的云数据中心认知资源调度方法 |
| CN113222096B (zh) * | 2021-04-30 | 2022-11-11 | 桂林理工大学 | 一种面向云计算任务调度的改进粒子群算法 |
| CN113656153A (zh) * | 2021-06-29 | 2021-11-16 | 桂林理工大学 | 一种面向云计算任务调度的改进人工蜂群算法 |
-
2022
- 2022-01-11 CN CN202210026373.0A patent/CN114390102B/zh active Active
- 2022-12-19 WO PCT/CN2022/140066 patent/WO2023134403A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108062585A (zh) * | 2017-12-29 | 2018-05-22 | 航天科工智慧产业发展有限公司 | 一种基于飞蛾扑火算法计算函数最值的方法 |
| WO2019217629A1 (en) * | 2018-05-11 | 2019-11-14 | Qualcomm Incorporated | Shared channel design around reserved resources |
| CN109598296A (zh) * | 2018-11-26 | 2019-04-09 | 长安大学 | 一种基于改进飞蛾扑火k均值聚类方法 |
| CN114390102A (zh) * | 2022-01-11 | 2022-04-22 | 中国科学院深圳先进技术研究院 | 一种物联网资源分配方法、系统、终端以及存储介质 |
Non-Patent Citations (1)
| Title |
|---|
| TIAN, HONG ET AL.: "Research on New Moth-Flame Optimization Algorithm", COMPUTER ENGINEERING AND APPLICATIONS, vol. 55, no. 16, 26 October 2018 (2018-10-26), XP009547729, ISSN: 1002-8331 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113723867A (zh) * | 2021-05-21 | 2021-11-30 | 深圳市海柔创新科技有限公司 | 资源分配的方法、装置、设备、存储介质及程序产品 |
| CN113723867B (zh) * | 2021-05-21 | 2024-04-26 | 深圳市海柔创新科技有限公司 | 资源分配的方法、装置、设备、存储介质及程序产品 |
| CN119172407A (zh) * | 2024-08-27 | 2024-12-20 | 厦门多多云技术创新研究院有限公司 | 一种用于物联网智能设备的通信协调优化方法 |
| CN120091318A (zh) * | 2025-03-11 | 2025-06-03 | 广东电网有限责任公司惠州供电局 | 灾后无人机基站部署方法、装置、设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114390102A (zh) | 2022-04-22 |
| CN114390102B (zh) | 2023-07-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2023134403A1 (zh) | 一种物联网资源分配方法、系统、终端以及存储介质 | |
| Kaur et al. | Deep‐Q learning‐based heterogeneous earliest finish time scheduling algorithm for scientific workflows in cloud | |
| CN108182115B (zh) | 一种云环境下的虚拟机负载均衡方法 | |
| CN113485826B (zh) | 一种边缘服务器负载均衡方法、系统 | |
| CN112052092B (zh) | 一种风险感知的边缘计算任务分配方法 | |
| CN110516985B (zh) | 仓库选择方法、系统、计算机系统和计算机可读存储介质 | |
| CN108647771A (zh) | 一种混合云环境下科学工作流数据的布局方法 | |
| CN115330189A (zh) | 一种基于改进飞蛾火焰算法的工作流优化调度方法 | |
| CN109067834B (zh) | 基于振荡式惯性权重的离散粒子群调度算法 | |
| CN110968426A (zh) | 一种基于在线学习的边云协同k均值聚类的模型优化方法 | |
| CN112463337B (zh) | 一种用于移动边缘计算环境下的工作流任务迁移方法 | |
| JP2022136234A (ja) | 連合学習方法及び装置、電子機器、記憶媒体ならびにコンピュータプログラム | |
| CN108320059B (zh) | 一种工作流调度进化寻优方法及终端设备 | |
| CN112165721B (zh) | 基于边缘计算的多服务任务的卸载和服务迁移方法 | |
| CN115454612A (zh) | 一种基于维度学习策略和灰狼优化的云平台任务调度方法 | |
| CN102567851A (zh) | 一种云计算环境下安全感知的科学工作流数据布局方法 | |
| CN115934344A (zh) | 异构分布式强化学习计算方法、系统及存储介质 | |
| CN117033261A (zh) | 缓存分配方法、装置、设备、介质及程序产品 | |
| CN117436627A (zh) | 任务分配方法、装置、终端设备及介质 | |
| CN111176784B (zh) | 一种基于极限学习机和蚁群系统的虚拟机整合方法 | |
| CN115016889A (zh) | 一种用于云计算的虚拟机优化调度方法 | |
| CN110162390B (zh) | 一种雾计算系统的任务分配方法及系统 | |
| CN103714184B (zh) | 一种遥感影像快速并行处理方法及装置 | |
| CN117687759A (zh) | 一种任务调度方法、装置、处理设备及可读存储介质 | |
| Wang et al. | Container scaling strategy based on reinforcement learning |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22920034 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22920034 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10-04-2025) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22920034 Country of ref document: EP Kind code of ref document: A1 |


