WO2019196561A1 - Method for allocating distribution task, apparatus, electronic device and computer storage medium - Google Patents

Method for allocating distribution task, apparatus, electronic device and computer storage medium Download PDF

Info

Publication number
WO2019196561A1
WO2019196561A1 PCT/CN2019/075572 CN2019075572W WO2019196561A1 WO 2019196561 A1 WO2019196561 A1 WO 2019196561A1 CN 2019075572 W CN2019075572 W CN 2019075572W WO 2019196561 A1 WO2019196561 A1 WO 2019196561A1
Authority
WO
WIPO (PCT)
Prior art keywords
distribution
task
delivery
assigned
index
Prior art date
Application number
PCT/CN2019/075572
Other languages
French (fr)
Chinese (zh)
Inventor
安子岩
Original Assignee
北京小度信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京小度信息科技有限公司 filed Critical 北京小度信息科技有限公司
Publication of WO2019196561A1 publication Critical patent/WO2019196561A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • G06Q10/063112Skill-based matching of a person or a group to a task
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0838Historical data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"

Definitions

  • the present disclosure relates to the field of information processing technologies, and in particular, to a distribution task assignment method, apparatus, electronic device, and computer readable storage medium.
  • Embodiments of the present disclosure provide a delivery task assignment method, apparatus, electronic device, and computer readable storage medium.
  • a distribution task assignment method is provided in an embodiment of the present disclosure.
  • the distribution task allocation method includes:
  • an adaptation index for assigning the task to be allocated to the available distribution resource wherein the task information includes a pickup of the task to be assigned An address and a shipping address, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
  • the task to be assigned is allocated to a corresponding distribution resource.
  • the distribution capability index includes one or more of a travel speed, a delivery speed, and a maximum delivery task amount.
  • the obtaining the distribution capability index of the available distribution resources includes:
  • the estimating the traveling speed of the distribution resource according to the historical travel data of the distribution resource in the first preset historical time period includes:
  • the traveling speed of the distribution resource in the first preset time interval is weighted and summed to obtain the traveling speed of the distribution resource.
  • the estimating the delivery speed of the distribution resource according to the historical distribution data of the distribution resource in the second preset historical time period includes:
  • the distribution speed of the distribution resources in the second preset time interval is weighted and summed, and the delivery speed of the distribution resources is obtained.
  • the determining, by the historical distribution data of the distribution resource in the third preset historical time period, the highest delivery task quantity of the distribution resource including:
  • For the distribution resource that does not have timeout delivery calculate the first maximum number of delivery tasks that are expected to be completed on time and actually completed on time at a certain time in the third preset time interval of the third preset historical time period, wherein The third preset time interval is smaller than the third preset historical time period;
  • For the distribution resource with timeout delivery calculate the second largest delivery that is expected to be completed on time and actually completed on time when there is a timeout task in the third preset time interval of the third preset historical time period.
  • the number of tasks, wherein the timeout period of the timeout task is greater than a preset time threshold;
  • the adaptation index includes: an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned.
  • the present disclosure allocates the to-be-assigned task to the available distribution resource according to the task information of the task to be assigned and the distribution capability index of the available distribution resource.
  • Adaptation index including:
  • the delivery time change value of the available distribution resource has been assigned as the impact index
  • the adaptation index is obtained by weighting the impact index and the execution index according to a distribution capability index of the available distribution resources.
  • the disclosure when the adaptation index meets the preset condition, assign the to-assigned task to a corresponding distribution resource, including:
  • the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is within a preset index range,
  • the tasks to be assigned are assigned to the corresponding distribution resources.
  • a distribution task distribution apparatus is provided in an embodiment of the present disclosure.
  • the distribution task allocation device includes:
  • An acquisition module configured to obtain a distribution capability index of available distribution resources, wherein the distribution capability index is used to characterize a distribution capability of the available distribution resources;
  • a calculation module configured to calculate, according to task information of the task to be assigned and a distribution capability index of an available distribution resource, an adaptation index that assigns the task to be allocated to the available distribution resource, wherein the task information includes the a pickup address and a delivery address of the task to be assigned, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
  • an allocating module configured to allocate the to-be-assigned task to a corresponding distribution resource when the adaptation index meets a preset condition.
  • the distribution capability index includes one or more of a travel speed, a delivery speed, and a maximum delivery task amount.
  • the acquiring module includes:
  • a first estimation submodule configured to estimate a travel speed of the distribution resource according to historical travel data of the distribution resource within a first preset historical time period
  • a second estimation submodule configured to estimate a delivery speed of the distribution resource according to historical distribution data of the distribution resource in a second preset historical time period
  • the third estimation submodule is configured to estimate a maximum delivery task amount of the distribution resource according to historical distribution data of the distribution resource in the third preset historical time period.
  • the first estimation submodule includes:
  • a first calculating unit configured to calculate a traveling speed of the distribution resource in the first preset time interval according to the historical traveling data, wherein the first preset time interval is smaller than the first preset historical time period;
  • the first summation unit is configured to perform weighted summation of the travel speeds of the distribution resources in the first preset time interval to obtain the travel speed of the distribution resources.
  • the second estimation submodule includes:
  • a second calculating unit configured to calculate a delivery speed of the distribution resource in the second preset time interval according to the historical distribution data, wherein the second preset time interval is smaller than the second preset historical time period;
  • the second summation unit is configured to perform weighted summation of the delivery speeds of the distribution resources in the second preset time interval to obtain a delivery speed of the distribution resources.
  • the third estimation submodule includes:
  • a third calculating unit configured to calculate, for a distribution resource that does not have a timeout delivery, a first maximum that is expected to be completed on time and actually completed on time at a certain time in the third preset time interval of the third preset historical time period a number of delivery tasks, wherein the third preset time interval is smaller than the third preset historical time period;
  • a first confirmation unit configured to confirm a maximum value of the first maximum number of delivery tasks as a first number of delivery tasks
  • the fourth calculating unit is configured to calculate, when the timeout task exists in the third preset time interval of the third preset historical time period, the estimated time carried by the timed completion is completed on time and The second maximum number of delivery tasks that are actually completed on time, wherein the timeout period of the timeout task is greater than a preset time threshold;
  • a second confirmation unit configured to confirm a minimum value of the second maximum number of delivery tasks as a second number of delivery tasks
  • the third summation unit is configured to perform weighted summation of the first number of delivery tasks and the second number of delivery tasks to obtain a maximum delivery task amount of the distribution resource.
  • the adaptation index includes: an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned.
  • the calculating module includes:
  • a fourth estimation submodule configured to: after the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time change value of the available distribution resource has been assigned as a location Impact index
  • a fifth estimation sub-module configured to estimate, according to task information of the task to be assigned, a delivery time value of the to-be-assigned task after the task to be assigned is allocated to the available distribution resource, as the execution index;
  • a weighting sub-module configured to weight the impact index and the execution index according to a distribution capability index of the available distribution resource to obtain the adaptation index.
  • the distribution module includes:
  • An allocation submodule configured to allocate, when the task to be assigned, the available distribution resource, the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is at a preset index When the range is within, the task to be assigned is assigned to the corresponding distribution resource.
  • an embodiment of the present disclosure provides an electronic device, including a memory and a processor, where the memory is configured to store one or more computer instructions that support a distribution task assignment device to perform the distribution task assignment method in the first aspect,
  • the processor is configured to execute computer instructions stored in the memory.
  • the distribution task assignment device may also include a communication interface for the distribution task assignment device to communicate with other devices or communication networks.
  • an embodiment of the present disclosure provides a computer readable storage medium, configured to store computer instructions used by a distribution task distribution apparatus, where the method for distributing a distribution task in the first aspect is performed by a distribution task distribution device Computer instructions involved.
  • the above technical solution comprehensively considers the distribution capability and distribution influencing factors of the distribution resources, and allocates distribution tasks within the scope of the distribution resource capability that do not have much influence on the existing tasks, thereby fully utilizing the carrying capacity of the distribution resources and improving The distribution efficiency of distribution resources shortens the delivery time of delivery tasks, thereby improving service quality and enhancing user experience.
  • FIG. 1 shows a flow chart of a delivery task assignment method in accordance with an embodiment of the present disclosure
  • FIG. 2 is a flow chart showing the step S101 of the delivery task assignment method according to the embodiment shown in Figure 1;
  • FIG 3 is a flow chart showing the step S201 of the delivery task assignment method according to the embodiment shown in Figure 2;
  • Figure 4 is a flow chart showing the step S202 of the delivery task assignment method according to the embodiment shown in Figure 2;
  • FIG. 5 is a flow chart showing the step S203 of the delivery task assignment method according to the embodiment shown in Figure 2;
  • Figure 6 is a flow chart showing the step S102 of the delivery task assignment method according to the embodiment shown in Figure 1;
  • FIG. 7 is a block diagram showing the structure of a distribution task distribution apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a block diagram showing the structure of an acquisition module 701 of the delivery task distribution apparatus according to the embodiment shown in FIG. 7;
  • FIG. 9 is a block diagram showing the structure of a first estimation sub-module 801 of the distribution task assignment apparatus according to the embodiment shown in FIG. 8;
  • Figure 10 is a block diagram showing the structure of a second estimation sub-module 802 of the delivery task distribution device according to the embodiment shown in Figure 8;
  • Figure 11 is a block diagram showing the structure of a third estimation sub-module 803 of the delivery task distribution device according to the embodiment shown in Figure 8;
  • Figure 12 is a block diagram showing the structure of a calculation module 702 of the delivery task distribution device according to the embodiment shown in Figure 7;
  • FIG. 13 is a block diagram showing the structure of an electronic device according to an embodiment of the present disclosure.
  • FIG. 14 is a block diagram of a computer system suitable for implementing a delivery task assignment method in accordance with an embodiment of the present disclosure.
  • the technical solution provided by the embodiments of the present disclosure comprehensively considers the distribution capability and the distribution influencing factors of the distribution resources, and allocates distribution tasks within the scope of the distribution resource capability to the existing tasks without causing too much influence on the existing tasks, thereby fully utilizing the distribution.
  • the carrying capacity of resources improves the distribution efficiency of distribution resources, shortens the distribution time of distribution tasks, and improves service quality and user experience.
  • FIG. 1 illustrates a flow chart of a delivery task assignment method in accordance with an embodiment of the present disclosure.
  • the distribution task assignment method includes the following steps S101-S103:
  • step S101 a distribution capability index of available distribution resources is obtained, wherein the distribution capability index is used to represent a distribution capability of the available distribution resources;
  • an adaptation index for assigning the to-be-assigned task to the available distribution resource is calculated according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, wherein the task information includes the to-be-configured information. Assigning a pick-up address and a shipping address of the task, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
  • step S103 when the adaptation index meets a preset condition, the task to be assigned is allocated to a corresponding distribution resource.
  • the current distribution task allocation strategy is usually based on the existing task quantity of the distribution resource, or according to the distance between the delivery resource and the pickup address, or according to the existing distribution task and the task to be assigned according to the distribution resource.
  • the distance between the goods/shipping address is far and near for combined allocation.
  • Such a distribution strategy does not take into account the capability factors of distribution resources, and cannot fully utilize the distribution power of distribution resources, thereby resulting in insufficient utilization of distribution resources and reducing distribution efficiency.
  • a distribution task assignment method which first obtains a distribution capability index of available distribution resources, wherein the distribution capability index is used to characterize the distribution capability of the available distribution resources; And then calculating an adaptation index for assigning the to-be-assigned task to the available distribution resource according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, where the task information includes the task to be assigned a cargo address and a shipping address, the adaptation index is used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource; and when the adaptation index meets a preset condition, the to-be-allocated Tasks are assigned to the corresponding distribution resources.
  • the above technical solution comprehensively considers the distribution capability and distribution influencing factors of the distribution resources, and allocates distribution tasks within the scope of the distribution resource capability that do not have much influence on the existing tasks, thereby fully utilizing the carrying capacity of the distribution resources and improving The distribution efficiency of distribution resources shortens the delivery time of delivery tasks, thereby improving service quality and enhancing user experience.
  • the distribution capability index includes one or more of a travel speed, a delivery speed, and a maximum delivery task amount, where the travel speed refers to a distribution resource from one The speed at which the delivery address of the delivery task reaches the delivery address; the delivery speed refers to the delivery address of the delivery resource to the delivery task to the speed at which the delivery task is completed; the maximum delivery task amount refers to a certain time The amount of tasks that a distribution resource can complete at most on time.
  • the above three indices can be considered together to characterize the delivery capacity of a distribution resource. If a distribution resource has a high speed, a fast delivery speed, and a maximum amount of delivery tasks, it indicates that the distribution resource has a strong distribution capability and can undertake more delivery tasks. On the contrary, it indicates that the distribution resource has a weak distribution capability and can only bear limited resources. The number of delivery tasks.
  • the step S101 that is, the step of acquiring the distribution capability index of the available distribution resources, includes steps S201-S203:
  • step S201 estimating a travel speed of the distribution resource according to historical travel data of the distribution resource in the first preset historical time period
  • step S202 estimating a delivery speed of the distribution resource according to historical distribution data of the distribution resource in the second preset historical time period
  • step S203 the highest delivery task amount of the distribution resource is estimated according to the historical distribution data of the distribution resource in the third preset historical time period.
  • the distribution capability index of the distribution resource is estimated according to the historical data related to the distribution resource within the preset historical time period, and then the obtained distribution capability index is applied to the distribution of the current delivery task.
  • the first preset historical time period, the second preset historical time period, and the third preset historical time period may be the same or different, for example, may be selected as 30 days before the current time.
  • the first preset historical time period, the second preset historical time period, and the third preset historical time period are set according to the needs of the actual application, which is not specifically limited in the disclosure.
  • the step S201 is to estimate the traveling speed of the distribution resource according to historical travel data of the distribution resource in the first preset historical time period. , including steps S301-S302:
  • step S301 the travel speed of the distribution resource in the first preset time interval is calculated according to the historical travel data, wherein the first preset time interval is smaller than the first preset historical time period;
  • step S302 the traveling speeds of the distribution resources in the first preset time interval are weighted and summed to obtain the traveling speed of the distribution resources.
  • the first preset historical time period is selected as 30 days, and the first preset time interval is selected as one day.
  • the daily distribution resources are first calculated according to the historical travel data of each day within 30 days before the current time.
  • the speed of travel for example, the travel speed s i of a distribution resource on a certain day can be calculated by:
  • d n denotes the i-th first predetermined travel distance segment n of the time interval
  • T n represents the n-th period is completed takes the travel distance
  • the travel distance indicates a distribution resource distribution tasks from the pickup address to which to send The distance between the goods address.
  • the traveling speed of the distribution resource is weighted and summed to obtain the traveling speed s of the distribution resource, that is:
  • w i represents the weight of the traveling speed s i
  • the value of the weight may be set according to the needs of the actual application, which is not specifically limited in the disclosure.
  • the order addition operation that is, the order addition operation of 29/29, wherein the order addition operation of 29 is represented as 29+28+27+...+2+1, and can also be written as: 29/(29+28+27+...+ 2+1);
  • the weight w 5 of the traveling speed s 5 on the 5th day is: an order addition operation of (30-(20-
  • the travel distance may use a navigation distance obtained by the distribution resource when receiving the delivery task, or may use an actual travel distance generated by the distribution resource when the delivery task is completed.
  • the step S202 is to estimate the delivery speed of the distribution resource according to the historical distribution data of the distribution resource in the second preset historical time period. , including steps S401-402:
  • step S401 the delivery speed of the distribution resource in the second preset time interval is calculated according to the historical distribution data, wherein the second preset time interval is smaller than the second preset historical time period;
  • step S402 the delivery speed of the distribution resource in the second preset time interval is weighted and summed to obtain the delivery speed of the distribution resource.
  • the second preset historical time period is selected as 30 days, and the second preset time interval is selected as 1 day.
  • the daily distribution resources are first calculated according to historical distribution data of each day within 30 days before the current time.
  • the delivery speed for example, the delivery speed a i of the distribution resource of a certain day can be calculated by the following formula:
  • the delivery distance refers to the delivery resource from the delivery address of the delivery task to completion The distance between the locations where the task was delivered.
  • the delivery speed of the distribution resource is weighted and summed to obtain the delivery speed a of the distribution resource, namely:
  • the v i represents the weight of the delivery speed a i , and the value of the weight may be set according to the needs of the actual application, which is not specifically limited in the disclosure.
  • the farther from the current time, the smaller the weight of the corresponding delivery speed, and the weight v i can also be taken as: (the first preset historical time period - the time difference between the preset time interval of the current participation calculation and the current time) / (the first preset historical time period - 1), for example, if the first preset historical time period For 30 days, the current time is the 20th day of 30 days, then the weight v 19 of the travel speed a 19 on the 19th day is: (30-(20-19))/(30-1).
  • the order addition operation of 29/29 wherein the order addition operation of 29 is represented as 29+28+27+...+2+1, and can also be written as: 29/(29+28+27+...+2+1 );
  • the weight v 5 of the traveling speed a 5 on the fifth day is: an order addition operation of (30-(20-5))/(30-1), that is, 15/(29+28+27+...+2) +1).
  • the delivery distance may use a navigation distance, or may use an actual distance.
  • the step S203 is to estimate the highest delivery task amount of the distribution resource according to the historical distribution data of the distribution resource in the third preset historical time period.
  • the steps include steps S501-S505:
  • step S501 for the distribution resource that does not have timeout delivery, calculate the first maximum number of delivery tasks that are expected to be completed on time and actually completed on time at a certain time in the third preset time interval of the third preset historical time period.
  • the third preset time interval is smaller than the third preset historical time period;
  • step S502 the maximum value of the first maximum number of delivery tasks is confirmed as the first number of delivery tasks
  • step S503 when there is a timeout task in the third preset time interval of the third preset historical time period for the distribution resource with timeout delivery, the estimated time carried in a certain time is completed on time and actually completed on time.
  • step S504 the minimum value of the second maximum number of delivery tasks is confirmed as the second number of delivery tasks
  • step S505 the first delivery task quantity and the second delivery task quantity are weighted and summed to obtain the highest delivery task quantity of the distribution resource.
  • the calculation of the highest delivery task amount is performed separately for the distribution resources in which the timeout delivery and the overtime delivery occur within the third preset time interval.
  • the delivery resource does not have a timeout delivery event, Then count the number of delivery tasks that are expected to be completed on time and actually completed on time at all times in the day. The largest number is the maximum number of delivery tasks for the distribution resource on the first day; for the second day of the 30 days, If a timeout delivery event occurs in the distribution resource, the number of delivery tasks that are expected to be completed on time and actually completed on time in the event of a timeout task is counted. If there is only one timeout task, then the quantity is the distribution resource of the first day. The maximum number of delivery tasks.
  • the largest number is the maximum number of delivery tasks for the delivery resource on the second day; and so on, the maximum value of all the first maximum delivery tasks is confirmed.
  • the minimum of all the second largest delivery tasks is confirmed as the second delivery task number, and finally the first delivery And the quantity of the second delivery task is weighted and summed to obtain the highest delivery task quantity of the distribution resource, wherein the maximum number of delivery tasks when the timeout delivery task is present is more important for the assessment of the distribution resource distribution capability.
  • the weight corresponding to the number of second delivery tasks can be set to be greater than the weight corresponding to the number of first delivery tasks.
  • the weights corresponding to the number of the first delivery tasks and the number of the second delivery tasks may be set according to the needs of the actual application, which is not specifically limited in the disclosure.
  • the timeout task refers to a task whose timeout period is greater than a preset time threshold, that is, a task with a slight timeout is ignored.
  • the delivery task that is predicted to be timed out at the time of allocation but is still forcibly assigned to the distribution resource is not considered in the above calculation.
  • the adaptation index includes: an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned, wherein the impact index is used for characterization After the task to be assigned is assigned to a distribution resource, the degree of influence on the assigned task of the distribution resource; the execution index is used to represent that the task to be assigned is assigned to a distribution resource, and the distribution resource completes the task The degree of smooth execution.
  • the step S102 is to allocate the task to be assigned to the task according to the task information of the task to be assigned and the distribution capability index of the available distribution resources.
  • the step of adapting the index of the available distribution resources includes steps S601-603:
  • step S601 after the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time change value of the available distribution resource has been assigned as the impact index;
  • step S602 after the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time value of the task to be assigned is used as the execution index;
  • step S603 the impact index and the execution index are weighted according to the distribution capability index of the available distribution resources to obtain the adaptation index.
  • a task to be assigned is suitable for distribution to a distribution resource, in this embodiment, it is also estimated that if the task to be assigned is assigned to a distribution resource, the impact on the previously assigned task for the distribution resource may occur and may occur. Distribution status.
  • the first embodiment firstly allocates, according to the task information of the task to be assigned, the distribution time change value of the available distribution resource to the available distribution resource, and uses the distribution time change value of the available distribution resource as the impact index. All tasks assigned to the distribution resource are reconsidered with the tasks to be assigned. For example, suppose that there is one task that has been assigned to the distribution resource before, and it is sent from the merchant 1 to the user 1, and the task to be assigned is sent from the merchant 2 to the user 2, then according to the travel of the distribution resource. Speed and delivery speed, the time delay value generated for the original delivery task and the time taken to complete the task to be assigned after the task to be assigned is allocated to the distribution resource and the path is re-planned can be estimated.
  • the time delay value may be used to characterize the impact of assigning the task to be assigned to the distributed resource to the assigned task, and the time taken to complete the task to be assigned may be used to represent that the task to be assigned is assigned to the distribution resource and then the task to be assigned is executed.
  • the smoothness of the time the higher the time delay value, indicating that the assignment of the task to be assigned to the distribution resource has a greater impact on the assigned task, and the less time it takes to complete the task to be assigned, indicating that the task to be assigned is assigned to the distribution resource.
  • the weighting correction may be performed on the impact index and the execution index according to the distribution capability index of the available distribution resources, and finally the adaptation index is obtained. If the distribution capacity of a distribution resource is high, the proportion of the impact index can be reduced, and the proportion of the execution index can be increased. If the distribution capacity of a distribution resource is low, the proportion of the impact index can be increased, and the proportion of the execution index can be reduced.
  • the step S103 that is, the step of assigning the task to be assigned to the corresponding distribution resource when the adaptation index meets the preset condition, includes the following steps:
  • the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is within a preset index range,
  • the tasks to be assigned are assigned to the corresponding distribution resources.
  • the task to be assigned when the task to be assigned is assigned to a distribution resource, the delivery is performed.
  • the allocated task of the resource does not reach its maximum delivery task amount, the task to be assigned will be considered to be allocated to the distribution resource, and then the adaptation index will be examined.
  • the adaptation index is within the preset index range, The tasks to be assigned are allocated to corresponding distribution resources.
  • the preset index range may be set according to the needs of the actual application, which is not specifically limited in the disclosure.
  • FIG. 7 is a block diagram showing the structure of a distribution task distribution apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both.
  • the distribution task distribution device includes:
  • the obtaining module 701 is configured to obtain a distribution capability index of available distribution resources, wherein the distribution capability index is used to represent a distribution capability of the available distribution resources;
  • the calculating module 702 is configured to calculate, according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, an adaptation index that allocates the task to be allocated to the available distribution resource, where the task information includes a pickup address and a delivery address of the task to be assigned, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
  • the allocating module 703 is configured to allocate the to-be-assigned task to the corresponding distribution resource when the adaptation index meets the preset condition.
  • the current distribution task allocation strategy is usually based on the existing task quantity of the distribution resource, or according to the distance between the delivery resource and the pickup address, or according to the existing distribution task and the task to be assigned according to the distribution resource.
  • the distance between the goods/shipping address is far and near for combined allocation.
  • Such a distribution strategy does not take into account the capability factors of distribution resources, and cannot fully utilize the distribution power of distribution resources, thereby resulting in insufficient utilization of distribution resources and reducing distribution efficiency.
  • a distribution task assignment device which acquires a distribution capability index of available distribution resources by an acquisition module 701, wherein the distribution capability index is used to characterize the available distribution resources. a distribution capability; then calculating, by the calculation module 702, an adaptation index for assigning the to-be-assigned task to the available distribution resource according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, wherein the task information Included as a pickup address and a delivery address of the task to be assigned, the adaptation index is used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource; when the adaptation index meets a preset condition
  • the distribution module 703 allocates the task to be assigned to the corresponding distribution resource.
  • the above technical solution comprehensively considers the distribution capability and distribution influencing factors of the distribution resources, and allocates distribution tasks within the scope of the distribution resource capability that do not have much influence on the existing tasks, thereby fully utilizing the carrying capacity of the distribution resources and improving The distribution efficiency of distribution resources shortens the delivery time of delivery tasks, thereby improving service quality and enhancing user experience.
  • the distribution capability index includes one or more of a travel speed, a delivery speed, and a maximum delivery task amount, where the travel speed refers to a distribution resource from one The speed at which the delivery address of the delivery task reaches the delivery address; the delivery speed refers to the delivery address of the delivery resource to the delivery task to the speed at which the delivery task is completed; the maximum delivery task amount refers to a certain time The amount of tasks that a distribution resource can complete at most on time.
  • the above three indexes can be comprehensively considered to characterize the distribution ability of a distribution resource. If a distribution resource has a high speed, a fast delivery speed, and a maximum amount of delivery tasks, it indicates that the distribution resource has a strong distribution capability and can undertake more delivery tasks. On the contrary, it indicates that the distribution resource has a weak distribution capability and can only bear limited resources. The number of delivery tasks.
  • the obtaining module 701 includes:
  • the first estimation submodule 801 is configured to estimate a travel speed of the distribution resource according to historical travel data of the distribution resource in the first preset historical time period;
  • the second estimation submodule 802 is configured to estimate a delivery speed of the distribution resource according to historical distribution data of the distribution resource in the second preset historical time period;
  • the third estimation sub-module 803 is configured to estimate a maximum delivery task amount of the distribution resource according to historical distribution data of the distribution resource in the third preset historical time period.
  • the distribution capability index of the distribution resource is estimated based on the historical data related to the distribution resource within the preset historical time period, and then the obtained distribution capability index is applied to the distribution of the current delivery task.
  • the first preset historical time period, the second preset historical time period, and the third preset historical time period may be the same or different, for example, may be selected as 30 days before the current time.
  • the first preset historical time period, the second preset historical time period, and the third preset historical time period are set according to the needs of the actual application, which is not specifically limited in the disclosure.
  • the first estimation submodule 801 includes:
  • the first calculating unit 901 is configured to calculate a traveling speed of the distribution resource in the first preset time interval according to the historical traveling data, wherein the first preset time interval is smaller than the first preset historical time period;
  • the first summation unit 902 is configured to perform weighted summation of the travel speeds of the distribution resources in the first preset time interval to obtain the travel speed of the distribution resource.
  • the second estimation submodule 802 includes:
  • the second calculating unit 1001 is configured to calculate, according to the historical distribution data, a delivery speed of the distribution resource in the second preset time interval, wherein the second preset time interval is smaller than the second preset historical time period;
  • the second summation unit 1002 is configured to perform weighted summation of the delivery speeds of the distribution resources in the second preset time interval to obtain the delivery speed of the distribution resources.
  • the third estimation submodule 803 includes:
  • the third calculating unit 1101 is configured to calculate, for the distribution resource that does not have timeout delivery, the first time that it is expected to be completed on time and actually completed on time in a third preset time interval of the third preset historical time period a maximum number of delivery tasks, wherein the third preset time interval is smaller than the third preset historical time period;
  • the first confirming unit 1102 is configured to confirm the maximum value of the first maximum number of delivery tasks as the first number of delivery tasks;
  • the fourth calculating unit 1103 is configured to calculate, when the timeout task exists in the third preset time interval of the third preset historical time period for the distribution resource that has timed out delivery, the estimated time carried in a certain time is completed on time. And the second maximum number of delivery tasks that are actually completed on time, wherein the timeout period of the timeout task is greater than a preset time threshold;
  • a second confirming unit 1104 configured to confirm a minimum value of the second maximum number of delivery tasks as a second number of delivery tasks
  • the third summation unit 1105 is configured to perform weighted summation on the first number of delivery tasks and the second number of delivery tasks to obtain a maximum delivery task amount of the distribution resource.
  • the adaptation index includes: an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned, wherein the impact index is used for characterization After the task to be assigned is assigned to a distribution resource, the degree of influence on the assigned task of the distribution resource; the execution index is used to represent that the task to be assigned is assigned to a distribution resource, and the distribution resource completes the task The degree of smooth execution.
  • the calculation module 702 includes:
  • the fourth estimation sub-module 1201 is configured to: after the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time change value of the available distribution resource has been assigned as the task The impact index;
  • the fifth estimation sub-module 1202 is configured to estimate, according to task information of the task to be assigned, a delivery time value of the task to be assigned after the task to be assigned is allocated to the available distribution resource, and use the same as the execution index ;
  • the weighting sub-module 1203 is configured to weight the impact index and the execution index according to a distribution capability index of the available distribution resources to obtain the adaptation index.
  • the allocating module 703 includes:
  • An allocation submodule configured to allocate, when the task to be assigned, the available distribution resource, the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is at a preset index When the range is within, the task to be assigned is assigned to the corresponding distribution resource.
  • FIG. 13 is a block diagram showing the structure of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 13, the electronic device 1300 includes a memory 1301 and a processor 1302.
  • the memory 1301 is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor 1302 to implement any of the method steps described above.
  • FIG. 14 is a block diagram showing the structure of a computer system suitable for implementing a delivery task assignment method in accordance with an embodiment of the present disclosure.
  • computer system 1400 includes a central processing unit (CPU) 1401 that can be loaded into a program in random access memory (RAM) 1403 in accordance with a program stored in read only memory (ROM) 1402 or from storage portion 1408.
  • CPU central processing unit
  • RAM random access memory
  • ROM read only memory
  • the various processes in the embodiment shown in Figures 1-6 above are performed.
  • RAM 1403 various programs and data required for the operation of the system 1400 are also stored.
  • the CPU 1401, the ROM 1402, and the RAM 1403 are connected to each other through a bus 1404.
  • An input/output (I/O) interface 1405 is also coupled to bus 1404.
  • the following components are connected to the I/O interface 1405: an input portion 1406 including a keyboard, a mouse, etc.; an output portion 1407 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker; a storage portion 1408 including a hard disk or the like And a communication portion 1409 including a network interface card such as a LAN card, a modem, or the like.
  • the communication section 1409 performs communication processing via a network such as the Internet.
  • Driver 1410 is also coupled to I/O interface 1405 as needed.
  • a removable medium 1411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like is mounted on the drive 1410 as needed so that a computer program read therefrom is installed into the storage portion 1408 as needed.
  • an embodiment of the present disclosure includes a computer program product comprising a computer program tangibly embodied on a readable medium therewith, the computer program comprising program code for performing the distribution task assignment method of FIGS. 1-6 .
  • the computer program can be downloaded and installed from the network via the communication portion 1409, and/or installed from the removable medium 1411.
  • each block in the diagram or block diagram can represent a module, a program segment, or a portion of code that includes one or more of Executable instructions.
  • the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • the units or modules described in the embodiments of the present disclosure may be implemented by software or by hardware.
  • the described units or modules may also be provided in a processor, the names of which do not in any way constitute a limitation of the unit or module itself.
  • the present disclosure further provides a computer readable storage medium, which may be a computer readable storage medium included in the apparatus in the above embodiment; or may exist separately, not A computer readable storage medium that is assembled into the device.
  • a computer readable storage medium stores one or more programs that are used by one or more processors to perform the methods described in the present disclosure.

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed in an embodiment of the present disclosure are a method for allocating a distribution task, an apparatus, an electronic device and a computer storage medium, said method for allocating the distribution task comprising: acquiring a distribution capability index of an available distribution resource, wherein said distribution capability index is used to characterize the distribution capability of the available distribution resource; calculating an adaptation index that allocates a task to be allocated to the available distribution resource according to task information of the task to be allocated and the distribution capability index of the available distribution resource; and when the adaptation index meets a preset condition, allocating the task to be allocated to a corresponding distribution resource. The embodiment of the present disclosure may fully utilize the carrying capacity of distribution resources, improve the distribution efficiency of the distribution resources, and shorten the delivery time of distribution tasks, thereby improving the quality of service and enhancing the user experience.

Description

配送任务分配方法、装置、电子设备及计算机存储介质Distribution task assignment method, device, electronic device and computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年4月9日提交的中国专利申请号为“CN2018103123393”的优先权,其全部内容作为整体并入本申请中。The present application claims the priority of the Chinese Patent Application Serial No. PCT-A-------
技术领域Technical field
本公开涉及信息处理技术领域,具体涉及一种配送任务分配方法、装置、电子设备及计算机可读存储介质。The present disclosure relates to the field of information processing technologies, and in particular, to a distribution task assignment method, apparatus, electronic device, and computer readable storage medium.
背景技术Background technique
随着互联网技术的发展,越来越多的商家或者服务提供商通过互联网平台来为用户提供服务,而且很多互联网服务都需要配送员进行配送,因此,快速增长的互联网服务对于配送员的调度质量和配送质量均提出了很高的要求。With the development of Internet technology, more and more merchants or service providers provide services to users through the Internet platform, and many Internet services require distribution personnel to deliver. Therefore, the rapid growth of Internet service delivery quality for dispatchers And the quality of delivery has put forward high requirements.
发明内容Summary of the invention
本公开实施例提供一种配送任务分配方法、装置、电子设备及计算机可读存储介质。Embodiments of the present disclosure provide a delivery task assignment method, apparatus, electronic device, and computer readable storage medium.
第一方面,本公开实施例中提供了一种配送任务分配方法。In a first aspect, a distribution task assignment method is provided in an embodiment of the present disclosure.
具体的,所述配送任务分配方法,包括:Specifically, the distribution task allocation method includes:
获取可用配送资源的配送能力指数,其中,所述配送能力指数用于表征所述可用配送资源的配送能力;Obtaining a distribution capability index of available distribution resources, wherein the distribution capability index is used to characterize a distribution capability of the available distribution resources;
根据所述待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,其中,所述任务信息包括该待分配任务的取货地址和送货地址,所述适配指数用于表征将所述待分配任务分配给所述可用配送资源的适合程度;Calculating, according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, an adaptation index for assigning the task to be allocated to the available distribution resource, wherein the task information includes a pickup of the task to be assigned An address and a shipping address, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
当所述适配指数满足预设条件时,将所述待分配任务分配给相应的配送资源。When the adaptation index meets a preset condition, the task to be assigned is allocated to a corresponding distribution resource.
结合第一方面,本公开在第一方面的第一种实现方式中,所述配送能力指数包括:行进速度、配送速度、最高配送任务量中的一种或多种。In conjunction with the first aspect, in a first implementation manner of the first aspect, the distribution capability index includes one or more of a travel speed, a delivery speed, and a maximum delivery task amount.
结合第一方面,本公开在第一方面的第一种实现方式中,所述获取可用配送资源的配送能力指数,包括:With reference to the first aspect, in the first implementation manner of the first aspect, the obtaining the distribution capability index of the available distribution resources includes:
根据配送资源在第一预设历史时间段内的历史行进数据估计所述配送资源的行进速度;Estimating a travel speed of the distribution resource according to historical travel data of the distribution resource within a first preset historical time period;
根据配送资源在第二预设历史时间段内的历史配送数据估计所述配送资源的配送速度;Estimating the delivery speed of the distribution resource according to the historical distribution data of the distribution resource in the second preset historical time period;
根据配送资源在第三预设历史时间段内的历史配送数据估计所述配送资源的最高配送任务量。Estimating the highest delivery task amount of the distribution resource according to the historical distribution data of the distribution resource in the third preset historical time period.
结合第一方面,本公开在第一方面的第一种实现方式中,所述根据配送资源在第一预设历史时间段内的历史行进数据估计所述配送资源的行进速度,包括:With reference to the first aspect, in the first implementation manner of the first aspect, the estimating the traveling speed of the distribution resource according to the historical travel data of the distribution resource in the first preset historical time period includes:
根据所述历史行进数据计算第一预设时间区间内配送资源的行进速度,其中,所述第一预设时间区间小于所述第一预设历史时间段;Calculating, according to the historical travel data, a travel speed of the distribution resource in the first preset time interval, where the first preset time interval is smaller than the first preset historical time period;
对第一预设时间区间内配送资源的行进速度进行加权求和,得到所述配送资源的行进速度。The traveling speed of the distribution resource in the first preset time interval is weighted and summed to obtain the traveling speed of the distribution resource.
结合第一方面,本公开在第一方面的第一种实现方式中,所述根据配送资源在第二预设历史时间段内的历史配送数据估计所述配送资源的配送速度,包括:With reference to the first aspect, in the first implementation manner of the first aspect, the estimating the delivery speed of the distribution resource according to the historical distribution data of the distribution resource in the second preset historical time period includes:
根据所述历史配送数据计算第二预设时间区间内配送资源的配送速度,其中,所述第二预设时间区间小于所述第二预设历史时间段;Calculating, according to the historical distribution data, a delivery speed of the distribution resource in the second preset time interval, wherein the second preset time interval is smaller than the second preset historical time period;
对第二预设时间区间内配送资源的配送速度进行加权求和,得到所述配送资源的配送速度。The distribution speed of the distribution resources in the second preset time interval is weighted and summed, and the delivery speed of the distribution resources is obtained.
结合第一方面,本公开在第一方面的第一种实现方式中,所述根据配送资源在第三预设历史时间段内的历史配送数据估计所述配送资源的最高配送任务量,包括:With reference to the first aspect, in a first implementation manner of the first aspect, the determining, by the historical distribution data of the distribution resource in the third preset historical time period, the highest delivery task quantity of the distribution resource, including:
对于未出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内某时刻预计按时完成且实际按时完成的第一最大配送任务数量,其中,所述第三预设时间区间小于所述第三预设历史时间段;For the distribution resource that does not have timeout delivery, calculate the first maximum number of delivery tasks that are expected to be completed on time and actually completed on time at a certain time in the third preset time interval of the third preset historical time period, wherein The third preset time interval is smaller than the third preset historical time period;
将所述第一最大配送任务数量中的最大值确认为第一配送任务数量;Determining the maximum value of the first maximum number of delivery tasks as the first number of delivery tasks;
对于出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内存在超时任务时,某时刻所承载的预计按时完成且实际按时完成的第二最大配送任务数量,其中,所述超时任务的超时时间大于预设时间阈值;For the distribution resource with timeout delivery, calculate the second largest delivery that is expected to be completed on time and actually completed on time when there is a timeout task in the third preset time interval of the third preset historical time period. The number of tasks, wherein the timeout period of the timeout task is greater than a preset time threshold;
将所述第二最大配送任务数量中的最小值确认为第二配送任务数量;Determining a minimum value of the second maximum number of delivery tasks as a second number of delivery tasks;
对所述第一配送任务数量和所述第二配送任务数量进行加权求和,得到所述配送资源的最高配送任务量。And weighting the first number of delivery tasks and the number of the second delivery tasks to obtain a maximum delivery task quantity of the distribution resource.
结合第一方面,本公开在第一方面的第一种实现方式中,所述适配指数包括:对于配送资源已分配任务的影响指数,和/或所述待分配任务的执行指数。In conjunction with the first aspect, in a first implementation of the first aspect, the adaptation index includes: an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned.
结合第一方面,本公开在第一方面的第一种实现方式中,所述根据待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,包括:With reference to the first aspect, in a first implementation manner of the first aspect, the present disclosure allocates the to-be-assigned task to the available distribution resource according to the task information of the task to be assigned and the distribution capability index of the available distribution resource. Adaptation index, including:
根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述可用配送资源已分配任务的配送时间变化值,将其作为所述影响指数;After the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time change value of the available distribution resource has been assigned as the impact index;
根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述待分配任务的配送时间值,将其作为所述执行指数;Determining, according to the task information of the task to be assigned, the delivery time value of the task to be assigned, after the task to be assigned is allocated to the available distribution resource, as the execution index;
根据所述可用配送资源的配送能力指数对于所述影响指数和执行指数进行加权,得到所述适配指数。The adaptation index is obtained by weighting the impact index and the execution index according to a distribution capability index of the available distribution resources.
结合第一方面,本公开在第一方面的第一种实现方式中,所述当适配指数满足预设条件时,将所述待分配任务分配给相应的配送资源,包 括:With reference to the first aspect, in a first implementation manner of the first aspect, the disclosure, when the adaptation index meets the preset condition, assign the to-assigned task to a corresponding distribution resource, including:
当将所述待分配任务分配给所述可用配送资源后,所述配送资源的已分配任务量小于所述最高配送任务量,且所述适配指数处于预设指数范围内时,将所述待分配任务分配给相应的配送资源。After the task to be assigned is allocated to the available distribution resource, the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is within a preset index range, The tasks to be assigned are assigned to the corresponding distribution resources.
第二方面,本公开实施例中提供了一种配送任务分配装置。In a second aspect, a distribution task distribution apparatus is provided in an embodiment of the present disclosure.
具体的,所述配送任务分配装置,包括:Specifically, the distribution task allocation device includes:
获取模块,被配置为获取可用配送资源的配送能力指数,其中,所述配送能力指数用于表征所述可用配送资源的配送能力;An acquisition module configured to obtain a distribution capability index of available distribution resources, wherein the distribution capability index is used to characterize a distribution capability of the available distribution resources;
计算模块,被配置为根据所述待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,其中,所述任务信息包括该待分配任务的取货地址和送货地址,所述适配指数用于表征将所述待分配任务分配给所述可用配送资源的适合程度;a calculation module, configured to calculate, according to task information of the task to be assigned and a distribution capability index of an available distribution resource, an adaptation index that assigns the task to be allocated to the available distribution resource, wherein the task information includes the a pickup address and a delivery address of the task to be assigned, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
分配模块,被配置为当所述适配指数满足预设条件时,将所述待分配任务分配给相应的配送资源。And an allocating module configured to allocate the to-be-assigned task to a corresponding distribution resource when the adaptation index meets a preset condition.
结合第二方面,本公开在第二方面的第一种实现方式中,所述配送能力指数包括:行进速度、配送速度、最高配送任务量中的一种或多种。In conjunction with the second aspect, in a first implementation manner of the second aspect, the distribution capability index includes one or more of a travel speed, a delivery speed, and a maximum delivery task amount.
结合第二方面,本公开在第二方面的第一种实现方式中,所述获取模块包括:With reference to the second aspect, in the first implementation manner of the second aspect, the acquiring module includes:
第一估计子模块,被配置为根据配送资源在第一预设历史时间段内的历史行进数据估计所述配送资源的行进速度;a first estimation submodule configured to estimate a travel speed of the distribution resource according to historical travel data of the distribution resource within a first preset historical time period;
第二估计子模块,被配置为根据配送资源在第二预设历史时间段内的历史配送数据估计所述配送资源的配送速度;a second estimation submodule configured to estimate a delivery speed of the distribution resource according to historical distribution data of the distribution resource in a second preset historical time period;
第三估计子模块,被配置为根据配送资源在第三预设历史时间段内的历史配送数据估计所述配送资源的最高配送任务量。The third estimation submodule is configured to estimate a maximum delivery task amount of the distribution resource according to historical distribution data of the distribution resource in the third preset historical time period.
结合第二方面,本公开在第二方面的第一种实现方式中,所述第一估计子模块包括:With reference to the second aspect, in the first implementation manner of the second aspect, the first estimation submodule includes:
第一计算单元,被配置为根据所述历史行进数据计算第一预设时间区间内配送资源的行进速度,其中,所述第一预设时间区间小于所述第 一预设历史时间段;a first calculating unit, configured to calculate a traveling speed of the distribution resource in the first preset time interval according to the historical traveling data, wherein the first preset time interval is smaller than the first preset historical time period;
第一求和单元,被配置为对第一预设时间区间内配送资源的行进速度进行加权求和,得到所述配送资源的行进速度。The first summation unit is configured to perform weighted summation of the travel speeds of the distribution resources in the first preset time interval to obtain the travel speed of the distribution resources.
结合第二方面,本公开在第二方面的第一种实现方式中,所述第二估计子模块包括:With reference to the second aspect, in the first implementation manner of the second aspect, the second estimation submodule includes:
第二计算单元,被配置为根据所述历史配送数据计算第二预设时间区间内配送资源的配送速度,其中,所述第二预设时间区间小于所述第二预设历史时间段;a second calculating unit, configured to calculate a delivery speed of the distribution resource in the second preset time interval according to the historical distribution data, wherein the second preset time interval is smaller than the second preset historical time period;
第二求和单元,被配置为对第二预设时间区间内配送资源的配送速度进行加权求和,得到所述配送资源的配送速度。The second summation unit is configured to perform weighted summation of the delivery speeds of the distribution resources in the second preset time interval to obtain a delivery speed of the distribution resources.
结合第二方面,本公开在第二方面的第一种实现方式中,所述第三估计子模块包括:With reference to the second aspect, in the first implementation manner of the second aspect, the third estimation submodule includes:
第三计算单元,被配置为对于未出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内某时刻预计按时完成且实际按时完成的第一最大配送任务数量,其中,所述第三预设时间区间小于所述第三预设历史时间段;a third calculating unit configured to calculate, for a distribution resource that does not have a timeout delivery, a first maximum that is expected to be completed on time and actually completed on time at a certain time in the third preset time interval of the third preset historical time period a number of delivery tasks, wherein the third preset time interval is smaller than the third preset historical time period;
第一确认单元,被配置为将所述第一最大配送任务数量中的最大值确认为第一配送任务数量;a first confirmation unit configured to confirm a maximum value of the first maximum number of delivery tasks as a first number of delivery tasks;
第四计算单元,被配置为对于出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内存在超时任务时,某时刻所承载的预计按时完成且实际按时完成的第二最大配送任务数量,其中,所述超时任务的超时时间大于预设时间阈值;The fourth calculating unit is configured to calculate, when the timeout task exists in the third preset time interval of the third preset historical time period, the estimated time carried by the timed completion is completed on time and The second maximum number of delivery tasks that are actually completed on time, wherein the timeout period of the timeout task is greater than a preset time threshold;
第二确认单元,被配置为将所述第二最大配送任务数量中的最小值确认为第二配送任务数量;a second confirmation unit configured to confirm a minimum value of the second maximum number of delivery tasks as a second number of delivery tasks;
第三求和单元,被配置为对所述第一配送任务数量和所述第二配送任务数量进行加权求和,得到所述配送资源的最高配送任务量。The third summation unit is configured to perform weighted summation of the first number of delivery tasks and the second number of delivery tasks to obtain a maximum delivery task amount of the distribution resource.
结合第二方面,本公开在第二方面的第一种实现方式中,所述适配指数包括:对于配送资源已分配任务的影响指数,和/或所述待分配任务的执行指数。In conjunction with the second aspect, in a first implementation of the second aspect, the adaptation index includes: an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned.
结合第二方面,本公开在第二方面的第一种实现方式中,所述计算模块包括:With reference to the second aspect, in the first implementation manner of the second aspect, the calculating module includes:
第四估计子模块,被配置为根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述可用配送资源已分配任务的配送时间变化值,将其作为所述影响指数;a fourth estimation submodule configured to: after the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time change value of the available distribution resource has been assigned as a location Impact index
第五估计子模块,被配置为根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述待分配任务的配送时间值,将其作为所述执行指数;a fifth estimation sub-module, configured to estimate, according to task information of the task to be assigned, a delivery time value of the to-be-assigned task after the task to be assigned is allocated to the available distribution resource, as the execution index;
加权子模块,被配置为根据所述可用配送资源的配送能力指数对于所述影响指数和执行指数进行加权,得到所述适配指数。And a weighting sub-module configured to weight the impact index and the execution index according to a distribution capability index of the available distribution resource to obtain the adaptation index.
结合第二方面,本公开在第二方面的第一种实现方式中,所述分配模块包括:With reference to the second aspect, in the first implementation manner of the second aspect, the distribution module includes:
分配子模块,被配置为当将所述待分配任务分配给所述可用配送资源后,所述配送资源的已分配任务量小于所述最高配送任务量,且所述适配指数处于预设指数范围内时,将所述待分配任务分配给相应的配送资源。An allocation submodule configured to allocate, when the task to be assigned, the available distribution resource, the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is at a preset index When the range is within, the task to be assigned is assigned to the corresponding distribution resource.
第三方面,本公开实施例提供了一种电子设备,包括存储器和处理器,所述存储器用于存储一条或多条支持配送任务分配装置执行上述第一方面中配送任务分配方法的计算机指令,所述处理器被配置为用于执行所述存储器中存储的计算机指令。所述配送任务分配装置还可以包括通信接口,用于配送任务分配装置与其他设备或通信网络通信。In a third aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, where the memory is configured to store one or more computer instructions that support a distribution task assignment device to perform the distribution task assignment method in the first aspect, The processor is configured to execute computer instructions stored in the memory. The distribution task assignment device may also include a communication interface for the distribution task assignment device to communicate with other devices or communication networks.
第四方面,本公开实施例提供了一种计算机可读存储介质,用于存储配送任务分配装置所用的计算机指令,其包含用于执行上述第一方面中配送任务分配方法为配送任务分配装置所涉及的计算机指令。In a fourth aspect, an embodiment of the present disclosure provides a computer readable storage medium, configured to store computer instructions used by a distribution task distribution apparatus, where the method for distributing a distribution task in the first aspect is performed by a distribution task distribution device Computer instructions involved.
本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
上述技术方案综合考虑了配送资源的配送能力和分配影响因素,在配送资源能力范围内为其分配对其已有任务不致产生太大影响的配送任务,从而能够充分利用配送资源的承载能力,提高配送资源的配送效率,缩短配送任务的配送时效,进而提升服务质量,增强用户体验。The above technical solution comprehensively considers the distribution capability and distribution influencing factors of the distribution resources, and allocates distribution tasks within the scope of the distribution resource capability that do not have much influence on the existing tasks, thereby fully utilizing the carrying capacity of the distribution resources and improving The distribution efficiency of distribution resources shortens the delivery time of delivery tasks, thereby improving service quality and enhancing user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
结合附图,通过以下非限制性实施方式的详细描述,本公开的其它特征、目的和优点将变得更加明显。在附图中:Other features, objects, and advantages of the present invention will become more apparent from the aspects of the appended claims. In the drawing:
图1示出根据本公开一实施方式的配送任务分配方法的流程图;1 shows a flow chart of a delivery task assignment method in accordance with an embodiment of the present disclosure;
图2示出根据图1所示实施方式的配送任务分配方法的步骤S101的流程图;Figure 2 is a flow chart showing the step S101 of the delivery task assignment method according to the embodiment shown in Figure 1;
图3示出根据图2所示实施方式的配送任务分配方法的步骤S201的流程图;Figure 3 is a flow chart showing the step S201 of the delivery task assignment method according to the embodiment shown in Figure 2;
图4示出根据图2所示实施方式的配送任务分配方法的步骤S202的流程图;Figure 4 is a flow chart showing the step S202 of the delivery task assignment method according to the embodiment shown in Figure 2;
图5示出根据图2所示实施方式的配送任务分配方法的步骤S203的流程图;Figure 5 is a flow chart showing the step S203 of the delivery task assignment method according to the embodiment shown in Figure 2;
图6示出根据图1所示实施方式的配送任务分配方法的步骤S102的流程图;Figure 6 is a flow chart showing the step S102 of the delivery task assignment method according to the embodiment shown in Figure 1;
图7示出根据本公开一实施方式的配送任务分配装置的结构框图;FIG. 7 is a block diagram showing the structure of a distribution task distribution apparatus according to an embodiment of the present disclosure;
图8示出根据图7所示实施方式的配送任务分配装置的获取模块701的结构框图;FIG. 8 is a block diagram showing the structure of an acquisition module 701 of the delivery task distribution apparatus according to the embodiment shown in FIG. 7;
图9示出根据图8所示实施方式的配送任务分配装置的第一估计子模块801的结构框图;FIG. 9 is a block diagram showing the structure of a first estimation sub-module 801 of the distribution task assignment apparatus according to the embodiment shown in FIG. 8;
图10示出根据图8所示实施方式的配送任务分配装置的第二估计子模块802的结构框图;Figure 10 is a block diagram showing the structure of a second estimation sub-module 802 of the delivery task distribution device according to the embodiment shown in Figure 8;
图11示出根据图8所示实施方式的配送任务分配装置的第三估计子模块803的结构框图;Figure 11 is a block diagram showing the structure of a third estimation sub-module 803 of the delivery task distribution device according to the embodiment shown in Figure 8;
图12示出根据图7所示实施方式的配送任务分配装置的计算模块702的结构框图;Figure 12 is a block diagram showing the structure of a calculation module 702 of the delivery task distribution device according to the embodiment shown in Figure 7;
图13示出根据本公开一实施方式的电子设备的结构框图;FIG. 13 is a block diagram showing the structure of an electronic device according to an embodiment of the present disclosure;
图14是适于用来实现根据本公开一实施方式的配送任务分配方法的计算机系统的结构示意图。14 is a block diagram of a computer system suitable for implementing a delivery task assignment method in accordance with an embodiment of the present disclosure.
具体实施方式detailed description
下文中,将参考附图详细描述本公开的示例性实施方式,以使本领域技术人员可容易地实现它们。此外,为了清楚起见,在附图中省略了与描述示例性实施方式无关的部分。Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Further, portions that are not related to the description of the exemplary embodiments are omitted in the drawings for the sake of clarity.
在本公开中,应理解,诸如“包括”或“具有”等的术语旨在指示本说明书中所公开的特征、数字、步骤、行为、部件、部分或其组合的存在,并且不欲排除一个或多个其他特征、数字、步骤、行为、部件、部分或其组合存在或被添加的可能性。In the present disclosure, it is to be understood that the terms such as "including" or "having" are intended to indicate the presence of the features, the numbers, the steps, the acts, the The possibility of the presence or addition of a plurality of other features, numbers, steps, acts, components, parts or combinations thereof.
另外还需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本公开。It should also be noted that the embodiments of the present disclosure and the features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the drawings and embodiments.
本公开实施例提供的技术方案,综合考虑了配送资源的配送能力和分配影响因素,在配送资源能力范围内为其分配对其已有任务不致产生太大影响的配送任务,从而能够充分利用配送资源的承载能力,提高配送资源的配送效率,缩短配送任务的配送时效,进而提升服务质量,增强用户体验。The technical solution provided by the embodiments of the present disclosure comprehensively considers the distribution capability and the distribution influencing factors of the distribution resources, and allocates distribution tasks within the scope of the distribution resource capability to the existing tasks without causing too much influence on the existing tasks, thereby fully utilizing the distribution. The carrying capacity of resources improves the distribution efficiency of distribution resources, shortens the distribution time of distribution tasks, and improves service quality and user experience.
图1示出根据本公开一实施方式的配送任务分配方法的流程图。如图1所示,所述配送任务分配方法包括以下步骤S101-S103:FIG. 1 illustrates a flow chart of a delivery task assignment method in accordance with an embodiment of the present disclosure. As shown in FIG. 1, the distribution task assignment method includes the following steps S101-S103:
在步骤S101中,获取可用配送资源的配送能力指数,其中,所述配送能力指数用于表征所述可用配送资源的配送能力;In step S101, a distribution capability index of available distribution resources is obtained, wherein the distribution capability index is used to represent a distribution capability of the available distribution resources;
在步骤S102中,根据所述待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,其中,所述任务信息包括该待分配任务的取货地址和送货地址,所述适配指数用于表征将所述待分配任务分配给所述可用配送资源的 适合程度;In step S102, an adaptation index for assigning the to-be-assigned task to the available distribution resource is calculated according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, wherein the task information includes the to-be-configured information. Assigning a pick-up address and a shipping address of the task, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
在步骤S103中,当所述适配指数满足预设条件时,将所述待分配任务分配给相应的配送资源。In step S103, when the adaptation index meets a preset condition, the task to be assigned is allocated to a corresponding distribution resource.
上文提及,随着互联网技术的发展,越来越多的商家或者服务提供商通过互联网平台来为用户提供服务,而且很多互联网服务都需要配送员进行配送。而目前的配送任务分配策略通常是根据配送资源现有的任务量进行分配,或者根据配送资源距离取货地址之间的距离远近进行分配,再或者根据配送资源现有配送任务与待分配任务取货/送货地址之间的距离远近进行合并分配。这样的分配策略没有考虑到配送资源的能力因素,不能够充分利用配送资源的配送力,进而导致配送资源利用不充分,降低配送效率。As mentioned above, with the development of Internet technology, more and more businesses or service providers provide services to users through the Internet platform, and many Internet services require distribution personnel to deliver. The current distribution task allocation strategy is usually based on the existing task quantity of the distribution resource, or according to the distance between the delivery resource and the pickup address, or according to the existing distribution task and the task to be assigned according to the distribution resource. The distance between the goods/shipping address is far and near for combined allocation. Such a distribution strategy does not take into account the capability factors of distribution resources, and cannot fully utilize the distribution power of distribution resources, thereby resulting in insufficient utilization of distribution resources and reducing distribution efficiency.
考虑到上述缺陷,在该实施方式中,提出一种配送任务分配方法,该方法首先获取可用配送资源的配送能力指数,其中,所述配送能力指数用于表征所述可用配送资源的配送能力;然后根据所述待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,其中,所述任务信息包括该待分配任务的取货地址和送货地址,所述适配指数用于表征将所述待分配任务分配给所述可用配送资源的适合程度;当所述适配指数满足预设条件时,再将所述待分配任务分配给相应的配送资源。In view of the above drawbacks, in this embodiment, a distribution task assignment method is proposed, which first obtains a distribution capability index of available distribution resources, wherein the distribution capability index is used to characterize the distribution capability of the available distribution resources; And then calculating an adaptation index for assigning the to-be-assigned task to the available distribution resource according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, where the task information includes the task to be assigned a cargo address and a shipping address, the adaptation index is used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource; and when the adaptation index meets a preset condition, the to-be-allocated Tasks are assigned to the corresponding distribution resources.
上述技术方案综合考虑了配送资源的配送能力和分配影响因素,在配送资源能力范围内为其分配对其已有任务不致产生太大影响的配送任务,从而能够充分利用配送资源的承载能力,提高配送资源的配送效率,缩短配送任务的配送时效,进而提升服务质量,增强用户体验。The above technical solution comprehensively considers the distribution capability and distribution influencing factors of the distribution resources, and allocates distribution tasks within the scope of the distribution resource capability that do not have much influence on the existing tasks, thereby fully utilizing the carrying capacity of the distribution resources and improving The distribution efficiency of distribution resources shortens the delivery time of delivery tasks, thereby improving service quality and enhancing user experience.
在本实施例的一个可选实现方式中,所述配送能力指数包括:行进速度、配送速度、最高配送任务量中的一种或多种,其中,所述行进速度指的是配送资源从一个配送任务的取货地址至送货地址的速度;所述配送速度指的是配送资源到达配送任务的送货地址至完成该配送任务的速度;所述最高配送任务量指的是某一时刻某一配送资源最多能按时完成配送的任务量。上述三种指数可综合考虑来表征一个配送资源的配 送能力。若一个配送资源行进速度高、配送速度快、最高配送任务量大,则说明该配送资源配送能力强,可承担较多的配送任务,反之,则说明该配送资源配送能力弱,只能承担有限数量的配送任务。In an optional implementation manner of this embodiment, the distribution capability index includes one or more of a travel speed, a delivery speed, and a maximum delivery task amount, where the travel speed refers to a distribution resource from one The speed at which the delivery address of the delivery task reaches the delivery address; the delivery speed refers to the delivery address of the delivery resource to the delivery task to the speed at which the delivery task is completed; the maximum delivery task amount refers to a certain time The amount of tasks that a distribution resource can complete at most on time. The above three indices can be considered together to characterize the delivery capacity of a distribution resource. If a distribution resource has a high speed, a fast delivery speed, and a maximum amount of delivery tasks, it indicates that the distribution resource has a strong distribution capability and can undertake more delivery tasks. On the contrary, it indicates that the distribution resource has a weak distribution capability and can only bear limited resources. The number of delivery tasks.
在本实施例的一个可选实现方式中,如图2所示,所述步骤S101,即获取可用配送资源的配送能力指数的步骤,包括步骤S201-S203:In an optional implementation manner of this embodiment, as shown in FIG. 2, the step S101, that is, the step of acquiring the distribution capability index of the available distribution resources, includes steps S201-S203:
在步骤S201中,根据配送资源在第一预设历史时间段内的历史行进数据估计所述配送资源的行进速度;In step S201, estimating a travel speed of the distribution resource according to historical travel data of the distribution resource in the first preset historical time period;
在步骤S202中,根据配送资源在第二预设历史时间段内的历史配送数据估计所述配送资源的配送速度;In step S202, estimating a delivery speed of the distribution resource according to historical distribution data of the distribution resource in the second preset historical time period;
在步骤S203中,根据配送资源在第三预设历史时间段内的历史配送数据估计所述配送资源的最高配送任务量。In step S203, the highest delivery task amount of the distribution resource is estimated according to the historical distribution data of the distribution resource in the third preset historical time period.
在该实施方式中,根据预设历史时间段内与所述配送资源相关的历史数据来估计配送资源的配送能力指数,然后将得到的配送能力指数应用到当前配送任务的分配中。其中,第一预设历史时间段、第二预设历史时间段和第三预设历史时间段可以相同也可以不相同,比如,可以选为当前时间之前的30天。当然,本领域技术人员可根据实际应用的需要对于第一预设历史时间段、第二预设历史时间段和第三预设历史时间段进行设置,本公开对其不作具体限定。In this embodiment, the distribution capability index of the distribution resource is estimated according to the historical data related to the distribution resource within the preset historical time period, and then the obtained distribution capability index is applied to the distribution of the current delivery task. The first preset historical time period, the second preset historical time period, and the third preset historical time period may be the same or different, for example, may be selected as 30 days before the current time. Certainly, the first preset historical time period, the second preset historical time period, and the third preset historical time period are set according to the needs of the actual application, which is not specifically limited in the disclosure.
在本实施例的一个可选实现方式中,如图3所示,所述步骤S201,即根据配送资源在第一预设历史时间段内的历史行进数据估计所述配送资源的行进速度的步骤,包括步骤S301-S302:In an optional implementation manner of this embodiment, as shown in FIG. 3, the step S201 is to estimate the traveling speed of the distribution resource according to historical travel data of the distribution resource in the first preset historical time period. , including steps S301-S302:
在步骤S301中,根据所述历史行进数据计算第一预设时间区间内配送资源的行进速度,其中,所述第一预设时间区间小于所述第一预设历史时间段;In step S301, the travel speed of the distribution resource in the first preset time interval is calculated according to the historical travel data, wherein the first preset time interval is smaller than the first preset historical time period;
在步骤S302中,对第一预设时间区间内配送资源的行进速度进行加权求和,得到所述配送资源的行进速度。In step S302, the traveling speeds of the distribution resources in the first preset time interval are weighted and summed to obtain the traveling speed of the distribution resources.
以第一预设历史时间段选为30天,第一预设时间区间选为1天为例,在该实施方式中,首先根据当前时间之前30天内每一天的历史行进数据计算每一天配送资源的行进速度,比如,某一天配送资源的行进 速度s i可利用下式来计算: The first preset historical time period is selected as 30 days, and the first preset time interval is selected as one day. In this embodiment, the daily distribution resources are first calculated according to the historical travel data of each day within 30 days before the current time. The speed of travel, for example, the travel speed s i of a distribution resource on a certain day can be calculated by:
Figure PCTCN2019075572-appb-000001
Figure PCTCN2019075572-appb-000001
其中,i表示第一预设历史时间段内的第i个第一预设时间区间,i=1…N,N表示第一预设历史时间段内第一预设时间区间的个数,d n表示第i个第一预设时间区间的第n段行进距离,t n表示完成第n段行进距离所花费的时间,所述行进距离表示配送资源从一个配送任务的取货地址至其送货地址之间的距离。 Where i is the i-th first preset time interval in the first preset historical time period, i=1...N, and N represents the number of the first preset time interval in the first preset historical time period, d n denotes the i-th first predetermined travel distance segment n of the time interval, T n represents the n-th period is completed takes the travel distance, the travel distance indicates a distribution resource distribution tasks from the pickup address to which to send The distance between the goods address.
然后对配送资源每天的行进速度进行加权求和,得到所述配送资源的行进速度s,即:Then, the traveling speed of the distribution resource is weighted and summed to obtain the traveling speed s of the distribution resource, that is:
Figure PCTCN2019075572-appb-000002
Figure PCTCN2019075572-appb-000002
其中,w i表示行进速度s i的权值,所述权值的取值可根据实际应用的需要进行设定,本公开对其不作具体限定。 Where, w i represents the weight of the traveling speed s i , and the value of the weight may be set according to the needs of the actual application, which is not specifically limited in the disclosure.
在本实施例的一个可选实现方式中,距离当前时间越近,相应行进速度的权值就越大,距离当前时间越远,相应行进速度的权值就越小,比如,权值w i可取为:(第一预设历史时间段-当前参与计算的预设时间区间与当前时间的时间差)/(第一预设历史时间段-1)的阶加运算,例如,若第一预设历史时间段为30天,当前时间为30天中的第20天,那么第19天的行进速度s 19的权值w 19为:(30-(20-19))/(30-1)的阶加运算,即29/29的阶加运算,其中,29的阶加运算表示为29+28+27+…+2+1,也可以写为:29/(29+28+27+…+2+1);第5天的行进速度s 5的权值w 5为:(30-(20-5))/(30-1)的阶加运算,即15/(29+28+27+…+2+1)。 In an optional implementation manner of this embodiment, the closer to the current time, the greater the weight of the corresponding traveling speed, and the further away from the current time, the smaller the weight of the corresponding traveling speed, for example, the weight w i It may be taken as: (the first preset historical time period - the time difference between the preset time interval of the current participation calculation and the current time) / (the first preset historical time period -1), for example, if the first preset The historical time period is 30 days, and the current time is the 20th day of 30 days, then the weight w 19 of the traveling speed s 19 on the 19th day is: (30-(20-19))/(30-1) The order addition operation, that is, the order addition operation of 29/29, wherein the order addition operation of 29 is represented as 29+28+27+...+2+1, and can also be written as: 29/(29+28+27+...+ 2+1); the weight w 5 of the traveling speed s 5 on the 5th day is: an order addition operation of (30-(20-5))/(30-1), that is, 15/(29+28+27+ ...+2+1).
在本实施例的一个可选实现方式中,所述行进距离可使用配送资源在接收配送任务时获得的导航距离,也可以使用配送资源在完成配送任务时生成的实际行进距离。In an optional implementation manner of this embodiment, the travel distance may use a navigation distance obtained by the distribution resource when receiving the delivery task, or may use an actual travel distance generated by the distribution resource when the delivery task is completed.
在本实施例的一个可选实现方式中,如图4所示,所述步骤S202,即根据配送资源在第二预设历史时间段内的历史配送数据估计所述配送资源的配送速度的步骤,包括步骤S401-402:In an optional implementation manner of this embodiment, as shown in FIG. 4, the step S202 is to estimate the delivery speed of the distribution resource according to the historical distribution data of the distribution resource in the second preset historical time period. , including steps S401-402:
在步骤S401中,根据所述历史配送数据计算第二预设时间区间内 配送资源的配送速度,其中,所述第二预设时间区间小于所述第二预设历史时间段;In step S401, the delivery speed of the distribution resource in the second preset time interval is calculated according to the historical distribution data, wherein the second preset time interval is smaller than the second preset historical time period;
在步骤S402中,对第二预设时间区间内配送资源的配送速度进行加权求和,得到所述配送资源的配送速度。In step S402, the delivery speed of the distribution resource in the second preset time interval is weighted and summed to obtain the delivery speed of the distribution resource.
以第二预设历史时间段选为30天,第二预设时间区间选为1天为例,在该实施方式中,首先根据当前时间之前30天内每一天的历史配送数据计算每一天配送资源的配送速度,比如,某一天配送资源的配送速度a i可利用下式来计算: For example, the second preset historical time period is selected as 30 days, and the second preset time interval is selected as 1 day. In this embodiment, the daily distribution resources are first calculated according to historical distribution data of each day within 30 days before the current time. The delivery speed, for example, the delivery speed a i of the distribution resource of a certain day can be calculated by the following formula:
Figure PCTCN2019075572-appb-000003
Figure PCTCN2019075572-appb-000003
其中,i表示第二预设历史时间段内的第i个第二预设时间区间,i=1…P,P表示第二预设历史时间段内第二预设时间区间的个数,j n表示第i个第二预设时间区间的第n段配送距离,l n表示完成第n段配送距离所花费的时间;所述配送距离指的是配送资源从配送任务的送货地址至完成该配送任务时所在位置之间的距离。 Where i is the i-th second preset time interval in the second preset historical time period, i=1...P, and P represents the number of second preset time intervals in the second preset historical time period, j n represents the nth segment delivery distance of the i-th second preset time interval, and l n represents the time taken to complete the n-th segment delivery distance; the delivery distance refers to the delivery resource from the delivery address of the delivery task to completion The distance between the locations where the task was delivered.
然后对配送资源每天的配送速度进行加权求和,得到所述配送资源的配送速度a,即:Then, the delivery speed of the distribution resource is weighted and summed to obtain the delivery speed a of the distribution resource, namely:
Figure PCTCN2019075572-appb-000004
Figure PCTCN2019075572-appb-000004
其中,v i表示配送速度a i的权值,所述权值的取值可根据实际应用的需要进行设定,本公开对其不作具体限定。 The v i represents the weight of the delivery speed a i , and the value of the weight may be set according to the needs of the actual application, which is not specifically limited in the disclosure.
与权值w i的取值类似,距离当前时间越近,相应配送速度的权值就越大,距离当前时间越远,相应配送速度的权值就越小,权值v i也可取为:(第一预设历史时间段-当前参与计算的预设时间区间与当前时间的时间差)/(第一预设历史时间段-1)的阶加运算,例如,若第一预设历史时间段为30天,当前时间为30天中的第20天,那么第19天的行进速度a 19的权值v 19为:(30-(20-19))/(30-1)的阶加运算,即29/29的阶加运算,其中,29的阶加运算表示为29+28+27+…+2+1,也可以写为:29/(29+28+27+…+2+1);第5天的行进速度a 5的权值v 5为:(30-(20-5))/(30-1)的阶加运算,即15/(29+28+27+…+2+1)。 Similar to the value of the weight w i , the closer the current time is, the larger the weight of the corresponding delivery speed is. The farther from the current time, the smaller the weight of the corresponding delivery speed, and the weight v i can also be taken as: (the first preset historical time period - the time difference between the preset time interval of the current participation calculation and the current time) / (the first preset historical time period - 1), for example, if the first preset historical time period For 30 days, the current time is the 20th day of 30 days, then the weight v 19 of the travel speed a 19 on the 19th day is: (30-(20-19))/(30-1). , that is, the order addition operation of 29/29, wherein the order addition operation of 29 is represented as 29+28+27+...+2+1, and can also be written as: 29/(29+28+27+...+2+1 ); the weight v 5 of the traveling speed a 5 on the fifth day is: an order addition operation of (30-(20-5))/(30-1), that is, 15/(29+28+27+...+2) +1).
在本实施例的一个可选实现方式中,所述配送距离可使用导航距离,也可以使用实际发生的距离。In an optional implementation manner of this embodiment, the delivery distance may use a navigation distance, or may use an actual distance.
在本实施例的一个可选实现方式中,如图5所示,所述步骤S203,即根据配送资源在第三预设历史时间段内的历史配送数据估计所述配送资源的最高配送任务量的步骤,包括步骤S501-S505:In an optional implementation manner of this embodiment, as shown in FIG. 5, the step S203 is to estimate the highest delivery task amount of the distribution resource according to the historical distribution data of the distribution resource in the third preset historical time period. The steps include steps S501-S505:
在步骤S501中,对于未出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内某时刻预计按时完成且实际按时完成的第一最大配送任务数量,其中,所述第三预设时间区间小于所述第三预设历史时间段;In step S501, for the distribution resource that does not have timeout delivery, calculate the first maximum number of delivery tasks that are expected to be completed on time and actually completed on time at a certain time in the third preset time interval of the third preset historical time period. The third preset time interval is smaller than the third preset historical time period;
在步骤S502中,将所述第一最大配送任务数量中的最大值确认为第一配送任务数量;In step S502, the maximum value of the first maximum number of delivery tasks is confirmed as the first number of delivery tasks;
在步骤S503中,对于出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内存在超时任务时,某时刻所承载的预计按时完成且实际按时完成的第二最大配送任务数量,其中,所述超时任务的超时时间大于预设时间阈值;In step S503, when there is a timeout task in the third preset time interval of the third preset historical time period for the distribution resource with timeout delivery, the estimated time carried in a certain time is completed on time and actually completed on time. The second maximum number of delivery tasks, wherein the timeout period of the timeout task is greater than a preset time threshold;
在步骤S504中,将所述第二最大配送任务数量中的最小值确认为第二配送任务数量;In step S504, the minimum value of the second maximum number of delivery tasks is confirmed as the second number of delivery tasks;
在步骤S505中,对所述第一配送任务数量和所述第二配送任务数量进行加权求和,得到所述配送资源的最高配送任务量。In step S505, the first delivery task quantity and the second delivery task quantity are weighted and summed to obtain the highest delivery task quantity of the distribution resource.
在该实施方式中,对于第三预设时间区间内未出现超时配送和出现过超时配送的配送资源分别进行最高配送任务量的计算。In this embodiment, the calculation of the highest delivery task amount is performed separately for the distribution resources in which the timeout delivery and the overtime delivery occur within the third preset time interval.
以第三预设历史时间段选为30天,第三预设时间区间选为1天为例,在该实施方式中,对于30天中的第1天,若配送资源未发生超时配送事件,则统计这一天中所有时刻存在的预计按时完成且实际上也已按时完成的配送任务数量,最大的那个数量就是第1天该配送资源的最大配送任务数量;对于30天中的第2天,若配送资源发生了超时配送事件,则统计在发生超时任务时,预计按时完成且实际上也已按时完成的配送任务数量,若超时任务只有1个,那么这个数量就是第1天该配送资源的最大配送任务数量,若超时任务有2个或更多,则最大的那个 数量就是第2天该配送资源的最大配送任务数量;以此类推,将所有第一最大配送任务数量中的最大值确认为第一配送任务数量,将所有第二最大配送任务数量中的最小值确认为第二配送任务数量,最后对所述第一配送任务数量和所述第二配送任务数量进行加权求和,即可得到所述配送资源的最高配送任务量,其中,考虑到存在超时配送任务时的最大配送任务数量对于配送资源配送能力的考核更具意义,因此可将对应于第二配送任务数量的权值设置为大于对应于第一配送任务数量的权值。当然,所述第一配送任务数量和第二配送任务数量对应的权值可根据实际应用的需要进行设定,本公开对其不作具体限定。Taking the third preset historical time period as 30 days, and the third preset time interval as one day as an example, in this embodiment, for the first day of 30 days, if the delivery resource does not have a timeout delivery event, Then count the number of delivery tasks that are expected to be completed on time and actually completed on time at all times in the day. The largest number is the maximum number of delivery tasks for the distribution resource on the first day; for the second day of the 30 days, If a timeout delivery event occurs in the distribution resource, the number of delivery tasks that are expected to be completed on time and actually completed on time in the event of a timeout task is counted. If there is only one timeout task, then the quantity is the distribution resource of the first day. The maximum number of delivery tasks. If there are 2 or more timeout tasks, the largest number is the maximum number of delivery tasks for the delivery resource on the second day; and so on, the maximum value of all the first maximum delivery tasks is confirmed. For the first number of delivery tasks, the minimum of all the second largest delivery tasks is confirmed as the second delivery task number, and finally the first delivery And the quantity of the second delivery task is weighted and summed to obtain the highest delivery task quantity of the distribution resource, wherein the maximum number of delivery tasks when the timeout delivery task is present is more important for the assessment of the distribution resource distribution capability. Meaning, so the weight corresponding to the number of second delivery tasks can be set to be greater than the weight corresponding to the number of first delivery tasks. Of course, the weights corresponding to the number of the first delivery tasks and the number of the second delivery tasks may be set according to the needs of the actual application, which is not specifically limited in the disclosure.
其中,所述超时任务指的是超时时间大于预设时间阈值的任务,即忽略稍有超时的任务。The timeout task refers to a task whose timeout period is greater than a preset time threshold, that is, a task with a slight timeout is ignored.
另外,对于分配时就预测到会超时但还是强制分配给配送资源的配送任务不在上述计算的考虑范围内。In addition, the delivery task that is predicted to be timed out at the time of allocation but is still forcibly assigned to the distribution resource is not considered in the above calculation.
在本实施例的一个可选实现方式中,所述适配指数包括:对于配送资源已分配任务的影响指数,和/或所述待分配任务的执行指数,其中,所述影响指数用于表征将所述待分配任务分配给一配送资源后,对于该配送资源已分配任务的影响程度;所述执行指数用于表征将所述待分配任务分配给一配送资源后,该配送资源完成该任务的顺利执行程度。In an optional implementation manner of this embodiment, the adaptation index includes: an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned, wherein the impact index is used for characterization After the task to be assigned is assigned to a distribution resource, the degree of influence on the assigned task of the distribution resource; the execution index is used to represent that the task to be assigned is assigned to a distribution resource, and the distribution resource completes the task The degree of smooth execution.
在本实施例的一个可选实现方式中,如图6所示,所述步骤S102,即根据待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数的步骤,包括步骤S601-603:In an optional implementation manner of this embodiment, as shown in FIG. 6, the step S102 is to allocate the task to be assigned to the task according to the task information of the task to be assigned and the distribution capability index of the available distribution resources. The step of adapting the index of the available distribution resources includes steps S601-603:
在步骤S601中,根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述可用配送资源已分配任务的配送时间变化值,将其作为所述影响指数;In step S601, after the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time change value of the available distribution resource has been assigned as the impact index;
在步骤S602中,根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述待分配任务的配送时间值,将其作为所述执行指数;In step S602, after the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time value of the task to be assigned is used as the execution index;
在步骤S603中,根据所述可用配送资源的配送能力指数对于所述 影响指数和执行指数进行加权,得到所述适配指数。In step S603, the impact index and the execution index are weighted according to the distribution capability index of the available distribution resources to obtain the adaptation index.
为了进一步明确一待分配任务是否适合分配给一配送资源,在该实施方式中,还估计了若将待分配任务分配给一配送资源,对于该配送资源之前已分配任务所产生的影响以及可能发生的配送情况。In order to further clarify whether a task to be assigned is suitable for distribution to a distribution resource, in this embodiment, it is also estimated that if the task to be assigned is assigned to a distribution resource, the impact on the previously assigned task for the distribution resource may occur and may occur. Distribution status.
该实施方式首先根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述可用配送资源已分配任务的配送时间变化值,将其作为所述影响指数,即将已分配给配送资源的所有任务与待分配任务重新进行统筹考虑。比如,假设之前已经分配给配送资源的任务有1个,是从商户1取货后送至用户1,而待分配任务是从商户2取货后送至用户2,那么根据该配送资源的行进速度和配送速度,可以估计得到在将所述待分配任务分配给该配送资源并进行路径重新规划后,对于原配送任务来说产生的时间延误值,以及完成待分配任务所花费的时间,所述时间延误值可用于表征将待分配任务分配给该配送资源对已分配任务的影响,而完成待分配任务所花费的时间可用于表征将待分配任务分配给该配送资源后执行该待分配任务的顺利程度,时间延误值越高,说明将待分配任务分配给该配送资源对已分配任务的影响越大,完成待分配任务所花费的时间越少,说明将待分配任务分配给该配送资源后执行该待分配任务越顺利,反之亦然。The first embodiment firstly allocates, according to the task information of the task to be assigned, the distribution time change value of the available distribution resource to the available distribution resource, and uses the distribution time change value of the available distribution resource as the impact index. All tasks assigned to the distribution resource are reconsidered with the tasks to be assigned. For example, suppose that there is one task that has been assigned to the distribution resource before, and it is sent from the merchant 1 to the user 1, and the task to be assigned is sent from the merchant 2 to the user 2, then according to the travel of the distribution resource. Speed and delivery speed, the time delay value generated for the original delivery task and the time taken to complete the task to be assigned after the task to be assigned is allocated to the distribution resource and the path is re-planned can be estimated. The time delay value may be used to characterize the impact of assigning the task to be assigned to the distributed resource to the assigned task, and the time taken to complete the task to be assigned may be used to represent that the task to be assigned is assigned to the distribution resource and then the task to be assigned is executed. The smoothness of the time, the higher the time delay value, indicating that the assignment of the task to be assigned to the distribution resource has a greater impact on the assigned task, and the less time it takes to complete the task to be assigned, indicating that the task to be assigned is assigned to the distribution resource. The smoother the execution of the task to be assigned, and vice versa.
最后可根据可用配送资源的配送能力指数再对于所述影响指数和执行指数进行加权修正,最终得到所述适配指数。若一配送资源的配送能力较高,则可降低影响指数的比重,增加执行指数的比重,若一配送资源的配送能力较低,则可增加影响指数的比重,降低执行指数的比重。Finally, the weighting correction may be performed on the impact index and the execution index according to the distribution capability index of the available distribution resources, and finally the adaptation index is obtained. If the distribution capacity of a distribution resource is high, the proportion of the impact index can be reduced, and the proportion of the execution index can be increased. If the distribution capacity of a distribution resource is low, the proportion of the impact index can be increased, and the proportion of the execution index can be reduced.
在本实施例的一个可选实现方式中,所述步骤S103,即当适配指数满足预设条件时,将所述待分配任务分配给相应的配送资源的步骤,包括步骤:In an optional implementation manner of the embodiment, the step S103, that is, the step of assigning the task to be assigned to the corresponding distribution resource when the adaptation index meets the preset condition, includes the following steps:
当将所述待分配任务分配给所述可用配送资源后,所述配送资源的已分配任务量小于所述最高配送任务量,且所述适配指数处于预设指数范围内时,将所述待分配任务分配给相应的配送资源。After the task to be assigned is allocated to the available distribution resource, the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is within a preset index range, The tasks to be assigned are assigned to the corresponding distribution resources.
考虑到将待分配任务分配给一配送资源后若其任务量超过了最高 配送任务量,会影响其配送质量,所以在该实施方式中,当将待分配任务分配给一配送资源后,该配送资源的已分配任务量达不到其最高配送任务量时,才会考虑将该待分配任务分配给该配送资源,然后再考察适配指数,当适配指数处于预设指数范围内时,将所述待分配任务分配给相应的配送资源。其中,所述预设指数范围可根据实际应用的需要进行设置,本公开对其不作具体限定。Considering that after the task to be assigned is assigned to a distribution resource, if the task amount exceeds the maximum delivery task amount, the distribution quality is affected. Therefore, in this embodiment, when the task to be assigned is assigned to a distribution resource, the delivery is performed. When the allocated task of the resource does not reach its maximum delivery task amount, the task to be assigned will be considered to be allocated to the distribution resource, and then the adaptation index will be examined. When the adaptation index is within the preset index range, The tasks to be assigned are allocated to corresponding distribution resources. The preset index range may be set according to the needs of the actual application, which is not specifically limited in the disclosure.
下述为本公开装置实施例,可以用于执行本公开方法实施例。The following is an apparatus embodiment of the present disclosure, which may be used to implement the method embodiments of the present disclosure.
图7示出根据本公开一实施方式的配送任务分配装置的结构框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图7所示,所述配送任务分配装置包括:FIG. 7 is a block diagram showing the structure of a distribution task distribution apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in FIG. 7, the distribution task distribution device includes:
获取模块701,被配置为获取可用配送资源的配送能力指数,其中,所述配送能力指数用于表征所述可用配送资源的配送能力;The obtaining module 701 is configured to obtain a distribution capability index of available distribution resources, wherein the distribution capability index is used to represent a distribution capability of the available distribution resources;
计算模块702,被配置为根据所述待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,其中,所述任务信息包括该待分配任务的取货地址和送货地址,所述适配指数用于表征将所述待分配任务分配给所述可用配送资源的适合程度;The calculating module 702 is configured to calculate, according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, an adaptation index that allocates the task to be allocated to the available distribution resource, where the task information includes a pickup address and a delivery address of the task to be assigned, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
分配模块703,被配置为当所述适配指数满足预设条件时,将所述待分配任务分配给相应的配送资源。The allocating module 703 is configured to allocate the to-be-assigned task to the corresponding distribution resource when the adaptation index meets the preset condition.
上文提及,随着互联网技术的发展,越来越多的商家或者服务提供商通过互联网平台来为用户提供服务,而且很多互联网服务都需要配送员进行配送。而目前的配送任务分配策略通常是根据配送资源现有的任务量进行分配,或者根据配送资源距离取货地址之间的距离远近进行分配,再或者根据配送资源现有配送任务与待分配任务取货/送货地址之间的距离远近进行合并分配。这样的分配策略没有考虑到配送资源的能力因素,不能够充分利用配送资源的配送力,进而导致配送资源利用不充分,降低配送效率。As mentioned above, with the development of Internet technology, more and more businesses or service providers provide services to users through the Internet platform, and many Internet services require distribution personnel to deliver. The current distribution task allocation strategy is usually based on the existing task quantity of the distribution resource, or according to the distance between the delivery resource and the pickup address, or according to the existing distribution task and the task to be assigned according to the distribution resource. The distance between the goods/shipping address is far and near for combined allocation. Such a distribution strategy does not take into account the capability factors of distribution resources, and cannot fully utilize the distribution power of distribution resources, thereby resulting in insufficient utilization of distribution resources and reducing distribution efficiency.
考虑到上述缺陷,在该实施方式中,提出一种配送任务分配装置,该装置通过获取模块701获取可用配送资源的配送能力指数,其中,所 述配送能力指数用于表征所述可用配送资源的配送能力;然后通过计算模块702根据所述待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,其中,所述任务信息包括该待分配任务的取货地址和送货地址,所述适配指数用于表征将所述待分配任务分配给所述可用配送资源的适合程度;当所述适配指数满足预设条件时,分配模块703将所述待分配任务分配给相应的配送资源。In view of the above drawbacks, in this embodiment, a distribution task assignment device is provided, which acquires a distribution capability index of available distribution resources by an acquisition module 701, wherein the distribution capability index is used to characterize the available distribution resources. a distribution capability; then calculating, by the calculation module 702, an adaptation index for assigning the to-be-assigned task to the available distribution resource according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, wherein the task information Included as a pickup address and a delivery address of the task to be assigned, the adaptation index is used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource; when the adaptation index meets a preset condition The distribution module 703 allocates the task to be assigned to the corresponding distribution resource.
上述技术方案综合考虑了配送资源的配送能力和分配影响因素,在配送资源能力范围内为其分配对其已有任务不致产生太大影响的配送任务,从而能够充分利用配送资源的承载能力,提高配送资源的配送效率,缩短配送任务的配送时效,进而提升服务质量,增强用户体验。The above technical solution comprehensively considers the distribution capability and distribution influencing factors of the distribution resources, and allocates distribution tasks within the scope of the distribution resource capability that do not have much influence on the existing tasks, thereby fully utilizing the carrying capacity of the distribution resources and improving The distribution efficiency of distribution resources shortens the delivery time of delivery tasks, thereby improving service quality and enhancing user experience.
在本实施例的一个可选实现方式中,所述配送能力指数包括:行进速度、配送速度、最高配送任务量中的一种或多种,其中,所述行进速度指的是配送资源从一个配送任务的取货地址至送货地址的速度;所述配送速度指的是配送资源到达配送任务的送货地址至完成该配送任务的速度;所述最高配送任务量指的是某一时刻某一配送资源最多能按时完成配送的任务量。上述三种指数可综合考虑来表征一个配送资源的配送能力。若一个配送资源行进速度高、配送速度快、最高配送任务量大,则说明该配送资源配送能力强,可承担较多的配送任务,反之,则说明该配送资源配送能力弱,只能承担有限数量的配送任务。In an optional implementation manner of this embodiment, the distribution capability index includes one or more of a travel speed, a delivery speed, and a maximum delivery task amount, where the travel speed refers to a distribution resource from one The speed at which the delivery address of the delivery task reaches the delivery address; the delivery speed refers to the delivery address of the delivery resource to the delivery task to the speed at which the delivery task is completed; the maximum delivery task amount refers to a certain time The amount of tasks that a distribution resource can complete at most on time. The above three indexes can be comprehensively considered to characterize the distribution ability of a distribution resource. If a distribution resource has a high speed, a fast delivery speed, and a maximum amount of delivery tasks, it indicates that the distribution resource has a strong distribution capability and can undertake more delivery tasks. On the contrary, it indicates that the distribution resource has a weak distribution capability and can only bear limited resources. The number of delivery tasks.
在本实施例的一个可选实现方式中,如图8所示,所述获取模块701包括:In an optional implementation manner of this embodiment, as shown in FIG. 8, the obtaining module 701 includes:
第一估计子模块801,被配置为根据配送资源在第一预设历史时间段内的历史行进数据估计所述配送资源的行进速度;The first estimation submodule 801 is configured to estimate a travel speed of the distribution resource according to historical travel data of the distribution resource in the first preset historical time period;
第二估计子模块802,被配置为根据配送资源在第二预设历史时间段内的历史配送数据估计所述配送资源的配送速度;The second estimation submodule 802 is configured to estimate a delivery speed of the distribution resource according to historical distribution data of the distribution resource in the second preset historical time period;
第三估计子模块803,被配置为根据配送资源在第三预设历史时间段内的历史配送数据估计所述配送资源的最高配送任务量。The third estimation sub-module 803 is configured to estimate a maximum delivery task amount of the distribution resource according to historical distribution data of the distribution resource in the third preset historical time period.
在该实施方式中,根据预设历史时间段内与所述配送资源相关的历 史数据来估计配送资源的配送能力指数,然后将得到的配送能力指数应用到当前配送任务的分配中。其中,第一预设历史时间段、第二预设历史时间段和第三预设历史时间段可以相同也可以不相同,比如,可以选为当前时间之前的30天。当然,本领域技术人员可根据实际应用的需要对于第一预设历史时间段、第二预设历史时间段和第三预设历史时间段进行设置,本公开对其不作具体限定。In this embodiment, the distribution capability index of the distribution resource is estimated based on the historical data related to the distribution resource within the preset historical time period, and then the obtained distribution capability index is applied to the distribution of the current delivery task. The first preset historical time period, the second preset historical time period, and the third preset historical time period may be the same or different, for example, may be selected as 30 days before the current time. Certainly, the first preset historical time period, the second preset historical time period, and the third preset historical time period are set according to the needs of the actual application, which is not specifically limited in the disclosure.
在本实施例的一个可选实现方式中,如图9所示,所述第一估计子模块801包括:In an optional implementation manner of this embodiment, as shown in FIG. 9, the first estimation submodule 801 includes:
第一计算单元901,被配置为根据所述历史行进数据计算第一预设时间区间内配送资源的行进速度,其中,所述第一预设时间区间小于所述第一预设历史时间段;The first calculating unit 901 is configured to calculate a traveling speed of the distribution resource in the first preset time interval according to the historical traveling data, wherein the first preset time interval is smaller than the first preset historical time period;
第一求和单元902,被配置为对第一预设时间区间内配送资源的行进速度进行加权求和,得到所述配送资源的行进速度。The first summation unit 902 is configured to perform weighted summation of the travel speeds of the distribution resources in the first preset time interval to obtain the travel speed of the distribution resource.
在本实施例的一个可选实现方式中,如图10所示,所述第二估计子模块802包括:In an optional implementation manner of this embodiment, as shown in FIG. 10, the second estimation submodule 802 includes:
第二计算单元1001,被配置为根据所述历史配送数据计算第二预设时间区间内配送资源的配送速度,其中,所述第二预设时间区间小于所述第二预设历史时间段;The second calculating unit 1001 is configured to calculate, according to the historical distribution data, a delivery speed of the distribution resource in the second preset time interval, wherein the second preset time interval is smaller than the second preset historical time period;
第二求和单元1002,被配置为对第二预设时间区间内配送资源的配送速度进行加权求和,得到所述配送资源的配送速度。The second summation unit 1002 is configured to perform weighted summation of the delivery speeds of the distribution resources in the second preset time interval to obtain the delivery speed of the distribution resources.
在本实施例的一个可选实现方式中,如图11所示,所述第三估计子模块803包括:In an optional implementation manner of this embodiment, as shown in FIG. 11, the third estimation submodule 803 includes:
第三计算单元1101,被配置为对于未出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内某时刻预计按时完成且实际按时完成的第一最大配送任务数量,其中,所述第三预设时间区间小于所述第三预设历史时间段;The third calculating unit 1101 is configured to calculate, for the distribution resource that does not have timeout delivery, the first time that it is expected to be completed on time and actually completed on time in a third preset time interval of the third preset historical time period a maximum number of delivery tasks, wherein the third preset time interval is smaller than the third preset historical time period;
第一确认单元1102,被配置为将所述第一最大配送任务数量中的最大值确认为第一配送任务数量;The first confirming unit 1102 is configured to confirm the maximum value of the first maximum number of delivery tasks as the first number of delivery tasks;
第四计算单元1103,被配置为对于出现超时配送的配送资源,计算 其在所述第三预设历史时间段的第三预设时间区间内存在超时任务时,某时刻所承载的预计按时完成且实际按时完成的第二最大配送任务数量,其中,所述超时任务的超时时间大于预设时间阈值;The fourth calculating unit 1103 is configured to calculate, when the timeout task exists in the third preset time interval of the third preset historical time period for the distribution resource that has timed out delivery, the estimated time carried in a certain time is completed on time. And the second maximum number of delivery tasks that are actually completed on time, wherein the timeout period of the timeout task is greater than a preset time threshold;
第二确认单元1104,被配置为将所述第二最大配送任务数量中的最小值确认为第二配送任务数量;a second confirming unit 1104, configured to confirm a minimum value of the second maximum number of delivery tasks as a second number of delivery tasks;
第三求和单元1105,被配置为对所述第一配送任务数量和所述第二配送任务数量进行加权求和,得到所述配送资源的最高配送任务量。The third summation unit 1105 is configured to perform weighted summation on the first number of delivery tasks and the second number of delivery tasks to obtain a maximum delivery task amount of the distribution resource.
在本实施例的一个可选实现方式中,所述适配指数包括:对于配送资源已分配任务的影响指数,和/或所述待分配任务的执行指数,其中,所述影响指数用于表征将所述待分配任务分配给一配送资源后,对于该配送资源已分配任务的影响程度;所述执行指数用于表征将所述待分配任务分配给一配送资源后,该配送资源完成该任务的顺利执行程度。In an optional implementation manner of this embodiment, the adaptation index includes: an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned, wherein the impact index is used for characterization After the task to be assigned is assigned to a distribution resource, the degree of influence on the assigned task of the distribution resource; the execution index is used to represent that the task to be assigned is assigned to a distribution resource, and the distribution resource completes the task The degree of smooth execution.
在本实施例的一个可选实现方式中,如图12所示,所述计算模块702包括:In an optional implementation manner of this embodiment, as shown in FIG. 12, the calculation module 702 includes:
第四估计子模块1201,被配置为根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述可用配送资源已分配任务的配送时间变化值,将其作为所述影响指数;The fourth estimation sub-module 1201 is configured to: after the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time change value of the available distribution resource has been assigned as the task The impact index;
第五估计子模块1202,被配置为根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述待分配任务的配送时间值,将其作为所述执行指数;The fifth estimation sub-module 1202 is configured to estimate, according to task information of the task to be assigned, a delivery time value of the task to be assigned after the task to be assigned is allocated to the available distribution resource, and use the same as the execution index ;
加权子模块1203,被配置为根据所述可用配送资源的配送能力指数对于所述影响指数和执行指数进行加权,得到所述适配指数。The weighting sub-module 1203 is configured to weight the impact index and the execution index according to a distribution capability index of the available distribution resources to obtain the adaptation index.
在本实施例的一个可选实现方式中,所述分配模块703包括:In an optional implementation manner of this embodiment, the allocating module 703 includes:
分配子模块,被配置为当将所述待分配任务分配给所述可用配送资源后,所述配送资源的已分配任务量小于所述最高配送任务量,且所述适配指数处于预设指数范围内时,将所述待分配任务分配给相应的配送资源。An allocation submodule configured to allocate, when the task to be assigned, the available distribution resource, the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is at a preset index When the range is within, the task to be assigned is assigned to the corresponding distribution resource.
应当理解,图7-图12中记载的诸模块、子模块、单元或子单元与参考图1-图6描述的方法中的各个步骤相对应。由此,上文针对方法描 述的操作和特征同样适用于图7-图12中的装置及其中包含的模块、子模块、单元或子单元,在此不再赘述。It should be understood that the modules, sub-modules, units or sub-units illustrated in Figures 7-12 correspond to the various steps in the method described with reference to Figures 1-6. Thus, the operations and features described above for the method are equally applicable to the apparatus of Figures 7-12 and the modules, sub-modules, units or sub-units thereof, and are not described herein.
本公开还公开了一种电子设备,图13示出根据本公开一实施方式的电子设备的结构框图,如图13所示,所述电子设备1300包括存储器1301和处理器1302;其中,The present disclosure also discloses an electronic device. FIG. 13 is a block diagram showing the structure of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 13, the electronic device 1300 includes a memory 1301 and a processor 1302.
所述存储器1301用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器1302执行以实现上述任一方法步骤。The memory 1301 is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor 1302 to implement any of the method steps described above.
图14适于用来实现根据本公开实施方式的配送任务分配方法的计算机系统的结构示意图。14 is a block diagram showing the structure of a computer system suitable for implementing a delivery task assignment method in accordance with an embodiment of the present disclosure.
如图14所示,计算机系统1400包括中央处理单元(CPU)1401,其可以根据存储在只读存储器(ROM)1402中的程序或者从存储部分1408加载到随机访问存储器(RAM)1403中的程序而执行上述图1-6所示的实施方式中的各种处理。在RAM1403中,还存储有系统1400操作所需的各种程序和数据。CPU1401、ROM1402以及RAM1403通过总线1404彼此相连。输入/输出(I/O)接口1405也连接至总线1404。As shown in FIG. 14, computer system 1400 includes a central processing unit (CPU) 1401 that can be loaded into a program in random access memory (RAM) 1403 in accordance with a program stored in read only memory (ROM) 1402 or from storage portion 1408. The various processes in the embodiment shown in Figures 1-6 above are performed. In the RAM 1403, various programs and data required for the operation of the system 1400 are also stored. The CPU 1401, the ROM 1402, and the RAM 1403 are connected to each other through a bus 1404. An input/output (I/O) interface 1405 is also coupled to bus 1404.
以下部件连接至I/O接口1405:包括键盘、鼠标等的输入部分1406;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1407;包括硬盘等的存储部分1408;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1409。通信部分1409经由诸如因特网的网络执行通信处理。驱动器1410也根据需要连接至I/O接口1405。可拆卸介质1411,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1410上,以便于从其上读出的计算机程序根据需要被安装入存储部分1408。The following components are connected to the I/O interface 1405: an input portion 1406 including a keyboard, a mouse, etc.; an output portion 1407 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker; a storage portion 1408 including a hard disk or the like And a communication portion 1409 including a network interface card such as a LAN card, a modem, or the like. The communication section 1409 performs communication processing via a network such as the Internet. Driver 1410 is also coupled to I/O interface 1405 as needed. A removable medium 1411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like is mounted on the drive 1410 as needed so that a computer program read therefrom is installed into the storage portion 1408 as needed.
特别地,根据本公开的实施方式,上文参考图1-6描述的方法可以被实现为计算机软件程序。例如,本公开的实施方式包括一种计算机程序产品,其包括有形地包含在及其可读介质上的计算机程序,所述计算机程序包含用于执行图1-6的配送任务分配方法的程序代码。在这样的实施方式中,该计算机程序可以通过通信部分1409从网络上被下载和安装,和/或从可拆卸介质1411被安装。In particular, according to embodiments of the present disclosure, the methods described above with reference to Figures 1-6 may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product comprising a computer program tangibly embodied on a readable medium therewith, the computer program comprising program code for performing the distribution task assignment method of FIGS. 1-6 . In such an embodiment, the computer program can be downloaded and installed from the network via the communication portion 1409, and/or installed from the removable medium 1411.
附图中的流程图和框图,图示了按照本公开各种实施方式的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,路程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products in accordance with various embodiments of the present disclosure. In this regard, each block in the diagram or block diagram can represent a module, a program segment, or a portion of code that includes one or more of Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开实施方式中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定。The units or modules described in the embodiments of the present disclosure may be implemented by software or by hardware. The described units or modules may also be provided in a processor, the names of which do not in any way constitute a limitation of the unit or module itself.
作为另一方面,本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施方式中所述装置中所包含的计算机可读存储介质;也可以是单独存在,未装配入设备中的计算机可读存储介质。计算机可读存储介质存储有一个或者一个以上程序,所述程序被一个或者一个以上的处理器用来执行描述于本公开的方法。In another aspect, the present disclosure further provides a computer readable storage medium, which may be a computer readable storage medium included in the apparatus in the above embodiment; or may exist separately, not A computer readable storage medium that is assembled into the device. A computer readable storage medium stores one or more programs that are used by one or more processors to perform the methods described in the present disclosure.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and a description of the principles of the applied technology. It should be understood by those skilled in the art that the scope of the invention referred to in the present disclosure is not limited to the specific combination of the above technical features, and should also be covered by the above technical features without departing from the inventive concept. Other technical solutions formed by any combination of their equivalent features. For example, the above features are combined with technical features disclosed in the present disclosure, but not limited to, technical features having similar functions.

