Shared resource allocation method, device, equipment and computer-readable storage medium

By obtaining and analyzing resource application orders and user basic information, determining the shared resource collection and allocating it, the problem of lack of flexibility and personalization of shared resource allocation in the existing technology is solved, and a more optimized user experience and resource allocation efficiency is achieved.

CN118446442BActive Publication Date: 2025-03-07CHENGTONG DIGITAL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410358623.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-27
Publication Date
2025-03-07
Estimated Expiration
2044-03-27

AI Technical Summary

Technical Problem

The existing shared resource allocation methods lack flexibility and personalized considerations, making it difficult to cope with complex and changeable practical needs.

Method used

By obtaining resource application orders and user basic information, based on the shared resource type, usage time and user information, the shared resource collection of resource application orders is determined in the shared resource pool and resource allocation is performed.

Benefits of technology

A more personalized resource allocation plan is realized, the user experience is optimized, and the flexibility and efficiency of resource allocation are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118446442B_ABST
    Figure CN118446442B_ABST
Patent Text Reader

Abstract

The present invention relates to a shared resource allocation method, device, equipment and computer-readable storage medium, belonging to the technical field of communication, and the method includes: obtaining at least one resource application order and basic user information corresponding to each resource application order, each resource application order includes a shared resource type, shared resource usage time and application time, and each user basic information includes identity information, user location and resource usage record information; for each resource application order, based on the shared resource type, shared resource usage time and user basic information corresponding to the resource application order, determine the shared resource set of the resource application order in a shared resource pool; based on the shared resource set, application time and user basic information of each resource application order, allocate resources to at least one resource application order. The present application has the advantages of improving the flexibility of shared resource allocation and meeting the personalized needs of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communications, and in particular to a shared resource allocation method, device, equipment and computer-readable storage medium. Background Art

[0002] With the rapid development of science and technology and the widespread popularity of Internet applications, shared resources have become an indispensable part of modern society. Whether it is shared power banks, shared parking spaces, shared conference rooms or cloud computing resources, the application scope of the sharing concept is getting wider and wider. However, the current shared resource allocation methods still face a series of problems, which largely limit the efficiency of shared resource use and user experience.

[0003] At present, resource allocation methods often allocate resources according to the chronological order of application by applicants for shared resources. Although this simple allocation method is easy to implement, it lacks flexibility and personalized considerations, and is difficult to cope with complex and changing actual needs. Summary of the invention

[0004] The technical problem to be solved by the present invention is to improve the flexibility of shared resource allocation and meet the personalized needs of users.

[0005] The technical solution of the present invention to solve the above technical problems is as follows:

[0006] In the first aspect, the present application provides a method that adopts the following technical solution:

[0007] A shared resource allocation method, comprising:

[0008] Obtain at least one resource application order and basic user information corresponding to each resource application order, each resource application order includes a shared resource type, a shared resource usage time, and an application time, and each user basic information includes identity information, user location, and historical resource usage information;

[0009] For each resource application order, based on the shared resource type, shared resource usage time and user basic information corresponding to the resource application order, determine a shared resource set of the resource application order in a shared resource pool, wherein the shared resource pool includes a plurality of resources;

[0010] Based on the shared resource set, application time and user basic information of each resource application order, resources are allocated to at least one of the resource application orders.

[0011] The beneficial effects of the present invention are: by comprehensively considering the shared resource type, usage time and basic user information (such as user location and historical resource usage information), the user's needs and habits are better understood, thereby providing users with more personalized resource allocation plans and optimizing user experience. The resource allocation plan is dynamically adjusted according to actual conditions to adapt to the needs and changes of different users, thereby improving the flexibility of resource allocation.

[0012] Based on the above technical solution, the present invention can also be improved as follows.

[0013] Further, the multiple resources include multiple available resources, and for each of the available resources, the available resource is a resource that meets the user application conditions. For each of the resource application orders, based on the shared resource type, shared resource usage time and user basic information corresponding to the resource application order, a shared resource set of the resource application order is determined in a shared resource pool, including:

[0014] For each resource application order, based on the shared resource type and the shared resource usage time, a plurality of available resources are determined in the shared resource pool, where the available resources are resources that meet the user's application conditions;

[0015] For each of the resource application orders, obtaining monitoring information of each available resource corresponding to the resource application order, the monitoring information including resource location, resource usage frequency, power consumption information and asset management information;

[0016] For each of the resource application orders, a shared resource set of the resource application order is determined based on basic user information corresponding to the resource application order and monitoring information of each of the multiple available resources.

[0017] The beneficial effects of adopting the above further scheme are: by considering the user's location information, historical resource usage information and the location information of available resources, the available resources that are closest or most suitable for the user's needs can be selected for the user, thereby optimizing the user experience; by considering the resource usage frequency, power consumption information and asset management information of available resources, it is convenient for the system to optimize the imbalance problem of shared resources, improve the load balancing of shared resources, avoid waste and excessive use of resources, and improve the efficiency of resource utilization.

[0018] Further, the shared resource set includes an optimal resource set, and for each of the resource application orders, based on basic user information corresponding to the resource application order and monitoring information of each of the multiple available resources, determining the shared resource set of the resource application order includes:

[0019] For each of the resource application orders, determining a first weight value of each of the available resources based on a user location corresponding to the resource application order and resource locations of the plurality of available resources;

