Method and device for determining resource scheduling path

By calculating resource scheduling costs and path complexity, linear programming equations are used to determine the target resource library, which solves the load imbalance problem caused by random allocation and achieves load balancing between resource libraries and reduction of scheduling costs.

CN112286654BActive Publication Date: 2024-10-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011121800.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-20
Publication Date
2024-10-18
Estimated Expiration
2040-10-20

AI Technical Summary

Technical Problem

The method of determining resource scheduling paths based on random allocation of the system leads to the problem of load imbalance between resource libraries.

Method used

By determining the candidate resource library based on the configuration information and resource information of the resource library, calculating the resource scheduling cost and path complexity, and using linear programming equations to determine the target resource library to ensure load balancing.

Benefits of technology

It achieves load balancing between resource libraries, reduces scheduling costs, and ensures efficiency and optimization of resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112286654B_ABST
    Figure CN112286654B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for determining a resource scheduling path, and relates to the fields of artificial intelligence and data processing technology. The method comprises: determining a candidate resource library of the configuration information according to the configuration information and the resource information of each resource library, and then determining a target resource library of the resources in the configuration information according to the scheduling cost of scheduling the resources in the configuration information from the candidate resource library, and then determining the resource scheduling path according to the target resource library and the configuration information. The method can ensure that load balancing is maintained between each resource library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to the field of artificial intelligence and data processing technology, and in particular to a method and device for determining a resource scheduling path. Background Art

[0002] With the development of Internet technology and distributed networks, there are more and more ways to obtain resources and more and more resource libraries that provide resources. At present, the method of determining the scheduling path of resources is usually based on the random allocation of the system.

[0003] However, the method of determining the scheduling path of resources based on random allocation of the system may lead to a load imbalance problem among the resource pools providing resources. Summary of the invention

[0004] The present disclosure provides a method, an apparatus, an electronic device, and a computer-readable storage medium for determining a resource scheduling path.

[0005] According to a first aspect of the present disclosure, a method for determining a resource scheduling path is provided, the method comprising: determining a candidate resource library of the configuration information based on the configuration information and resource information of each resource library; determining a target resource library of the resources in the configuration information based on the scheduling cost of scheduling the resources in the configuration information from the candidate resource library; wherein the target resource library is also determined based on a calculation result of the scheduling path complexity of scheduling the resources in the configuration information from the candidate resource library; and determining the resource scheduling path based on the target resource library and the delivery address of the configuration information.

[0006] In some embodiments, a target resource repository for resources in the configuration information is determined based on the scheduling cost of resources in the configuration information provided by the candidate resource repository, including: in response to determining that there are more than one candidate resource repository, determining the complexity of a scheduling path for scheduling resources in the configuration information from the candidate resource repository; in response to determining that the complexity of the scheduling path is greater than or equal to a complexity threshold, using a linear programming equation to determine the target resource repository for resources in the configuration information based on the scheduling cost for scheduling resources in the configuration information from the candidate resource repository.

[0007] In some embodiments, determining the complexity of a scheduling path for resources in configuration information scheduled from candidate resource repositories includes: for each resource in the configuration information, determining the number of candidate resource repositories that provide the resource; determining the number of scheduling paths for all resources in the configuration information based on the number of candidate resource repositories that provide each resource in the configuration information; and determining the number of scheduling paths as the scheduling path complexity.

[0008] In some embodiments, a linear programming equation is used to determine the target resource library for the resources in the configuration information based on the scheduling cost of scheduling the resources in the configuration information from the candidate resource library, including: for each resource in the configuration information, establishing a scheduling cost equation for scheduling the resource from the candidate resource library of the resource in each candidate resource library; determining the sum of the scheduling cost equations for scheduling all resources in the configuration information from the candidate resource library as the objective function of the linear programming equation; minimizing the objective function as the goal of solving the objective function, and determining the solution result of the linear programming equation as the target resource library.

[0009] In some embodiments, the method further includes: in response to determining that the scheduling path complexity is less than a complexity threshold, determining the scheduling cost of resources in the scheduling configuration information from each candidate resource library one by one; and determining the candidate resource library with the lowest scheduling cost among the determined scheduling costs as the target resource library.

[0010] In some embodiments, the method further includes: in response to determining that there is one candidate resource library, determining the candidate resource library as the target resource library.

[0011] In some embodiments, the resource library includes: server storage space / server computing unit, and the resource scheduling path is used to represent the address of the server storage space / server computing unit allocated to meet the storage / computing requirements in the configuration information.

[0012] In some embodiments, the resource library includes: an item storage warehouse, and the resource scheduling path is used to represent the geographical location of the warehouse where items that meet the item requirements in the configuration information are stored.

[0013] According to a second aspect of the present disclosure, there is provided an apparatus for determining a resource scheduling path, the apparatus comprising: a first determination unit, configured to determine a candidate resource repository of the configuration information based on the configuration information and resource information of each resource repository; a second determination unit, configured to determine a target resource repository of the resources in the configuration information based on a scheduling cost of scheduling the resources in the configuration information from the candidate resource repository; wherein the target resource repository is also determined based on a calculation result of a scheduling path complexity of scheduling the resources in the configuration information from the candidate resource repository; and a third determination unit, configured to determine the resource scheduling path based on the target resource repository and a delivery address of the configuration information.