Claims (20)

  1. 一种配送任务分配方法,包括:A distribution task allocation method includes:
    获取可用配送资源的配送能力指数,其中,所述配送能力指数用于表征所述可用配送资源的配送能力;Obtaining a distribution capability index of available distribution resources, wherein the distribution capability index is used to characterize a distribution capability of the available distribution resources;
    根据所述待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,其中,所述任务信息包括该待分配任务的取货地址和送货地址,所述适配指数用于表征将所述待分配任务分配给所述可用配送资源的适合程度;Calculating, according to the task information of the task to be assigned and the distribution capability index of the available distribution resource, an adaptation index for assigning the task to be allocated to the available distribution resource, wherein the task information includes a pickup of the task to be assigned An address and a shipping address, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
    当所述适配指数满足预设条件时,将所述待分配任务分配给相应的配送资源。When the adaptation index meets a preset condition, the task to be assigned is allocated to a corresponding distribution resource.
  2. 根据权利要求1所述的方法,其中,所述配送能力指数包括:行进速度、配送速度、最高配送任务量中的一种或多种。The method of claim 1, wherein the distribution capability index comprises one or more of a travel speed, a delivery speed, and a maximum delivery task amount.
  3. 根据权利要求2所述的方法,所述获取可用配送资源的配送能力指数,包括:The method of claim 2, wherein the obtaining a distribution capability index of available distribution resources comprises:
    根据配送资源在第一预设历史时间段内的历史行进数据估计所述配送资源的行进速度;Estimating a travel speed of the distribution resource according to historical travel data of the distribution resource within a first preset historical time period;
    根据配送资源在第二预设历史时间段内的历史配送数据估计所述配送资源的配送速度;Estimating the delivery speed of the distribution resource according to the historical distribution data of the distribution resource in the second preset historical time period;
    根据配送资源在第三预设历史时间段内的历史配送数据估计所述配送资源的最高配送任务量。Estimating the highest delivery task amount of the distribution resource according to the historical distribution data of the distribution resource in the third preset historical time period.
  4. 根据权利要求3所述的方法,所述根据配送资源在第一预设历史时间段内的历史行进数据估计所述配送资源的行进速度,包括:The method of claim 3, the estimating a travel speed of the distribution resource according to historical travel data of a distribution resource in a first preset historical time period, comprising:
    根据所述历史行进数据计算第一预设时间区间内配送资源的行进速度,其中,所述第一预设时间区间小于所述第一预设历史时间段;Calculating, according to the historical travel data, a travel speed of the distribution resource in the first preset time interval, where the first preset time interval is smaller than the first preset historical time period;
    对第一预设时间区间内配送资源的行进速度进行加权求和,得到所述配送资源的行进速度。The traveling speed of the distribution resource in the first preset time interval is weighted and summed to obtain the traveling speed of the distribution resource.
  5. 根据权利要求3所述的方法,所述根据配送资源在第二预设历史时间段内的历史配送数据估计所述配送资源的配送速度,包括:The method according to claim 3, wherein the estimating the delivery speed of the distribution resource according to the historical distribution data of the distribution resource in the second preset historical time period comprises:
    根据所述历史配送数据计算第二预设时间区间内配送资源的配送速度,其中,所述第二预设时间区间小于所述第二预设历史时间段;Calculating, according to the historical distribution data, a delivery speed of the distribution resource in the second preset time interval, wherein the second preset time interval is smaller than the second preset historical time period;
    对第二预设时间区间内配送资源的配送速度进行加权求和,得到所述配送资源的配送速度。The distribution speed of the distribution resources in the second preset time interval is weighted and summed, and the delivery speed of the distribution resources is obtained.
  6. 根据权利要求3所述的方法,所述根据配送资源在第三预设历史时间段内的历史配送数据估计所述配送资源的最高配送任务量,包括:The method according to claim 3, wherein the estimating the highest delivery task amount of the distribution resource according to the historical distribution data of the distribution resource in the third preset historical time period comprises:
    对于未出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内某时刻预计按时完成且实际按时完成的第一最大配送任务数量,其中,所述第三预设时间区间小于所述第三预设历史时间段;For the distribution resource that does not have timeout delivery, calculate the first maximum number of delivery tasks that are expected to be completed on time and actually completed on time at a certain time in the third preset time interval of the third preset historical time period, wherein The third preset time interval is smaller than the third preset historical time period;
    将所述第一最大配送任务数量中的最大值确认为第一配送任务数量;Determining the maximum value of the first maximum number of delivery tasks as the first number of delivery tasks;
    对于出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内存在超时任务时,某时刻所承载的预计按时完成且实际按时完成的第二最大配送任务数量,其中,所述超时任务的超时时间大于预设时间阈值;For the distribution resource with timeout delivery, calculate the second largest delivery that is expected to be completed on time and actually completed on time when there is a timeout task in the third preset time interval of the third preset historical time period. The number of tasks, wherein the timeout period of the timeout task is greater than a preset time threshold;
    将所述第二最大配送任务数量中的最小值确认为第二配送任务数量;Determining a minimum value of the second maximum number of delivery tasks as a second number of delivery tasks;
    对所述第一配送任务数量和所述第二配送任务数量进行加权求和,得到所述配送资源的最高配送任务量。And weighting the first number of delivery tasks and the number of the second delivery tasks to obtain a maximum delivery task quantity of the distribution resource.
  7. 根据权利要求2所述的方法,其中,所述适配指数包括:对于配送资源已分配任务的影响指数,和/或所述待分配任务的执行指数。The method of claim 2, wherein the adaptation index comprises an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned.
  8. 根据权利要求7所述的方法,所述根据待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,包括:The method according to claim 7, wherein the calculating an adaptation index for assigning the task to be allocated to the available distribution resource according to task information of a task to be assigned and a distribution capability index of available distribution resources comprises:
    根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述可用配送资源已分配任务的配送时间变化值,将其作为所述影响指数;After the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time change value of the available distribution resource has been assigned as the impact index;
    根据待分配任务的任务信息估计将所述待分配任务分配给所述可 用配送资源后,所述待分配任务的配送时间值,将其作为所述执行指数;Determining, according to the task information of the task to be assigned, the delivery time value of the task to be assigned, after the task to be assigned is allocated to the available distribution resource, as the execution index;
    根据所述可用配送资源的配送能力指数对于所述影响指数和执行指数进行加权,得到所述适配指数。The adaptation index is obtained by weighting the impact index and the execution index according to a distribution capability index of the available distribution resources.
  9. 根据权利要求7所述的方法,所述当适配指数满足预设条件时,将所述待分配任务分配给相应的配送资源,包括:The method according to claim 7, wherein when the adaptation index meets the preset condition, the task to be assigned is allocated to the corresponding distribution resource, including:
    当将所述待分配任务分配给所述可用配送资源后,所述配送资源的已分配任务量小于所述最高配送任务量,且所述适配指数处于预设指数范围内时,将所述待分配任务分配给相应的配送资源。After the task to be assigned is allocated to the available distribution resource, the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is within a preset index range, The tasks to be assigned are assigned to the corresponding distribution resources.
  10. 一种配送任务分配装置,包括:A distribution task distribution device, comprising:
    获取模块,被配置为获取可用配送资源的配送能力指数,其中,所述配送能力指数用于表征所述可用配送资源的配送能力;An acquisition module configured to obtain a distribution capability index of available distribution resources, wherein the distribution capability index is used to characterize a distribution capability of the available distribution resources;
    计算模块,被配置为根据所述待分配任务的任务信息和可用配送资源的配送能力指数计算将所述待分配任务分配给所述可用配送资源的适配指数,其中,所述任务信息包括该待分配任务的取货地址和送货地址,所述适配指数用于表征将所述待分配任务分配给所述可用配送资源的适合程度;a calculation module, configured to calculate, according to task information of the task to be assigned and a distribution capability index of an available distribution resource, an adaptation index that assigns the task to be allocated to the available distribution resource, wherein the task information includes the a pickup address and a delivery address of the task to be assigned, the adaptation index being used to characterize a degree of suitability of assigning the task to be assigned to the available distribution resource;
    分配模块,被配置为当所述适配指数满足预设条件时,将所述待分配任务分配给相应的配送资源。And an allocating module configured to allocate the to-be-assigned task to a corresponding distribution resource when the adaptation index meets a preset condition.
  11. 根据权利要求10所述的装置,其中,所述配送能力指数包括:行进速度、配送速度、最高配送任务量中的一种或多种。The apparatus of claim 10, wherein the distribution capability index comprises one or more of a travel speed, a delivery speed, and a maximum delivery task amount.
  12. 根据权利要求11所述的装置,所述获取模块包括:The apparatus according to claim 11, wherein the obtaining module comprises:
    第一估计子模块,被配置为根据配送资源在第一预设历史时间段内的历史行进数据估计所述配送资源的行进速度;a first estimation submodule configured to estimate a travel speed of the distribution resource according to historical travel data of the distribution resource within a first preset historical time period;
    第二估计子模块,被配置为根据配送资源在第二预设历史时间段内的历史配送数据估计所述配送资源的配送速度;a second estimation submodule configured to estimate a delivery speed of the distribution resource according to historical distribution data of the distribution resource in a second preset historical time period;
    第三估计子模块,被配置为根据配送资源在第三预设历史时间段内的历史配送数据估计所述配送资源的最高配送任务量。The third estimation submodule is configured to estimate a maximum delivery task amount of the distribution resource according to historical distribution data of the distribution resource in the third preset historical time period.
  13. 根据权利要求12所述的装置,所述第一估计子模块包括:The apparatus of claim 12, the first estimation sub-module comprising:
    第一计算单元,被配置为根据所述历史行进数据计算第一预设时间 区间内配送资源的行进速度,其中,所述第一预设时间区间小于所述第一预设历史时间段;a first calculating unit, configured to calculate a traveling speed of the distribution resource in the first preset time interval according to the historical traveling data, wherein the first preset time interval is smaller than the first preset historical time period;
    第一求和单元,被配置为对第一预设时间区间内配送资源的行进速度进行加权求和,得到所述配送资源的行进速度。The first summation unit is configured to perform weighted summation of the travel speeds of the distribution resources in the first preset time interval to obtain the travel speed of the distribution resources.
  14. 根据权利要求12所述的装置,所述第二估计子模块包括:The apparatus of claim 12, the second estimation sub-module comprising:
    第二计算单元,被配置为根据所述历史配送数据计算第二预设时间区间内配送资源的配送速度,其中,所述第二预设时间区间小于所述第二预设历史时间段;a second calculating unit, configured to calculate a delivery speed of the distribution resource in the second preset time interval according to the historical distribution data, wherein the second preset time interval is smaller than the second preset historical time period;
    第二求和单元,被配置为对第二预设时间区间内配送资源的配送速度进行加权求和,得到所述配送资源的配送速度。The second summation unit is configured to perform weighted summation of the delivery speeds of the distribution resources in the second preset time interval to obtain a delivery speed of the distribution resources.
  15. 根据权利要求12所述的装置,所述第三估计子模块包括:The apparatus of claim 12, the third estimation sub-module comprising:
    第三计算单元,被配置为对于未出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内某时刻预计按时完成且实际按时完成的第一最大配送任务数量,其中,所述第三预设时间区间小于所述第三预设历史时间段;a third calculating unit configured to calculate, for a distribution resource that does not have a timeout delivery, a first maximum that is expected to be completed on time and actually completed on time at a certain time in the third preset time interval of the third preset historical time period a number of delivery tasks, wherein the third preset time interval is smaller than the third preset historical time period;
    第一确认单元,被配置为将所述第一最大配送任务数量中的最大值确认为第一配送任务数量;a first confirmation unit configured to confirm a maximum value of the first maximum number of delivery tasks as a first number of delivery tasks;
    第四计算单元,被配置为对于出现超时配送的配送资源,计算其在所述第三预设历史时间段的第三预设时间区间内存在超时任务时,某时刻所承载的预计按时完成且实际按时完成的第二最大配送任务数量,其中,所述超时任务的超时时间大于预设时间阈值;The fourth calculating unit is configured to calculate, when the timeout task exists in the third preset time interval of the third preset historical time period, the estimated time carried by the timed completion is completed on time and The second maximum number of delivery tasks that are actually completed on time, wherein the timeout period of the timeout task is greater than a preset time threshold;
    第二确认单元,被配置为将所述第二最大配送任务数量中的最小值确认为第二配送任务数量;a second confirmation unit configured to confirm a minimum value of the second maximum number of delivery tasks as a second number of delivery tasks;
    第三求和单元,被配置为对所述第一配送任务数量和所述第二配送任务数量进行加权求和,得到所述配送资源的最高配送任务量。The third summation unit is configured to perform weighted summation of the first number of delivery tasks and the second number of delivery tasks to obtain a maximum delivery task amount of the distribution resource.
  16. 根据权利要求11所述的装置,其中,所述适配指数包括:对于配送资源已分配任务的影响指数,和/或所述待分配任务的执行指数。The apparatus of claim 11, wherein the adaptation index comprises an impact index for a distributed resource assigned task, and/or an execution index of the task to be assigned.
  17. 根据权利要求16所述的装置,所述计算模块包括:The apparatus of claim 16, the computing module comprising:
    第四估计子模块,被配置为根据待分配任务的任务信息估计将所述 待分配任务分配给所述可用配送资源后,所述可用配送资源已分配任务的配送时间变化值,将其作为所述影响指数;a fourth estimation submodule configured to: after the task to be assigned is allocated to the available distribution resource according to the task information of the task to be assigned, the delivery time change value of the available distribution resource has been assigned as a location Impact index
    第五估计子模块,被配置为根据待分配任务的任务信息估计将所述待分配任务分配给所述可用配送资源后,所述待分配任务的配送时间值,将其作为所述执行指数;a fifth estimation sub-module, configured to estimate, according to task information of the task to be assigned, a delivery time value of the to-be-assigned task after the task to be assigned is allocated to the available distribution resource, as the execution index;
    加权子模块,被配置为根据所述可用配送资源的配送能力指数对于所述影响指数和执行指数进行加权,得到所述适配指数。And a weighting sub-module configured to weight the impact index and the execution index according to a distribution capability index of the available distribution resource to obtain the adaptation index.
  18. 根据权利要求16所述的装置,所述分配模块包括:The apparatus of claim 16, the distribution module comprising:
    分配子模块,被配置为当将所述待分配任务分配给所述可用配送资源后,所述配送资源的已分配任务量小于所述最高配送任务量,且所述适配指数处于预设指数范围内时,将所述待分配任务分配给相应的配送资源。An allocation submodule configured to allocate, when the task to be assigned, the available distribution resource, the allocated task amount of the distribution resource is less than the highest delivery task amount, and the adaptation index is at a preset index When the range is within, the task to be assigned is assigned to the corresponding distribution resource.
  19. 一种电子设备,其特征在于,包括存储器和处理器;其中,An electronic device, comprising: a memory and a processor; wherein
    所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行以实现权利要求1-9任一项所述的方法步骤。The memory is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of any of claims 1-9.
  20. 一种计算机可读存储介质,其上存储有计算机指令,其特征在于,该计算机指令被处理器执行时实现权利要求1-9任一项所述的方法步骤。A computer readable storage medium having stored thereon computer instructions, wherein the computer instructions are executed by a processor to perform the method steps of any of claims 1-9.
