Resource reservation method, electronic device, storage medium, and computer program product
By dynamically allocating the right to use resource units based on demand profiles and resource characteristics, the problem of resource allocation imbalance under static allocation is solved, the intelligence and fairness of resource allocation are achieved, and resource utilization efficiency and user experience are improved.
Patent Information
- Application Number
- CN202510862607.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-06-25
AI Technical Summary
In the existing resource reservation mechanism, the static allocation method makes it difficult to take into account user groups with urgent usage needs and good historical fulfillment records, resulting in imbalanced and unfair resource allocation, which may cause serious consequences, especially in emergency situations.
By determining the reservation priority based on the initiator's demand profile and combining the mapping relationship between preset priorities and resource levels, the use rights of resource units are dynamically allocated, demand characteristics and resource characteristics are quantified, demand scores and level scores are introduced, and resource allocation strategies are optimized.
It realizes intelligent and differentiated management of resource allocation, improves resource utilization efficiency, ensures that high-priority users receive better resource services, enhances the fairness and flexibility of the system, and is suitable for resource scheduling in a variety of complex scenarios.
Smart Images

Figure CN120354976B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to data processing technology, and in particular, to a resource reservation method, an electronic device, a storage medium and a computer program product. BACKGROUND
[0002] The resource reservation mechanism can effectively guarantee the rational use of resources, avoid the increase of time cost caused by resource waste or use congestion, and also facilitate users to arrange time. Especially in the scenes of medical emergency, traffic travel, public facility use, etc., through the reservation mode to allocate resources, the queuing waiting time can be significantly shortened, the service efficiency and user experience can be improved.
[0003] However, the fairness and transparency of reservation quota allocation are key factors affecting the effective implementation of the resource reservation system. If only the static allocation method of "first come, first served" is adopted, it is difficult to balance the allocation of resources for user groups with strong demand urgency and good historical performance record, and it is easy to cause resource allocation imbalance. Over-emphasizing the reservation process itself and ignoring the actual use situation and differentiated needs may also lead to unfairness. SUMMARY
[0004] The present disclosure provides a resource reservation method, an electronic device, a storage medium and a computer program product.
[0005] According to one aspect of the present disclosure, a resource reservation method is provided, comprising: determining the reservation priority of an initiator of a resource reservation request in response to the demand profile of the initiator, the resource reservation request being a request for use permission of a target resource, the reservation priority representing the order of the initiator to obtain the use permission of the target resource; comparing the reservation priority of the initiator with a first mapping table to determine the resource level of the resource unit that the initiator can reserve in the target resource, the first mapping table recording the correspondence between the reservation priority and the resource level; and allocating the use right of the resource unit corresponding to the resource level to the initiator.
[0006] According to the technical solution of one aspect, by determining the reservation priority of the initiator according to the demand profile of the initiator, and combining the preset mapping relationship between the priority and the resource level, the use right of the corresponding resource unit is dynamically allocated, thereby realizing the intelligentization and differentiated management of resource allocation. This method not only improves the resource utilization efficiency, but also ensures that high-priority users can obtain better resource services in the case of resource shortage, enhances the fairness and flexibility of the system, has good scalability and practicality, and is suitable for resource scheduling needs in various complex scenarios.
[0007] In some embodiments, determining the reservation priority of the initiator comprises: converting a demand feature about the target resource in the demand profile into a corresponding first feature parameter, the first feature parameter being capable of representing the corresponding demand feature; determining a feature weight of each demand feature; performing weighted summation on each first feature parameter according to the feature weight to determine a demand score of the initiator about the resource reservation request; and matching the demand score with a score range corresponding to each reservation priority to determine the reservation priority of the initiator about the resource reservation request.
[0008] According to the technical solution of one aspect, by quantifying the demand features and performing weighted calculation on the demand score, the dynamic and accurate division of the reservation priority is realized, and the scientificity and individualization level of resource allocation are improved.
[0009] In some embodiments, the demand score wherein n represents the total number of demand features, i represents the serial number of the demand feature, represents the feature weight of the i-th demand feature, represents the first feature parameter of the i-th demand feature.
[0010] In some embodiments, allocating the usage right of the resource unit corresponding to the resource level to the initiator comprises: determining the number of associated users who have the same reservation priority as the initiator and make reservation applications for the target resource; and when the number of users is less than or equal to the reservation quota configured by the resource unit for the reservation priority, allocating the usage right of the resource unit to the initiator.
[0011] According to the technical solution of one aspect, by comparing the number of users with the reservation quota, it is ensured that the resources are fairly allocated within the same priority, and the rationality and execution efficiency of resource scheduling are improved.
[0012] In some embodiments, determining the number of associated users who have the same reservation priority as the initiator and make reservations for the target resource comprises: when the number of users is greater than the reservation quota, determining a priority number of users in the associated users whose demand scores are greater than the demand score of the initiator; and when the priority number is less than the reservation quota, allocating the usage right of the resource unit to the initiator.
[0013] According to the technical solution of one aspect, by introducing a demand score competition mechanism among users of the same priority, more fine-grained resource screening and allocation are realized, and the success rate of resource allocation for high-value demand users is improved.
[0014] In some embodiments, after determining the priority number of the associated users whose demand scores are greater than the demand score of the initiator, the method further comprises: when the priority number is greater than or equal to the reservation quota, determining a remaining quota of a high-level resource unit of the target resource, the high-level resource unit having a resource level greater than that of the resource unit; when the high-level resource unit has a remaining quota, allocating a use right of the high-level resource unit to the associated user whose demand score is greater than the demand score of the initiator; and after the associated user whose demand score is greater than the demand score of the initiator obtains the use right of the high-level resource unit, allocating a use right of the resource unit to the initiator.
[0015] According to the technical solution of one aspect, the collaborative allocation mechanism between resource levels is optimized by dynamically allocating the remaining quota of the high-level resource unit, and the overall resource utilization rate and user satisfaction are improved.
[0016] In some embodiments, the method further comprises: determining the resource level of each resource unit in the target resource.
[0017] In some embodiments, the method further comprises: converting the resource characteristics of the target resource into corresponding second characteristic parameters, the second characteristic parameters being capable of representing the corresponding resource characteristics; configuring a characteristic weight for each resource unit; performing weighted summation on each second characteristic parameter according to the characteristic weight to determine a level score of the resource unit; and matching the level score with a score range corresponding to each resource level to determine the resource level of the resource unit.
[0018] According to the technical solution of one aspect, the resource unit level is finely divided by quantifying the resource characteristics and performing weighted calculation on the level score, and the scientificity of resource classification and the accuracy of allocation decision are improved.
[0019] In some embodiments, the level score of each resource unit is determined by converting the resource characteristics of the target resource into corresponding second characteristic parameters, the second characteristic parameters being capable of representing the corresponding resource characteristics; configuring a characteristic weight for each resource unit; performing weighted summation on each second characteristic parameter according to the characteristic weight to determine a level score of the resource unit; and matching the level score with a score range corresponding to each resource level to determine the resource level of the resource unit. wherein m represents the total number of resource characteristics, and j represents the serial number of the resource characteristics, represents the characteristic weight of the jth resource characteristic, represents the second characteristic parameter of the jth resource characteristic.
[0020] In some embodiments, the method further comprises: configuring a reservation quota for each user of each reservation priority with respect to the resource unit.
[0021] In some embodiments, configuring the reservation quota for the user of each reservation priority with respect to the resource unit comprises: determining a bearable amount of the resource unit according to a physical characteristic of the resource unit; and multiplying the fitting coefficient in the first mapping table by the bearable amount to determine the reservation quota for the user of the reservation priority in the bearable amount, the first mapping table containing a plurality of fitting coefficients, the fitting coefficients representing a proportion of the bearable amount occupied by the number of users with the reservation priority.
[0022] According to the technical solution of one aspect, the reservation quota is dynamically allocated by combining the physical characteristic of the resource unit and the fitting coefficient, thereby realizing reasonable division and efficient utilization of the resource bearing capacity and improving the flexibility and adaptability of resource configuration.
[0023] In some embodiments, after the usage right of the resource unit corresponding to the resource level is allocated to the initiator, the method further comprises: determining the performance status of the initiator.
[0024] In some embodiments, after the performance status of the initiator is determined, the method further comprises: adjusting the fitting coefficient in the first mapping table according to the performance status of all the initiators.
[0025] According to the technical solution of one aspect, the fitting coefficient is dynamically adjusted according to the performance status of the user, thereby realizing real-time optimization and self-correction of the resource configuration strategy and improving the stability of system operation and the intelligent level of resource allocation.
[0026] According to another aspect of the present disclosure, an electronic device is provided, comprising: a memory storing execution instructions; and a processor executing the execution instructions stored in the memory, so that the processor executes the resource reservation method of any embodiment of the present disclosure.
[0027] According to still another aspect of the present disclosure, a readable storage medium is provided, the readable storage medium storing execution instructions, the execution instructions being executed by a processor to implement the resource reservation method of any embodiment of the present disclosure.
[0028] According to yet another aspect of the present disclosure, a computer program product is provided, comprising a computer program, the computer program being executed by a processor to implement the resource reservation method of any embodiment of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0029] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description, explain the principles of the present disclosure, in which the drawings are included to provide further understanding of the present disclosure and constitute a part of the description.
[0030] Figure 1 is a schematic diagram of a reservation resource method application scenario according to an embodiment of the present disclosure.
[0031] Figure 2 is a flowchart of a reservation resource method according to an embodiment of the present disclosure.
[0032] Figure 3 is a flowchart of obtaining resource unit usage permission according to an embodiment of the present disclosure.
[0033] Figure 4 is a schematic diagram of a target resource according to an embodiment of the present disclosure.
[0034] Figure 5 is a structural schematic block diagram of a reservation resource device according to an embodiment of the present disclosure.
[0035] Figure 6 is a structural schematic block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] The present disclosure will be further described below in conjunction with the accompanying drawings and examples. It can be understood that the specific examples described herein are only for explanation of the related content, and not a limitation of the present disclosure. In addition, it should be noted that only parts related to the present disclosure are shown in the drawings for ease of description.
[0037] It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other without conflict. The technical solutions of the present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
[0038] The resource reservation mechanism can effectively guarantee the rational use of resources, avoid the increase of time cost due to resource waste or use congestion, and also facilitate users to arrange time. Especially in the scenes of medical emergency, traffic travel, public facility use, etc., by reserving resources, the queuing waiting time can be significantly shortened, and the service efficiency and user experience can be improved.
[0039] However, the fairness and transparency of reservation quota allocation is a key factor affecting the effective implementation of the resource reservation system. If only the static allocation method of "first come, first served" is adopted, it is difficult to balance the use demand urgency and the historical performance record of the user group, and it is easy to cause resource allocation imbalance. Excessive emphasis on the reservation process itself, while ignoring the actual use situation and differentiated needs, may also lead to unfairness. For example, in emergency situations, if special vehicles such as ambulances and fire engines cannot obtain priority scheduling rights, it may have serious consequences. Therefore, it is of great significance to build a resource reservation and allocation mechanism that takes into account fairness, flexibility and emergency response capability to improve the overall operating efficiency of public resources.
[0040] Figure 1 is a schematic diagram of an application scenario of the reservation resource method according to an embodiment of the present disclosure. As shown in the figure, in the application scenario, a server 100 and a terminal device 200 can be included. The server 100 and the terminal device 200 can be connected through a network to interact data. The server 100 can be a cloud server or a physical server, and the terminal device 200 can be a computer, a mobile phone, a tablet computer, or the like. The server 100 can receive a request of the terminal device 200, for example, a reservation request of an initiator in the present application, and run the resource reservation method of the present disclosure. In addition, the server 100 can provide reservation-related information to the terminal device 200. Figure 1
[0041] To this end, the present disclosure provides a resource reservation method.
[0042] Figure 2 is a flowchart of the resource reservation method according to an embodiment of the present disclosure. As shown in the figure, through steps S210 to S230, the resource level that the initiator can enjoy is determined according to the specific needs and circumstances of the initiator, and the initiator is preferentially allocated with the corresponding level of resources. In this way, it is ensured that users with higher reservation priority can enjoy higher level resources, which meets the differentiated needs while ensuring the fairness of resource allocation. Figure 2
[0043] Step S210, in response to the demand portrait of the initiator of the resource reservation request, determining the reservation priority of the initiator.
[0044] The resource reservation request is a request of the initiator for the use right of the target resource. The target resource is a target space in a target period, which is a two-dimensional concept of time and space. The resource reservation request usually contains the target resource that the initiator wants to use and the demand portrait of the initiator. The target resource can also be divided into multiple resource units according to the space granularity. Assuming that a road section from V point to W point is the target resource, the road section contains multiple lanes, and each lane has different resource levels according to its width, the number of allowed traffic directions at the intersection, and the like.
[0045] The demand profile can include the use purpose of the initiator, the purpose flexibility, the historical fulfillment record, the payment willingness, the use mode, the social attribute of the initiator, etc. The use purpose can be emergency, law enforcement, examination, leisure, work commuting, etc. The purpose flexibility can be fixed, ordinary, free, etc., and can also include more subtle flexibility divisions, which are not listed here. The historical fulfillment record can be the actual fulfillment state of the initiator in history to the obtained use right of the resource, and the fulfillment state can be complete fulfillment, partial fulfillment, non-fulfillment, etc. According to the historical fulfillment record, the fulfillment rate of the initiator can be calculated. The payment willingness indicates the proportion that the initiator is willing to pay for the target resource, for example, willing to pay 1.5 times the original price of the use fee, etc. The use mode can be electric vehicle travel, oil vehicle travel, etc. The social attribute of the initiator can be disabled, elderly, children, ordinary people, etc. Of course, the demand profile can also include other information, which is not listed here.
[0046] According to the demand profile, the demand characteristics of the initiator can be determined. Then, according to the first characteristic parameter of the demand characteristics, the demand score of the initiator is determined. Further, according to the demand score, the initiator is matched with the corresponding reservation priority.
[0047] The reservation priority is the order of the initiator to obtain the use right of the target resource. And the reservation priority is also used to limit the level of the target resource that the initiator can use, so that the user with higher reservation priority can enjoy higher level of resource, while meeting the differentiated demand and ensuring the fairness of resource allocation.
[0048] In addition, the same initiator initiates a reservation for different target resources, and because the use purpose, the purpose flexibility, etc. are different, the reservation priority of the initiator is dynamically changed.
[0049] In step S202, the reservation priority of the initiator is compared with the first mapping table to determine the resource level of the resource unit that the initiator can reserve in the target resource.
[0050] The first mapping table records the correspondence between the reservation priority and the resource level, and also records the proportion of the number of users with different reservation priorities in the carrying capacity of the resource unit of each resource level. The first mapping table should be determined according to the use of the resource or the similar resource by the user in the same period in history, and the actual physical state of the resource.
[0051] In the first mapping table, the reservation priority and the resource level correspond to each other, and the resource units of each resource level can correspond to users of multiple reservation priorities; and users of each reservation priority can use resource units of multiple resource levels. Assuming that the reservation priorities are 1, 2 and 3, and the resource levels are a, b and c, the correspondence between the two can be that the resource units of the resource level a can be allocated to users of the reservation priorities 1 and 2; the resource units of the resource level b can be allocated to users of the reservation priorities 1, 2 and 3; the resource units of the resource level c can be allocated to users of the reservation priorities 2 and 3, and so on.
[0052] Further, when the reservation priority of the explicit initiator is 1, it can be determined from the first mapping table that the resource units that can be reserved by the initiator are a and b.
[0053] In step S230, the use right of the resource unit corresponding to the resource level is allocated to the initiator.
[0054] Specifically, the number of associated users who have the same reservation priority as the initiator and make a reservation application for the target resource is determined; and when the number of users is less than or equal to the reservation quota configured for the reservation priority of the resource unit, the use right of the resource unit is allocated to the initiator.
[0055] When the number of users is greater than the reservation quota, the number of priority users whose demand scores are greater than that of the initiator is determined among the associated users; and when the number of priority users is less than the reservation quota, the use right of the resource unit is allocated to the initiator. When the number of priority users is greater than or equal to the reservation quota, the remaining quota of the high-level resource unit of the resource level greater than the resource unit in the target resource is determined; when there is a remaining quota of the high-level resource unit, the use right of the high-level resource unit is allocated to the associated user whose demand score is greater than that of the initiator; and after the associated user whose demand score is greater than that of the initiator obtains the use right of the high-level resource unit, the use right of the resource unit is allocated to the initiator.
[0056] That is, when there is a remaining quota of the resource unit corresponding to the resource level, the use right of the resource unit is allocated to the initiator. In the allocation process, the allocation of the resource unit to each initiator should be performed in the order of the reservation priority of the initiator. For example, the resource unit is allocated to the initiator with a high reservation priority first, and then to the initiator with a low reservation priority, so as to ensure that the initiator with a high reservation priority obtains the resource in priority.
[0057] Figure 3 is a flowchart of obtaining the use right of the resource unit according to the embodiment of the present disclosure. The process of the initiator obtaining the use right of the resource unit will be described below with reference to Figure 3 The process of the initiator obtaining the use right of the resource unit will be described below with reference to
[0058] In step S311, the resource level of each resource unit is determined.
[0059] It is determined whether the resource for the reservation can be divided into multiple resource units. That is, it is determined whether the physical structure of the resource has the condition of being divided into multiple independent resource units. Taking a commuter bus as an example, each independent seat can be a resource unit; for a road section, each lane in the road section can be a resource unit.
[0060] If a resource does not have the condition of being divided into multiple resource units, the resource level of the whole resource is determined. When the resource can be divided into resource units, the resource level of each resource unit is determined.
[0061] Figure 4 is a schematic diagram of a target resource according to an embodiment of the present disclosure. As shown in Figure 4 , a schematic diagram of a lane resource 400 is shown, which includes three lanes pointing to the same direction, i.e., lane A, lane B and lane C. The three lanes are independent of each other, so the three lanes can be respectively regarded as three independent resource units. When making a resource reservation application, the initiator only needs to propose the lane resource 400 as the target resource, and does not need to specify a specific lane.
[0062] Specifically, the resource characteristics of the resource unit are obtained, which can be one or more of time granularity, space granularity, tolerance, stability and service treatment, and of course can also include other resource characteristics, which are not limited here.
[0063] The space granularity is the spatial range of the resource unit, such as a lane, a gate, a seat, etc.; the time granularity is the time span of the resource unit, such as 8:00-10:00 during the morning peak; the tolerance is the tolerance for the deviation when the user uses the resource unit; the stability is the stability of the resource unit for reservation, and the higher the stability, the more the resource unit cannot be used for reservation due to special circumstances; and the service treatment represents the experience of the user when using the resource unit, such as guide service, etc.
[0064] The resource characteristics of the target resource are converted into corresponding second characteristic parameters, which can represent the corresponding resource characteristics; the resource unit is configured with a characteristic weight; the second characteristic parameters are weighted and summed according to the characteristic weight to determine the level score of the resource unit; and the level score is matched with the score range corresponding to each resource level to determine the resource level of the resource unit.
[0065] The second characteristic parameter is actually a quantitative result of the resource characteristic. For example, the larger the space granularity, the larger the corresponding second characteristic parameter; the higher the stability, the higher the corresponding second characteristic parameter, and the quantitative standard for each resource characteristic is not limited here.
[0066] wherein the level score Q is calculated as wherein m represents the total number of resource characteristics, j represents the serial number of the resource characteristics, represents the characteristic weight of the jth resource characteristic, represents the second characteristic parameter of the jth resource characteristic.
[0067] It should be noted that the characteristic weight is proportional to the influence of the corresponding resource characteristic on the resource level, and can be adjusted according to the actual reservation situation and the performance status.
[0068] The score range of different resource levels can be determined according to the needs, and is not limited here. For example, the level score Q calculated for a resource unit is 81 points, and the score range of the resource unit of resource level a in the reservation resource is set to 80 to 100, so that the resource unit represents the resource level a.
[0069] In step S321, a first mapping table is determined.
[0070] The first mapping table records the correspondence between the reservation priority and the resource level, and also records the proportion of the number of users of different reservation priorities in the resource unit of each resource level, i.e. the proportion of the number of users with reservation priority in the carrying capacity. The first mapping table should be determined according to the user's use of the resource or similar resource with similar properties in the same period in history, and the actual physical state of the resource.
[0071] Table 1
[0072]
[0073] Table 1 is a first mapping table, which records the correspondence between resource levels and reservation priorities. When the resource units of the reservation resource are only divided into a, b, and c levels and the reservation priorities are only 1, 2, and 3, a 3x3 adaptation matrix can be extracted from the first mapping table. That is, the adaptation matrix . Wherein the element 0.9 in the first row and the first column in the adaptation matrix K represents that 90% of the reservation quota in the resource unit of resource level a is allocated to the user with reservation priority 1; the element 0.1 in the first row and the second column represents that 10% of the reservation quota in the resource unit of resource level a is allocated to the user with reservation priority 2; the element 0 in the first row and the third column represents that the resource unit of resource level a does not allocate quota to the user with reservation priority 3, and the meanings of the remaining elements are the same, which are not listed here.
[0074] In step S322, the reservation quota provided by each resource unit for different reservation priorities is determined.
[0075] According to the distribution of each resource unit in the resource, the carrying capacity of each resource unit is determined. For example, there are 20 seats of resource level a, 20 seats of resource level b, and 10 seats of resource level c in the commuter bus.
[0076] Then, according to the adaptation coefficient in the first mapping table, the resource units of each resource level are determined as the reservation quota configured for users of different reservation priorities. Still taking the commuter bus as an example, the seats of resource level a reserve 20x0.9 reservation quotas, i.e. 18 reservation quotas, for users of reservation priority 1; similarly, the seats of resource level a reserve 2 reservation quotas for users of reservation priority 2.
[0077] In step S331, a resource reservation request is obtained. That is, the resource reservation request proposed by the initiator is obtained through the reservation platform, and the resource reservation request can include the demand profile of the initiator and the target resource that the initiator wants to reserve.
[0078] In step S332, the reservation priority of the initiator is determined.
[0079] The demand characteristics of the target resource in the demand profile are converted into corresponding first feature parameters, and the first feature parameters can represent the corresponding demand characteristics; the feature weights of each demand characteristic are determined; the first feature parameters are weighted and summed according to the feature weights to determine the demand score of the initiator for the resource reservation request; and the demand score is matched with the score range corresponding to each reservation priority to determine the reservation priority of the initiator for the resource reservation request.
[0080] Demand score wherein n represents the total number of demand characteristics, i represents the serial number of the demand characteristics, represents the feature weight of the ith demand characteristic, represents the first feature parameter of the ith demand characteristic.
[0081] The demand profile at least includes the use purpose, purpose flexibility, historical performance record, payment willingness, use mode, social attribute of the initiator, etc. According to these demand profiles, the demand characteristics of the initiator can be further determined, for example, according to the use purpose, the urgency of reservation is determined; the resource adaptation degree between the target resource and the use purpose is evaluated; according to all the resource reservation requests of the users, the efficiency gain to the whole world when meeting the request of the initiator is determined; according to the use mode, the external influence when using the resource in this way is determined, including social benefits such as exhaust, energy consumption, congestion time, etc.; according to the historical performance record, the historical credit of the initiator is counted. Among them, the purpose flexibility, social attribute, etc. can be directly used as demand characteristics.
[0082] The first characteristic parameter is actually a quantitative result of the demand characteristics. For example, the urgency U ∈ [0, 1], where the use purpose is first aid, U can be 1; the use purpose is law enforcement, U can be 0.7; the use purpose is leisure and entertainment, U can be 0.3. Similarly, the purpose flexibility F ∈ [0, 1], where the purpose flexibility is fixed, F can be 0.9; the purpose flexibility is free, F can be 0.1; the purpose flexibility is ordinary, F can be 0.5. The resource adaptation degree R ∈ [0, 1] is mainly used to measure the adaptation proportion of the demand in each resource unit of the reserved resource, for example, the traveler is a motor vehicle trip, and among the 4 lanes of the target resource, there are 3 motor vehicle channels, so the adaptation degree is 75%. The historical credit H ∈ [0, 1] is a comprehensive score based on the punctuality rate, compliance rate and default times of the initiator, for example, H = punctuality rate × 0.7 + compliance rate × 0.3. The willingness to pay W ∈ [0, +∞) is assumed to be 100 yuan for the benchmark price of using a certain resource, and the initiator is willing to pay 1.5 times the price for the use fee of the resource, that is, 150 yuan, then W is 1.5; of course, in order to avoid unfairness caused by excessive premium, the premium interval can be set for W. The efficiency gain S ∈ [0, 1], for example, accepting carpooling S is 0.8, accepting bus S is 1, etc.; the external influence E ∈ [0, 1]; the social attribute A ∈ [0, 1], for example, the A of the disabled is 1, the A of the elderly and infants is 0.5, and the A of ordinary people is 0.
[0083] For example, a doctor needs to travel across the city for emergency treatment, at this time U is 1; the purpose flexibility is fixed, so F = 0.9; the adaptation is mostly reserved for the special lane, so R = 0.8; the historical credit is good, so H = 0.9; the willingness to pay is 2 times the cost, so W = 2; the carpooling is not accepted, so S = 0.4; the electric vehicle is used, so = 0.2, = 0; the social attribute is ordinary, so S is 0. And the characteristic weight set for U is 0.25, the characteristic weight set for F is 0.15, the characteristic weight set for R is 0.1, the characteristic weight set for W is 0.15, the characteristic weight set for S is 0.1, the characteristic weight set for E is 0.05, and the characteristic weight set for A is 0.1.
[0084] . Wherein P is the demand score; U is the urgency, the characteristic weight of U is 0.25; F is the purpose flexibility, the characteristic weight of F is 0.15; R is the resource adaptation degree, the characteristic weight of R is 0.1; H is the historical credit, the characteristic weight of H is 0.1; W is the willingness to pay, the characteristic weight of the willingness to pay is 0.15, the willingness to pay has a premium interval, the upper limit of the premium interval is , which can be set to 2, when calculating P, W and min (S, E), min is minimum function; S is efficiency gain, the characteristic weight of S is 0.1; E represents the parameter of external influence, the characteristic weight of E is 0.05, represents the parameter value of environmental dimension in external influence, represents the parameter value of congestion dimension in external influence; A is the parameter value of social attribute, the characteristic weight of A is 0.1. At this time, in the previous example, P is 0.905. Of course, in different scenarios, the weight parameters of various demand characteristics can be other values, which are not limited herein.
[0085] If the range of reservation priority 1 is 0.8 to 1, since 0.905 is between 0.8 and 1, the reservation priority of the initiator is 1.
[0086] Of course, if the demand portrait of the initiator is incomplete, resulting in that part of the demand characteristics cannot be obtained through the demand portrait, a default value can be used; or, the historical reservation information of the initiator is evaluated, which is not described herein.
[0087] Further, step S341 is performed to determine the resource level that the initiator can use.
[0088] That is, after the reservation priority of the initiator is determined, the first mapping table is used to find the resource level corresponding to the reservation priority. For example, the reservation priority is 1, and through the table lookup, it can be determined that the resource levels a and b can be used.
[0089] In step S342, it is determined whether there is a remaining quota in the resource level.
[0090] Specifically, after obtaining all resource reservation applications for the target resource, the reservation priorities of the users are counted. The use permission of the target resource is allocated to the users in order of the reservation priority. When the initiator is reached, it is determined whether there is a remaining quota in the highest level resource unit of the reservation resource that the initiator can use. If there is no remaining quota, it is determined whether there is a remaining quota in the resource unit of the remaining level in order of the resource level that the initiator can use.
[0091] If there is no remaining quota that can be allocated to the initiator, step S344 is performed to determine whether there is a remaining quota in a high-level resource unit. The high-level resource unit is a resource unit whose resource level is higher than the resource level that the initiator can use. If there is a remaining quota in the high-level resource unit, step S345 is performed to allocate the remaining quota in the high-level resource unit to the remaining users that belong to the same reservation priority as the initiator but have a higher demand score than the initiator. Then, if there is still a remaining quota in the high-level resource unit, the usage right of the high-level resource unit is allocated to the initiator; or the usage right of the resource unit that the remaining users are free from, which the initiator can use, is allocated to the initiator.
[0092] If there is a remaining quota that can be allocated to the initiator, step S343 is performed to determine whether the number of priority users is greater than or equal to the remaining quota. The number of priority users is the number of the remaining users that belong to the same reservation priority as the initiator but have a higher demand score than the initiator. In other words, if there is a remaining quota in the resource unit that the initiator can use, and all the users of the reservation have the same reservation priority, the allocation order is determined according to the demand score. If the number of priority users is greater than or equal to the remaining quota, step S344 is performed to determine whether there is a remaining quota in a high-level resource unit.
[0093] On the contrary, if the number of priority users is less than the remaining quota, step S345 is performed to allocate the usage right of the resource unit to the initiator.
[0094] Further, if there is no remaining quota in the high-level resource unit, step S346 is performed to allocate a new resource unit to the initiator. In some embodiments, the initiator can also be allocated a resource unit of a relatively low resource level, but when the first mapping table is determined, the users of each reservation priority have usually been allocated the quota of the resource units of the lower resource level, for example, the users of reservation priority 1 are reserved 20% of the quota of the resource units of resource level b.
[0095] The new resource unit is different from the resource unit of the target period, and can also be a resource unit in the remaining resources in the same target period. For example, if there is no remaining quota in the lane resource 400 between 8:00 and 8:30, the initiator can be allocated a corresponding lane of the lane resource 400 between 8:30 and 9:00.
[0096] After the usage right of the target resource is allocated to the initiator, step S347 is performed to verify the performance of the initiator and determine the performance status. The performance status includes full performance, partial performance, and non-performance, etc.
[0097] Further, according to the fulfillment state, step S348 is performed to adjust the adaptation coefficient of the first mapping table. That is, according to the fulfillment state of each user in the current reservation period, the matching relationship between the resource level and the reservation priority, and the adaptation coefficient are adjusted to make the first mapping table more suitable for the actual reservation demand.
[0098] Of course, the credit points of the initiator can also be updated according to the fulfillment state, so that the historical credit H is valid.
[0099] The present scheme determines the reservation priority of the initiator according to the demand portrait of the initiator, and dynamically allocates the use right of the corresponding resource unit in combination with the preset mapping relationship between the priority and the resource level, thereby realizing intelligent and differentiated management of resource allocation. The method not only improves the resource utilization efficiency, but also ensures that high-priority users can obtain better resource services in the case of resource shortage, enhances the fairness and flexibility of the system, has good scalability and practicability, and is suitable for resource scheduling requirements in various complex scenarios.
[0100] Figure 5 is a structural schematic block diagram of a reservation resource device according to an embodiment of the present disclosure. As shown in Figure 5 The present disclosure proposes a reservation resource device 500, which comprises: a priority determination module 510 configured to determine the reservation priority of an initiator in response to the demand portrait of the initiator, the resource reservation request being a request for the use right of a target resource, and the reservation priority representing the order of the initiator to obtain the use right of the target resource; a resource level determination module 520 configured to compare the reservation priority of the initiator with a first mapping table to determine the resource level of the resource unit that can be reserved by the initiator in the target resource, the first mapping table recording the corresponding relationship between the reservation priority and the resource level; and an allocation module 530 configured to allocate the use right of the resource unit corresponding to the resource level to the initiator.
[0101] The reservation resource device 500 of the present disclosure can be in the form of computer software, and each module of the reservation resource device 500 can be in the form of a computer software module.
[0102] Each module of the reservation resource device 500 of the present disclosure is arranged to realize each step of the reservation resource method, and the execution principle and steps can be referred to the foregoing, which will not be described herein.
[0103] Figure 6 is a structural schematic block diagram of an electronic device according to an embodiment of the present disclosure. As shown in Figure 6As shown, the electronic device 1000 further includes a processor 1200 and a memory 1300. The memory 1300 stores execution instructions. The processor 1200 executes the execution instructions stored in the memory 1300, so that the processor 1200 performs the method of reserving resources.
[0104] The hardware structure of the electronic device 1000 can be implemented by using a bus architecture. The bus architecture can include any number of interconnected buses and bridges, depending on the particular application of the hardware and overall design constraints. The bus 1100 connects various circuits including one or more processors 1200, memories 1300, and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripheral devices, voltage regulators, power management circuits, external antennas, and the like.
[0105] The bus 1100 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one connection line is shown in the figure, but it does not mean that there is only one bus or one type of bus.
[0106] The present disclosure further provides a readable storage medium having a computer program stored therein, the computer program being executed by a processor to implement the method described above. The "readable storage medium" can be any device that can contain, store, communicate, propagate or transport programs for use by or in conjunction with an instruction execution system, apparatus or device. More specific examples of the readable storage medium include the following: an electrical connection having one or more wires (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM), and the like.
[0107] The present disclosure further provides a computer program product, and the method of the present disclosure can be implemented by software, hardware, firmware, or any combination thereof, in whole or in part. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed, the flow or function of the present disclosure is executed in whole or in part.
[0108] The computer program or instructions can be stored in or transferred from one computer-readable medium to another, e.g., from one website or computer to another website or computer, by way of wired or wireless communication. The computer-readable medium can be any available medium or a combination of one or more of the available media that can be accessed by a server, data center, or the like, and includes both volatile and nonvolatile media, removable and non-removable media. The computer-readable medium can be a magnetic medium, e.g., a floppy disk, a hard disk drive, a magnetic tape; optical media, e.g., a compact disc, a DVD, etc.; or a semiconductor medium, e.g., a solid-state drive. The computer-readable medium can be a volatile or non-volatile medium, or can include both volatile and non-volatile media.
[0109] Those skilled in the art will appreciate that embodiments of the present disclosure can be provided as methods, electronic devices, readable storage media, or computer program products. Accordingly, the present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the disclosure can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage media, etc.) embodying computer-readable program code.
[0110] The present disclosure is described in reference to flow diagrams and / or block diagrams of methods, electronic devices (systems), and computer program products according to this disclosure. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing device, or other programmable data processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flow diagram and / or block diagram block or blocks. Figure 1 means for performing one or more functions specified in the flow diagram and / or block diagram block or blocks.
[0111] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions means which implement the function specified in the flow diagram and / or block diagram block or blocks. Figure 1 one or more functions specified in the flow diagram and / or block diagram block or blocks. Figure 1 means for performing one or more functions specified in the flow diagram and / or block diagram block or blocks.
[0112] These computer program instructions can also be loaded into a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to generate a computer-implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 Figure 1
[0113] In the description of the present specification, the description of the terms "one embodiment / way", "some embodiments / ways", "example", "specific example", or "some examples" and the like means that the specific features, structures, or characteristics described in connection with the embodiment / way or example are included in at least one embodiment / way or example of the present disclosure. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment / way or example. Also, the specific features, structures, or characteristics described can be combined in any appropriate manner in any one or more embodiments / ways or examples. In addition, the person skilled in the art can combine and combine the different embodiments / ways or examples described in the present specification and the features of the different embodiments / ways or examples, without contradiction.
[0114] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "a plurality of" is at least two, for example, two, three, etc., unless otherwise explicitly specified.
[0115] The person skilled in the art should understand that the above-mentioned embodiments are only for clearly illustrating the present disclosure, and not for limiting the scope of the present disclosure. Based on the above disclosure, other changes or modifications can also be made by those skilled in the art, and these changes or modifications are still within the scope of the present disclosure.
[0116] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the type of personal information involved in the present disclosure, the scope of use, the scene of use, etc. should be informed to the user and the authorization of the user should be obtained through appropriate means according to relevant laws and regulations.
[0117] For example, in response to receiving the user's active request, send a prompt message to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can voluntarily choose whether to provide personal information to the electronic device, application program, server or storage medium, etc. software or hardware that performs the operation of the technical solutions of the present disclosure according to the prompt information.
[0118] As an optional but non-limiting implementation, in response to receiving the active request of the user, the manner of sending the prompt information to the user may be, for example, a pop-up window manner, in which the prompt information may be presented in a text manner. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide the personal information to the electronic device.
[0119] It can be understood that the above notification and user authorization obtaining process is only illustrative and does not limit the implementation of the present disclosure, and other manners meeting the relevant laws and regulations can also be applied to the implementation of the present disclosure.
[0120] Meanwhile, it can be understood that the data (including but not limited to the data itself, the acquisition or use of the data) involved in the technical solutions of the present disclosure should comply with the requirements of the corresponding laws and regulations and relevant provisions.
Claims
1. A resource reservation method, characterized in that: include: Determining a resource level of each resource unit in a target resource includes: converting a resource characteristic of the target resource into a corresponding second characteristic parameter, wherein the second characteristic parameter can represent the corresponding resource characteristic; configuring a characteristic weight for the resource unit; performing a weighted summation of each second characteristic parameter according to the characteristic weight to determine a level score of the resource unit; and matching the level score with a score range corresponding to each resource level to determine the resource level of the resource unit; In response to a demand profile of an initiator of a resource reservation request, determining a reservation priority of the initiator, including: converting demand characteristics of the target resource in the demand profile into corresponding first characteristic parameters, where the first characteristic parameters can characterize the corresponding demand characteristics; determining a characteristic weight of each demand characteristic; performing a weighted summation of each first characteristic parameter based on the characteristic weight to determine a demand score of the initiator with respect to the resource reservation request; and matching the demand score with a score range corresponding to each reservation priority to determine a reservation priority of the initiator with respect to the resource reservation request; wherein the resource reservation request is a request for permission to use the target resource, and the reservation priority characterizes the order in which the initiator obtains permission to use the target resource; Comparing the reservation priority of the initiator with a first mapping table to determine the resource level of the resource unit that the initiator can reserve in the target resource, wherein the first mapping table records the correspondence between the reservation priority and the resource level; and The use right of the resource unit corresponding to the resource level is allocated to the initiator.
2. The resource reservation method according to claim 1, characterized in that: The need score , where n represents the total number of demand features, i represents the sequence number of the demand feature, represents the feature weight of the i-th demand feature, Represents the first characteristic parameter of the i-th demand characteristic.
3. The resource reservation method according to claim 1, characterized in that: Allocating the use right of the resource unit corresponding to the resource level to the initiator includes: Determining the number of associated users who have the same reservation priority as the initiator and have made reservation applications for the target resource; and When the number of users is less than or equal to the reservation quota configured by the resource unit for the reservation priority, the right to use the resource unit is allocated to the initiator.
4. The resource reservation method according to claim 3, characterized in that: Determining the number of associated users who have the same reservation priority as the initiator and have reserved the target resource includes: When the number of users is greater than the number of reservation places, determining a priority number of associated users whose demand scores are greater than the demand score of the initiator; and When the priority number of people is less than the reservation quota, the right to use the resource unit is allocated to the initiator.
5. The resource reservation method according to claim 4, characterized in that: After determining a priority number of associated users whose demand scores are greater than the initiator's demand score, the method includes: When the number of priority persons is greater than or equal to the reservation quota, determining the remaining quota of high-level resource units in the target resource whose resource level is greater than that of the resource unit; When there are remaining places in the high-level resource unit, allocating the use rights of the high-level resource unit to the associated users whose demand scores are greater than the demand score of the initiator; and After the associated user whose demand score is greater than the demand score of the initiator obtains the right to use the high-level resource unit, the right to use the resource unit is allocated to the initiator.
6. The resource reservation method according to claim 1, characterized in that: Said level score , where m represents the total number of resource features, j represents the sequence number of resource features, represents the feature weight of the j-th resource feature, The second characteristic parameter representing the j-th resource characteristic.
7. The resource reservation method according to claim 1, characterized in that: Also includes: A reservation quota for the resource unit is configured for users of each reservation priority.
8. The resource reservation method according to claim 7, characterized in that: Configuring a reservation quota for the resource unit for users of each reservation priority level includes: Determining the carrying capacity of the resource unit according to the physical characteristics of the resource unit; Multiply the adaptation coefficient in the first mapping table by the carrying capacity to determine the reservation quota in the carrying capacity for users with the reservation priority. The first mapping table contains multiple adaptation coefficients, and the adaptation coefficient represents the ratio of the number of users with the reservation priority to the carrying capacity.
9. The resource reservation method according to claim 1, characterized in that: After allocating the use right of the resource unit corresponding to the resource level to the initiator, the method further comprises: The performance status of the initiator is determined.
10. The resource reservation method according to claim 9, characterized in that: After determining the performance status of the initiator, including: The adaptation coefficient in the first mapping table is adjusted according to the performance status of all the initiators.
11. An electronic device, characterized in that: include: a memory storing execution instructions; as well as A processor, wherein the processor executes the execution instruction stored in the memory, so that the processor executes the resource reservation method according to any one of claims 1 to 10.
12. A readable storage medium, characterized in that: The readable storage medium stores execution instructions, which are used to implement the resource reservation method according to any one of claims 1 to 10 when executed by a processor.
13. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the resource reservation method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Intelligent online reservation management system
CN119227883A