[0014] In some embodiments, the second determination unit includes: a complexity determination module, configured to determine the complexity of the scheduling path of resources in the scheduling configuration information from the candidate resource libraries in response to determining that there are more than one candidate resource libraries; a target resource library determination module, configured to determine the target resource library for the resources in the configuration information based on the scheduling cost of scheduling the resources in the scheduling configuration information from the candidate resource libraries using a linear programming equation in response to determining that the complexity of the scheduling path is greater than or equal to a complexity threshold.

[0015] In some embodiments, the complexity determination module includes: a site quantity determination module, configured to determine, for each resource in the configuration information, the number of candidate resource repositories providing the resource; a path quantity determination module, configured to determine the number of scheduling paths providing all resources in the configuration information based on the number of candidate resource repositories providing each resource in the configuration information; and a complexity determination sub-module, configured to determine the number of scheduling paths as the scheduling path complexity.

[0016] In some embodiments, the target resource library determination module includes: a first modeling module, configured to establish, for each resource in the configuration information, a scheduling cost equation for scheduling the resource from the candidate resource library of the resource in each candidate resource library; a second modeling module, configured to determine the sum of the scheduling cost equations for scheduling all resources in the configuration information from the candidate resource library as the objective function of the linear programming equation; a third modeling module, configured to use minimizing the objective function as the goal of solving the objective function, and determine the solution result of the linear programming equation as the target resource library.

[0017] In some embodiments, the device also includes: a traversal module, configured to determine the scheduling cost of resources in the scheduling configuration information from each candidate resource library one by one in response to determining that the scheduling path complexity is less than a complexity threshold; and a selection module, configured to determine the candidate resource library with the lowest scheduling cost among the determined scheduling costs as the target resource library.

[0018] In some embodiments, the apparatus further includes: a fourth determining unit configured to, in response to determining that there is one candidate resource repository, determine the candidate resource repository as the target resource repository.

[0019] In some embodiments, the resource library includes: server storage space / server computing unit, and the resource scheduling path is used to represent the address of the server storage space / server computing unit allocated to meet the storage / computing requirements in the configuration information.

[0020] In some embodiments, the resource library includes: an item storage warehouse, and the resource scheduling path is used to represent the geographical location of the warehouse where items that meet the item requirements in the configuration information are stored.

[0021] According to the third aspect of the present disclosure, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the method for determining a resource scheduling path as provided in the first aspect.

[0022] According to a fourth aspect of the present disclosure, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for determining a resource scheduling path provided in the first aspect is implemented.

[0023] The method and device for determining resource scheduling paths provided by the present disclosure determine candidate resource libraries of the configuration information according to the configuration information and the resource information of each resource library, and then determine the target resource library of the resources in the configuration information according to the scheduling cost of scheduling the resources in the configuration information from the candidate resource library, and then determine the resource scheduling path according to the target resource library and the configuration information, so as to ensure that the load balance is maintained between the resource libraries. The technology according to the present application solves the problem that the method of determining the scheduling path of resources based on the random allocation of the system will cause load imbalance between the resource libraries providing resources.

[0024] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0026] Figure 1 is an exemplary system architecture diagram to which embodiments of the present application may be applied;

[0027] Figure 2 is a flow chart of an embodiment of a method for determining a resource scheduling path according to the present application;

[0028] Figure 3 is a flowchart of another embodiment of a method for determining a resource scheduling path according to the present application;

[0029] Figure 4 is a structural diagram of an embodiment of a device for determining a resource scheduling path according to the present application;

[0030] Figure 5 It is a block diagram of an electronic device used to implement the method for determining a resource scheduling path in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0032] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of a method for determining a resource scheduling path or an apparatus for determining a resource scheduling path of the present application can be applied.

[0033] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0034] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, chat applications, video applications, financial applications, etc.

[0035] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting receiving push services, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers and desktop computers, imaging devices, etc.

[0036] The terminal devices 101, 102, 103 can be hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various electronic devices. When the terminal devices 101, 102, 103 are software, they can be installed in the above electronic devices. They can be implemented as multiple software or software modules (for example, multiple software modules for providing distributed services), or they can be implemented as a single software or software module. No specific limitation is made here.

[0037] The server 105 can obtain configuration information and resource information of each resource library from the terminal devices 101, 102, 103, or obtain configuration information from the terminal devices 101, 102, 103 and resource information of each resource library from the server 105, and determine candidate resource libraries for the configuration information in each resource library, and then determine the target resource library for the resources in the configuration information according to the scheduling cost of scheduling the resources in the configuration information from the candidate resource library, and further determine the resource scheduling path based on the address of the target resource library and the configuration information.

[0038] It should be noted that the method for determining a resource scheduling path provided in the embodiments of the present disclosure is generally executed by the server 105 , and accordingly, the device for determining a resource scheduling path is generally disposed in the server 105 .

[0039] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0040] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for determining a resource scheduling path according to the present disclosure. The method for determining a resource scheduling path comprises the following steps:

[0041] Step 201: Determine candidate resource repositories for the configuration information based on the configuration information and resource information of each resource repository.

[0042] In this embodiment, the execution subject (eg Figure 1 The server shown in the figure) can obtain the configuration information and the resource information of each resource library through the terminal device in a wired or wireless manner, or can obtain the configuration information through the terminal device and obtain the resource information of each resource library through the server's local storage, cloud storage or the Internet, and determine the candidate resource libraries for the configuration information based on the configuration information and the resource information of each resource library.

[0043] In this embodiment, the configuration information may include: required resources, the minimum unit of resource storage, the required quantity of resources, the delivery address of resources, the delivery time limit, or the order generation time and other information describing / summarizing the order content; the resource information of the resource library may include: the resources stored in the resource library and the quantity of each resource stored, the supply scope of the resource library, the supply time limit of the resource library, or the upstream and downstream supply chain sites of the resource library and other information describing the inventory status and supply capacity of the resource library.

[0044] In this embodiment, candidate resource libraries for the configuration information are determined based on the configuration information and the resource information of each resource library. Resource libraries whose inventory resources and the quantity of inventory resources in each resource library satisfy the resources and the required quantity of resources in the configuration information may be determined as candidate resource libraries; resource libraries whose supply timeliness in each resource library satisfies the delivery timeliness in the configuration information may be determined as candidate resource libraries; resource libraries whose inventory resources, inventory quantity, supply timeliness, delivery range and other information in each resource library satisfy the configuration information may also be determined as candidate resource libraries; and a preset number of resource libraries with lower scheduling costs among the resource libraries that satisfy the configuration information may also be determined as candidate resource libraries.

[0045] Step 202, determining a target resource repository for resources in the configuration information according to the scheduling cost of resources in the scheduling configuration information from the candidate resource repository; wherein the target resource repository is also determined based on a calculation result of the scheduling path complexity of resources in the scheduling configuration information from the candidate resource repository.

[0046] In this embodiment, the target resource library of the resources in the configuration information can be determined according to the scheduling cost of scheduling the resources in the configuration information from the candidate resource library. The scheduling cost refers to the resources consumed by the candidate resource library in order to provide the resources in the configuration information. For example, the scheduling cost can be the wear and tear or depreciation of the transportation equipment borne by the candidate resource library to provide the resource, the energy consumed by transportation, the human resources consumed by the candidate resource library to provide the resource, the transportation time consumed by the candidate resource library to provide the resource, the warehouse storage space occupied by the candidate resource library to store the resource, or the cost required to select the candidate resource library for supply; or the scheduling cost can be the power loss borne by the candidate resource library to provide the resource, the occupation of server storage space, etc.

[0047] In this embodiment, the target resource library is also determined based on the scheduling path complexity of the resources in the candidate resource library scheduling configuration information. The scheduling path complexity refers to the number of various possible combinations of resources that can be provided to each candidate resource library to meet the configuration requirements (such as the delivery time limit requirements, resource quantity requirements, etc. in the order configuration) or the difficulty of resource coordination of various possible combinations.

[0048] Specifically, a complexity threshold can be preset, and the candidate resource library corresponding to the scheduling path whose scheduling path complexity threshold is less than the preset complexity threshold is selected as the target resource library. Specifically, a complexity threshold can be preset, and when the overall scheduling path complexity of the candidate resource library is greater than the preset complexity threshold, a scheduling cost model is constructed, and the scheduling cost model is used to determine the target resource library.

[0049] For example, the configuration information shows that 3 A resources and 4 B resources are required, candidate resource library M has 3 A resources and can be shipped on the same day, candidate resource library N has 5 B resources and can be shipped on the same day, candidate resource library P has 5 A resources and 5 B resources and need to be shipped in 15 days, then the possible combinations of resources that each candidate resource library can provide to meet the configuration requirements include "candidate resource library M + candidate resource library N", "candidate resource library M + candidate resource library P", "candidate resource library N + candidate resource library P", and "candidate resource library P".

[0050] In the above example, the combination of candidate resource libraries such as "candidate resource library M+candidate resource library N" has two scheduling paths, namely "candidate resource library M-resource demander" and "candidate resource library N-resource demander", and the scheduling path complexity of this scheduling path can be determined as 2; the combination of resource libraries such as "candidate resource library M+candidate resource library P" has two scheduling paths, namely "candidate resource library M-resource demander" and "candidate resource library P-resource demander", and the scheduling path complexity of this scheduling path can be determined as 2; the combination of resource libraries such as "candidate resource library N+candidate resource library P" has two scheduling paths, namely "candidate resource library N-resource demander" and "candidate resource library P-resource demander", and the scheduling path complexity of this scheduling path can be determined as 2; the supply method of "candidate resource library P" has one scheduling path, namely "candidate resource library P-resource demander", and the scheduling path complexity of this scheduling path can be determined as 1.

[0051] In the above example, when the scheduling path complexity is the number of possible combinations of resources that each candidate resource library can provide to meet order requirements, the overall scheduling path complexity of the candidate resource library can be determined as 4; when the scheduling path complexity is the resource coordination difficulty of various possible combinations of resources that each candidate resource library can provide to meet order requirements, etc., the overall scheduling path complexity of the candidate resource library can be determined as the maximum number of days required to wait for shipment, which is 15.