[0020] For each of the resource application orders, determining a second weight value of each of the available resources based on historical resource usage information corresponding to the resource application order;

[0021] For each of the resource application orders, determining a third weight value of each of the available resources based on the resource usage frequency of each of the available resources;

[0022] For each of the resource application orders, determining a fourth weight value of each of the available resources based on the power consumption information of each of the available resources;

[0023] For each of the resource application orders, based on the asset management information of each of the available resources, determining a fifth weight value of each of the available resources;

[0024] For each of the available resources in each of the resource application orders, a score value of the available resource is calculated based on the first weight value, the second weight value, the third weight value, the fourth weight value and the fifth weight value of the available resource, and based on the score value of the available resource, an available resource whose score value is within a preset score threshold is selected as the first resource to be allocated;

[0025] Each of the first resources to be allocated is used as an optimal resource set of the resource application order.

[0026] The beneficial effect of adopting the above further scheme is: by comprehensively considering multiple dimensions such as user location, historical resource usage information, resource usage frequency, power consumption information, etc., multiple weight values ​​are generated for each available resource. These weight values ​​comprehensively consider multiple factors such as the geographical location of the resource, the user's usage habits, and power consumption, so as to more accurately reflect the actual status of the resource and the user's needs. Based on the available resource score values ​​calculated based on these weight values, resources that meet user needs are selected more accurately, thereby improving the accuracy of resource allocation.

[0027] Further, the shared resource set also includes a dynamically allocated resource set, and for each of the resource application orders, based on the basic information of the user corresponding to the resource application order and the monitoring information of each of the multiple available resources, determining the shared resource set of the resource application order also includes:

[0028] For each available resource in each resource application order, a preset number of available resources are selected as second resources to be allocated according to the score values ​​of the unselected available resources;

[0029] The second resource to be allocated is used as a dynamically allocated resource set of the resource application order.

[0030] The beneficial effect of adopting the above further scheme is: in the process of resource allocation, when determining the shared resource set for each resource application order, in addition to the optimal resource set, the dynamically allocated resource set is also considered. By setting up the dynamically allocated resource set, when the resources in the optimal resource set cannot be used for various reasons, the dynamically allocated resource set can be quickly replaced to ensure that the resource application order can be met. Or in the process of resource allocation, the optimal resources are allocated to users first to improve the user experience and personalized needs of users. When there is no optimal resource that meets the conditions in the shared resource pool, resources are allocated to users in the dynamically allocated resource set to improve the rationality of shared resource allocation.

[0031] Further, allocating resources to each resource application order based on the shared resource set of each resource application order, the application time, and the basic information of the user corresponding to the resource application order includes:

[0032] For each of the resource application orders, determining whether there is an optimal resource set for the resource application order;

[0033] If the resource application order has an optimal resource set, the resource application order is used as the first order;

[0034] If the resource application order does not have an optimal resource set, determining whether the resource application order has a dynamically allocated resource set;

[0035] If the resource application order contains a dynamically allocated resource set, the resource application order is used as the second order;

[0036] If the resource application order does not contain a dynamically allocated resource set, the resource application order is used as the third order;

[0037] For the first order, based on the application time of each first order, the basic information of the user corresponding to the resource application order and the preset first order allocation rule, a first resource to be allocated is selected from the optimal resource set corresponding to the first order for allocation;

[0038] For the second order, based on the application time of each second order, select a second resource to be allocated from the dynamic allocation resource set corresponding to each second order for allocation;

[0039] For the third order, no resource allocation is performed.

[0040] The beneficial effect of adopting the above further scheme is: by the available resources of each resource application order, the resource application order is classified, and the resource application order is divided into orders with optimal shared resources, orders without optimal shared resources but with mobile shared resources, and orders without available resources, that is, the first order, the second order, and the third order. By classifying each resource application order, the system can prioritize the first order and the second order for resource allocation processing, thereby improving the efficiency and accuracy of resource allocation. For the first order, by considering the user's historical usage habits, location, etc., an optimal first resource to be allocated is selected for allocation, thereby meeting the user's personalized needs and optimizing the user experience; for the second order, when there are no available resources in the optimal resource set, turn to the dynamic allocation resource set to allocate resources for the second order; for the third order, that is, an order with neither optimal resources nor mobile resources, no resource allocation is performed to avoid invalid resource allocation and save system resources.

[0041] Further, the identity information includes a resource credit score, and the selecting a first resource to be allocated from the optimal resource set corresponding to the first order for allocation based on the application time of each first order, the basic information of the user corresponding to the resource application order, and the preset first order allocation rule includes:

[0042] In the optimal resource sets corresponding to the first orders, determining whether there is a first order with the same available resources corresponding to the highest score value;

[0043] If not, selecting the available resource with the highest score value from the optimal resource set corresponding to the first order, and allocating the selected available resource to the corresponding first order;

[0044] If there is a first order with the same available resource as that corresponding to the highest score value, for each of the first orders, determine a sixth weight value of the first order based on the application time corresponding to the first order;

[0045] For each of the first orders, determining a seventh weight value of the first order based on the resource credit score corresponding to the first order;

[0046] sorting the first orders according to the sixth weight value and the seventh weight value of each of the first orders;

