Method, device, electronic device and storage medium for determining target users
By determining candidate users in the target neighborhood in the collection system and selecting target users based on the task volume and distance information for reinforcement, the problem of unbalanced collection task volume is solved, and task processing efficiency and user experience are improved.
Patent Information
- Application Number
- CN202210725715.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-06-23
AI Technical Summary
When there are a large number of collection tasks in an existing collection system in a certain period of time or area, some collection users' tasks are too heavy and cannot be completed in time, poor user experience, and may even lead to user loss.
By obtaining the target task quantity and target position carried by the scheduling request, determine the current task quantity of users to be selected in the target neighborhood, and select the target user from the candidate users for reinforcement based on the task quantity threshold and distance information to ensure balanced task allocation.
It improves task processing efficiency and benefits, solves the economic losses caused by unbalanced task volume, and achieves balanced and timely response to task allocation.
Smart Images

Figure CN115099622B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a method, device, electronic device, and storage medium for determining a target user. Background Art
[0002] After receiving a collection task, existing collection systems can assign the task to a corresponding collection user, allowing the collection user to collect items based on the assigned collection task. Specifically, collection areas and time periods are pre-set for each collection user. After receiving a collection task, the collection system can determine the corresponding collection user and assign the collection task to the corresponding collection user.
[0003] When implementing the technical solution based on the above method, the inventors found the following problems:
[0004] When a large number of pickup tasks are generated during a certain time period or within a certain area, they are automatically assigned to the corresponding pickup users. However, some users may have a large workload and be unable to complete the tasks in a timely manner, resulting in a poor user experience. Furthermore, in actual applications, there may be sudden increases in offline shipment volume, in which case the pickup users may be unable to respond in a timely manner, leading to user churn. Summary of the Invention
[0005] The present invention provides a method, device, electronic device and storage medium for determining target users, so as to achieve the technical effect of effectively and conveniently determining target users, enabling target users to process corresponding target tasks in a timely manner, thereby improving task processing efficiency and benefits.
[0006] In a first aspect, an embodiment of the present invention provides a method for determining a target user, the method comprising:
[0007] Obtain the target task volume and target location carried in the scheduling request;
[0008] Determining a target neighborhood based on the target location, and a current task amount of the user to be selected associated with the target neighborhood;
[0009] Determining candidate users from the users to be selected based on the current task volume of each user to be selected and a first task volume threshold;
[0010] Based on the target task amount and the total task amount corresponding to the candidate users, a target user corresponding to the scheduling request is determined from the candidate users.
[0011] Furthermore, determining a target neighborhood based on the target position includes:
[0012] Under the condition that the target task amount is greater than a second task amount threshold, a target neighborhood centered on the target position is determined.
[0013] Furthermore, determining the current task amount of the user to be selected associated with the target neighborhood includes:
[0014] Obtaining from the scheduling system the users to be selected within the target neighborhood, as well as the existing task volume and the expected task volume of each user to be selected;
[0015] Based on the existing task volume and the expected task volume, the current task volume of the corresponding user to be selected is determined.
[0016] Furthermore, determining candidate users from the users to be selected based on the current task volume of each user to be selected and the first task volume threshold includes:
[0017] The user to be selected whose current task amount is less than the first task amount threshold is used as the candidate user.
[0018] Furthermore, determining a target user corresponding to the scheduling request from the candidate users based on the target task amount and the total task amount corresponding to the candidate users includes:
[0019] The target user is determined from the candidate users according to the target task amount, the total task amount corresponding to the candidate users, and the distance information from each candidate user to the target location.
[0020] Furthermore, determining the target user from the candidate users based on the target task amount, the total task amount corresponding to the candidate users, and the distance information from each candidate user to the target location includes:
[0021] Determining the number of stranded users and the number of remaining users based on the total task volume and the first task volume threshold;
[0022] Determining stranded users corresponding to the number of stranded users based on the current task amount of each candidate user, relative position information between the candidate users, and distance information to the target location;
[0023] The target user is determined based on the target task amount and the number of remaining users.
[0024] Furthermore, determining the stranded users corresponding to the number of stranded users based on the current task amount of each candidate user, the relative position information between the candidate users, and the distance information to the target location includes:
[0025] Determining at least one candidate user group based on relative position information between the candidate users;
[0026] For each candidate user group, the number of stranded users corresponding to the current candidate users is determined based on the current task volume of each candidate user in the current candidate user group and the first task volume threshold, and the stranded users consistent with the number of stranded users are determined based on the distance information between each candidate user and the target location.
[0027] Furthermore, determining the target user based on the target task amount and the number of remaining users includes:
[0028] Determining the number of executable tasks based on the remaining number of users and the first task amount threshold;
[0029] If the target task amount is less than or equal to the number of executable tasks, the target user is determined according to the distance between the location information of the remaining users and the target location.
[0030] Furthermore, the method further comprises:
[0031] If the target task volume is greater than the number of executable tasks, the first task volume threshold is readjusted, and the step of determining candidate users from the users to be selected based on each current task volume and the first task volume threshold is repeated.
[0032] Furthermore, the method further comprises:
[0033] When the number of times the first task volume threshold is readjusted reaches a preset number threshold, the remaining target task volume is determined based on the last first task volume threshold and the number of target users, and the remaining target task volume is fed back to the target terminal device so as to perform user scheduling based on the remaining target task volume based on the management user corresponding to the target terminal device.
[0034] Furthermore, the method further comprises:
[0035] Release the current task volume of each target user to the corresponding stranded users.
[0036] Furthermore, releasing the current task volume of each target user to the corresponding stranded user includes:
[0037] For each target user, the stranded user to whom the task volume is to be released is determined according to the current task volume of the current target user, the current task volume of the candidate users in the candidate user group to which the target user belongs, and the first task volume threshold.
[0038] In a second aspect, an embodiment of the present invention further provides a device for determining a target user, the device comprising:
[0039] An information acquisition module is used to obtain the target task volume and target location carried in the scheduling request;
[0040] A task amount acquisition module is used to determine a target neighborhood and a current task amount of a user to be selected associated with the target neighborhood based on the target location;
[0041] a candidate user determination module, configured to determine candidate users from the users to be selected based on the current task volume of each user to be selected and a first task volume threshold;
[0042] The target user determination module is configured to determine a target user corresponding to the scheduling request from the candidate users based on the target task amount and the total task amount corresponding to the candidate users.
[0043] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising:
[0044] one or more processors;
[0045] a storage device for storing one or more programs,
[0046] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining a target user as described in any one of the embodiments of the present invention.
[0047] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to perform the method for determining a target user as described in any one of the embodiments of the present invention.
[0048] The technical solution provided by the embodiment of the present invention obtains the target task volume and target position carried by the scheduling request; determines the target neighborhood and the current task volume of the user to be selected associated with the target neighborhood based on the target position; determines the candidate user from the users to be selected according to the current task volume of each user to be selected and the first task volume threshold; determines the target user corresponding to the scheduling request from the candidate users based on the target task volume and the total task volume corresponding to the candidate users, thereby solving the problem in the prior art that the collection task volume corresponding to each collection user is unbalanced, resulting in some users having too heavy a collection task volume and being unable to complete the collection in time, and the problem that, when the offline collection task volume surges, the task volume cannot be responded to in time, resulting in economic losses. It realizes the efficient scheduling of corresponding target users for reinforcement according to the task volume, so that when tasks are processed based on the retrieved reinforcement users, the task processing efficiency is improved, the task distribution is balanced, and the benefits are increased. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings introduced here only illustrate some of the embodiments to be described by the present invention, and are not exhaustive. A person skilled in the art can derive other drawings based on these drawings without inventive effort.
[0050] Figure 1 The process of a method for determining a target user provided by an embodiment of the present invention is a schematic diagram;
[0051] Figure 2 A flow chart of a method for determining a target user provided by an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of the current task processing volume corresponding to each user to be selected provided in an embodiment of the present invention;
[0053] Figure 4 A schematic diagram of the structure of a device for determining a target user provided by an embodiment of the present invention;
[0054] Figure 5 The present invention provides an electronic device structure diagram. DETAILED DESCRIPTION
[0055] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.
[0056] Before introducing the present technical solution, an example of the application scenario can be first explained. The technical solution provided by the embodiment of the present disclosure can be applied to any scenario that requires personnel reinforcement, for example, a scenario where the delivery volume is large and user reinforcement is required, or a scenario where the collection volume is large and user reinforcement is required. Based on the technical solution provided by the embodiment of the present disclosure, it is possible to determine the reinforcement user, and then based on the user's processing of the corresponding task, the task efficiency can be improved, such as improving the efficiency of item collection or delivery, thereby improving the technical effect of market competitiveness.
[0057] Figure 1A flow chart of determining a target user is provided in an embodiment of the present invention. This embodiment is applicable to situations where a corresponding reinforcement user is determined when the task volume is greater than a preset task volume threshold. The method can be executed by a device for determining the target user. The device can be implemented in the form of software and / or hardware. The hardware can be deployed in a terminal device corresponding to each user or in a server corresponding to a carried terminal device. The electronic device can execute the method for determining the target user provided by the present technical solution, so that when the task volume reaches the preset task volume threshold, the best reinforcement user can be determined, thereby completing the effect of the corresponding task.
[0058] It should also be noted that the technical solutions provided by the embodiments of the present disclosure can be implemented on a server-side basis, on a client-side basis, or by a combination of the server and the client. For example, the technical solutions provided by the embodiments of the present disclosure can be integrated into any application software requiring user reinforcement, which is typically installed on the client. Alternatively, the technical solutions can be integrated into any terminal device, and the ultimate target reinforcement user, i.e., the target user, can be determined based on the interaction between each terminal device and the server.
[0059] like Figure 1 As shown, the method includes:
[0060] S110: Obtain the target task volume and target location carried in the scheduling request.
[0061] It should be noted that, regardless of whether it is application software integrated into a terminal device or a specially developed terminal device, each user can perform corresponding trigger operations on the terminal device. For example, if a user has a large task load and cannot be completed within a certain time, they can trigger the reinforcement control on the terminal device, or the control that requires personnel to be called, and generate corresponding dispatch requests based on the trigger operation.
[0062] Among them, the scheduling request can carry a lot of parameter information, for example, the carried parameter information may include user identification, target task volume and target location. Each user has a user identification, which is used to characterize the corresponding user. The target task volume can be the amount of tasks that need to be performed to understand the user identification. The target location can be the current location information of the target user, or it can be the location information for which the target user is responsible. The target location information can be carried in the scheduling request, or it can be the location information sent based on the GPS positioning module in the terminal device. After each terminal device generates a corresponding scheduling request, it can send the scheduling request to the server corresponding to each terminal device, so that the server can determine the corresponding reinforcement user, that is, the target user, based on the scheduling request. Alternatively, after generating the scheduling request, the terminal device can determine the reinforcement user corresponding to the scheduling request, that is, the target user.
[0063] Specifically, each user can determine whether to trigger a corresponding operation on the terminal device based on the current or upcoming task volume information to dispatch the corresponding user for support. If so, the terminal device can be triggered to edit the target task volume to be undertaken on the display interface, so that the server can determine the corresponding target user based on the target task volume and the received target location information.
[0064] For example, taking the example of a collection user collecting objects, a corresponding terminal device can be assigned to each collection user. After the exhibition activities in a certain area are over, they need to be delivered to another area. At this time, the collection task volume in this area is very large. The collection user corresponding to a certain area can edit the task volume that needs to be collected or estimate the task volume on the terminal device, and generate a scheduling request based on this task volume.
[0065] S120: Determine a target neighborhood based on the target location, and a current task amount of the user to be selected that is associated with the target neighborhood.
[0066] Among them, the target neighborhood can be an area determined based on a preset radius length or side length with the target position as the center. The target area can also be an area pre-calibrated and associated with the target position based on the target position. For example, the target position can be longitude and latitude, and the corresponding cell can be determined based on the longitude and latitude, and the pre-calibrated cell associated with the cell can be obtained, and the area corresponding to the associated cell can be used as the target neighborhood. The number of users recruited in the target neighborhood can include one or more, and such recruited users are used as users to be selected. At the same time, the current task volume of each user to be selected can be obtained. Optionally, the current task volume is the amount of tasks currently undertaken or the total amount of tasks to be undertaken.
[0067] In actual applications, it is possible that each user to be selected has not marked the corresponding current task amount on the terminal device in a timely manner, or in other words, after other ordering users place an order, the corresponding task can be generated and assigned to the corresponding terminal device based on the address and other information of the ordering user. In this case, the current task amount of each user to be selected can be directly obtained. In order to more accurately obtain the current task amount of each user to be selected, after determining the user to be selected, a task amount editing instruction can be sent to the terminal device of each user to be selected, so that each user to be selected can edit the current task amount in the display interface based on the task instruction received by the terminal device, thereby obtaining the accurate current task amount, thereby improving the accuracy of determining the target user.
[0068] In an embodiment of the present invention, the target user is not determined directly after receiving the target task volume, but also needs to be determined based on the target task volume meeting certain conditions. Optionally, under the condition that the target task volume is greater than a second task volume threshold, the target area centered on the target position is determined.
[0069] The second task volume threshold is set in advance and is used to determine whether to trigger a reference standard for determining a target user.
[0070] It can be understood that if the target task volume is relatively large, optionally, 300 target tasks are greater than the second preset task volume threshold of 200, it means that a user cannot complete the task within a certain period of time. In this case, the step of determining the target user can be performed. Before determining the target user, the target location corresponding to the scheduling request can be determined, and then the target area can be determined based on the target location.
[0071] Determining the target neighborhood as the center of the target location mainly refers to determining a circular area with the target location as the center point according to a preset neighborhood radius. Alternatively, a rectangular area can be determined, or multiple cell areas associated with the target location can be determined and the collection of cell areas can be used as the target neighborhood.
[0072] In this embodiment, determining the users to be selected within the target neighborhood based on the current task volume associated with the users to be selected can be: obtaining the users to be selected within the target neighborhood, as well as the existing task volume and expected task volume of each user to be selected; and determining the current task volume of the corresponding user to be selected based on the existing task volume and the expected task volume.
[0073] It should be noted that the server side may correspond to a scheduling system. The scheduling system may store tasks ordered online and the task volume corresponding to each user. Based on the scheduling system, the current task volume associated with the target user may be obtained. The current task volume includes the existing task volume and the expected task volume. The existing task volume may be understood as the task volume allocated to the corresponding user to be selected after the ordering user places an order based on the corresponding terminal device. The expected task volume may be the task volume that may exist after the user to be selected arrives at the corresponding area. The user to be selected may update the expected task volume to the terminal device, or may not update it. Only when receiving the instruction to obtain the current task volume sent by the scheduling system, the corresponding expected task volume is edited to determine the current task volume of the corresponding user to be selected based on the expected task volume and the existing task volume.
[0074] S130 : Determine candidate users from the users to be selected based on the current task volume of each user to be selected and a first task volume threshold.
[0075] Each user has a certain workload. When the workload is large, there may be situations where the user cannot complete the tasks or is under great pressure. The first workload threshold is determined based on experience or a certain method, and is mainly used to assess whether the selected user can handle other tasks. Optionally, the first workload threshold can be set to 100. The first and second workload thresholds are relative, and their specific data can be the same or different, and can be set according to actual needs.
[0076] Specifically, for each user to be selected, if the workload of the user to be selected is too large, it indicates that the user is not suitable to support the user corresponding to the scheduling request. Based on the first workload threshold and the current workload of each user to be selected, it is possible to determine which users can support the user corresponding to the scheduling request, i.e., determine candidate users.
[0077] In short, users whose current task load is less than the first task load threshold are considered candidate users. The benefit of identifying candidate users is that rather than simply treating all users as target users, a comprehensive approach is used to determine candidate users based on their task load and the manageable task load threshold.
[0078] S140: Determine a target user corresponding to the scheduling request from the candidate users based on the target task amount and the total task amount corresponding to the candidate users.
[0079] Each candidate user has a specific task load. The total task load can be calculated by summing the loads of all candidate users. The total task load is the sum of all candidate users' current task loads. The target user is the user selected from the candidate users who ultimately needs to be supported.
[0080] In this embodiment, the target user is determined based on the target task amount and the total task amount, which can be: the target user is determined from the candidate users according to the target task amount, the total task amount corresponding to the candidate users, and the distance information from each candidate user to the target location.
[0081] It can be understood that in order to improve support efficiency, the distance information of each candidate user to the corresponding target location, the target task volume and the total task volume can be combined to comprehensively consider how to determine the target user from the candidate users.
[0082] Specifically, the total task volume can be used to determine the number of candidate users required to execute the task, thereby obtaining the number of users. The target user is then determined from all candidate users based on their distance to the target location and the number of users. For example, users closer to the target location can be dispatched for support, improving support efficiency.
[0083] On the basis of the above scheme, the target user is determined from the candidate users according to the target task volume, the total task volume corresponding to the candidate users, and the distance information of each candidate user to the target location, which can be: determining the number of stranded users and the number of remaining users according to the total task volume and the first task volume threshold; determining the stranded users corresponding to the number of stranded users based on the current task volume of each candidate user, the relative position information between the candidate users, and the distance information to the target location; determining the target user based on the target task volume and the number of remaining users.
[0084] Here, stranded users can be understood as users among candidate users who need to stay and continue to perform the corresponding tasks. The number of users with the total task volume can be determined based on the ratio of the total task volume to the first task volume threshold. The number of remaining users can be determined based on the total task volume and the number of candidate users. The target users can be determined based on the number of remaining users and the target task volume.
[0085] Furthermore, in order to further select the most suitable target user from the candidate users, the current task load of the candidate users and the relative position information between the candidate users may be combined to determine the stranded users and the corresponding target users.
[0086] Optionally, at least one candidate user group is determined based on the relative position information between each candidate user; for each candidate user group, the number of stranded users corresponding to the current candidate user is determined based on the current task volume of each candidate user in the current candidate user group and the first task volume threshold, and the stranded users consistent with the number of stranded users are determined based on the distance information between each candidate user and the target location.
[0087] The number of candidate user groups may include one or more. Optionally, if there are two candidate users and their relative distance information is very small, the number of candidate user groups may include one. If there are at least two candidate users and their relative distance information varies, the retained user and target user may be determined based on the relative distance. The retained user is the user among the candidate users that needs to be retained.
[0088] Specifically, the location information of each candidate user can be obtained separately. Based on the location information, candidate users with relatively close locations can be determined as a candidate user group. For each candidate user group, the sum of the current task amounts of each candidate user in the current candidate user group can be calculated. Based on the current task amount sum and the first task amount threshold, the number of users who need to be retained can be determined. Based on the number of users and the number of candidate users in the current candidate user group, the number of target users who need to be supported can be determined. Based on the distance information from each candidate user in the current candidate user group to the target location, the candidate users with relatively small distance information and the users who are consistent with the number of remaining users are selected as target users.
[0089] In this embodiment, the target user is determined based on the target task volume and the number of remaining users, including: determining the number of executable tasks based on the number of remaining users and the first task volume threshold; if the target task volume is less than or equal to the number of executable tasks, determining the target user based on the distance between the location information of the remaining users and the target location.
[0090] It can be understood that the number of remaining users in each candidate user group can be one or more. According to the number of remaining users and the first task volume threshold, the number of executable tasks can be determined. That is, the product between the number of remaining users and the first task volume threshold is calculated to obtain the number of executable tasks. If the target number of tasks is less than or equal to the number of executable tasks, it means that other candidate users except the stranded users can complete the target task volume. In actual applications, there may be a situation where the difference between the target task volume and the number of executable tasks is greater than the first task volume threshold. At this time, the distance information between each remaining user and the target location can be calculated, and the corresponding target user can be determined based on the distance information and the required number of users.
[0091] The advantage of adopting the above method is that it ensures that each user to be selected can complete the corresponding work while reducing the workload. Based on the above technical solution, if the target task volume is greater than the number of executable tasks, the first task volume threshold is readjusted and the step of determining the target user from the users to be selected is repeated based on the current task volume and the first task volume threshold.
[0092] It can be understood that if the target task volume is greater than the number of executable tasks, it means that the remaining number of users cannot complete the target task volume. In order to process the target task volume as much as possible for users in the target neighborhood, the first task volume threshold can be adjusted. Optionally, the first task volume threshold can be adjusted from the original 100 to 120, and the step of determining target users can be re-executed based on the updated first task volume threshold.
[0093] If the number of repeated executions of adjusting the first task amount threshold is greater than a preset task number threshold, or greater than a limit value of the first task amount threshold, the user determined when the first task amount threshold is adjusted for the last time may be used as the target user.
[0094] In this embodiment, for each target user, the stranded user to whom the task volume is to be released is determined based on the current task volume of the current target user, the current task volume of the candidate users in the candidate user group to which the target user belongs, and the first task volume threshold.
[0095] Specifically, for each target user, the candidate user group corresponding to the current target user can be determined, and the target user's current task load can be released to other stranded users in the candidate user group. If a stranded user can fully take over the target user's current task load, the task load will be released to the stranded user. If a stranded user is unable to complete the target user's current task load, the task load can be released to one or more stranded users.
[0096] The advantage of the above method is that the current task volume of the target user can be allocated to the corresponding stranded users, thereby improving the technical effect of task processing efficiency.
[0097] The technical solution provided by the embodiment of the present invention obtains the target task volume and target position carried by the scheduling request; determines the target neighborhood and the current task volume of the user to be selected associated with the target neighborhood based on the target position; determines the candidate user from the users to be selected according to the current task volume of each user to be selected and the first task volume threshold; determines the target user corresponding to the scheduling request from the candidate users based on the target task volume and the total task volume corresponding to the candidate users, thereby solving the problem in the prior art that the collection task volume corresponding to each collection user is unbalanced, resulting in some users having too heavy a collection task volume and being unable to complete the collection in time, and the problem that, when the offline collection task volume surges, the task volume cannot be responded to in time, resulting in economic losses. It realizes the efficient scheduling of corresponding target users for reinforcement according to the task volume, so that when tasks are processed based on the retrieved reinforcement users, the task processing efficiency is improved, the task distribution is balanced, and the benefits are increased.
[0098] Figure 2 This is a flow chart of a method for determining a target user provided by an embodiment of the present invention. As an alternative to the above embodiment, this disclosed embodiment can be implemented based on the cooperation of a server and a client. To further understand the technical solution provided by the embodiment of the present invention, the application scenario of a collection user collecting items can be used as an example. The client can be the client used by the collection user, and the server can be the server that determines the target user after receiving the scheduling request.
[0099] It should also be noted that when the ordering user needs to send a package, he can place an order task on the corresponding terminal device. After the order is placed, the server can receive the order task and assign it to the client corresponding to the corresponding collection user based on the location information corresponding to the order task. That is, the task volume corresponding to each collection user can be stored in the server, and the task volume at this time can be used as the existing task volume. After the collection user arrives at the corresponding location, the estimated task volume can be determined. Based on the estimated task volume and the existing task volume, the current task volume of each collection user can be obtained. The estimated task volume exists mainly because in some scenarios with explosive orders, the ordering user cannot place an order in time, so there is an estimated task volume.
[0100] The following can be combined Figure 2 To understand the technical solutions provided by the embodiments of the present disclosure.
[0101] When the workload is high, the user can edit the current workload on the client. This includes both the existing workload and the estimated workload. After clicking the trigger confirmation control, a scheduling request is generated based on the current workload and sent to the server.
[0102] For example, when a collection user finds that the collection task volume under his name exceeds the quota, or finds on-site that customers need to initiate a large number of collection requests, and he is unable to digest these orders in time, at the same time, in order to ensure that the ordering user can send the parcel normally, thereby maintaining the user market, the collection user can initiate a manpower support scheduling request at the temporary support scheduling request entrance of the APP software. The request interface input data field includes the basic information of the requester, the GPS coordinates of the requester's location, the expected number of support personnel or the predicted number of task orders to be collected, that is, the target task volume, etc. It can be understood as: calling the JSF interface of the express collection service system (server) through the interface to send the scheduling request to the server, initiating a temporary manpower support scheduling request, that is, a request that requires the target user to support.
[0103] After receiving the dispatch request, the server can combine the current location information of the recruited user to determine the users to be selected within the target neighborhood. The target neighborhood can be a jurisdictional area or an area with a certain radius or side length centered on the target location. The recruited users within this area are considered to be the users to be selected.
[0104] After receiving a dispatch request, the server can parse the dispatch request according to the specified interface protocol, including the requester's basic information, the requester's GPS coordinates, the number of people expected to be supported, and the target task volume entered by the requester. It then determines whether the target task volume exceeds a second task volume threshold (the server-defined daily order volume, such as 100). If so, the target user is determined. If not, the dispatch request conditions are determined to be unmet, and the requester is notified via a message. Simultaneously, the server cancels the dispatch task corresponding to the dispatch request.
[0105] The target user can be determined by obtaining the users to be selected in the target neighborhood and obtaining the current task volume of each user to be selected, that is, the current task processing volume N. The current task processing volume is compared with the pre-set first task volume threshold. If N ≥ the first task volume threshold of 100 orders, it means that the task vehicle of the user to be selected is overloaded and no more task collection can be added. If the current task processing volume is less than the first task volume threshold, it means that the user to be selected can be selected as a candidate user. Figure 3 , the task volume of the user G is 100 orders, which is equal to the threshold of 100 orders. This means that the task volume of this user is overloaded and cannot be used as a candidate user. The task volumes N of the users BCDF are 20 orders, 40 orders, 15 orders, and 50 orders, respectively, which are all less than the first task volume threshold of 100. This means that the task volume of the user to be selected is appropriate, the task volume can be increased, and the users ABCDF can be used as candidate users.
[0106] For each candidate user, the candidate user can be divided into multiple candidate user groups according to the distance information of the candidate user, see Figure 3 Candidate users BCD have relatively low relative distance information, so they can be included in candidate user group 1. Candidate users E and F have relatively low relative distance information, so they can be included in candidate user group 2. The total task volume for candidate user group 1 is calculated to be 75, and the total task volume for candidate user group 2 is 110. Based on the second task volume threshold, the number of stranded users in candidate user group 1 is determined to be 1, and the number of stranded users in candidate user group 2 is determined to be 2. Based on this, the number of remaining target users in candidate user group 1 is 2, and the number of remaining target users in candidate user group 2 is 0.
[0107] According to the number of remaining target users and the first task volume threshold, the executable task volume can be determined. If the target task volume is less than the executable task volume, the ratio of the target task volume and the first task volume threshold is calculated and rounded up to obtain the number of target users. According to the number of target users and the distance information of the remaining target users to the target location, the target users are determined. If the target task volume is less than the executable task volume, the remaining target users are all regarded as target users. At the same time, the remaining target task volume is determined, that is, the target task volume minus the product of the first task volume threshold and the number of remaining users. According to the ratio of the remaining target task volume and the first preset task volume threshold, the number of users that still need to be scheduled can be obtained, so as to schedule the collection users in other areas to complete the collection task based on the number of users.
[0108] Furthermore, the target user's current task load is released to the stranded users in the corresponding candidate user group, so that the corresponding stranded users can complete the task load corresponding to the target user. While releasing the current task load, it is also necessary to ensure that the task load of the stranded users is less than or equal to the first task load threshold. The above method can be used to determine the target user.
[0109] The technical solution provided by the embodiment of the present invention obtains the target task volume and target position carried by the scheduling request; determines the target neighborhood and the current task volume of the user to be selected associated with the target neighborhood based on the target position; determines the candidate user from the users to be selected according to the current task volume of each user to be selected and the first task volume threshold; determines the target user corresponding to the scheduling request from the candidate users based on the target task volume and the total task volume corresponding to the candidate users, thereby solving the problem in the prior art that the collection task volume corresponding to each collection user is unbalanced, resulting in some users having too heavy a collection task volume and being unable to complete the collection in time, and the problem that, when the offline collection task volume surges, the task volume cannot be responded to in time, resulting in economic losses. It realizes the efficient scheduling of corresponding target users for reinforcement according to the task volume, so that when tasks are processed based on the retrieved reinforcement users, the task processing efficiency is improved, the task distribution is balanced, and the benefits are increased.
[0110] Figure 4 A schematic diagram of the structure of a device for determining a target user provided by an embodiment of the present invention is shown in FIG. Figure 4 The device includes: an information acquisition module 410 , a task amount acquisition module 420 , a candidate user determination module 430 and a target user determination module 440 .
[0111] Among them, the information acquisition module 410 is used to obtain the target task volume and target position carried by the scheduling request; the task volume acquisition module 420 is used to determine the target neighborhood and the current task volume of the user to be selected associated with the target neighborhood based on the target position; the candidate user determination module 430 is used to determine the candidate users from the users to be selected based on the current task volume of each user to be selected and the first task volume threshold; the target user determination module 440 is used to determine the target user corresponding to the scheduling request from the candidate users based on the target task volume and the total task volume corresponding to the candidate users.
[0112] On the basis of the above technical solution, the task volume acquisition module includes: a neighborhood determination unit, which is used to determine a target neighborhood centered on the target position under the condition that the target task volume is greater than a second task volume threshold.
[0113] Based on the above technical solution, the task volume acquisition module includes:
[0114] A first task amount acquisition unit is used to acquire the users to be selected within the target neighborhood, as well as the existing task amount and the expected task amount of each user to be selected;
[0115] The second task amount obtaining unit is configured to determine the current task amount of the corresponding user to be selected based on the existing task amount and the expected task amount.
[0116] On the basis of the above technical solution, the candidate user determination module is further configured to select the to-be-selected user whose current task volume is less than the first task volume threshold as the candidate user.
[0117] Based on the above technical solution, the target user determination module is further used to determine the target user from the candidate users according to the target task amount, the total task amount corresponding to the candidate users, and the distance information from each candidate user to the target location.
[0118] On the basis of the above technical solution, the target user determination module is further used to: determine the number of stranded users and the number of remaining users according to the total task volume and the first task volume threshold;
[0119] Determining stranded users corresponding to the number of stranded users based on the current task amount of each candidate user, relative position information between the candidate users, and distance information to the target location;
[0120] The target user is determined based on the target task amount and the number of remaining users.
[0121] Based on the above technical solution, the target user determination module is also used to: determine at least one candidate user group based on the relative position information between each candidate user; for each candidate user group, determine the number of stranded users corresponding to the current candidate user based on the current task volume of each candidate user in the current candidate user group and the first task volume threshold, and determine the stranded users consistent with the number of stranded users based on the distance information between each candidate user and the target location.
[0122] Based on the above technical solution, the target user determination module is also used to: determine the number of executable tasks based on the number of remaining users and the first task volume threshold; if the target task volume is less than or equal to the number of executable tasks, determine the target user based on the distance between the location information of the remaining users and the target location.
[0123] On the basis of the above technical solution, the device further includes:
[0124] The repeated execution module is used to readjust the first task amount threshold if the target task amount is greater than the number of executable tasks, and repeatedly execute the step of determining the target user from the users to be selected based on each current task amount and the first task amount threshold.
[0125] On the basis of the above technical solution, the device further includes:
[0126] A cutoff module is used to determine the remaining target task volume based on the last first task volume threshold and the number of target users when the number of times the first task volume threshold is readjusted reaches a preset number threshold, and to feed back the remaining target task volume to the target terminal device, so as to perform user scheduling based on the remaining target task volume based on the management user corresponding to the target terminal device.
[0127] On the basis of the above technical solution, the device further comprises: a stranded user determination module, configured to release the current task volume of each target user to the corresponding stranded user.
[0128] Based on the above technical solution, the device also includes: a stranded user determination module, which is used to determine the stranded user to whom the task volume will be released based on the current task volume of the current target user, the current task volume of the candidate users of the candidate user group to which they belong, and the first task volume threshold for each target user.
[0129] The technical solution provided by the embodiment of the present invention obtains the target task volume and target position carried by the scheduling request; determines the target neighborhood and the current task volume of the user to be selected associated with the target neighborhood based on the target position; determines the candidate user from the users to be selected according to the current task volume of each user to be selected and the first task volume threshold; determines the target user corresponding to the scheduling request from the candidate users based on the target task volume and the total task volume corresponding to the candidate users, thereby solving the problem in the prior art that the collection task volume corresponding to each collection user is unbalanced, resulting in some users having too heavy a collection task volume and being unable to complete the collection in time, and the problem that, when the offline collection task volume surges, the task volume cannot be responded to in time, resulting in economic losses. It realizes the efficient scheduling of corresponding target users for reinforcement according to the task volume, so that when tasks are processed based on the retrieved reinforcement users, the task processing efficiency is improved, the task distribution is balanced, and the benefits are increased.
[0130] The device for determining a target user provided by an embodiment of the present invention can execute the method for determining a target user provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0131] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the embodiments of the present invention.
[0132] Figure 5 A schematic structural diagram of an electronic device provided in an embodiment of the present invention. Figure 5 A block diagram of an exemplary electronic device 50 suitable for implementing exemplary embodiments of the present invention is shown. Figure 5 The electronic device 50 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention.
[0133] like Figure 5 As shown, electronic device 50 is a general-purpose computing device. Components of electronic device 50 may include, but are not limited to, one or more processors or processing units 501, system memory 502, and a bus 503 connecting various system components (including system memory 502 and processing unit 501).
[0134] Bus 503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0135] The electronic device 50 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 50, including volatile and non-volatile media, removable and non-removable media.
[0136] System memory 502 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. Electronic device 50 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 506 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 Not shown, often called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 503 via one or more data medium interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
[0137] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in memory 502. Such program modules 507 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 507 generally implement the functions and / or methods of the embodiments described herein.
[0138] The electronic device 50 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 50, and / or communicate with any device that enables the electronic device 50 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 511. Furthermore, the electronic device 50 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 512. As shown, the network adapter 512 communicates with other modules of the electronic device 50 via the bus 503. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 50, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0139] The processing unit 501 executes various functional applications and data processing by running the programs stored in the system memory 502 , for example, implementing the method for determining the target user provided by the embodiment of the present invention.
[0140] An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which are used for determining a target user when executed by a computer processor.
[0141] The method includes:
[0142] Obtain the target task volume and target location carried in the scheduling request;
[0143] Determining a target neighborhood based on the target location, and a current task amount of the user to be selected associated with the target neighborhood;
[0144] Determining candidate users from the users to be selected based on the current task volume of each user to be selected and a first task volume threshold;
[0145] Based on the target task amount and the total task amount corresponding to the candidate users, a target user corresponding to the scheduling request is determined from the candidate users.
[0146] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0147] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0148] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0149] The computer program code for performing the operations of the embodiments of the present invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0150] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for determining target users, characterized in that: include: Obtain the target task volume and target location carried in the scheduling request; Determining a target neighborhood based on the target location, and a current task amount of the user to be selected associated with the target neighborhood; Determining candidate users from the users to be selected based on the current task volume of each user to be selected and a first task volume threshold; Determining a target user corresponding to the scheduling request from the candidate users based on the target task volume and the total task volume corresponding to the candidate users, specifically including determining the number of stranded users and the number of remaining users according to the total task volume and a first task volume threshold; Determining stranded users corresponding to the number of stranded users based on the current task amount of each candidate user, relative position information between the candidate users, and distance information to the target location; Determining the target user based on the target task amount and the number of remaining users; The total task volume is the sum of the current task volumes of the candidate users, and the retained users are the users who stay and continue to perform tasks among the candidate users.
2. The method according to claim 1, characterized in that The determining of a target neighborhood based on the target position includes: Under the condition that the target task amount is greater than a second task amount threshold, a target neighborhood centered on the target position is determined.
3. The method according to claim 1, characterized in that Determining the current task amount of the user to be selected associated with the target neighborhood includes: Obtaining the users to be selected within the target neighborhood, as well as the existing task volume and expected task volume of each user to be selected; Based on the existing task volume and the expected task volume, the current task volume of the corresponding user to be selected is determined.
4. The method according to claim 1, wherein The step of determining candidate users from the users to be selected based on the current task volume of each user to be selected and the first task volume threshold comprises: The user to be selected whose current task amount is less than the first task amount threshold is used as the candidate user.
5. The method according to claim 1, wherein The determining of the stranded users corresponding to the number of stranded users based on the current task amount of each candidate user, the relative position information between the candidate users, and the distance information to the target location includes: Determining at least one candidate user group based on relative position information between the candidate users; For each candidate user group, the number of stranded users corresponding to the current candidate users is determined based on the current task volume of each candidate user in the current candidate user group and the first task volume threshold, and the stranded users consistent with the number of stranded users are determined based on the distance information between each candidate user and the target location.
6. The method according to claim 5, characterized in that The determining the target user based on the target task amount and the number of remaining users includes: Determining the number of executable tasks based on the remaining number of users and the first task amount threshold; If the target task amount is less than or equal to the number of executable tasks, the target user is determined according to the distance between the location information of the remaining users and the target location.
7. The method according to claim 6, characterized in that Also includes: If the target task amount is greater than the number of executable tasks, the first task amount threshold is readjusted, and the step of determining the target user from the users to be selected based on each current task amount and the first task amount threshold is repeated.
8. The method according to claim 7, characterized in that Also includes: When the number of times the first task volume threshold is readjusted reaches a preset number threshold, the remaining target task volume is determined based on the last first task volume threshold and the number of target users, and the remaining target task volume is fed back to the target terminal device so as to perform user scheduling based on the remaining target task volume based on the management user corresponding to the target terminal device.
9. The method according to claim 5, characterized in that Also includes: Release the current task volume of each target user to the corresponding stranded users.
10. The method according to claim 9, characterized in that The releasing of the current task amount of each target user to the corresponding stranded user includes: For each target user, the stranded user to whom the task volume is to be released is determined according to the current task volume of the current target user, the current task volume of the candidate users in the candidate user group to which the target user belongs, and the first task volume threshold.
11. A device for determining a target user, characterized in that: include: An information acquisition module is used to obtain the target task volume and target location carried in the scheduling request; A task amount acquisition module is used to determine a target neighborhood and a current task amount of a user to be selected associated with the target neighborhood based on the target location; a candidate user determination module, configured to determine candidate users from the users to be selected based on the current task volume of each user to be selected and a first task volume threshold; a target user determining module, configured to determine a target user corresponding to the scheduling request from the candidate users based on the target task amount and the total task amount corresponding to the candidate users; The target user determination module is specifically configured to determine the number of stranded users and the number of remaining users according to the total task volume and the first task volume threshold; Determining stranded users corresponding to the number of stranded users based on the current task amount of each candidate user, relative position information between the candidate users, and distance information to the target location; Determining the target user based on the target task amount and the number of remaining users; The total task volume is the sum of the current task volumes of the candidate users, and the retained users are the users who stay and continue to perform tasks among the candidate users.
12. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining a target user according to any one of claims 1 to 10.
13. A storage medium comprising computer-executable instructions, wherein when the computer-executable instructions are executed by a computer processor, the computer-executable instructions are used to perform the method for determining a target user according to any one of claims 1 to 10.
Citation Information
Patent Citations
Task scheduling method and device
CN109325702A
Delivery scheduling system, method and device and electronic equipment
CN110751350A