[0052] Step 203, determining a resource scheduling path according to the target resource library and the delivery address of the configuration information.

[0053] In this embodiment, each connection path between each target resource repository and the delivery address in the configuration information may be determined as a resource scheduling path according to the target resource repository and the delivery address in the configuration information.

[0054] The method for determining a resource scheduling path provided by the present disclosure determines candidate resource libraries of the configuration information based on the configuration information and the resource information of each resource library, determines the target resource library of the resources in the configuration information based on the scheduling cost of scheduling the resources in the configuration information from the candidate resource library, and determines the resource scheduling path based on the path between the target resource library and the resource demander in the configuration information. This can ensure that load balancing is maintained between the various resource libraries, and determines the resource scheduling path based on the scheduling cost, which can reduce the scheduling cost.

[0055] Optionally, the method for determining a resource scheduling path further includes: in response to determining that there is one candidate resource repository, determining the candidate resource repository as a target resource repository.

[0056] In this embodiment, when it is determined based on the configuration information and the resource information of each resource library that the number of candidate resource libraries of the configuration information is only one, the candidate resource library is determined as the target resource library. This embodiment can first determine the number of candidate resource libraries before selecting the target resource library, and when the number of candidate resource libraries is only one and no selection is required, the current candidate resource library is determined as the target resource library, avoiding starting the calculation step when the candidate resource library does not need to make a selection, avoiding the waste of computing resources and improving the efficiency of determining the target resource library.

[0057] Further references Figure 3 , shows a process 300 of another embodiment of a method for determining a resource scheduling path according to the present disclosure. The method for determining a resource scheduling path comprises the following steps:

[0058] Step 301: Determine candidate resource repositories for the configuration information based on the configuration information and resource information of each resource repository.

[0059] Step 302: in response to determining that there are more than one candidate resource pools, determine the complexity of a scheduling path for scheduling resources in the configuration information from the candidate resource pools.

[0060] In this embodiment, when it is determined that the number of candidate resource libraries in the configuration information is more than one, the scheduling path complexity of the resources in the configuration information is determined from the candidate resource libraries. Specifically, the scheduling path complexity can be determined based on the level information of the organization to which the candidate resource library belongs. For example, if the candidate resource library S is an inventory warehouse and can directly provide resources without resource allocation through a transit server / middleman, the scheduling path complexity of the candidate resource library S can be determined as 1; if the candidate resource library T is an agent and needs to go through a transit server / contact its supplier for resource allocation before it can provide resources, the scheduling path complexity of the candidate resource library T can be determined as 2; if it is necessary to select the candidate resource library S and the candidate resource library T to supply the resources in the configuration information at the same time, the highest scheduling path complexity 2 between the two can be determined as the scheduling path complexity of the candidate resource library combination.

[0061] Step 303, in response to determining that the scheduling path complexity is greater than or equal to the complexity threshold, a linear programming equation is used to determine a target resource repository for the resources in the configuration information according to the scheduling cost of allocating resources in the configuration information from the candidate resource repository.

[0062] In this embodiment, when it is determined that the complexity of the scheduling path is greater than or equal to a preset complexity threshold, a linear programming equation can be used to minimize the scheduling cost of resources in the scheduling configuration information from the candidate resource library, with the various requirements in the configuration information (such as resource quantity requirements, delivery time requirements, address range requirements, etc.) as constraints, to solve the solution of the linear programming equation; or a linear programming equation can be used to maximize the residual value of resources in the scheduling configuration information from the candidate resource library, with the various requirements in the configuration information as constraints, to solve the solution of the linear programming equation; the solution of the linear programming equation is the target resource library.

[0063] Step 304, determining a resource scheduling path according to the target resource library and the delivery address of the configuration information.

[0064] The description of step 301, step 304 in this embodiment is similar to that of step 201, step 203, and will not be repeated here.

[0065] In this embodiment, when the complexity of the scheduling path is greater than or equal to the complexity threshold, a linear programming equation is used to solve the target resource library with the goal of minimizing the scheduling cost, which helps to determine the target resource library with the lowest scheduling cost that meets the order requirements, and then determine the resource scheduling path with the lowest scheduling cost that meets the configuration requirements, avoiding waste of resources such as transportation energy, power loss of incoming and outgoing cargo management equipment, and storage space.

[0066] Optionally, determining the complexity of a scheduling path for resources in the scheduling configuration information from candidate resource repositories includes: for each resource in the configuration information, determining the number of candidate resource repositories that provide the resource; determining the number of scheduling paths for all resources in the configuration information based on the number of candidate resource repositories that provide each resource in the configuration information; and determining the number of scheduling paths as the scheduling path complexity.

[0067] In this embodiment, for each resource in the configuration information, the number of candidate resource libraries that provide the resource can be determined, and then the number of scheduling paths that provide all the resources in the configuration information can be determined based on the number of candidate resource libraries that provide each resource in the configuration information, and the number of scheduling paths can be determined as the scheduling path complexity.