PCT/CN2019/075572 2018-04-09 2019-02-20 Method for allocating distribution task, apparatus, electronic device and computer storage medium WO2019196561A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810312339.3 2018-04-09
CN201810312339.3A CN108564269B (en) 2018-04-09 2018-04-09 Distribution task allocation method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
WO2019196561A1 true WO2019196561A1 (en) 2019-10-17

Family

ID=63534409

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075572 WO2019196561A1 (en) 2018-04-09 2019-02-20 Method for allocating distribution task, apparatus, electronic device and computer storage medium

Country Status (2)

Country Link
CN (1) CN108564269B (en)
WO (1) WO2019196561A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108564269B (en) * 2018-04-09 2021-07-30 北京星选科技有限公司 Distribution task allocation method and device, electronic equipment and computer storage medium
CN110020953A (en) * 2018-10-25 2019-07-16 阿里巴巴集团控股有限公司 Data distributing method, device, electronic equipment and computer readable storage medium
CN109636276A (en) * 2018-11-29 2019-04-16 拉扎斯网络科技(上海)有限公司 Method and device for evaluating delivery resource capacity, allocating orders and scheduling delivery resources
CN109615201B (en) * 2018-11-30 2021-02-09 拉扎斯网络科技(上海)有限公司 Order allocation method and device, electronic equipment and storage medium
CN109508917B (en) * 2019-01-24 2021-07-09 拉扎斯网络科技(上海)有限公司 Order distribution method, order distribution device, storage medium and electronic equipment
CN110472769A (en) * 2019-07-03 2019-11-19 天津五八到家科技有限公司 Transport task processing method, device and electronic equipment
CN112241856A (en) * 2019-07-16 2021-01-19 拉扎斯网络科技(上海)有限公司 Distribution resource management method, distribution resource management device, electronic equipment and computer storage medium
CN110390504A (en) * 2019-07-18 2019-10-29 拉扎斯网络科技(上海)有限公司 Data processing method and device, readable storage medium and electronic equipment
CN110717690A (en) * 2019-10-22 2020-01-21 拉扎斯网络科技(上海)有限公司 Distribution resource management method, distribution resource management device, electronic equipment and computer storage medium
CN111369137A (en) * 2020-03-03 2020-07-03 拉扎斯网络科技(上海)有限公司 Distribution method, distribution device, server and storage medium of distribution tasks
CN113222282B (en) * 2021-05-31 2024-06-18 北京京东乾石科技有限公司 Transport path determining method and apparatus, readable storage medium, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982428A (en) * 2012-10-22 2013-03-20 王新颖 Delivery sub-module of digital logistics management system
CN107094165A (en) * 2016-08-31 2017-08-25 阿里巴巴集团控股有限公司 Distribution capacity is determined, dispatching task obtains, dispenses resource regulating method and equipment
CN107844882A (en) * 2017-08-24 2018-03-27 北京小度信息科技有限公司 Dispense task processing method, device and electronic equipment
CN108564269A (en) * 2018-04-09 2018-09-21 北京小度信息科技有限公司 Dispense method for allocating tasks, device, electronic equipment and computer storage media

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105719008A (en) * 2015-05-22 2016-06-29 北京小度信息科技有限公司 Method and device for performing optimization on delivery system
US10819776B2 (en) * 2016-08-28 2020-10-27 Vmware, Inc. Automated resource-price calibration and recalibration by an automated resource-exchange system
CN107748923A (en) * 2016-08-29 2018-03-02 北京三快在线科技有限公司 Order processing method, apparatus and server
CN107092974B (en) * 2016-11-29 2021-02-09 北京星选科技有限公司 Distribution pressure prediction method and device
CN107220789B (en) * 2017-05-15 2020-08-25 浙江仟和网络科技有限公司 Logistics distribution scheduling method and system
CN107403296B (en) * 2017-06-29 2020-12-01 北京星选科技有限公司 Transport capacity configuration method and device
CN107464018B (en) * 2017-08-01 2020-12-01 北京同城必应科技有限公司 Distribution path optimization method and device, computer equipment and storage medium
JP6280277B1 (en) * 2017-09-05 2018-02-14 Advocaat株式会社 Paid transportation vehicle dispatch system and program
CN107563572B (en) * 2017-09-27 2020-11-03 北京同城必应科技有限公司 Order allocation method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982428A (en) * 2012-10-22 2013-03-20 王新颖 Delivery sub-module of digital logistics management system
CN107094165A (en) * 2016-08-31 2017-08-25 阿里巴巴集团控股有限公司 Distribution capacity is determined, dispatching task obtains, dispenses resource regulating method and equipment
CN107844882A (en) * 2017-08-24 2018-03-27 北京小度信息科技有限公司 Dispense task processing method, device and electronic equipment
CN108564269A (en) * 2018-04-09 2018-09-21 北京小度信息科技有限公司 Dispense method for allocating tasks, device, electronic equipment and computer storage media