[0047] Based on the sorting results of each of the first orders, an available resource with the highest score value is selected for allocation from the optimal resource set corresponding to each of the first orders, and the selected available resource is removed from the shared resource pool until resources are allocated to each of the first orders.

[0048] The beneficial effect of adopting the above further solution is that by considering the resource credit score, the system can evaluate the user's past resource usage behavior, thereby allocating resources more fairly. Combining the application time and the resource credit score, the sixth and seventh weight values ​​are calculated for each first order, so that the system considers multiple factors to make resource allocation decisions, thereby improving the rationality of resource allocation.

[0049] Further, for each allocated resource not in the shared resource pool, determining whether the allocated resource is used within a preset time period, the preset time period being calculated based on the shared resource usage time;

[0050] If the allocated resources are not used within a preset time period, the allocated resources are recycled to the shared resource pool.

[0051] The beneficial effect of adopting the above further scheme is that by detecting the usage status of the allocated resources, those resources that are allocated but not actually used can be found in time. Recycling these unused resources to the shared resource pool in time can ensure that they can be used by other users or tasks in need, thereby improving the overall utilization of resources. For those resources that are allocated but not actually used, if they are not recycled in time, it will cause waste of resources. By regularly detecting and recycling these unused resources, it is possible to reduce waste of resources, reduce operating costs, and improve economic benefits.

[0052] In a second aspect, the present application provides a shared resource allocation device, which adopts the following technical solution:

[0053] A shared resource allocation device, comprising:

[0054] An acquisition module, used to acquire at least one resource application order and basic user information corresponding to each resource application order, each resource application order including a shared resource type, a shared resource usage time, and an application time, and each user basic information including identity information, user location, and historical resource usage information;

[0055] A determination module, configured to determine, for each resource application order, a shared resource set of the resource application order in a shared resource pool based on the shared resource type, shared resource usage time and user basic information corresponding to the resource application order, wherein the shared resource pool includes a plurality of resources;

[0056] The resource allocation module is used to allocate resources to at least one resource application order based on the shared resource set, application time and user basic information of each resource application order.

[0057] The beneficial effects of the present invention are: by sharing resource types, usage time and basic user information (such as user location and historical resource usage information), the user's needs and habits are understood, thereby providing users with more personalized resource allocation plans and optimizing user experience. The resource allocation plan is dynamically adjusted according to actual conditions to adapt to the needs and changes of different users, thereby improving the flexibility of resource allocation.

[0058] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:

[0059] An electronic device comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes the shared resource allocation method described in any one of the first aspects.

[0060] The beneficial effects of the present invention are as follows: the processor executes the shared resource allocation method stored in the memory, understands the user's needs and habits through the shared resource type, usage time and user basic information (such as user location and historical resource usage information), provides the user with a more personalized resource allocation plan, and optimizes the user experience. The resource allocation plan is dynamically adjusted according to the actual situation to adapt to the needs and changes of different users, thereby improving the flexibility of resource allocation.

[0061] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:

[0062] A computer-readable storage medium stores a computer program that can be loaded by a processor and executes the shared resource allocation method described in any one of the first aspects.

[0063] The beneficial effects of the present invention are as follows: the processor loads and executes the computer program stored in the computer-readable storage medium, and the electronic device understands the needs and habits of the user by sharing resource types, usage time, and basic user information (such as user location and historical resource usage information), and provides the user with a more personalized resource allocation plan to optimize the user experience. The resource allocation plan is dynamically adjusted according to the actual situation to adapt to the needs and changes of different users, thereby improving the flexibility of resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 A schematic diagram of a shared resource allocation method of the present invention;

[0065] Figure 2 It is a structural block diagram of the shared resource allocation device of the present invention;

[0066] Figure 3 The figure is a structural block diagram of an electronic device of the present invention. DETAILED DESCRIPTION

[0067] The present application is further described in detail below in conjunction with the accompanying drawings.

[0068] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0069] An embodiment of the present application provides a shared resource allocation method, which can be executed by an electronic device, which can be a server or a mobile terminal device, wherein the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services; the mobile terminal device can be a laptop computer, a desktop computer, etc., but is not limited to this.

[0070] The following is a further detailed description of the embodiments of the present application in conjunction with the accompanying drawings. Figure 1 As shown, the shared resource allocation method includes steps S1 to S3:

[0071] Step S1, obtaining at least one resource application order and basic user information corresponding to each resource application order, each resource application order including the type of shared resources, the shared resource usage time and the application time, and each user basic information including identity information, user location and historical resource usage information;

[0072] In the implementation mode of this application, the user logs in to the shared resource allocation system according to the ID account and password, and fills in the basic user information and saves it in the identity database of the system. The identity information includes but is not limited to name, mobile phone number, work department, job title, resource credit score; the user location includes but is not limited to the floor information of the workstation and the real-time GPS location; the historical resource usage information includes but is not limited to the historical resource usage preferences and frequency.

[0073] It should be noted that the resource credit score is calculated based on the historical violation of shared resource usage. Violations include the frequency of overtime use of resources and the frequency of not using resources but not canceling them in time.

[0074] Shared resources refer to a space or physical item that exists in the real physical world and can be reused by users, such as shared conference rooms, shared parking spaces, shared power banks, and shared electric vehicles. Shared resources have basic attributes, including ID (unique digital identifier of the resource), name, location (spatial location or geographic coordinates), ownership information, and available scope.