[0068] For example, the configuration information includes resource C and resource D. There are 5 candidate resource libraries providing resource C and 3 candidate resource libraries providing resource D. Then, it can be determined that the scheduling paths for providing resource C and resource D are 15 (i.e., 5×3). At this time, 15 can be determined as the scheduling path complexity of the resources in the configuration information provided by the candidate resource libraries.

[0069] This embodiment uses the number of scheduling paths for all resources in the configuration information as the supply complexity of the resources in the configuration information. The intuitive and undisputed physical quantity of the number of scheduling paths can be determined as the scheduling path complexity, which not only simplifies the steps of determining the scheduling path complexity, but also ensures that the scheduling path complexity can accurately characterize the complexity of choosing the scheduling path.

[0070] Optionally, a linear programming equation is used to determine the target resource library for the resources in the configuration information based on the scheduling cost of scheduling the resources in the configuration information from the candidate resource library, including: for each resource in the configuration information, establishing a scheduling cost equation for scheduling the resource from the candidate resource library of the resource in each candidate resource library; determining the sum of the scheduling cost equations for scheduling all resources in the configuration information from the candidate resource library as the objective function of the linear programming equation; minimizing the objective function as the goal of solving the objective function, and determining the solution result of the linear programming equation as the target resource library.

[0071] In this embodiment, for each resource in the configuration information, a scheduling cost equation for each candidate resource library to supply the resource can be established, and the sum of the scheduling cost equations of all resources in the scheduling configuration information of each candidate resource library is determined as the objective function of the linear programming equation, and minimizing the objective function is used as the goal of solving the objective function, and the solution to the linear programming equation is the target resource library.

[0072] In this embodiment, for each resource in the configuration information, a surplus value equation can be established to select each candidate resource library to supply the resource, and the sum of the surplus value equations of all resources in the configuration information scheduled from each candidate resource library can be determined as the objective function of the linear programming equation, and maximizing the objective function can be used as the goal of solving the objective function, and the solution to the linear programming equation can be used as the target resource library.

[0073] For example, the objective function of the linear programming equation can be established as shown in formula (1):

[0074]

[0075] Among them, r i is the sales value of resource i; h ij is the storage cost of commodity i in candidate supply warehouse j; X il is the indicator variable, X il =1 means that resource i in the order is supplied by warehouse or store l, otherwise X il = 0, l∈J∪O; represents the warehouse entry cost of resource i (without discount); represents the warehouse storage cost of resource i (without discount); represents the storage cost discount of warehouse group k; H 1k is an auxiliary variable, representing the first-item fee (outbound fee) charged by warehouse group k; H 2k is an auxiliary variable, representing the first weight fee (delivery fee) charged by warehouse group k; H 3k is an auxiliary variable, representing the first weight fee (delivery fee) charged by warehouse group k; H 4k is an auxiliary variable, representing the additional weight fee (delivery fee) charged by warehouse group k; p io represents the purchase price of resource i produced in store o; d io Represents the distribution cost of resource i produced in store o. Among them, i∈I, I is the set of all resources in the configuration information; j∈J, J is the set of all candidate supply warehouses of the resource supply platform / resource allocation platform; o∈O, O is the set of all candidate supply stores of the resource supply platform / resource allocation platform; k∈K, K represents the warehouse group set (the goods shipped by each warehouse under the same warehouse group are combined and counted as one order to calculate the distribution fee), J k Represents the set of all warehouses under warehouse group k.

[0076] It should be noted that, in this example, the candidate supply warehouses and the candidate supply stores together constitute the candidate resource library. The candidate supply warehouses can represent the self-operated warehouses of the resource supply platform / resource allocation platform, and the candidate supply stores can be the third-party cooperative supply stores / channels of the resource supply platform / resource allocation platform.

[0077] In this example, the constraints of the linear programming equations shown in formulas (2)-(23) can be established:

[0078]

[0079]

[0080]

[0081]

[0082]

[0083]

[0084]

[0085]

[0086]

[0087]

[0088]

[0089]

[0090]

[0091]

[0092]

[0093]

[0094]

[0095]

[0096]

[0097]

[0098] W k is an integer

[0099]

[0100] Among them, s il represents whether warehouse or store 1 can meet all the needs of resource i, s il=1 means it can be satisfied, otherwise s il =0, I∈J∪O; n i represents the number of resource i; Represents the delivery fee discount of warehouse group k; Represents the first weight cost standard of the delivery fee corresponding to the shipment from candidate supply warehouse j to the destination in the configuration information; Represents the corresponding delivery fee and additional weight fee (yuan / kg) for shipment from candidate supply warehouse j to the destination; Represents the first piece cost of the outbound delivery fee of resource i produced by the warehouse; Represents the outbound cost of resource i produced by the warehouse; ω i represents the weight of a single piece of resource i (in kilograms); represents the set of warehouses with quotations under warehouse group k; the set of warehouses with missing quotations under warehouse group k, M, represents a very large positive number; Y l is the indicator variable, Y l =1 means that there are resources in the order to fulfill the order from warehouse or store l, otherwise Y l =0, l∈J∪O; Z ij is an auxiliary variable, Z ij =1 means that the warehouse outbound spare part cost of resource i is the lowest standard in the warehouse group where warehouse j is located, otherwise Z ij =0; N k is an auxiliary variable, representing the total number of goods transported by warehouse group k; W k is an auxiliary variable representing the total accrued weight of the goods carried by warehouse group k (the accrued total weight is the rounded-up value of the actual total weight); U k It is an auxiliary indicator variable, representing whether warehouse group k uses the warehouse with quotation.

