Method, device, computer equipment and storage medium for scheduling shared items
By obtaining the identification and historical order data of the rental cabinet, determining the demand data, and sending a scheduling request to the operation and maintenance terminal, the utilization problem caused by regional differences in the shared mobile power supply rental service is solved, and more efficient item scheduling and utilization improvement are achieved. .
Patent Information
- Application Number
- CN202110414290.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-16
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-04-16
AI Technical Summary
Due to differences in placement locations and traffic flow of shared mobile power supply rental services, some areas are full and some areas are empty, which affects the usage rate.
By obtaining the identification of the rental cabinet, the historical order data and current supply and demand data of the operating area are obtained, the demand data is determined, and a scheduling request is sent to the operation and maintenance terminal to reasonably schedule shared items and improve usage.
By predicting demand data in the operating area, shared items can be reasonably scheduled to increase usage and reduce the occurrence of shared items that cannot be returned or rented normally.
Smart Images

Figure CN113222348B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer device and storage medium for scheduling shared items. Background Art
[0002] With the development of science and technology, although mobile power supplies are used more and more widely, they occupy a certain storage space and have a certain weight, which is still inconvenient for users. Therefore, shared mobile power supplies that provide users with mobile power supply rental services have emerged.
[0003] To facilitate users to rent, shared mobile power companies often put their products in multiple locations. However, due to differences in placement locations, traffic flow and other factors, some shared mobile power supplies are full while others are empty, which in turn affects the utilization rate of shared mobile power supplies. Summary of the invention
[0004] Based on this, it is necessary to provide a scheduling method, device, computer equipment and storage medium for shared items that can improve the utilization rate of shared mobile power supplies in response to the above technical problems.
[0005] A method for scheduling shared items, the method comprising:
[0006] Obtaining a first scheduling request; the first scheduling request includes an identifier of a current rental cabinet, and the current rental cabinet is used to accommodate a plurality of shared items;
[0007] According to the identifier of the current rental cabinet, historical order data and current supply and demand data of the operating area where the current rental cabinet is located are obtained;
[0008] Determine the demand data of the current rental cabinet according to the historical order data and the current supply and demand data in the operating area;
[0009] According to the demand data of the current rental cabinet, a second scheduling request is sent to the operation and maintenance terminal.
[0010] In one embodiment, the method of triggering the first scheduling request includes:
[0011] When the number of shared items in the current rental cabinet decreases to a first trigger threshold, triggering a first scheduling request for adding shared items, or;
[0012] The number of shared items lent out in the current rental cabinet is obtained periodically, and when the number of shared items lent out is less than a second trigger threshold, a first scheduling request for reducing shared items is triggered.
[0013] In one embodiment, the current supply and demand data includes a current supply quantity and a current demand quantity; and obtaining the historical order data and current supply and demand data of the operating area where the current rental cabinet is located according to the identifier of the current rental cabinet includes:
[0014] According to the identifier of the current rental cabinet, determine the operating area where the current rental cabinet is located and the identifiers of other rental cabinets in the operating area;
[0015] According to the identification of each rental cabinet in the operating area, the storage quantity data of each rental cabinet is obtained, and the current supply quantity of the operating area is obtained according to the storage quantity data of each rental cabinet;
[0016] According to the identifier of each rental cabinet in the operation area, the historical order data of each rental cabinet in the operation area is obtained, and the historical order data of the operation area is obtained according to the historical order data of each rental cabinet;
[0017] The current demand quantity of the operation area is determined according to the number of registered users located in the operation area.
[0018] In one embodiment, before determining the demand data of the current rental cabinet according to the historical order data and the current supply and demand data in the operating area, the method further includes:
[0019] Get the current power of each registered user terminal;
[0020] Determine a registered user terminal whose current power reaches the lower limit of the power threshold as a target user terminal;
[0021] Acquire location information of the target user terminal;
[0022] Determine the operation area where the target user terminal is located according to the location information;
[0023] Obtain historical order data and current supply and demand data for the operating area where the target user terminal is located.
[0024] In one embodiment, determining the current demand quantity of the operation area according to the number of registered users located in the operation area includes:
[0025] The number of the target user terminals is counted to obtain the current demand number of the operation area.
[0026] In one of the embodiments, after determining the registered user terminal whose current power reaches the lower limit of the power threshold as the target user terminal, the method further includes:
[0027] Determining a target rental cabinet from rental cabinets located in the operation area where the target user terminal is located;
[0028] A navigation route to the target rental cabinet is determined according to the location information of the target user terminal and the location information of the target rental cabinet.
[0029] In one embodiment, determining the target rental cabinet from the rental cabinets located in the operation area where the target user terminal is located includes:
[0030] Obtaining current supply and demand data and historical order data of each rental cabinet in the operating area where the target user terminal is located;
[0031] Get the location information of each rental cabinet;
[0032] The target rental cabinet is determined from among the rental cabinets according to the location information of each rental cabinet, current supply and demand data, and historical order data.
[0033] In one embodiment, the determining of the demand data of the current rental cabinet according to the historical order data and the current supply and demand data in the operating area includes any one of the following forms:
[0034] Based on the classification decision tree algorithm, the demand data of the current rental cabinet is predicted according to the historical order data of each rental cabinet in the operation area;
[0035] Demand data for the current rental cabinet is determined based on the number of registered users located in the operating area, the storage data of each rental cabinet, and the number of rental cabinets in the operating area.
[0036] A scheduling device for shared items, the device comprising:
[0037] A first request acquisition module, used to acquire a first scheduling request; the first scheduling request includes an identifier of a current rental cabinet, and the current rental cabinet is used to accommodate a plurality of shared items;
[0038] An order supply and demand acquisition module, used to acquire historical order data and current supply and demand data of the operating area where the current rental cabinet is located according to the identifier of the current rental cabinet;
[0039] A demand data determination module, used to determine the demand data of the current rental cabinet according to the historical order data and current supply and demand data in the operating area;
[0040] The second request sending module is used to send a second scheduling request to the operation and maintenance terminal according to the demand data of the current rental cabinet.
[0041] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0042] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.
[0043] The above-mentioned method, device, computer equipment and storage medium for scheduling shared items obtain a first scheduling request, and the first scheduling request includes the identification of the current rental cabinet, and according to the identification of the current rental cabinet, obtains the historical order data and current supply and demand data of the operating area where the current rental cabinet is located; then, according to the historical order data and current supply and demand data in the operating area, determines the demand data of the current rental cabinet; and then sends a second scheduling request to the operation and maintenance terminal according to the demand data of the current rental cabinet. It can be seen that the present application reasonably schedules shared items based on the predicted demand data of the operating area, improves the utilization rate of shared items, and reduces the occurrence of situations where shared items cannot be returned or rented normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A diagram of an application environment of a method for scheduling shared items in one embodiment;
[0045] Figure 2 It is a flowchart of a method for scheduling shared items in one embodiment;
[0046] Figure 3 is a flow chart of step S220 in one embodiment;
[0047] Figure 4 It is a flowchart of a method for scheduling shared items in another embodiment;
[0048] Figure 5 It is a flowchart of a method for scheduling shared items in another embodiment;
[0049] Figure 6 is a flow chart of step S510 in one embodiment;
[0050] Figure 7 It is a flowchart of a method for scheduling shared items in another embodiment;
[0051] Figure 8 It is a flowchart of a method for scheduling shared items in another embodiment;
[0052] Fig. 9 is a structural block diagram of a scheduling device for sharing items in one embodiment;
[0053] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] The scheduling method for shared items provided in this application can be applied to Figure 1 In the application environment shown. It includes several rental cabinets 110, a server 120 and an operation and maintenance terminal 130. Each rental cabinet 110 is connected to the server 120 in communication, and the server 120 is connected to the operation and maintenance terminal 130 in communication. The rental cabinet 110 that sends the first scheduling request is recorded as the current rental cabinet. The current rental cabinet sends a first scheduling request to the server 120. The first scheduling request includes the identifier of the current rental cabinet, and the current rental cabinet is used to accommodate several shared items. The server 120 obtains the first scheduling request, and obtains the historical order data and current supply and demand data of the operating area where the current rental cabinet is located according to the identifier of the current rental cabinet, so as to determine the demand data of the current rental cabinet according to the historical order data and current supply and demand data in the operating area; and then sends a second scheduling request to the operation and maintenance terminal according to the demand data of the current rental cabinet. The operation and maintenance personnel know the demand of the current rental cabinet through the operation and maintenance terminal, so as to schedule the shared items in the current rental cabinet. It should be noted that the shared items can be shared umbrellas, shared power banks, shared books and periodicals and other shareable daily necessities. The operation and maintenance terminal 130 may be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices, and the server 120 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0056] In one embodiment, Figure 2 As shown, a scheduling method for shared items is provided, and the method is applied to Figure 1 The server 120 in the example is used as an example to illustrate, and the following steps are included:
[0057] S210: Obtain a first scheduling request.
[0058] The first scheduling request includes the identifier of the current rental cabinet, and the current rental cabinet is used to accommodate a number of shared items. Specifically, since each rental cabinet has a unique identifier and the current rental cabinet is connected to the server for communication, if the lending of the shared items in the current rental cabinet needs to be scheduled, the current rental cabinet triggers the first scheduling request, sends the first scheduling request to the server, and the server receives the first scheduling request.
[0059] S220. According to the identifier of the current rental cabinet, obtain the historical order data and current supply and demand data of the operating area where the current rental cabinet is located.
[0060] Among them, the operation area can be an area where a rental cabinet is placed, and the operation area can correspond to public places such as shopping malls, hospitals, parks, libraries, and beauty salons. A certain geographical area can be divided, and the geographical area can be an area based on provinces, cities, counties, or districts. For example, the geographical area can be Shanghai, or it can be Baoshan District, Shanghai, etc. The geographical area can be divided into multiple grids according to the area of the geographical area, and the grid where the rental cabinet is placed is used as the operation area. The historical order data can be the lending data generated in any operating area in the past (such as the number of shared items lent in a certain time period or the number of times the shared items are borrowed). The current supply and demand data of any operating area includes the number of shared items required at the current moment and the number of shared items that can be lent in the operating area. Specifically, if any user lends a shared item at any rental cabinet, the rental cabinet sends the user's behavior data of lending the shared item to the server, and the server stores the behavior data, and the behavior data may include the identification of the rental cabinet. The server can also update the number of shared items in the rental cabinet according to the behavior data. Therefore, the server stores the identification of each rental cabinet, the number of shared items in each rental cabinet, and the historical order data. The user terminal has a positioning function, and the user terminal is connected to the server in communication. When a user terminal appears in any operating area, the user terminal can send positioning data to the server. The number of user terminals appearing in the operating area has a certain degree of influence on the demand in the operating area. For example, if it suddenly rains heavily, the demand data for shared umbrellas can be determined based on the number of user terminals in the operating area. Therefore, after receiving the first scheduling request, the server can determine the operating area where the current rental cabinet is located based on the identifier of the current rental cabinet. Each operating area can be provided with a corresponding operating area identifier, and the server can obtain the historical order data and current supply and demand data of the operating area where the current rental cabinet is located based on the operating area identifier.
[0061] S230: Determine the demand data for the current rental cabinets based on the historical order data and current supply and demand data in the operating area.
[0062] Specifically, multiple rental cabinets may be set up in an operating area, and the number of shared items in one or several rental cabinets is insufficient while the number of shared items in other rental cabinets is sufficient. Since the division of the operating area is set based on actual conditions, the geographical area covered by the operating area will not be particularly large, and users may be advised to go to rental cabinets with sufficient shared items. Therefore, after the current rental cabinet triggers the first scheduling request, the current supply and demand data in the operating area where the current rental cabinet is located is obtained. Since the historical order data can reflect the general situation of the lending of shared items in the operating area, it can be used to evaluate whether the supply in the current operating area is sufficient. Therefore, the historical order data in the operating area is obtained. Furthermore, the demand data of the current rental cabinet is determined through the historical order data and current supply and demand data in the operating area.
[0063] S240: Send a second scheduling request to the operation and maintenance terminal according to the demand data of the current rental cabinet.
[0064] Specifically, the demand data of the current rental cabinet may be the number of shared items that need to be replenished in the current rental cabinet, or the number of shared items that need to be transferred out of the current rental cabinet. Therefore, according to the demand data of the current rental cabinet, a second scheduling request is sent to the operation and maintenance terminal to let the operation and maintenance personnel know whether it is necessary to schedule the shared items in the current rental cabinet, such as a request to replenish the shared items, a request to transfer out or reduce the shared items, or a prompt that no scheduling operation is required.
[0065] In the above embodiment, by obtaining a first scheduling request, and the first scheduling request includes the identifier of the current rental cabinet, and according to the identifier of the current rental cabinet, the historical order data and current supply and demand data of the operating area where the current rental cabinet is located are obtained; then, according to the historical order data and current supply and demand data in the operating area, the demand data of the current rental cabinet is determined; thus, according to the demand data of the current rental cabinet, a second scheduling request is sent to the operation and maintenance terminal. It can be seen that this embodiment reasonably schedules shared items based on the predicted demand data of the operating area, improves the utilization rate of shared items, and reduces the occurrence of shared items that cannot be returned or rented normally.
[0066] In one embodiment, the method of triggering the first scheduling request includes: when the number of shared items in the current rental cabinet is reduced to a first trigger threshold, triggering the first scheduling request to increase the shared items, or; periodically obtaining the number of shared items borrowed in the current rental cabinet, and when the number of borrowed items is less than a second trigger threshold, triggering the first scheduling request to reduce the shared items.
[0067] Specifically, the first scheduling request can be triggered in two situations: the situation of replenishing shared items (corresponding to the situation where the number of users is greater than the number of shared items, that is, the shared items are insufficient and in short supply) and the situation of reducing the release of shared items (corresponding to the situation where the number of users is less than the number of shared items, that is, there are few users and too many shared items, resulting in idle shared items). In order to improve the utilization rate of shared items, reduce the idleness of shared items, and meet the needs of users, different trigger rules are set for these two situations. For the situation where shared items are insufficient, when the number of shared items in the current rental cabinet is reduced to the first trigger threshold, the first scheduling request to increase shared items is triggered. For the situation where there are few users and too many shared items, the number of shared items lent out in the current rental cabinet is obtained regularly. When the number of lent out is less than the second trigger threshold, the first scheduling request to reduce shared items is triggered.
[0068] In some embodiments, when the shared item is a shared power bank, the first scheduling request may be triggered when the number of power banks in the rental cabinet drops to a preset threshold, or when the power banks in the rental cabinet are insufficient due to excessive borrowing. The first scheduling request may also be triggered when the number of power banks in the rental cabinets in a certain area remains sufficient for a long time and the number of lending orders generated is small.
[0069] In this embodiment, by combining the actual situation and setting the triggering rules of the first scheduling request, it can not only ensure that a sufficient number of shared items are provided for users to borrow and use, thereby improving the user experience, but also reduce the idleness of shared items and improve the utilization rate of shared items.
[0070] In one embodiment, the current supply and demand data includes the current supply quantity and the current demand quantity. Figure 3 As shown, in step S220, according to the identifier of the current rental cabinet, the historical order data and current supply and demand data of the operating area where the current rental cabinet is located are obtained, including:
[0071] S310: Determine the operating area where the current rental cabinet is located and the identifications of other rental cabinets in the operating area according to the identification of the current rental cabinet.
[0072] Specifically, if the current rental cabinet is placed in an operating area, then the rental cabinet corresponds to an operating area. The server stores the correspondence between the rental cabinet and the operating area, and determines the operating area where the current rental cabinet is located according to the identifier of the current rental cabinet. Other rental cabinets may be placed in the operating area where the current rental cabinet is located. Therefore, after determining the operating area where the current rental cabinet is located, and each operating area is provided with a corresponding area identifier, other rental cabinets located in the operating area can be determined according to the area identifier, and the identifiers of other rental cabinets in the operating area can be obtained.
[0073] S320. According to the identification of each rental cabinet in the operation area, the storage quantity data of each rental cabinet is obtained, and the current supply quantity of the operation area is obtained according to the storage quantity data of each rental cabinet.
[0074] The storage quantity data may be the number of shared items stored in a rental cabinet. Specifically, the server stores the storage quantity data of each rental cabinet. For the current operating area where the rental cabinet is located, the storage quantity data of each rental cabinet is obtained according to the identification of each rental cabinet, and the storage quantity data of each rental cabinet is summed to obtain the total amount of shared items that can be borrowed by users in the operating area, that is, the current supply quantity of the operating area.
[0075] S330. According to the identification of each rental cabinet in the operation area, obtain the historical order data of each rental cabinet in the operation area, and obtain the historical order data of the operation area according to the historical order data of each rental cabinet.
[0076] Specifically, for the operating area where the current rental cabinet is located, the identification of each rental cabinet in the operating area is obtained, and the historical order data of each rental cabinet is obtained according to the identification of each rental cabinet. Since each rental cabinet is located in each operating area, the historical order data of the operating area can be determined according to the historical order data of each rental cabinet.
[0077] S340: Determine the current demand quantity of the operation area according to the number of registered users in the operation area.
[0078] Specifically, the user terminal has a positioning function, and the user terminal sends the user terminal location to the server. The server can determine which user terminals are located in the operating area where the current rental cabinet is located according to the location of each user terminal, count the user terminals located in the operating area, and determine the number of registered users in the operating area. Registered users located in the operating area have a potential demand for using shared items, so the current demand quantity of the operating area is determined according to the number of registered users.
[0079] In this embodiment, not only is the identification of each rental cabinet in the operating area where the current rental cabinet is located determined according to the identification of the current rental cabinet, thereby determining the current supply quantity and historical order data of the operating area according to the identification of each rental cabinet, but the current demand quantity of the operating area is also determined through the number of registered users in the operating area, thereby achieving a comprehensive understanding of the overall situation of the operating area, which not only provides an accurate data basis for subsequent triggering of scheduling requests, but also reduces the workload of operation and maintenance staff, especially when there are insufficient shared items in a single rental cabinet but sufficient shared items in the surrounding areas, thereby reducing unnecessary scheduling of shared items.
[0080] In one embodiment, Figure 4As shown, before determining the demand data of the current rental cabinet according to the historical order data and the current supply and demand data in the operating area, the method also includes:
[0081] S410: Obtain the current power level of each registered user terminal.
[0082] S420: Determine a registered user terminal whose current power level reaches a lower limit of a power level threshold as a target user terminal.
[0083] S430: Acquire location information of the target user terminal.
[0084] S440: Determine the operating area where the target user terminal is located according to the location information.
[0085] S450: Obtain historical order data and current supply and demand data of the operating area where the target user terminal is located.
[0086] Specifically, when the shared item is a mobile power source, the terminals of the registered users send their current power to the server, and the server obtains the current power of each registered user terminal. The current power of each registered user terminal is compared with the preset lower limit of the power threshold, and among each registered user terminal, the registered user terminal whose current power reaches the lower limit of the power threshold is determined as the target user terminal. The target user terminal can be understood as a terminal that needs to be charged. The target user terminal sends its positioning information to the server, and the server obtains the location information of the target user terminal. The server side stores the geographical location corresponding to each operating area, so the operating area where the target user terminal is located is determined according to the location information of the target user terminal. Since the demand data can be predicted based on the historical order data, the historical order data of the operating area is obtained. In order to comprehensively and accurately obtain the user's authentic demand data, the current supply quantity and the current demand quantity in the operating area are further obtained according to the operating area identifier. Combined with the historical order data and the current supply and demand data, the accuracy of predicting the demand for shared items is improved, thereby ensuring that the scheduling request sent to the operation and maintenance terminal is reasonable and reducing the workload of the operation and maintenance staff.
[0087] In one embodiment, according to the number of registered users in the operation area, determining the current demand quantity of the operation area includes: counting the number of target user terminals to obtain the current demand quantity of the operation area.
[0088] Specifically, when the shared item is a mobile power source, it is necessary to evaluate the current demand data in combination with the actual power level of each registered user terminal. For example, if the power level of a registered user terminal is greater than 80% or even 100%, the registered user terminal is considered to not need a mobile power source. If the power level of a registered user terminal is less than 50%, the registered user terminal is considered to need a mobile power source. As mentioned above, the registered user terminal whose current power level has reached the lower limit of the power threshold has been determined as the target user terminal. Therefore, in order to obtain the actual demand data for shared items, the target user terminals in the operating area are counted to obtain the number of target user terminals as the current demand number of the operating area.
[0089] In one embodiment, Figure 5 As shown, after determining the registered user terminal whose current power reaches the lower limit of the power threshold as the target user terminal, the method further includes:
[0090] S510: Determine a target rental cabinet from various rental cabinets located in the operation area where the target user terminal is located.
[0091] S520: Determine a navigation route to the target rental cabinet according to the location information of the target user terminal and the location information of the target rental cabinet.
[0092] Specifically, the target user terminal sends its positioning information to the server, and the server obtains the location information of the target user terminal. The server side stores the geographical locations corresponding to each operating area. Therefore, the operating area where the target user terminal is located is determined according to the location information of the target user terminal. There are several rental cabinets in the operating area where the target user terminal is located. The target rental cabinet can be determined from these rental cabinets based on the distance or the user's choice, or the target rental cabinet can be determined from these rental cabinets based on the storage volume data of each rental cabinet. In order to guide the user to the target rental cabinet and reduce the time spent by the user in searching for the target rental cabinet, the server obtains the location information of the target rental cabinet, and then performs path planning based on the location information of the target user terminal and the location information of the target rental cabinet, and generates a navigation route from the location of the target user terminal to the location of the target rental cabinet.
[0093] In one embodiment, Figure 6 As shown, in step S510, a target rental cabinet is determined from the rental cabinets located in the operation area where the target user terminal is located, including:
[0094] S610: Obtain current supply and demand data and historical order data of each rental cabinet in the operating area where the target user terminal is located.
[0095] S620: Obtain location information of each rental cabinet.
[0096] S630: Determine a target rental cabinet from among the rental cabinets according to the location information of each rental cabinet, current supply and demand data, and historical order data.
[0097] Specifically, the operating area where the target user terminal is located is determined according to the location information of the target user terminal. There are several rental cabinets in the operating area. The historical order data and current supply and demand data of each rental cabinet are obtained according to the identification of each rental cabinet. The demand pressure of each rental cabinet is evaluated according to the historical order data and current supply and demand data of each rental cabinet. In some embodiments, the difference between the demand data and the warehouse data in each rental cabinet is calculated, and the demand pressure of each rental cabinet is quantified according to the difference. Exemplarily, the rental cabinet whose demand data is greater than the warehouse data may belong to the rental cabinet with insufficient supply, and the rental cabinet whose demand data is less than the warehouse data may belong to the rental cabinet with large supply and demand, and the demand pressure of the rental cabinet with insufficient supply is greater than the demand pressure of the rental cabinet with large supply and demand. Further, the location information of each rental cabinet is obtained, and the distance between each rental cabinet and the target user terminal is determined according to the location information of each rental cabinet and the location information of the target user terminal. From each rental cabinet, a rental cabinet with small demand pressure and close distance to the target user terminal is selected as the target rental cabinet.
[0098] In this embodiment, the location information, current supply and demand data, and historical order data of each rental cabinet are comprehensively considered, and a target rental cabinet with low demand pressure and close distance to the target user terminal is determined among each rental cabinet, which can not only improve the user experience but also reduce the scheduling workload of the operation and maintenance personnel.
[0099] In one embodiment, the demand data of the current rental cabinet is determined based on the historical order data and current supply and demand data in the operating area, including: based on the classification decision tree algorithm, the demand data of the current rental cabinet is predicted based on the historical order data of each rental cabinet in the operating area.
[0100] Among them, a machine learning algorithm can be used to calculate the demand data of each rental cabinet. For example, the KNN algorithm, random forest algorithm, regression algorithm, naive Bayes algorithm, neural network algorithm, etc. can be used. Specifically, the historical order data of each rental cabinet in the operating area is analyzed by the classification decision tree algorithm to obtain the demand data of the current rental cabinet. Exemplarily, the classification decision tree algorithm can use the C4.5 algorithm, which is a series of algorithms used in classification problems in machine learning and data mining.
[0101] In one embodiment, the demand data for the current rental cabinet is determined based on the historical order data and current supply and demand data in the operating area, including: determining the demand data for the current rental cabinet based on the number of registered users located in the operating area, the warehouse data of each rental cabinet, and the number of rental cabinets in the operating area.
[0102] Specifically, for the operating area where the current rental cabinet is located, the storage data of each rental cabinet is obtained according to the identification of each rental cabinet, and the supply data of the operating area is determined according to the storage data of each rental cabinet and the number of rental cabinets in the operating area. The operating area has geographic location information, and the registered user terminal uploads the positioning information to the server. Therefore, the server can determine the number of registered users located in the operating area according to the geographic location information of the operating area and the positioning information of the registered user terminal. The number of registered users can reflect the demand data of the operating area. The demand data of the operating area is determined by the demand data of the operating area and the supply data in the operating area, and used as the demand data of the current rental cabinet. In this embodiment, if only the shared items in a single rental cabinet are insufficient and the shared items in the surrounding rental cabinets are sufficient, in order to reduce the workload of the operation and maintenance personnel, no scheduling is required at this time. If the shared items in a single rental cabinet are insufficient and the shared items in the surrounding rental cabinets are also insufficient, it is determined that the shared items in the operating area need to be supplemented, and it is necessary to schedule the shared items to the operating area to solve the problem of insufficient shared items.
[0103] In one embodiment, the shared item is described by taking a mobile power supply as an example. The present application provides a scheduling method for shared items, such as Figure 7 As shown, the following steps are included:
[0104] S702: Obtain a first scheduling request.
[0105] The first scheduling request includes an identifier of the current rental cabinet, and the current rental cabinet is used to accommodate a number of mobile power supplies. Specifically, when the number of mobile power supplies in the current rental cabinet is reduced to a first trigger threshold, the first scheduling request to increase the mobile power supplies is triggered, or; the number of mobile power supplies loaned out in the current rental cabinet is obtained periodically, and when the number of loaned out is less than a second trigger threshold, the first scheduling request to reduce the mobile power supplies is triggered.
[0106] S704: According to the identifier of the current rental cabinet, determine the operating area where the current rental cabinet is located and the identifiers of other rental cabinets in the operating area.
[0107] S706. According to the identification of each rental cabinet in the operation area, the storage quantity data of each rental cabinet is obtained, and the current supply quantity of the operation area is obtained according to the storage quantity data of each rental cabinet.
[0108] S708. According to the identification of each rental cabinet in the operation area, obtain the historical order data of each rental cabinet in the operation area, and obtain the historical order data of the operation area according to the historical order data of each rental cabinet.
[0109] For example, after obtaining the identification of the current rental cabinet, multiple rental cabinets in any operating area have associated identification numbers. For example, the cabinet numbers placed in shopping mall A all start with A, such as A-001, A-002. In this way, the cabinet codes of each rental cabinet in the operating area can be obtained, and then the warehouse data and historical order data of each rental cabinet in the operating area can be obtained. The historical order data can be the historical record of the mobile power supply loaned by the rental cabinet.
[0110] S710: Determine the current demand quantity of the operation area according to the number of registered users in the operation area.
[0111] In some embodiments, the current demand quantity in the operation area may be obtained by counting the number of target user terminals.
[0112] S712. Determine the demand data for the current rental cabinets based on the historical order data and current supply and demand data in the operating area.
[0113] Among them, the current supply and demand data includes the current supply quantity and the current demand quantity.
[0114] S714: Send a second scheduling request to the operation and maintenance terminal according to the demand data of the current rental cabinet.
[0115] In one embodiment, the shared item is described by taking a mobile power supply as an example. The present application provides a scheduling method for shared items, such as Figure 8 As shown, the following steps are included:
[0116] S802: Obtain the current power level of each registered user terminal.
[0117] S804: Determine a registered user terminal whose current power level reaches a lower limit of a power level threshold as a target user terminal.
[0118] S806: Acquire location information of the target user terminal.
[0119] S808: Determine the operating area where the target user terminal is located according to the location information.
[0120] S810: Obtain historical order data and current supply and demand data of the operating area where the target user terminal is located.
[0121] Among them, the current supply and demand data includes the current supply quantity and the current demand quantity.
[0122] S812: Determine a target rental cabinet from various rental cabinets located in the operation area where the target user terminal is located.
[0123] Specifically, according to the identification of the operating area where the target user terminal is located, the current supply and demand data and historical order data of each rental cabinet are determined. The location information of each rental cabinet is obtained. According to the location information, current supply and demand data and historical order data of each rental cabinet, the target rental cabinet is determined from each rental cabinet.
[0124] S814: Determine a navigation route to the target rental cabinet according to the location information of the target user terminal and the location information of the target rental cabinet.
[0125] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0126] In one embodiment, Fig. 9 As shown, a scheduling device 900 for sharing items is provided, comprising: a first request acquisition module 910, an order supply and demand acquisition module 920, a demand data determination module 930, and a second request sending module 940, wherein:
[0127] A first request acquisition module 910 is used to acquire a first scheduling request; the first scheduling request includes an identifier of a current rental cabinet, and the current rental cabinet is used to accommodate a number of shared items;
[0128] The order supply and demand acquisition module 920 is used to acquire the historical order data and current supply and demand data of the operating area where the current rental cabinet is located according to the identifier of the current rental cabinet;
[0129] A demand data determination module 930, configured to determine the demand data of the current rental cabinet according to the historical order data and the current supply and demand data in the operating area;
[0130] The second request sending module 940 is used to send a second scheduling request to the operation and maintenance terminal according to the demand data of the current rental cabinet.
[0131] In one embodiment, the method of triggering the first scheduling request includes: when the number of shared items in the current rental cabinet is reduced to a first trigger threshold, triggering a first scheduling request to increase the shared items, or; periodically obtaining the number of shared items borrowed in the current rental cabinet, and when the number of borrowed items is less than a second trigger threshold, triggering a first scheduling request to reduce the shared items.
[0132] In one embodiment, the current supply and demand data includes the current supply quantity and the current demand quantity; the order supply and demand acquisition module 920 is also used to determine the operating area where the current rental cabinet is located and the identification of other rental cabinets in the operating area according to the identification of the current rental cabinet; according to the identification of each rental cabinet in the operating area, the warehouse data of each rental cabinet is obtained, and the current supply quantity of the operating area is obtained according to the warehouse data of each rental cabinet; according to the identification of each rental cabinet in the operating area, the historical order data of each rental cabinet in the operating area is obtained, and the historical order data of the operating area is obtained according to the historical order data of each rental cabinet; according to the number of registered users located in the operating area, the current demand quantity of the operating area is determined.
[0133] In one embodiment, the apparatus further comprises:
[0134] The current power acquisition module is used to obtain the current power of each registered user terminal;
[0135] A target terminal determination module, used to determine a registered user terminal whose current power reaches a lower limit of a power threshold as a target user terminal;
[0136] A target location acquisition module, used to acquire the location information of the target user terminal;
[0137] The operating area determination module is used to determine the operating area where the target user terminal is located according to the location information.
[0138] The historical supply and demand acquisition module is used to acquire the historical order data and current supply and demand data of the operating area where the target user terminal is located.
[0139] In one embodiment, the order supply and demand acquisition module 920 is further used to count the number of the target user terminals to obtain the current demand quantity of the operating area.
[0140] In one embodiment, the apparatus further comprises:
[0141] A target rental cabinet determination module, used to determine a target rental cabinet from various rental cabinets located in the operation area where the target user terminal is located;
[0142] The navigation route determination module is used to determine a navigation route to the target rental cabinet according to the location information of the target user terminal and the location information of the target rental cabinet.
[0143] In one embodiment, the target rental cabinet determination module is also used to obtain the current supply and demand data and historical order data of each rental cabinet in the operating area where the target user terminal is located; obtain the location information of each rental cabinet; and determine the target rental cabinet from each rental cabinet based on the location information, current supply and demand data and historical order data of each rental cabinet.
[0144] In one embodiment, the demand data determination module 930 is also used to predict the demand data of the current rental cabinet based on the historical order data of each rental cabinet in the operating area based on the classification decision tree algorithm; or, determine the demand data of the current rental cabinet based on the number of registered users located in the operating area, the warehouse data of each rental cabinet and the number of rental cabinets in the operating area.
[0145] For the specific definition of the scheduling device for shared items, please refer to the definition of the scheduling method for shared items above, which will not be repeated here. Each module in the above-mentioned scheduling device for shared items can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0146] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a scheduling method for shared items is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0147] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0148] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above-mentioned method for scheduling shared items when executing the computer program.
[0149] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method for scheduling shared items is implemented.
[0150] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0151] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0152] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for scheduling shared items, characterized in that: The method comprises: Acquire a first scheduling request triggered by a current rental cabinet; the first scheduling request includes an identifier of the current rental cabinet, and the current rental cabinet is used to accommodate a plurality of shared items; the first scheduling request is triggered when the shared items in the current rental cabinet are reduced to a first trigger threshold, and / or when the number of items lent out of the current rental cabinet is less than a second trigger threshold; According to the identifier of the current rental cabinet, the historical order data and current supply and demand data of the operating area where the current rental cabinet is located are obtained; wherein the operating area is obtained by dividing the geographical area into multiple grids and taking the grid where the rental cabinet is placed as the operating area; the historical order data includes the lending data generated in the past in any operating area; the current supply and demand data includes the current supply quantity and the current demand quantity of the operating area; wherein the current demand quantity is the number of shared items required at the current moment; the current supply quantity is the number of shared items that can be borrowed in the operating area; the current demand quantity is counted by the target user terminal located in the operating area; Determine the demand data of the current rental cabinet according to the historical order data and the current supply and demand data in the operating area; According to the demand data of the current rental cabinet, a second scheduling request is sent to the operation and maintenance terminal.
2. The method according to claim 1, characterized in that The first scheduling request triggered by the current rental cabinet includes: When the number of shared items in the current rental cabinet decreases to a first trigger threshold, the current rental cabinet triggers a first scheduling request for adding shared items, or; The number of shared items lent out in the current rental cabinet is obtained periodically, and when the number of shared items lent out is less than a second trigger threshold, the current rental cabinet triggers a first scheduling request to reduce shared items.
3. The method according to claim 1, characterized in that The acquiring, according to the identifier of the current rental cabinet, the historical order data and the current supply and demand data of the operating area where the current rental cabinet is located includes: According to the identifier of the current rental cabinet, determine the operating area where the current rental cabinet is located and the identifiers of other rental cabinets in the operating area; According to the identification of each rental cabinet in the operating area, the storage quantity data of each rental cabinet is obtained, and the current supply quantity of the operating area is obtained according to the storage quantity data of each rental cabinet; According to the identifier of each rental cabinet in the operation area, the historical order data of each rental cabinet in the operation area is obtained, and the historical order data of the operation area is obtained according to the historical order data of each rental cabinet; The current demand quantity of the operation area is determined according to the number of registered users located in the operation area.
4. The method according to claim 3, characterized in that Before determining the demand data of the current rental cabinet according to the historical order data and the current supply and demand data in the operating area, the method further includes: Get the current power of each registered user terminal; Determine a registered user terminal whose current power reaches the lower limit of the power threshold as a target user terminal; Acquire location information of the target user terminal; Determine the operation area where the target user terminal is located according to the location information; Obtain historical order data and current supply and demand data for the operating area where the target user terminal is located.
5. The method according to claim 4, characterized in that The determining the current demand quantity of the operation area according to the number of registered users located in the operation area includes: The number of the target user terminals is counted to obtain the current demand number of the operation area.
6. The method according to claim 4, characterized in that After determining the registered user terminal whose current power reaches the lower limit of the power threshold as the target user terminal, the method further includes: Determining a target rental cabinet from rental cabinets located in the operation area where the target user terminal is located; A navigation route to the target rental cabinet is determined according to the location information of the target user terminal and the location information of the target rental cabinet.
7. The method according to claim 6, characterized in that The step of determining a target rental cabinet from rental cabinets located in an operation area where the target user terminal is located includes: Obtaining current supply and demand data and historical order data of each rental cabinet in the operating area where the target user terminal is located; Get the location information of each rental cabinet; The target rental cabinet is determined from among the rental cabinets according to the location information of each rental cabinet, current supply and demand data, and historical order data.
8. The method according to claim 3, characterized in that Determining the demand data of the current rental cabinet according to the historical order data and the current supply and demand data in the operating area includes any one of the following forms: Based on the classification decision tree algorithm, the demand data of the current rental cabinet is predicted according to the historical order data of each rental cabinet in the operation area; Demand data for the current rental cabinet is determined based on the number of registered users located in the operating area, the storage data of each rental cabinet, and the number of rental cabinets in the operating area.
9. A scheduling device for shared items, characterized in that: The device comprises: A first request acquisition module is used to acquire a first scheduling request triggered by a current rental cabinet; the first scheduling request includes an identifier of the current rental cabinet, and the current rental cabinet is used to accommodate a plurality of shared items; the first scheduling request is triggered when the number of shared items in the current rental cabinet is reduced to a first trigger threshold, and / or when the number of items lent out in the current rental cabinet is less than a second trigger threshold; An order supply and demand acquisition module is used to obtain historical order data and current supply and demand data of the operating area where the current rental cabinet is located according to the identifier of the current rental cabinet; wherein the operating area is obtained by dividing the geographical area into multiple grids and taking the grid where the rental cabinet is placed as the operating area; the historical order data includes the lending data generated in the past in any operating area; the current supply and demand data includes the current supply quantity and the current demand quantity of the operating area; wherein the current demand quantity is the number of shared items required at the current moment; the current supply quantity is the number of shared items that can be borrowed in the operating area; the current demand quantity is counted by the target user terminal located in the operating area; A demand data determination module, used to determine the demand data of the current rental cabinet according to the historical order data and current supply and demand data in the operating area; The second request sending module is used to send a second scheduling request to the operation and maintenance terminal according to the demand data of the current rental cabinet.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