[0075] The shared resource allocation system determines the user's available reservation time period based on the current time and generates a user interface for the user to fill in a resource application order. When a user needs to reserve a shared resource, the user submits a resource application order through the user interface of the shared resource allocation system, and the shared resource allocation system stores the resource application order and the user information associated with the resource application order in the order application pool. The electronic device obtains all resource application orders in the order application pool and the basic information of the user corresponding to the resource application order, and verifies and processes the resource application order. After verification and processing, the resource application order in the order application pool is moved to the database so that the electronic device can perform subsequent resource allocation and management operations.

[0076] Step S2, for each resource application order, based on the shared resource type, shared resource usage time and user basic information corresponding to the resource application order, determining a shared resource set of the resource application order in a shared resource pool, wherein the shared resource pool includes a plurality of resources;

[0077] In the implementation mode of the present application, the shared resource pool includes unallocated resources of various shared resource types within the reservable time period, and the unallocated resources within the reservable time period in the shared resource pool are all marked as available. After the applicant applies for the resource, the shared resource will be displayed as unavailable during the shared resource usage time. After the shared resource usage time ends, it will be recycled to the shared resource pool and restored to available status.

[0078] The shared resource set includes an optimal resource set and a dynamically allocated resource set, wherein the optimal resource set is used to record the available resources that meet the first preset condition and are screened in the shared resource pool corresponding to the shared resource application order, and the dynamically allocated resource set is used to record the available resources that meet the second preset condition and do not meet the first preset condition and are screened in the shared resource pool corresponding to the shared resource application order. Available resources are shared resources that can be used by users and meet the application conditions.

[0079] In the implementation manner of the present application, step S2 specifically includes:

[0080] For each of the resource application orders, based on the shared resource type and the shared resource usage time, determine a plurality of available resources in the shared resource pool;

[0081] For each of the resource application orders, obtaining monitoring information of each available resource corresponding to the resource application order, the monitoring information including resource location, resource usage frequency, power consumption information and asset management information;

[0082] For each of the resource application orders, a shared resource set of the resource application order is determined based on basic user information corresponding to the resource application order and monitoring information of each of the multiple available resources.

[0083] In an implementation manner of the present application, available resources that match the resource type and shared resource usage time of the resource application order are screened in the shared resource pool. In addition to the shared resource type and shared resource usage time, usage scope information may also be considered. The available resources screened out by default in the present application are all within the scope available to the user.

[0084] It should be noted that the power consumption information includes the energy consumption and power consumption of the shared resource equipment on that day, and the asset management information includes the maintenance records and maintenance status of the shared resource equipment.

[0085] Further, as for each resource application order, based on the user basic information corresponding to the resource application order and the monitoring information of each of the multiple available resources, determining the shared resource set of the resource application order includes:

[0086] For each of the resource application orders, a first weight value of each of the available resources is determined based on the user location corresponding to the resource application order and the resource locations of the multiple available resources. The first weight value reflects the geographical proximity between the applicant and the available resources. Distance is usually used as a metric. The closer the distance, the higher the first weight value.

[0087] For each of the resource application orders, a second weight value of each of the available resources is determined based on the historical resource usage information corresponding to the resource application order, and the second weight value reflects the applicant's preference for the available resources.

[0088] For each of the resource application orders, based on the resource usage frequency of each of the available resources, a third weight value of each of the available resources is determined, wherein the third weight value reflects the usage frequency of the available resources, and the higher the usage frequency, the lower the weight value, so as to facilitate balanced allocation of shared resources by the system;

[0089] For each of the resource application orders, determining a fourth weight value of each of the available resources based on the power consumption information of each of the available resources;

[0090] For each of the resource application orders, based on the asset management information of each of the available resources, determining a fifth weight value of each of the available resources;

[0091] For each of the available resources in each of the resource application orders, a score value of the available resource is calculated based on the first weight value, the second weight value, the third weight value, the fourth weight value and the fifth weight value of the available resource, and based on the score value of the available resource, an available resource whose score value is within a preset score threshold is selected as the first resource to be allocated;

[0092] Each of the first resources to be allocated is used as an optimal resource set of the resource application order.

[0093] For the unselected available resources, the system selects a preset number of available resources as the second resources to be allocated according to the score values. Although these resources have lower scores, they can still meet the needs of the user.

[0094] The system uses the second resource to be allocated as the dynamically allocated resource set of the resource application order.

[0095] By comprehensively considering multiple dimensions such as user location, historical resource usage information, resource usage frequency, power consumption information, etc., multiple weight values ​​are generated for each available resource. These weight values ​​comprehensively consider multiple factors such as the geographical location of the resource, the user's usage habits, and power consumption, so as to more accurately reflect the actual status of the resource and the user's needs. Based on the available resource score values ​​calculated based on these weight values, resources that meet user needs are selected more accurately, improving the accuracy of resource allocation. When there is no optimal resource that meets the conditions in the shared resource pool, resources are allocated to users in the dynamically allocated resource set to improve the rationality of shared resource allocation.