Also Published As

Publication number Publication date
CN108564269B (en) 2021-07-30
CN108564269A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
WO2019196561A1 (en) Method for allocating distribution task, apparatus, electronic device and computer storage medium
CN108335071B (en) Distribution task allocation method and device, electronic equipment and computer storage medium
WO2019205784A1 (en) Delivery task allocation method and apparatus, electronic device and computer storage medium
JP6480642B2 (en) Stochastic bandwidth adjustment
US8701117B2 (en) Resource consumption template processing model
WO2019037367A1 (en) Delivery task processing method and apparatus, and electronic device
US8266289B2 (en) Concurrent data processing in a distributed system
CN107341050B (en) Service processing method and device based on dynamic thread pool
US9405588B2 (en) Cloud resource allocation system and method
CN108154298B (en) Distribution task allocation method and device, electronic equipment and computer storage medium
CN115134368B (en) Load balancing method, device, equipment and storage medium
WO2021104349A1 (en) Cloud resource management method and apparatus, and electronic device and computer readable storage medium
US9760847B2 (en) Tenant selection in quota enforcing request admission mechanisms for shared applications
CN112686528B (en) Method, device, server and medium for distributing customer service resources
US9665409B2 (en) Methods and apparatus facilitating access to storage among multiple computers
CN109636227A (en) Task allocation method and device, electronic equipment and computer readable storage medium
CN111107075A (en) Request response method and device, electronic equipment and computer-readable storage medium
CN106407007B (en) Cloud resource configuration optimization method for elastic analysis process
CN109347982A (en) A kind of dispatching method and device of data center
CN112232613A (en) Task scheduling method and device, electronic equipment and computer readable storage medium
US20210117237A1 (en) Method, devices and computer program products for resource usage
WO2019037368A1 (en) Delivery task processing method and apparatus, electronic device, and computer storage medium
CN109842665B (en) Task processing method and device for task allocation server
CN114489463B (en) Method and device for dynamically adjusting QOS of storage volume and computing equipment
CN111694670B (en) Resource allocation method, apparatus, device and computer readable medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19785866

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19785866

Country of ref document: EP

Kind code of ref document: A1