用于分拣货物的方法和装置Method and apparatus for sorting goods
相关申请的交叉引用Cross-reference to related applications
本专利申请要求于2017年10月11日提交的、申请号为201710940128.X、申请人为北京京东尚科信息技术有限公司和北京京东世纪贸易有限公司、发明名称为“用于分拣货物的方法和装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。This patent application claims to be submitted on October 11, 2017, the application number is 201710940128.X, the applicant is Beijing Jingdong Shangke Information Technology Co., Ltd. and Beijing Jingdong Century Trading Co., Ltd., and the invention is entitled "Method for sorting goods" The priority of the Chinese Patent Application, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本申请涉及计算机技术领域,具体涉及仓储物流技术领域,尤其涉及用于分拣货物的方法和装置。The present application relates to the field of computer technology, and in particular to the field of warehousing logistics technology, and more particularly to a method and apparatus for sorting goods.
背景技术Background technique
随着电子商务的不断发展,仓储物流技术也显得尤为重要。在订单量巨大的情况下,如何将订单所指示的货物从仓库中快速分拣出来,是仓储物流技术所涉及的技术问题。With the continuous development of e-commerce, warehousing and logistics technology is also particularly important. In the case of a large order quantity, how to quickly sort out the goods indicated by the order from the warehouse is a technical problem involved in the warehousing logistics technology.
现有的货物分拣方式,通常是将订单分配至待分拣订单数最少的分拣单元,但是,这种方式存在着分拣效率较低的问题。The existing sorting method of goods is usually to assign the order to the sorting unit with the least number of orders to be sorted. However, this method has the problem of low sorting efficiency.
发明内容Summary of the invention
本申请实施例的目的在于提出一种改进的用于分拣货物的方法和装置,来解决以上背景技术部分提到的技术问题。It is an object of embodiments of the present application to provide an improved method and apparatus for sorting goods to solve the technical problems mentioned in the background section above.
第一方面,本申请实施例提供了一种用于分拣货物的方法,上述方法包括:获取待分配订单组中各个待分配订单包括的货物信息;获取目标分拣单元关联的待分拣订单包括的货物信息;根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单;将选取出的待分配订单分配至目标分拣单元。In a first aspect, the embodiment of the present application provides a method for sorting goods, where the method includes: obtaining goods information included in each order to be allocated in an order group to be allocated; and acquiring a to-be-sorted order associated with the target sorting unit. The included goods information; according to the matching degree of the goods information included in each order to be allocated and the goods information included in the order to be sorted, the order to be allocated is selected from the group to be allocated; the selected order to be allocated is allocated to the target sorting unit.
在一些实施例中,获取待分配订单组中各个待分配订单包括的货物信息之前,方法还包括:获取待分配订单集合中各个待分配订单的订单信息,其中,订单信息包括优先级信息和时间信息;根据优先级信息以及时间信息所指示的时间与当前时间之间的间隔时长是否大于预设时长阈值,对待分配订单集合中各个待分配订单进行分组,得到待分配订单组。In some embodiments, before acquiring the goods information included in each to-be-allocated order in the to-be-distributed order group, the method further includes: acquiring order information of each to-be-allocated order in the to-be-distributed order set, wherein the order information includes priority information and time Information: According to the priority information and the time interval between the time indicated by the time information and the current time is greater than the preset duration threshold, each to-be-allocated order in the set of the order to be allocated is grouped to obtain an order group to be allocated.
在一些实施例中,根据优先级信息以及时间信息所指示的时间与当前时间之间的间隔时长是否大于预设时长阈值,对待分配订单集合中各个待分配订单进行分组,得到待分配订单组,包括:查找待分配订单集合中优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单;响应于查找出优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单,将查找出的待分配订单确定为待分配订单组中的订单;响应于未查找出优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单,将待分配订单集合中的订单确定为待分配订单组中的订单。In some embodiments, according to the priority information and whether the interval between the time indicated by the time information and the current time is greater than a preset duration threshold, each of the to-be-allocated orders in the set of the order to be allocated is grouped to obtain an order group to be allocated. The method includes: searching for the priority information in the to-be-distributed order set to match the preset information, or the time interval between the time indicated by the time information and the current time is not greater than the preset time threshold; and determining the priority information The order to be allocated is matched with the preset information, or the time interval between the time indicated by the time information and the current time is not greater than the preset time threshold, and the found order to be allocated is determined as the order in the order group to be allocated; If the priority information is not matched with the preset information, or the time interval between the time indicated by the time information and the current time is not greater than the preset time threshold, the order in the order to be allocated is determined to be Assign orders in the order group.
在一些实施例中,目标分拣单元是经由以下步骤确定的:获取各个分拣单元关联的待分拣订单数;将待分拣订单数最小的分拣单元确定为目标分拣单元。In some embodiments, the target sorting unit is determined by acquiring the number of orders to be sorted associated with each sorting unit; and determining the sorting unit having the smallest number of orders to be sorted as the target sorting unit.
在一些实施例中,获取待分配订单组中各个待分配订单包括的货物信息,包括:确定是否存在待分拣订单数小于待分拣订单阈值的分拣单元;响应于确定出不存在待分拣订单数小于待分拣订单阈值的分拣单元,获取待分配订单组中各个待分配订单包括的货物信息。In some embodiments, obtaining the cargo information included in each to-be-allocated order in the to-be-distributed order group includes: determining whether there is a sorting unit whose number of orders to be sorted is smaller than a threshold of the to-be-ordered order; and determining that there is no waiting to be determined The sorting unit whose number of orders is smaller than the threshold of the order to be sorted is obtained, and the goods information included in each order to be allocated in the order group to be allocated is obtained.
在一些实施例中,各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度是经由以下步骤确定的:根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息,确定各个待分配订单与目标分拣单元关联的待分拣订单的货物种类重合数;根据各个待分配订单包括的货物信息确定各个待分配订单包括的货物种类数;根据所确定的货物种类重合数和所确定的货物种类数确定各个待分配订 单包括的货物信息和待分拣订单包括的货物信息的匹配度。In some embodiments, the matching degree of the cargo information included in each of the to-be-distributed orders and the cargo information included in the order to be sorted is determined by the following steps: the cargo information included in each of the orders to be dispensed and the goods included in the order to be sorted Information, determining the number of types of goods to be sorted for each order to be sorted associated with the target sorting unit; determining the number of types of goods included in each order to be allocated according to the information of the goods to be allocated for each order; according to the determined type of goods The coincidence number and the determined number of goods types determine the degree of matching of the cargo information included in each of the orders to be dispensed and the cargo information included in the order to be sorted.
在一些实施例中,根据所确定的货物种类重合数和所确定的货物种类数确定各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,包括:计算所确定的货物种类重合数和所确定的货物种类平方的比值;将计算的比值确定为各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度。In some embodiments, determining the matching degree of the cargo information included in each of the to-be-distributed orders and the cargo information included in the order to be sorted according to the determined number of coincidences of the goods and the determined number of goods, including: calculating the determined goods The ratio of the type coincidence number to the determined square of the cargo type; the calculated ratio is determined as the matching degree of the cargo information included in each of the orders to be dispensed and the cargo information included in the order to be sorted.
第二方面,本申请实施例提供了一种用于分拣货物的装置,上述装置包括:第一获取单元,用于获取待分配订单组中各个待分配订单包括的货物信息;第二获取单元,用于获取目标分拣单元关联的待分拣订单包括的货物信息;选取单元,用于根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单;分配单元,用于将选取出的待分配订单分配至目标分拣单元。In a second aspect, the embodiment of the present application provides an apparatus for sorting goods, where the apparatus includes: a first obtaining unit, configured to acquire goods information included in each to-be-distributed order in an order group to be allocated; and a second acquiring unit For obtaining the goods information included in the to-be-sorted order associated with the target sorting unit; the selecting unit is configured to select the order to be allocated according to the matching degree of the goods information included in each of the to-be-distributed orders and the goods information included in the order to be sorted The order to be allocated is selected in the group; the allocation unit is used to allocate the selected order to be allocated to the target sorting unit.
在一些实施例中,装置还包括:第三获取单元,用于获取待分配订单集合中各个待分配订单的订单信息,其中,订单信息包括优先级信息和时间信息;分组单元,用于根据优先级信息以及时间信息所指示的时间与当前时间之间的间隔时长是否大于预设时长阈值,对待分配订单集合中各个待分配订单进行分组,得到待分配订单组。In some embodiments, the apparatus further includes: a third obtaining unit, configured to acquire order information of each to-be-allocated order in the to-be-distributed order set, wherein the order information includes priority information and time information; and the grouping unit is configured to The level information and the interval between the time indicated by the time information and the current time are greater than the preset time threshold, and each of the to-be-allocated orders in the order to be allocated is grouped to obtain an order group to be allocated.
在一些实施例中,分组单元,进一步配置用于:查找待分配订单集合中优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单;响应于查找出优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单,将查找出的待分配订单确定为待分配订单组中的订单;响应于未查找出优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单,将待分配订单集合中的订单确定为待分配订单组中的订单。In some embodiments, the grouping unit is further configured to: find that the priority information in the to-be-distributed order set matches the preset information, or the interval between the time indicated by the time information and the current time is not greater than a preset duration threshold. The to-be-allocated order that is to be allocated in response to the finding that the priority information matches the preset information, or the time interval between the time indicated by the time information and the current time is not greater than the preset time threshold, and the to-be-allocated order to be allocated is found. The order is determined as an order in the order group to be allocated; in response to the unfinished priority information matching the preset information, or the time interval between the time indicated by the time information and the current time is not greater than the preset time threshold for the order to be allocated , the order in the order to be assigned is determined as the order in the order group to be allocated.
在一些实施例中,装置还包括目标分拣单元确定单元,目标分拣单元确定单元用于:获取各个分拣单元关联的待分拣订单数;将待分拣订单数最小的分拣单元确定为目标分拣单元。In some embodiments, the apparatus further includes a target sorting unit determining unit, configured to: acquire the number of orders to be sorted associated with each sorting unit; determine the sorting unit that minimizes the number of orders to be sorted Sort the unit for the target.
在一些实施例中,第一获取单元,进一步配置用于:确定是否存在待分拣订单数小于待分拣订单阈值的分拣单元;响应于确定出不存在待分拣订单数小于待分拣订单阈值的分拣单元,获取待分配订单组中各个待分配订单包括的货物信息。In some embodiments, the first obtaining unit is further configured to: determine whether there is a sorting unit whose number of orders to be sorted is smaller than a threshold of the order to be sorted; and in response to determining that there is no number of orders to be sorted, the number of orders to be sorted is smaller than that to be sorted The sorting unit of the order threshold obtains the goods information included in each order to be allocated in the order group to be allocated.
在一些实施例中,装置还包括匹配度确定单元,匹配度确定单元用于:根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息,确定各个待分配订单与目标分拣单元关联的待分拣订单的货物种类重合数;根据各个待分配订单包括的货物信息确定各个待分配订单包括的货物种类数;根据所确定的货物种类重合数和所确定的货物种类数确定各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度。In some embodiments, the apparatus further includes a matching degree determining unit, configured to: determine each of the to-be-allocated orders and the target sorting unit according to the cargo information included in each of the to-be-distributed orders and the cargo information included in the order to be sorted The number of the goods of the associated order to be sorted is determined; the number of goods included in each order to be allocated is determined according to the information of the goods included in each order to be dispensed; and the number of goods to be determined according to the determined number of types of goods and the number of goods determined The matching degree between the goods information included in the order and the goods information included in the order to be sorted.
在一些实施例中,匹配度确定单元进一步配置用于:计算所确定的货物种类重合数和所确定的货物种类平方的比值;将计算的比值确定为各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度。In some embodiments, the matching degree determining unit is further configured to: calculate a ratio of the determined number of coincidences of the goods and the determined square of the goods; determine the calculated ratio as the cargo information and the to-be-score included in each of the orders to be allocated The matching degree of the goods information included in the order.
第三方面,本申请实施例提供了一种设备,上述设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如第一方面的方法。In a third aspect, an embodiment of the present application provides an apparatus, where the apparatus includes: one or more processors; and a storage device, configured to store one or more programs, when the one or more programs are one or more of the foregoing The processor, when executed, causes the one or more processors described above to implement the method of the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面的方法。In a fourth aspect, an embodiment of the present application provides a computer readable storage medium having stored thereon a computer program, the program being implemented by the processor to implement the method of the first aspect.
本申请实施例提供的用于分拣货物的方法和装置,通过各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单,将选取出的待分配订单分配至目标分拣单元,提高了货物分拣效率。The method and apparatus for sorting goods provided by the embodiment of the present application, by selecting the matching degree of the goods information included in each to-be-allocated order and the goods information included in the order to be sorted, selecting an order to be allocated from the group to be allocated, The selected orders to be allocated are allocated to the target sorting unit, which improves the sorting efficiency of the goods.
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present application will become more apparent from the detailed description of the accompanying drawings.
图1是本申请可以应用于其中的示例性***架构图;1 is an exemplary system architecture diagram to which the present application can be applied;
图2是根据本申请的用于分拣货物的方法的一个实施例的流程图;2 is a flow chart of one embodiment of a method for sorting goods in accordance with the present application;
图3是根据本申请的用于分拣货物的方法的一个应用场景的示意图;3 is a schematic diagram of an application scenario of a method for sorting goods according to the present application;
图4是根据本申请的用于分拣货物的方法的又一个实施例的流程图;4 is a flow chart of still another embodiment of a method for sorting goods in accordance with the present application;
图5是根据本申请的用于分拣货物的装置的一个实施例的结构示意图;Figure 5 is a schematic structural view of one embodiment of an apparatus for sorting goods according to the present application;
图6是适于用来实现本申请实施例的电子设备的计算机***的结构示意图。FIG. 6 is a schematic structural diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention, rather than the invention. It is also to be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings.
图1示出了可以应用本申请的用于分拣货物的方法或用于分拣货物的装置的实施例的示例性***架构100。1 shows an exemplary system architecture 100 of an embodiment of a method for sorting goods or for sorting goods that can be applied to the present application.
如图1所示,***架构100可以包括货架穿梭车101、智能搬运机器人102、分拣机器人103,网络104和服务器105。网络104用以在货架穿梭车101、智能搬运机器人102、分拣机器人103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, the system architecture 100 can include a shelf shuttle 101, an intelligent handling robot 102, a sorting robot 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the shelf shuttle 101, the intelligent handling robot 102, the sorting robot 103, and the server 105. Network 104 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
货架穿梭车101、智能搬运机器人102、分拣机器人103可以通过网络104与服务器105交互,以接收或发送消息等。分拣单元可以包括分拣机器人103和若干槽位,槽位用于存储分拣机器人103分拣出的货物。The shelf shuttle 101, the intelligent handling robot 102, and the sorting robot 103 can interact with the server 105 via the network 104 to receive or transmit messages and the like. The sorting unit may include a sorting robot 103 and a plurality of slots for storing the goods sorted by the sorting robot 103.
服务器105可以是提供各种服务的服务器,例如可以获取待分配 订单组中各个待分配订单包括的货物信息,以及目标分拣单元关联的待分拣订单包括的货物信息,而后根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,最后从待分配订单组中选取待分配订单,并将选取出的待分配订单分配至目标分拣单元。而后,服务器可以控制货架穿梭车101、智能搬运机器人102、分拣机器人103等装置将订单包括的货物移动到目标分拣单元的槽位中。The server 105 may be a server that provides various services, for example, may obtain the cargo information included in each to-be-allocated order in the to-be-distributed order group, and the cargo information included in the to-be-sorted order associated with the target sorting unit, and then according to each to-be-allocated order. The matching of the included cargo information and the cargo information included in the order to be sorted, finally selecting the to-be-allocated order from the to-be-allocated order group, and assigning the selected to-be-allocated order to the target sorting unit. Then, the server can control the rack shuttle 101, the intelligent handling robot 102, the sorting robot 103, and the like to move the goods included in the order to the slots of the target sorting unit.
需要说明的是,本申请实施例所提供的用于分拣货物的方法一般由服务器105执行,相应地,用于分拣货物的装置一般设置于服务器105中。It should be noted that the method for sorting goods provided by the embodiments of the present application is generally performed by the server 105. Accordingly, the device for sorting goods is generally disposed in the server 105.
应该理解,图1中的货架穿梭车、智能搬运机器人、分拣机器人、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的货架穿梭车、智能搬运机器人、分拣机器人、网络和服务器。此外,除货架穿梭车、智能搬运机器人、分拣机器人外,***架构100中还可以包括六轴机器人等其他用于搬运或分拣货物的机械装置。It should be understood that the number of shelf shuttles, smart handling robots, sorting robots, networks, and servers in Figure 1 is merely illustrative. Depending on the needs of the implementation, there can be any number of shelf shuttles, smart handling robots, sorting robots, networks and servers. In addition, in addition to the shelf shuttle, the intelligent handling robot, and the sorting robot, the system architecture 100 may also include other mechanical devices for transporting or sorting goods, such as a six-axis robot.
继续参考图2,其示出了根据本申请的用于分拣货物的方法的一个实施例的流程200。上述的用于分拣货物的方法,包括以下步骤:With continued reference to FIG. 2, a flow 200 of one embodiment of a method for sorting goods in accordance with the present application is illustrated. The above method for sorting goods includes the following steps:
步骤201,获取待分配订单组中各个待分配订单包括的货物信息。Step 201: Acquire the goods information included in each to-be-allocated order in the order group to be allocated.
在本实施例中,用于分拣货物的方法运行于其上的电子设备(例如图1所示的服务器)可以从本地或其他电子设备(例如数据库服务器)获取待分配订单组中各个待分配订单包括的货物信息。待分配订单组可以包括电子商务平台中用户提交的订单。通常,用户提交订单后,可以确定订单中指示的货物需要从哪个仓库分拣出,并将此订单相关信息发送至所确定的仓库的服务器。服务器可以每隔预定时间间隔获取未处理的订单的集合,将获取到的订单的集合中的部分或全部订单作为一个订单组进行后续的处理。预定时间间隔可以根据实际需要进行设置,例如可以是1秒。In this embodiment, the electronic device on which the method for sorting goods is run (for example, the server shown in FIG. 1) can obtain each to-be-distributed in the group to be allocated from a local or other electronic device (for example, a database server). The goods information included in the order. The order group to be assigned may include an order submitted by a user in the e-commerce platform. Usually, after the user submits the order, it can determine from which warehouse the goods indicated in the order need to be sorted, and send the order related information to the server of the determined warehouse. The server may acquire a set of unprocessed orders at predetermined time intervals, and perform part or all of the orders in the set of acquired orders as an order group for subsequent processing. The predetermined time interval can be set according to actual needs, for example, it can be 1 second.
在本实施例中,货物信息可以与货品摆放的位置有关,例如货品摆放的货架的信息,通常货品摆放的货架与货物的种类有关,因此,货物信息也可以是货物种类,货物种类的分类可以是根据实际经验预先分类的,作为示例,洗发水和沐浴露可以归为日用品一类;还可以 将所有品牌的洗发水归为洗发水一类;还可以将不同品牌的洗发水归为不同的洗发水种类。In this embodiment, the cargo information may be related to the location where the goods are placed, such as the information of the shelves on which the goods are placed, and the shelves on which the goods are placed are generally related to the type of the goods. Therefore, the cargo information may also be the type of goods, the type of goods. The classification can be pre-classified according to actual experience. As an example, shampoo and shower gel can be classified as daily necessities; all brands of shampoo can be classified as shampoo; and shampoos of different brands can be returned. For different types of shampoo.
需要说明的是,可以根据货物标确定货物种类。作为示例,货物标识可以是货物的库存量单位(Stock Keeping Unit,SKU),可以根据SKU确定货物是否是同一种类,如果SKU相同,则为同一种货物,如果SKU不同,则为不同种类的获取。It should be noted that the type of goods can be determined according to the mark of the goods. As an example, the goods identification may be a Stock Keeping Unit (SKU), which may determine whether the goods are of the same kind according to the SKU, and if the SKUs are the same, the same goods, if the SKUs are different, the different types of acquisitions .
在本实施例的一些可选的实现方式中,获取待分配订单组中各个待分配订单包括的货物信息之前,方法还包括:获取待分配订单集合中各个待分配订单的订单信息,其中,订单信息包括优先级信息和时间信息;根据优先级信息以及时间信息所指示的时间与当前时间之间的间隔时长是否大于预设时长阈值,对待分配订单集合中各个待分配订单进行分组,得到待分配订单组。In some optional implementation manners of the embodiment, before acquiring the goods information included in each of the to-be-allocated orders in the to-be-distributed order group, the method further includes: obtaining order information of each to-be-allocated order in the to-be-distributed order set, where the order The information includes the priority information and the time information. The time interval between the time indicated by the priority information and the time information and the current time is greater than the preset duration threshold, and each of the to-be-allocated orders in the set of the order to be allocated is grouped to be allocated. Order group.
在本实施例的一些可选的实现方式中,根据优先级信息以及时间信息所指示的时间与当前时间之间的间隔时长是否大于预设时长阈值,对待分配订单集合中各个待分配订单进行分组,得到待分配订单组,包括:查找待分配订单集合中优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单;响应于查找出优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单,将查找出的待分配订单确定为待分配订单组中的订单;响应于未查找出优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单,将待分配订单集合中的订单确定为待分配订单组中的订单。In some optional implementation manners of the embodiment, the time interval between the time indicated by the priority information and the time information and the current time is greater than a preset duration threshold, and each of the to-be-allocated orders in the set of the order to be allocated is grouped. And obtaining an order group to be allocated, including: searching for an order to be allocated in which the priority information in the to-be-assigned order set matches the preset information, or the interval between the time indicated by the time information and the current time is not longer than the preset time threshold; In response to finding that the priority information matches the preset information, or the time interval between the time indicated by the time information and the current time is not greater than the preset time threshold, the found order to be allocated is determined to be allocated. The order to be assigned in the order group; the order to be allocated in response to the fact that the priority information is not matched with the preset information, or the time between the time indicated by the time information and the current time is not greater than the preset time threshold, The order in the collection is determined as the order in the order group to be assigned.
作为示例,优先级信息可以包括指示订单为紧急订单或普通订单的信息,可以根据优先级信息,将紧急订单为待分配订单。对于普通订单,如果这个普通订单的时间信息所指示的时间(可以是下单时间或接单时间)与当前时间之间的间隔时长大于预设时长阈值,则将此普通订单确定为待分配订单。可以理解,如果这个普通订单的时间信息所指示的时间与当前时间之间的间隔时长大于预设时长阈值,说明此待处理订单可能被放置的时间较长,应尽快分配,否则可能导致订 单货物配送延迟。As an example, the priority information may include information indicating that the order is a rush order or a normal order, and the rush order may be an order to be assigned based on the priority information. For a normal order, if the interval between the time indicated by the time information of the normal order (which may be the order time or the order time) and the current time is greater than the preset duration threshold, the normal order is determined as the order to be allocated. . It can be understood that if the interval between the time indicated by the time information of the ordinary order and the current time is greater than the preset duration threshold, it indicates that the pending order may be placed for a longer period of time and should be allocated as soon as possible, otherwise the order may be caused. Delivery delay.
在本实施例的一些可选的实现方式中,获取待分配订单组中各个待分配订单包括的货物信息,包括:确定是否存在待分拣订单数小于待分拣订单阈值的分拣单元;响应于确定出不存在待分拣订单数小于待分拣订单阈值的分拣单元,获取待分配订单组中各个待分配订单包括的货物信息。In some optional implementation manners of the embodiment, acquiring the goods information included in each to-be-allocated order in the to-be-distributed order group includes: determining whether there is a sorting unit whose number of orders to be sorted is smaller than a threshold of the to-be-ordered order; After determining that there is no sorting unit whose number of orders to be sorted is smaller than the threshold of the order to be sorted, the information of the goods included in each order to be allocated in the order group to be allocated is obtained.
在本实现方式中,待分拣订单阈值可以根据实际需要进行设置,例如可以是分拣单元可分拣订单总数的一半,通过待分拣订单数可以确定分拣单元分配到的分拣任务是否饱和,在各个分拣单元分配到的分拣任务较为饱和的情况下,通过分析货物的匹配度可以提高分拣效率。In this implementation manner, the threshold of the order to be sorted may be set according to actual needs, for example, may be half of the total number of orders that can be sorted by the sorting unit, and the number of orders to be sorted may determine whether the sorting task assigned by the sorting unit is Saturation, in the case that the sorting tasks assigned to each sorting unit are relatively saturated, the sorting efficiency can be improved by analyzing the matching degree of the goods.
步骤202,获取目标分拣单元关联的待分拣订单包括的货物信息。Step 202: Acquire the cargo information included in the to-be-sorted order associated with the target sorting unit.
在本实施例中,上述电子设备可以获取目标分拣单元关联的待分拣订单包括的货物信息。分拣单元可以是能够完成订单所指示的货物的分拣任务的单元,可以分拣一个或多个订单所指示的货物。例如,可以是仓库中具有若干个用于存储货物的槽位工作站。目标分拣单元。目标分拣单元可以是待为其分配订单的分拣单元,可以按照预设规则从所有分拣单元中选择分拣单元作为目标分拣单元。In this embodiment, the electronic device may acquire the cargo information included in the to-be-sorted order associated with the target sorting unit. The sorting unit may be a unit capable of completing the sorting task of the goods indicated by the order, and may sort the goods indicated by one or more orders. For example, there may be several slot stations in the warehouse for storing goods. Target sorting unit. The target sorting unit may be a sorting unit to which an order is to be assigned, and the sorting unit may be selected from all sorting units as a target sorting unit according to a preset rule.
在本实施例的一些可选的实现方式中,目标分拣单元是经由以下步骤确定的:获取各个分拣单元关联的待分拣订单数;将待分拣订单数最小的分拣单元确定为目标分拣单元。In some optional implementation manners of the embodiment, the target sorting unit is determined by acquiring the number of orders to be sorted associated with each sorting unit; determining the sorting unit having the smallest number of orders to be sorted as Target sorting unit.
在本实现方式中,通过将待分拣订单数最小的分拣单元确定为目标分拣单元,平衡了各个分拣单元的工作量。此外,也可以按照其他规则确定目标分拣单元,例如可以按照顺序,轮流将各个分拣单元确定为目标分拣单元。In the present implementation manner, the workload of each sorting unit is balanced by determining the sorting unit that minimizes the number of orders to be sorted as the target sorting unit. In addition, the target sorting unit may be determined according to other rules, for example, each sorting unit may be determined to be the target sorting unit in turn in order.
步骤203,根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单。Step 203: Select an order to be allocated from the to-be-allocated order group according to the matching degree of the goods information included in each to-be-distributed order and the goods information included in the to-be-ordered order.
在本实施例中,上述电子设备可以根据步骤201中获取的各个待分配订单包括的货物信息和步骤202中获取的待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单。货物信息的匹配 度可以用于表征货物摆放的距离,例如,货物信息为货物种类,货物属于同一种类,货物会摆放在同一位置或摆放较近,这样在向目标分拣单元运输货物时可以减少货物搬运的工作量。In this embodiment, the electronic device may select, according to the matching degree of the cargo information included in each of the to-be-distributed orders acquired in step 201 and the cargo information included in the to-be-sorted order acquired in step 202, from the to-be-distributed order group. Assign an order. The matching of the cargo information can be used to characterize the distance of the goods. For example, the cargo information is the kind of goods, the goods belong to the same kind, the goods will be placed in the same position or placed close to each other, so that the goods are transported to the target sorting unit. It can reduce the workload of cargo handling.
步骤204,将选取出的待分配订单分配至目标分拣单元。Step 204: Assign the selected order to be allocated to the target sorting unit.
在本实施例中,上述电子设备可以将步骤203中选取出的待分配订单分配至目标分拣单元,以控制运输工具将选取出的待分配订单涉及的货物运输至选取出的目标分拣单元,使得目标分拣单元分拣出上述待分配订单所指示的货物。In this embodiment, the electronic device may allocate the to-be-allocated order selected in step 203 to the target sorting unit, so as to control the transportation tool to transport the selected goods to be allocated to the selected target sorting unit. , causing the target sorting unit to sort out the goods indicated by the above-mentioned order to be dispensed.
继续参见图3,图3是根据本实施例的用于分拣货物的方法的应用场景的一个示意图。在图3的应用场景中,服务器301可以获取待分配订单组中各个待分配订单包括的货物信息,以及目标分拣单元302关联的待分拣订单,例如订单1、订单2,包括的货物信息,根据货物信息的匹配度,从待分配订单组中选取待分配订单;将选取出的待分配订单分配至目标分拣单元302。With continued reference to FIG. 3, FIG. 3 is a schematic diagram of an application scenario of a method for sorting goods according to the present embodiment. In the application scenario of FIG. 3, the server 301 can obtain the cargo information included in each to-be-allocated order in the to-be-distributed order group, and the to-be-sorted order associated with the target sorting unit 302, such as the order 1, the order 2, and the included cargo information. According to the matching degree of the goods information, the order to be allocated is selected from the group to be allocated; the selected order to be allocated is allocated to the target sorting unit 302.
本申请的上述实施例提供的方法,通过各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单,将选取出的待分配订单分配至目标分拣单元,提高了货物分拣效率。The foregoing embodiment of the present application provides a method for selecting an item to be allocated from the to-be-assigned order group by using the matching degree of the goods information included in each to-be-distributed order and the item information included in the order to be sorted, and the selected order to be allocated is selected. Assignment to the target sorting unit improves the efficiency of sorting the goods.
进一步参考图4,其示出了用于分拣货物的方法的又一个实施例的流程400。该用于分拣货物的方法的流程400,包括以下步骤:With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for sorting goods is illustrated. The process 400 of the method for sorting goods includes the following steps:
步骤401,获取待分配订单组中各个待分配订单包括的货物信息。Step 401: Acquire the goods information included in each to-be-allocated order in the order group to be allocated.
在本实施例中,用于分拣货物的方法运行于其上的电子设备(例如图1所示的服务器)可以从本地或其他电子设备(例如数据库服务器)获取待分配订单组中各个待分配订单包括的货物信息。In this embodiment, the electronic device on which the method for sorting goods is run (for example, the server shown in FIG. 1) can obtain each to-be-distributed in the group to be allocated from a local or other electronic device (for example, a database server). The goods information included in the order.
步骤402,获取目标分拣单元关联的待分拣订单包括的货物信息。Step 402: Acquire the cargo information included in the to-be-sorted order associated with the target sorting unit.
在本实施例中,上述电子设备可以获取目标分拣单元关联的待分拣订单包括的货物信息。In this embodiment, the electronic device may acquire the cargo information included in the to-be-sorted order associated with the target sorting unit.
步骤403,根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息,确定各个待分配订单与目标分拣单元关联的待分拣订单的货物种类重合数。Step 403: Determine, according to the cargo information included in each to-be-distributed order and the cargo information included in the to-be-ordered order, the number of combinations of the goods to be sorted associated with the target sorting unit.
在本实施例中,上述电子设备可以根据步骤401获取的各个待分配订单包括的货物信息和步骤402获取的待分拣订单包括的货物信息,确定各个待分配订单与目标分拣单元关联的待分拣订单的货物种类重合数。作为示例,待分配订单中指示了2种货物,分别为洗发水和沐浴露。目标分拣单元A的待分拣订单中指示了3种货物,分别是洗发水、沐浴露和饼干,待分配订单与目标分拣单元A相同的货物种类为洗发水和沐浴露。目标分拣单元B的待分拣订单中指示了2种货物,分别是沐浴露和饼干,待分配订单与目标分拣单元B中的相同的货物种类为沐浴露。因此,可以得出,待分配订单与目标分拣单元A的货物种类重合数为2,待分配订单与目标分拣单元B的货物种类重合数为1。In this embodiment, the electronic device may determine, according to the cargo information included in each of the to-be-distributed orders acquired in step 401 and the cargo information included in the to-be-sorted order acquired in step 402, that each of the to-be-distributed orders is associated with the target sorting unit. The number of goods in the sort order is the same. As an example, two types of goods are indicated in the order to be dispensed, namely shampoo and shower gel. Three kinds of goods are indicated in the to-be-sorted order of the target sorting unit A, namely shampoo, shower gel and biscuits, and the same goods to be dispensed with the target sorting unit A are shampoo and shower gel. Two kinds of goods, namely shower gel and biscuit, are indicated in the to-be-sorted order of the target sorting unit B, and the same goods type in the target sorting unit B is the shower gel. Therefore, it can be concluded that the number of coincidences of the goods to be dispensed with the target sorting unit A is 2, and the number of coincidences of the goods to be dispensed with the target sorting unit B is 1.
步骤404,根据各个待分配订单包括的货物信息确定各个待分配订单包括的货物种类数。Step 404: Determine the number of types of goods included in each order to be allocated according to the goods information included in each order to be allocated.
在本实施例中,上述电子设备可以根据各个待分配订单包括的货物信息确定各个待分配订单包括的货物种类数。In this embodiment, the electronic device may determine the number of types of goods included in each to-be-allocated order according to the item information included in each order to be allocated.
步骤405,根据所确定的货物种类重合数和所确定的货物种类数确定各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度。Step 405: Determine, according to the determined number of coincidences of the types of goods and the determined number of types of goods, the matching degree of the goods information included in each of the orders to be allocated and the goods information included in the order to be sorted.
在本实施例中,上述电子设备可以根据步骤403所确定的货物种类重合数和步骤404确定的货物种类数确定各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度。例如,可以计算所确定的各个货物种类重合数和货物种类数的比值;将计算的比值确定为各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度。In this embodiment, the electronic device may determine the matching degree of the cargo information included in each of the to-be-distributed orders and the cargo information included in the order to be sorted according to the number of types of goods determined in step 403 and the number of types of goods determined in step 404. For example, the ratio of the determined number of coincidences of each cargo type and the number of cargo categories may be calculated; the calculated ratio is determined as the matching degree of the cargo information included in each of the orders to be dispensed and the cargo information included in the order to be sorted.
作为示例,待分配订单A的货物种类数为4,待分配订单B的货物种类数为5。其中,待分配订单A与目标分拣单元C的货物种类重合数为1,待分配订单B与目标分拣单元C的货物种类重合数为3。可以将货物种类重合数1与货物种类数4的比值,确定为待分配订单A与目标分拣单元C之间的货物种类重合度,即1/4。可以将货物种类重合数3与货物种类数5的比值,确定为待分配订单B与目标分拣 单元C之间的货物种类重合度,即3/5。As an example, the number of goods to be assigned to order A is 4, and the number of goods to be assigned to order B is 5. The number of coincidences of the goods to be dispensed between the order A and the target sorting unit C is 1, and the number of matches of the goods to be allocated B and the target sorting unit C is 3. The ratio of the cargo type coincidence number 1 to the cargo type number 4 can be determined as the coincidence degree of the cargo type between the order A to be dispensed and the target sorting unit C, that is, 1/4. The ratio of the number of goods type 3 to the number of goods type 5 can be determined as the degree of coincidence of the goods type between the order B to be dispensed and the target sorting unit C, that is, 3/5.
在本实施例的一些可选的实现方式中,根据所确定的货物种类重合数和所确定的货物种类数确定各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,包括:计算所确定的各个货物种类重合数和货物种类数平方的比值;将计算的比值确定为各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度。需要说明的是,由于部分订单需要取的货物很多,这种针对货物种类数取平方的方式,可以放大货物种类数的基数的差异,相对于不取平方的方式,可以提高分拣效率。In some optional implementation manners of the embodiment, determining the matching degree between the cargo information included in each of the to-be-distributed orders and the cargo information included in the order to be sorted according to the determined number of coincidences of the goods and the determined number of goods, The method includes: calculating a ratio of the determined number of coincidences of each cargo type and the square of the number of cargo categories; determining the calculated ratio as the matching degree of the cargo information included in each of the orders to be allocated and the cargo information included in the order to be sorted. It should be noted that, because some orders need to take a lot of goods, this method of squared the number of goods can enlarge the difference of the base number of the goods, and the sorting efficiency can be improved compared with the method of not taking the square.
步骤406,根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单。Step 406: Select an order to be allocated from the to-be-allocated order group according to the matching degree of the goods information included in each to-be-distributed order and the goods information included in the order to be sorted.
在本实施例中,上述电子设备可以根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单。In this embodiment, the electronic device may select an order to be allocated from the to-be-allocated order group according to the matching degree of the cargo information included in each to-be-allocated order and the cargo information included in the order to be sorted.
步骤407,将选取出的待分配订单分配至目标分拣单元。 Step 407, the selected order to be allocated is allocated to the target sorting unit.
在本实施例中,上述电子设备可以将步骤406中选取出的待分配订单分配至目标分拣单元,以控制运输工具将选取出的待分配订单涉及的货物运输至选取出的目标分拣单元,使得目标分拣单元分拣出上述待分配订单所指示的货物。In this embodiment, the electronic device may allocate the to-be-allocated order selected in step 406 to the target sorting unit, so as to control the transportation tool to transport the selected goods to be allocated to the selected target sorting unit. , causing the target sorting unit to sort out the goods indicated by the above-mentioned order to be dispensed.
从图4中可以看出,与图2对应的实施例相比,本实施例中的用于分拣货物的方法的流程400突出了根据货物种类重合度确定货物信息的匹配度的步骤。由此,本实施例描述的方案仅需要获取常规的订单信息,无需获取其他如货物存放位置等信息,在增加较少运算量的基础上提高了货物分拣效率。As can be seen from Fig. 4, the flow 400 of the method for sorting goods in the present embodiment highlights the step of determining the degree of matching of the cargo information based on the degree of coincidence of the goods, as compared with the embodiment corresponding to Fig. 2. Therefore, the solution described in this embodiment only needs to obtain the regular order information, and does not need to obtain other information such as the storage location of the goods, and improves the sorting efficiency of the goods on the basis of increasing the amount of calculation.
进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种用于分拣货物的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 5, as an implementation of the method illustrated in the above figures, the present application provides an embodiment of an apparatus for sorting goods, the apparatus embodiment corresponding to the method embodiment shown in FIG. The device can be specifically applied to various electronic devices.
如图5所示,本实施例上述的用于分拣货物的装置500包括:第一获取单元501、第二获取单元502、选取单元503、分配单元504。其中,第一获取单元501,用于获取待分配订单组中各个待分配订单 包括的货物信息;第二获取单元502,用于获取目标分拣单元关联的待分拣订单包括的货物信息;选取单元503,用于根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单;分配单元504,用于将选取出的待分配订单分配至目标分拣单元。As shown in FIG. 5, the apparatus 500 for sorting goods according to the present embodiment includes a first acquiring unit 501, a second obtaining unit 502, a selecting unit 503, and an allocating unit 504. The first obtaining unit 501 is configured to obtain the cargo information included in each to-be-allocated order in the to-be-distributed order group, and the second acquiring unit 502 is configured to obtain the cargo information included in the to-be-sorted order associated with the target sorting unit; The unit 503 is configured to select an order to be allocated from the to-be-distributed order group according to the matching degree of the goods information included in each of the to-be-distributed orders and the goods information to be sorted, and the allocation unit 504 is configured to select the to-be-allocated The order is assigned to the target sorting unit.
在本实施例中,第一获取单元501、第二获取单元502、选取单元503、分配单元504的具体处理及其所带来的技术效果可分别参考图2对应实施例中步骤201、步骤202、步骤203以及步骤204的相关说明,在此不再赘述。In this embodiment, the specific processing of the first obtaining unit 501, the second obtaining unit 502, the selecting unit 503, and the allocating unit 504, and the technical effects thereof may be referred to step 201 and step 202 in the corresponding embodiment of FIG. 2, respectively. The related descriptions of step 203 and step 204 are not described herein again.
在本实施例的一些可选的实现方式中,装置还包括:第三获取单元(图中未示出),用于获取待分配订单集合中各个待分配订单的订单信息,其中,订单信息包括优先级信息和时间信息;分组单元(图中未示出),用于根据优先级信息以及时间信息所指示的时间与当前时间之间的间隔时长是否大于预设时长阈值,对待分配订单集合中各个待分配订单进行分组,得到待分配订单组。In some optional implementation manners of the embodiment, the device further includes: a third acquiring unit (not shown), configured to acquire order information of each to-be-allocated order in the to-be-distributed order set, where the order information includes Priority information and time information; a grouping unit (not shown) for determining whether the interval between the time indicated by the priority information and the time information and the current time is greater than a preset duration threshold, and is to be allocated in the order set Each of the orders to be allocated is grouped to obtain an order group to be allocated.
在本实施例的一些可选的实现方式中,分组单元(图中未示出),进一步配置用于:查找待分配订单集合中优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单;响应于查找出优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单,将查找出的待分配订单确定为待分配订单组中的订单;响应于未查找出优先级信息与预设信息匹配,或时间信息所指示的时间与当前时间之间的间隔时长不大于预设时长阈值的待分配订单,将待分配订单集合中的订单确定为待分配订单组中的订单。In some optional implementation manners of the embodiment, the grouping unit (not shown) is further configured to: find that the priority information in the to-be-distributed order set matches the preset information, or the time indicated by the time information. The time interval between the current time and the current time is not greater than the preset time threshold; the time interval between the time indicated by the time information and the current time is not greater than the pre-requisite in response to the finding that the priority information matches the preset information. Setting an order to be allocated with a duration threshold, determining the found order to be allocated as an order in the order group to be allocated; matching the priority information with the preset information in response to the unfinished priority information, or the time indicated by the time information and the current time The order to be allocated is not longer than the preset time threshold, and the order in the order to be allocated is determined as the order in the order group to be allocated.
在本实施例的一些可选的实现方式中,装置还包括目标分拣单元确定单元(图中未示出),目标分拣单元确定单元(图中未示出)用于:获取各个分拣单元(图中未示出)关联的待分拣订单数;将待分拣订单数最小的分拣单元(图中未示出)确定为目标分拣单元。In some optional implementation manners of the embodiment, the apparatus further includes a target sorting unit determining unit (not shown), and the target sorting unit determining unit (not shown) is configured to: acquire each sorting The number of orders to be sorted associated with the unit (not shown); the sorting unit (not shown) that minimizes the number of orders to be sorted is determined as the target sorting unit.
在本实施例的一些可选的实现方式中,第一获取单元501,进一步配置用于:确定是否存在待分拣订单数小于待分拣订单阈值的分拣 单元(图中未示出);响应于确定出不存在待分拣订单数小于待分拣订单阈值的分拣单元(图中未示出),获取待分配订单组中各个待分配订单包括的货物信息。In some optional implementation manners of the embodiment, the first obtaining unit 501 is further configured to: determine whether there is a sorting unit (not shown) whose number of orders to be sorted is smaller than a threshold of the order to be sorted; In response to determining that there is no sorting unit (not shown) whose number of orders to be sorted is less than the threshold of the order to be sorted, the goods information included in each order to be dispensed in the order group to be allocated is obtained.
在本实施例的一些可选的实现方式中,装置还包括匹配度确定单元(图中未示出),匹配度确定单元(图中未示出)用于:根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息,确定各个待分配订单与目标分拣单元关联的待分拣订单的货物种类重合数;根据各个待分配订单包括的货物信息确定各个待分配订单包括的货物种类数;根据所确定的货物种类重合数和所确定的货物种类数确定各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度。In some optional implementations of this embodiment, the apparatus further includes a matching degree determining unit (not shown), and the matching degree determining unit (not shown) is configured to: include the goods according to each of the orders to be allocated The information and the goods information included in the order to be sorted, determining the number of the goods of the order to be sorted associated with the target sorting unit, and determining the goods included in each order to be allocated according to the goods information included in each order to be allocated The number of categories; determining the matching degree of the cargo information included in each of the orders to be dispensed and the cargo information included in the order to be sorted according to the determined number of coincidences of the goods and the determined number of goods.
在本实施例的一些可选的实现方式中,匹配度确定单元(图中未示出)进一步配置用于:计算所确定的各个货物种类重合数和货物种类数平方的比值;将计算的比值确定为各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度。In some optional implementation manners of the embodiment, the matching degree determining unit (not shown in the figure) is further configured to: calculate the determined ratio of the number of coincidences of each cargo type and the square of the number of goods; the ratio to be calculated The degree of matching of the cargo information included in each of the orders to be dispensed and the cargo information included in the order to be sorted is determined.
需要说明的是,本实施例提供的用于分拣货物的装置中各单元的实现细节和技术效果可以参考本申请中其它实施例的说明,在此不再赘述。It should be noted that the implementation details and technical effects of the units in the apparatus for sorting goods provided in this embodiment can be referred to the description of other embodiments in the present application, and details are not described herein again.
下面参考图6,其示出了适于用来实现本申请实施例的电子设备的计算机***600的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring now to Figure 6, a block diagram of a computer system 600 suitable for use in implementing the electronic device of the embodiments of the present application is shown. The electronic device shown in FIG. 6 is merely an example, and should not impose any limitation on the function and scope of use of the embodiments of the present application.
如图6所示,计算机***600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有***600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, computer system 600 includes a central processing unit (CPU) 601 that can be loaded into a program in random access memory (RAM) 603 according to a program stored in read only memory (ROM) 602 or from storage portion 608. And perform various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also coupled to bus 604.
以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如 因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a storage portion 608 including a hard disk or the like. And a communication portion 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the Internet. Driver 610 is also coupled to I/O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 610 as needed so that a computer program read therefrom is installed into the storage portion 608 as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as a computer software program in accordance with an embodiment of the present disclosure. For example, an embodiment of the present disclosure includes a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for executing the method illustrated in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via communication portion 609, and/or installed from removable media 611. When the computer program is executed by the central processing unit (CPU) 601, the above-described functions defined in the method of the present application are performed.
需要说明的是,本申请上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的***、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行***、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行***、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer readable medium described above may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus or device. In the present application, a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. . Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本申请各种实施例的***、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的***来实现,或者可以用专用硬件与计算机指令的组合来实现。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 application. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the logic functions for implementing the specified. 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 involved in the embodiments of the present application may be implemented by software or by hardware. The described unit may also be disposed in the processor. For example, it may be described as: a processor includes a first acquiring unit, a second acquiring unit, a selecting unit, and an allocating unit. The name of these units does not constitute a limitation on the unit itself in some cases. For example, the first obtaining unit may also be described as “a unit for obtaining the goods information included in each order to be allocated in the order group to be allocated”. .
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:获取待分配订单组中各个待分配订单包括的货物信息;获取目标分拣单元关联的待分拣订单包括的货物信息;根据各个待分配订单包括的货物信息和待分拣订单包括的货物信息的匹配度,从待分配订单组中选取待分配订单;将选取出的待分配订单分配至目标分拣单元。In another aspect, the present application also provides a computer readable medium, which may be included in the apparatus described in the above embodiments, or may be separately present and not incorporated into the apparatus. The computer readable medium carries one or more programs, and when the one or more programs are executed by the device, the device is configured to: obtain the cargo information included in each to-be-distributed order in the to-be-distributed order group; and acquire the target sorting unit. The information of the goods to be sorted included in the associated order to be sorted; according to the matching degree of the goods information included in each order to be allocated and the goods information included in the order to be sorted, the order to be allocated is selected from the group to be allocated; the selected to be allocated is selected The order is assigned to the target sorting unit.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具 有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application 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 application is not limited to the specific combination of the above technical features, and should also be covered by the above technical features or without departing from the above inventive concept. Other technical solutions formed by arbitrarily combining the equivalent features. For example, the above features are combined with the technical features disclosed in the present application, but are not limited to the technical features having similar functions.