[0096] In addition to the above methods, in actual operation, the system can also optimize resource allocation according to specific circumstances. For example, when there are no available resources in the optimal resource set that meet the order requirements, the system selects resources from the dynamic allocation resource set to supplement. At the same time, the system can also dynamically adjust the weight value and score threshold according to the user's real-time feedback and the actual use of resources to improve the accuracy and efficiency of resource allocation.

[0097] Step S3, allocating resources to at least one of the resource application orders based on the shared resource set, application time and user basic information of each of the resource application orders;

[0098] In the implementation mode of the present application, when the system allocates resources for a resource application order, it first selects from the optimal resource set. If there are available resources in the optimal resource set, then these resources will be allocated to the order first to ensure efficient use of resources and meet user expectations. If there are no available resources in the optimal resource set, then resources are selected from the dynamically allocated resource set for allocation.

[0099] Specifically, step S3 includes the following sub-steps:

[0100] Step S31, for each resource application order, determining whether there is an optimal resource set for the resource application order;

[0101] If the resource application order has an optimal resource set, the resource application order is used as the first order;

[0102] If the resource application order does not contain an optimal resource set, step S32 is executed.

[0103] In an embodiment of the present application, for each resource application order, the system first checks whether there is a first resource to be allocated in its optimal resource set. These resources are screened out based on the previous weight calculation and score threshold, and are considered to be the resources that best meet the order requirements. If there is a first resource to be allocated in the optimal resource set, then the resource application order is considered to be the "first order". This means that the order can obtain the required resources directly from the optimal resource set. If there is no first resource to be allocated in the optimal resource set, the system continues to execute step S32.

[0104] Step S32, determining whether the resource application order has a dynamically allocated resource set;

[0105] If the resource application order contains a dynamically allocated resource set, the resource application order is used as the second order;

[0106] If the resource application order does not contain a dynamically allocated resource set, the resource application order is used as the third order;

[0107] In the implementation mode of the present application, the system checks whether there is a second resource to be allocated in the dynamically allocated resource set of the resource application order. These resources are available resources that do not meet the optimal resource set, and although they may not be the best choice, they can still meet the order requirements.

[0108] If there is a second resource to be allocated in the dynamically allocated resource set, the resource application order is considered a "second order", which means that the order can obtain the required resources from the dynamically allocated resource set.

[0109] If there is no second resource to be allocated in the dynamic allocation resource set, the resource application order is marked as "third order", which means that there is currently no available resource to meet the requirements of the order.

[0110] Step S33: for the first order, based on the application time of each first order, the basic information of the user corresponding to the resource application order and the preset first order allocation rule, a first resource to be allocated is selected from the optimal resource set corresponding to the first order for allocation;

[0111] Step S34: for the second order, based on the application time of each second order, select a second resource to be allocated from the dynamic allocation resource set corresponding to each second order to ensure fairness and efficiency of resource allocation. During the resource allocation of the second order, if there is a second order without a second resource to be allocated, then re-use the resource application order as the third order;

[0112] Step S35: For the third order, no resources are allocated, and a notification message indicating that no resources are available is sent to the applicant's account.

[0113] As an implementation manner of step S33, it includes:

[0114] In the optimal resource sets corresponding to the first orders, determining whether there is a first order with the same available resources corresponding to the highest score value;

[0115] If it does not exist, then from the optimal resource set corresponding to the first order, select the available resource with the highest score value, and allocate the selected available resource to the corresponding first order. After allocation, the resource will be removed from the shared resource pool to ensure that other orders will not be allocated to the resource again.

[0116] If there is a first order with the same available resources as that corresponding to the highest score value, then for each of the first orders, the sixth weight value of the first order is determined based on the application time corresponding to the first order; the earlier the application time, the higher the sixth weight value.

[0117] For each of the first orders, the seventh weight value of the first order is determined based on the resource credit score corresponding to the first order; the resource credit score can reflect the user's past resource usage and reputation, and the higher the score, the higher the seventh weight value.

[0118] sorting the first orders according to the sixth weight value and the seventh weight value of each of the first orders;

[0119] Based on the sorting results of each of the first orders, select an available resource with the highest score value from the optimal resource set corresponding to each of the first orders for allocation, and remove the selected available resource from the shared resource pool until each of the first orders is allocated resources. The order of allocation follows the sorting results to ensure that orders with higher priorities can obtain resources first. After each allocation, the allocated resources will be removed from the shared resource pool to ensure that other orders will not be allocated the resources again.

[0120] During resource allocation for the first order, if there is a situation where the first order does not have the first resource to be allocated, the resource application order is re-made as the second order;

[0121] According to the available resources of each resource application order, the resource application order is classified into orders with optimal shared resources, orders without optimal shared resources but with mobile shared resources, and orders without available resources, that is, the first order, the second order, and the third order. By classifying each resource application order, the system can prioritize the first order and the second order for resource allocation, thereby improving the efficiency and accuracy of resource allocation. For the first order, by considering the user's historical usage habits, location, etc., an optimal first resource to be allocated is selected for allocation, thereby meeting the user's personalized needs and optimizing the user experience; for the second order, when there are no available resources in the optimal resource set, the resource set is turned to the dynamic allocation to allocate resources for the second order; for the third order, that is, an order with neither optimal resources nor mobile resources, no resource allocation is performed to avoid invalid resource allocation and save system resources.