[0101] In this example, formula (1) is the objective function of the linear programming equation, and the solution goal of the linear programming equation is to maximize the residual value. The first item in formula (1) can be the sales revenue of the resource supply platform / resource allocation platform, the second item can be the warehouse quotation of the candidate supply warehouse, the third item can be the warehouse entry fee / storage fee of the candidate supply warehouse, the fourth item can be the delivery fee of the candidate supply warehouse, and the fifth item can be the cost of supplying the candidate supply store, including the store procurement cost and the store delivery fee. Formula (2) constrains that each resource can only be supplied by a warehouse or store that is capable of meeting the full quantity of the resource; formula (3) restricts each resource to be supplied from only one warehouse or store. Formulas (4)-(5) constrain a warehouse or store to supply at least one commodity in order to become an actual supply warehouse; Formula (6) restricts the first item fee of the outbound delivery fee to the highest fee under the logistics parent order dimension; Formulas (7)-(9) restrict the subsequent item fee of the outbound delivery fee to the lowest fee under the logistics parent order dimension; Formulas (10)-(11) restrict that if there is a quoted route under the logistics parent order dimension, the highest quoted standard is taken as the first weight of the delivery fee; Formulas (12)-(13) restrict that if there is a quoted route under the logistics parent order dimension, the highest quoted standard is taken as the subsequent weight of the delivery fee; Formulas (14)-(15) are used to calculate the total number and total weight of commodities under the logistics parent order; Formulas (16)-(18) are used to calculate the auxiliary variable U k ; Formulas (19)-(21) restrict 0-1 variables, i.e., variables that indicate whether the corresponding option is selected; Formula (22) constrains the corresponding parameter to be an integer; Formula (23) constrains the corresponding parameter to be a non-negative number. It can be understood that the constraints of the linear programming equation can be increased or decreased according to the order requirements in actual application.

[0102] This embodiment uses a linear programming equation based on scheduling costs to solve the target resource library. When the resource supply platform / resource allocation platform has multiple supply channels such as self-operated warehouses and third-party cooperative stores, the supply channel with the lowest scheduling cost can be selected to complete the order, thereby reducing the scheduling cost of the resource supply platform / resource allocation platform and meeting the current needs of borderless retail.

[0103] Optionally, the method for determining a resource scheduling path also includes: in response to determining that the complexity of the scheduling path is less than a complexity threshold, determining the scheduling cost of resources in the scheduling configuration information from each candidate resource library one by one; and determining the candidate resource library with the lowest scheduling cost among the determined scheduling costs as the target resource library.

[0104] In this embodiment, when it is determined that the complexity of the scheduling path is less than a preset complexity threshold, the scheduling costs of the resources in the supply order of the supply plan / scheduling path combination / candidate resource library combination can be calculated one by one, and among all supply plans / scheduling path combinations / candidate resource library combinations, each candidate resource library with the lowest scheduling cost is determined as the target resource library. This embodiment uses a preset complexity threshold to define whether it is necessary to determine the target resource library through modeling, and when the complexity of the supply is less than the complexity threshold, the method of determining the scheduling cost of each plan and selecting the optimal plan is adopted, which can avoid the use of complex mathematical modeling methods when the scheduling path is simple and reduce the waste of computing resources.

[0105] Optionally, the resource library includes: server storage space / server computing unit, and the resource scheduling path is used to represent the address of the server storage space / server computing unit allocated to meet the storage / computing requirements in the configuration information.

[0106] In this embodiment, the resource library may be a storage space of a server, or a computing unit in the server for data processing. The resource scheduling path may be a memory address / pointer data pointing to the memory address used to represent the storage space size requirement in the configuration information, or the computing unit that meets the data processing / computing requirement in the configuration information.

[0107] Optionally, the resource library includes: an item storage warehouse, and the resource scheduling path is used to represent the geographical location of the warehouse where items that meet the item requirements in the configuration information are stored.

[0108] In this embodiment, the resource library may be a warehouse storing various items. The resource scheduling path may be used to represent the specific location of the warehouse where the items that meet the item requirements in the delivery information are stored.

[0109] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for determining a resource scheduling path. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0110] like Figure 4As shown, the device 400 for determining a resource scheduling path of this embodiment includes: a first determining unit 401, a second determining unit 402, and a third determining unit 403. The first determining unit 401 is configured to determine a candidate resource library of the configuration information according to the configuration information and the resource information of each resource library; the second determining unit 402 is configured to determine a target resource library of the resources in the configuration information from the scheduling cost of scheduling the resources in the configuration information from the candidate resource library; the target resource library is also determined based on the calculation result of the scheduling path complexity of scheduling the resources in the configuration information from the candidate resource library; the third determining unit 403 is configured to determine the resource scheduling path according to the target resource library and the delivery address of the configuration information.