[0122] By considering resource credit scores, the system can evaluate the user's past resource usage behavior and allocate resources more fairly. Combining the application time and resource credit score, the sixth and seventh weight values ​​are calculated for each first order, allowing the system to consider multiple factors to make resource allocation decisions, improving the rationality of resource allocation.

[0123] As an optional implementation of the implementation of the present application, the shared resource allocation method further includes:

[0124] Step S4, for each allocated resource not in the shared resource pool, determining whether the allocated resource is used within a preset time period, wherein the preset time period is calculated based on the shared resource usage time;

[0125] Step S5: If the allocated resources are not used within a preset time period, the allocated resources are recycled to the shared resource pool.

[0126] In the implementation manner of the present application, the usage status of each allocated resource is checked periodically or in real time, for example, through sensors of the device, user feedback, or direct communication with the resource.

[0127] For each allocated resource, determine whether the resource is actually used within the preset time period. If the resource is not used within the preset time period, or the usage time is much lower than expected, then the resource can be considered idle in the current time period and can be re-included in the shared resource pool for reallocation. After the resources are recycled, the system needs to update the status information of these resources to ensure that their status is accurately reflected in the shared resource pool.

[0128] By detecting the usage status of allocated resources, you can promptly discover those resources that are allocated but not actually used. Recycling these unused resources to the shared resource pool in a timely manner can ensure that they can be used by other users or tasks in need, thereby improving the overall utilization of resources. If resources that are allocated but not actually used are not recycled in a timely manner, it will cause waste of resources. By regularly detecting and recycling these unused resources, you can reduce resource waste, reduce operating costs, and improve economic benefits.

[0129] This method takes into account the shared resource type, usage time, and basic user information (such as user location and historical resource usage information) to better understand user needs and habits, thereby providing users with more personalized resource allocation plans and optimizing user experience. The resource allocation plan is dynamically adjusted according to actual conditions to adapt to the needs and changes of different users, thereby improving the flexibility of resource allocation.

[0130] Figure 2 A structural block diagram of a shared resource allocation device 200 is shown.

[0131] like Figure 2 As shown, a shared resource allocation device 200 mainly includes:

[0132] Acquisition module 201, used to acquire at least one resource application order and basic user information corresponding to each resource application order, each resource application order includes a shared resource type, a shared resource usage time, and an application time, and each user basic information includes identity information, user location, and historical resource usage information;

[0133] A determination module 202 is used to determine, for each resource application order, a shared resource set of the resource application order in a shared resource pool based on the shared resource type, shared resource usage time and user basic information corresponding to the resource application order, wherein the shared resource pool includes multiple resources;

[0134] The resource allocation module 203 is used to allocate resources to at least one resource application order based on the shared resource set, application time and user basic information of each resource application order.

[0135] Optionally, the multiple resources include multiple available resources, and for each of the available resources, the available resource is a resource that meets the user's application conditions, and the determination module 202 includes:

[0136] A first determination submodule is used to determine, for each resource application order, a plurality of available resources in a shared resource pool based on the shared resource type and the shared resource usage time, wherein the available resources are resources that meet the user application conditions;

[0137] An acquisition submodule, for acquiring, for each resource application order, monitoring information of each available resource corresponding to the resource application order, wherein the monitoring information includes resource location, resource usage frequency, power consumption information and asset management information;

[0138] The second determination submodule is used to determine, for each resource application order, a plurality of available resources in a shared resource pool based on the shared resource type and the shared resource usage time, where the available resources are resources that meet the user application conditions.

[0139] Optionally, the shared resource set includes an optimal resource set, and the second determining submodule is specifically configured to:

[0140] For each of the resource application orders, determining a first weight value of each of the available resources based on a user location corresponding to the resource application order and resource locations of the plurality of available resources;

[0141] For each of the resource application orders, determining a second weight value of each of the available resources based on historical resource usage information corresponding to the resource application order;

[0142] For each of the resource application orders, determining a third weight value of each of the available resources based on the resource usage frequency of each of the available resources;

[0143] For each of the resource application orders, determining a fourth weight value of each of the available resources based on the power consumption information of each of the available resources;

[0144] For each of the resource application orders, based on the asset management information of each of the available resources, determining a fifth weight value of each of the available resources;

[0145] For each of the available resources in each of the resource application orders, a score value of the available resource is calculated based on the first weight value, the second weight value, the third weight value, the fourth weight value and the fifth weight value of the available resource, and based on the score value of the available resource, an available resource whose score value is within a preset score threshold is selected as the first resource to be allocated;

[0146] Each of the first resources to be allocated is used as an optimal resource set of the resource application order.

[0147] Optionally, the shared resource set further includes a dynamically allocated resource set, and the second determining submodule is further specifically configured to:

[0148] For each available resource in each resource application order, a preset number of available resources are selected as second resources to be allocated according to the score values ​​of the unselected available resources;

[0149] The second resource to be allocated is used as a dynamically allocated resource set of the resource application order.

[0150] Optionally, the resource allocation module 203 includes:

[0151] A judgment submodule, used for judging, for each resource application order, whether there is an optimal resource set for the resource application order;

[0152] If the resource application order has an optimal resource set, the resource application order is used as the first order;

[0153] If the resource application order does not have an optimal resource set, determining whether the resource application order has a dynamically allocated resource set;

[0154] If the resource application order contains a dynamically allocated resource set, the resource application order is used as the second order;

[0155] If the resource application order does not contain a dynamically allocated resource set, the resource application order is used as the third order;

[0156] A first allocation submodule is used to select a first resource to be allocated from the optimal resource set corresponding to the first order for allocation based on the application time of each first order, the basic information of the user corresponding to the resource application order and the preset first order allocation rule for the first order;

[0157] A second allocation submodule is used to select a second resource to be allocated from the dynamic allocation resource set corresponding to each second order for allocation based on the application time of each second order;

[0158] The third allocation submodule is used for not allocating resources for the third order.

[0159] Optionally, the identity information includes a resource credit score, and the second allocation submodule is specifically configured to:

[0160] In the optimal resource sets corresponding to the first orders, determining whether there is a first order with the same available resources corresponding to the highest score value;

[0161] If not, selecting the available resource with the highest score value from the optimal resource set corresponding to the first order, and allocating the selected available resource to the corresponding first order;

[0162] If there is a first order with the same available resource as that corresponding to the highest score value, for each of the first orders, determine a sixth weight value of the first order based on the application time corresponding to the first order;

[0163] For each of the first orders, determining a seventh weight value of the first order based on the resource credit score corresponding to the first order;

[0164] sorting the first orders according to the sixth weight value and the seventh weight value of each of the first orders;

[0165] Based on the sorting results of each of the first orders, an available resource with the highest score value is selected for allocation from the optimal resource set corresponding to each of the first orders, and the selected available resource is removed from the shared resource pool until resources are allocated to each of the first orders.

[0166] Optionally, the shared resource allocation device 200 further includes a resource recovery module, and the resource recovery module is specifically used to:

[0167] For each allocated resource that is not in the shared resource pool, determining whether the allocated resource is used within a preset time period, the preset time period being calculated based on the shared resource usage time;

[0168] If the allocated resources are not used within a preset time period, the allocated resources are recycled to the shared resource pool.

[0169] In one example, the module in any of the above devices may be one or more integrated circuits configured to implement the above method, such as: one or more application specific integrated circuits (ASIC), or, one or more digital signal processors (DSP), or, one or more field programmable gate arrays (FPGA), or a combination of at least two of these integrated circuit forms.

[0170] For another example, when the modules in the device can be implemented in the form of a processing element scheduling program, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0171] Various objects such as various messages / information / equipment / network elements / systems / devices / actions / operations / processes / concepts that may appear in this application are named. It can be understood that these specific names do not constitute a limitation on the relevant objects. The names assigned may change with factors such as scenarios, contexts or usage habits. The understanding of the technical meaning of the technical terms in this application should be mainly determined from the functions and technical effects embodied / executed in the technical scheme.

[0172] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0173] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0174] Figure 3 This is a structural block diagram of an electronic device 300 according to an embodiment of the present application.

[0175] like Figure 3 As shown, the electronic device 300 includes a processor 301 and a memory 302 , and may further include one or more of an information input / information output (I / O) interface 303 and a communication component 304 .

[0176] The processor 301 is used to control the overall operation of the electronic device 300 to complete all or part of the steps in the above-mentioned shared resource allocation method; the memory 302 is used to store various types of data to support the operation of the electronic device 300, and these data may include, for example, instructions for any application or method used to operate on the electronic device 300, and data related to the application. The memory 302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0177] The I / O interface 303 provides an interface between the processor 301 and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, etc. These buttons can be virtual buttons or physical buttons. The communication component 304 is used to test the wired or wireless communication between the electronic device 300 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 304 can include: Wi-Fi components, Bluetooth components, NFC components.

[0178] The communication bus 305 may include a path to transmit information between the above components. The communication bus 305 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industrial Standard Architecture) bus, etc. The communication bus 305 may be divided into an address bus, a data bus, a control bus, etc.

[0179] The electronic device 300 can be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components, and is used to execute the shared resource allocation method given in the above embodiment.

[0180] The electronic device 300 may include but is not limited to mobile terminals such as digital broadcast receivers, PDAs (personal digital assistants), PMPs (portable multimedia players), etc., and fixed terminals such as digital TVs, desktop computers, etc., and may also be servers, etc.

[0181] The computer-readable storage medium provided in the embodiments of the present application is introduced below. The computer-readable storage medium described below and the shared resource allocation method described above can be referenced to each other.

[0182] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned shared resource allocation method are implemented.

[0183] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0184] The terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus.

[0185] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned application concept. For example, the above features are replaced with (but not limited to) technical features with similar functions applied in the present application.

Claims