[0111] In some embodiments, the second determination unit includes: a complexity determination module, configured to determine the complexity of the scheduling path of resources in the scheduling configuration information from the candidate resource libraries in response to determining that there are more than one candidate resource libraries; a target resource library determination module, configured to determine the target resource library for the resources in the configuration information based on the scheduling cost of scheduling the resources in the scheduling configuration information from the candidate resource libraries using a linear programming equation in response to determining that the complexity of the scheduling path is greater than or equal to a complexity threshold.

[0112] In some embodiments, the complexity determination module includes: a site quantity determination module, configured to determine, for each resource in the configuration information, the number of candidate resource repositories providing the resource; a path quantity determination module, configured to determine the number of scheduling paths providing all resources in the configuration information based on the number of candidate resource repositories providing each resource in the configuration information; and a complexity determination sub-module, configured to determine the number of scheduling paths as the scheduling path complexity.

[0113] In some embodiments, the target resource library determination module includes: a first modeling module, configured to establish, for each resource in the configuration information, a scheduling cost equation for scheduling the resource from the candidate resource library of the resource in each candidate resource library; a second modeling module, configured to determine the sum of the scheduling cost equations for scheduling all resources in the configuration information from the candidate resource library as the objective function of the linear programming equation; a third modeling module, configured to use minimizing the objective function as the goal of solving the objective function, and determine the solution result of the linear programming equation as the target resource library.

[0114] In some embodiments, the device also includes: a traversal module, configured to determine the scheduling cost of resources in the scheduling configuration information from each candidate resource library one by one in response to determining that the scheduling path complexity is less than a complexity threshold; and a selection module, configured to determine the candidate resource library with the lowest scheduling cost among the determined scheduling costs as the target resource library.

[0115] In some embodiments, the apparatus further includes: a fourth determining unit configured to, in response to determining that there is one candidate resource repository, determine the candidate resource repository as the target resource repository.

[0116] In some embodiments, the resource library includes: server storage space / server computing unit, and the resource scheduling path is used to represent the address of the server storage space / server computing unit allocated to meet the storage / computing requirements in the configuration information.

[0117] In some embodiments, the resource library includes: an item storage warehouse, and the resource scheduling path is used to represent the geographical location of the warehouse where items that meet the item requirements in the configuration information are stored.

[0118] Each unit in the above device 400 is similar to the reference Figure 2 or Figure 3 Therefore, the operations, features and technical effects described above for the method for determining a resource scheduling path are also applicable to the device 400 and the units contained therein, and will not be described in detail here.

[0119] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0120] like Figure 5 , is a block diagram of an electronic device 500 for determining a method for resource scheduling paths according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present application described herein and / or required.

[0121] like Figure 5As shown, the electronic device includes: one or more processors 501, a memory 502, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 501 is taken as an example.

[0122] The memory 502 is a non-transient computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the method for determining a resource scheduling path provided in the present application. The non-transient computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the method for determining a resource scheduling path provided in the present application.

[0123] The memory 502 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method for determining a resource scheduling path in the embodiment of the present application (for example, the attached Figure 4 The processor 501 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 502, that is, implements the method for determining the resource scheduling path in the above method embodiment.

[0124] The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of an electronic device for determining a resource scheduling path, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the electronic device for determining the resource scheduling path via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0125] The electronic device for determining the resource scheduling path method may further include: an input device 503, an output device 504, and a bus 505. The processor 501, the memory 502, the input device 503, and the output device 504 may be connected via the bus 505 or in other ways. Figure 5 The connection via bus 505 is taken as an example.

[0126] The input device 503 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device for determining the resource scheduling path, such as input devices such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick, etc. The output device 504 may include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch screen.

[0127] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0128] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0129] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0130] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0131] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0132] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0133] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for determining a resource scheduling path, comprising: Determine a candidate resource library for the configuration information according to the configuration information and resource information of each resource library, wherein the configuration information includes information describing / summarizing the order content; Determine the target resource library of the resources in the configuration information according to the scheduling cost of scheduling the resources in the configuration information from the candidate resource library; wherein the target resource library is also determined based on the calculation result of the scheduling path complexity of scheduling the resources in the configuration information from the candidate resource library, wherein the scheduling path complexity refers to the number of various possible combinations of resources that can be provided by each candidate resource library to meet the configuration requirements or the difficulty of resource coordination of the possible combinations; A resource scheduling path is determined according to the target resource library and the configuration information.

2. The method according to claim 1, wherein: The step of determining a target resource repository for the resources in the configuration information according to a scheduling cost of scheduling the resources in the configuration information from the candidate resource repository comprises: In response to determining that there are more than one candidate resource pools, determining a scheduling path complexity of scheduling resources in the configuration information from the candidate resource pools; In response to determining that the scheduling path complexity is greater than or equal to a complexity threshold, a linear programming equation is used to determine a target resource repository for the resources in the configuration information according to a scheduling cost of scheduling the resources in the configuration information from the candidate resource repository.

3. The method according to claim 2, wherein: The determining of the complexity of a scheduling path for scheduling resources in the configuration information from the candidate resource library includes: For each resource in the configuration information, determine the number of candidate resource repositories that provide the resource; Determining the number of scheduling paths that provide all resources in the configuration information according to the number of candidate resource pools that provide each resource in the configuration information; The number of the scheduling paths is determined as the scheduling path complexity.

4. The method according to claim 2, wherein: The step of using a linear programming equation to determine a target resource repository for the resources in the configuration information according to a scheduling cost of scheduling the resources in the configuration information from the candidate resource repository comprises: For each resource in the configuration information, establishing a scheduling cost equation for scheduling the resource from the candidate sites of the resource in each of the candidate resource pools; Determine the sum of the scheduling cost equations for scheduling all resources in the configuration information from the candidate resource library as the objective function of the linear programming equation; Minimizing the objective function is used as the goal of solving the objective function, and the solution result of the linear programming equation is determined as the target resource library.

5. The method according to claim 2, wherein: The method further comprises: In response to determining that the scheduling path complexity is less than the complexity threshold, determining a scheduling cost of scheduling resources in the configuration information from each candidate resource repository one by one; The candidate resource library having the lowest scheduling cost among the determined scheduling costs is determined as the target resource library.

6. The method according to claim 1, wherein: The method further comprises: In response to determining that there is one candidate resource library, the candidate resource library is determined to be the target resource library.

7. The method according to claim 1, wherein: The resource library includes: server storage space / server computing unit, and the resource scheduling path is used to represent the address of the server storage space / server computing unit allocated to meet the storage / computing requirements in the configuration information.

8. The method according to claim 1, wherein: The resource library includes: an item storage warehouse, and the resource scheduling path is used to represent the geographical location of the warehouse where items that meet the item requirements in the configuration information are stored.

9. A device for determining a resource scheduling path, comprising: A first determining unit is configured to determine a candidate resource library of the configuration information according to the configuration information and resource information of each resource library, wherein the configuration information includes information describing / summarizing the order content; The second determining unit is configured to determine the target resource library of the resources in the configuration information according to the scheduling cost of scheduling the resources in the configuration information from the candidate resource library; wherein the target resource library is also determined based on the calculation result of the scheduling path complexity of scheduling the resources in the configuration information from the candidate resource library, wherein the scheduling path complexity refers to the number of various possible combinations of resources that can be provided by each candidate resource library to meet the configuration requirements or the difficulty of resource coordination of possible combinations; The third determining unit is configured to determine a resource scheduling path according to the target resource library and the delivery address of the configuration information.

10. The device according to claim 9, wherein: The second determining unit includes: A complexity determination module, configured to determine the complexity of a scheduling path for scheduling resources in the configuration information from the candidate resource pools in response to determining that there are more than one candidate resource pools; The target resource library determination module is configured to determine the target resource library of the resources in the configuration information based on the scheduling cost of scheduling the resources in the configuration information from the candidate resource library using a linear programming equation in response to determining that the scheduling path complexity is greater than or equal to a complexity threshold.

11. The device according to claim 10, wherein: The complexity determination module comprises: A site quantity determination module is configured to determine, for each resource in the configuration information, the number of candidate resource repositories providing the resource; a path quantity determination module, configured to determine the number of scheduling paths that provide all resources in the configuration information according to the number of candidate resource pools that provide each resource in the configuration information; The complexity determination submodule is configured to determine the number of the scheduling paths as the scheduling path complexity.

12. The device according to claim 10, wherein: The target resource library determination module includes: A first modeling module is configured to establish, for each resource in the configuration information, a scheduling cost equation for scheduling the resource from the candidate resource pools of the resource in each of the candidate resource pools; A second modeling module is configured to determine the sum of scheduling cost equations for scheduling all resources in the configuration information from the candidate resource library as an objective function of the linear programming equation; The third modeling module is configured to take minimizing the objective function as the goal of solving the objective function, and determine the solution result of the linear programming equation as the target resource library.

13. The device according to claim 10, wherein: The device also includes: A traversal module is configured to, in response to determining that the complexity of the scheduling path is less than the complexity threshold, determine the scheduling cost of scheduling the resources in the configuration information from each candidate resource repository one by one; The selection module is configured to determine the candidate resource library with the lowest scheduling cost among the determined scheduling costs as the target resource library.

14. The device according to claim 9, wherein: The device also includes: The fourth determining unit is configured to, in response to determining that there is one candidate resource library, determine the candidate resource library as the target resource library.

15. The device according to claim 9, wherein: The resource library includes: server storage space / server computing unit, and the resource scheduling path is used to represent the address of the server storage space / server computing unit allocated to meet the storage / computing requirements in the configuration information.

16. The device according to claim 9, wherein: The resource library includes: an item storage warehouse, and the resource scheduling path is used to represent the geographical location of the warehouse where items that meet the item requirements in the configuration information are stored.

17. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Reducing complexity of determining routes for shipping containers by reducing paths based on user selection

    CN107025495A

  • Processing method of trade order and server

    CN107464082A