1. A shared resource allocation method, characterized in that: include: Obtain at least one resource application order and basic user information corresponding to each resource application order, each resource application order includes a shared resource type, a shared resource usage time, and an application time, and each user basic information includes identity information, user location, and historical resource usage information; For each resource application order, based on the shared resource type, shared resource usage time and user basic information corresponding to the resource application order, determine a shared resource set of the resource application order in a shared resource pool, wherein the shared resource pool includes a plurality of resources; Allocate resources for at least one resource application order based on the shared resource set, application time, and user basic information of each resource application order; The multiple resources include multiple available resources, and for each of the available resources, the available resource is a resource that meets the user application condition. For each of the resource application orders, based on the shared resource type, shared resource usage time and user basic information corresponding to the resource application order, a shared resource set of the resource application order is determined in a shared resource pool, including: For each of the resource application orders, based on the shared resource type and the shared resource usage time, determine a plurality of available resources in the shared resource pool; For each of the resource application orders, obtaining monitoring information of each available resource corresponding to the resource application order, the monitoring information including resource location, resource usage frequency, power consumption information and asset management information; For each of the resource application orders, based on basic user information corresponding to the resource application order and monitoring information of each of the multiple available resources, determine a shared resource set of the resource application order; The shared resource set includes an optimal resource set and a dynamically allocated resource set. For each resource application order, based on basic user information corresponding to the resource application order and monitoring information of each of the multiple available resources, determining the shared resource set of the resource application order includes: For each of the resource application orders, determining a first weight value of each of the available resources based on a user location corresponding to the resource application order and resource locations of the plurality of available resources; For each of the resource application orders, determining a second weight value of each of the available resources based on historical resource usage information corresponding to the resource application order; For each of the resource application orders, determining a third weight value of each of the available resources based on the resource usage frequency of each of the available resources; For each of the resource application orders, determining a fourth weight value of each of the available resources based on the power consumption information of each of the available resources; For each of the resource application orders, based on the asset management information of each of the available resources, determining a fifth weight value of each of the available resources; For each of the available resources in each of the resource application orders, a score value of the available resource is calculated based on the first weight value, the second weight value, the third weight value, the fourth weight value and the fifth weight value of the available resource, and based on the score value of the available resource, an available resource whose score value is within a preset score threshold is selected as the first resource to be allocated; taking each of the first resources to be allocated as an optimal resource set of the resource application order; When there are no available resources in the optimal resource set that meet the order requirements, resources are selected from the dynamically allocated resource set for replenishment.

2. A shared resource allocation method according to claim 1, characterized in that: For each resource application order, determining a shared resource set of the resource application order based on basic user information corresponding to the resource application order and monitoring information of each of the multiple available resources, further comprising: For each available resource in each resource application order, a preset number of available resources are selected as second resources to be allocated according to the score values ​​of the unselected available resources; The second resource to be allocated is used as a dynamically allocated resource set of the resource application order.

3. A shared resource allocation method according to claim 2, characterized in that: Allocating resources to each resource application order based on the shared resource set, application time, and basic user information corresponding to each resource application order includes: For each resource application order, determining whether there is an optimal resource set for the resource application order; If the resource application order has an optimal resource set, the resource application order is used as the first order; If the resource application order does not have an optimal resource set, determining whether the resource application order has a dynamically allocated resource set; If the resource application order contains a dynamically allocated resource set, the resource application order is used as the second order; If the resource application order does not contain a dynamically allocated resource set, the resource application order is used as the third order; For the first order, based on the application time of each first order, the basic information of the user corresponding to the resource application order and the preset first order allocation rule, a first resource to be allocated is selected from the optimal resource set corresponding to the first order for allocation; For the second order, based on the application time of each second order, select a second resource to be allocated from the dynamic allocation resource set corresponding to each second order for allocation; For the third order, no resource allocation is performed.

4. A shared resource allocation method according to claim 3, characterized in that: The identity information includes a resource credit score, and the selecting a first resource to be allocated from the optimal resource set corresponding to the first order based on the application time of each first order, the basic information of the user corresponding to the resource application order, and the preset first order allocation rule includes: In the optimal resource sets corresponding to the first orders, determining whether there is a first order with the same available resources corresponding to the highest score value; If not, selecting the available resource with the highest score value from the optimal resource set corresponding to the first order, and allocating the selected available resource to the corresponding first order; If there is a first order with the same available resource as that corresponding to the highest score value, then for each of the first orders, based on the application time corresponding to the first order, determine the sixth weight value of the first order; For each of the first orders, determining a seventh weight value of the first order based on the resource credit score corresponding to the first order; sorting the first orders according to the sixth weight value and the seventh weight value of each of the first orders; Based on the sorting results of each of the first orders, an available resource with the highest score value is selected for allocation from the optimal resource set corresponding to each of the first orders, and the selected available resource is removed from the shared resource pool until resources are allocated to each of the first orders.

5. A shared resource allocation method according to claim 1, characterized in that: Also includes: For each allocated resource that is not in the shared resource pool, determining whether the allocated resource is used within a preset time period, the preset time period being calculated based on the shared resource usage time; If the allocated resources are not used within a preset time period, the allocated resources are recycled to the shared resource pool.

6. A shared resource allocation device, characterized in that: include: An acquisition module, used to acquire at least one resource application order and basic user information corresponding to each resource application order, each resource application order including a shared resource type, a shared resource usage time, and an application time, and each user basic information including identity information, user location, and historical resource usage information; A determination module, configured to determine, for each resource application order, a shared resource set of the resource application order in a shared resource pool based on the shared resource type, shared resource usage time and user basic information corresponding to the resource application order, wherein the shared resource pool includes a plurality of resources; The resource allocation module is used to allocate resources to at least one resource application order based on the shared resource set, application time and user basic information of each resource application order.

7. An electronic device, characterized in that: comprising a processor coupled to a memory; The processor is configured to execute a computer program stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The method comprises a computer program or an instruction, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Medical resource allocation method and device and readable storage medium

    CN115148342A