An intelligent path planning method and supervision system for logistics distribution based on the Internet of Things
By using the ant colony algorithm in the Internet of Things environment, considering the collaborative supply situation between vehicles, optimizing vehicle path planning solves the problem of low efficiency in calculating the vehicle's optimal path in the existing technology, and improves the overall efficiency and efficiency of logistics distribution. accuracy.
Patent Information
- Application Number
- CN202410760904.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Existing logistics distribution path planning methods do not consider collaborative supply between vehicles, resulting in low efficiency in calculating optimal vehicle paths and insufficient comprehensive distribution efficiency.
Using the ant colony algorithm based on the Internet of Things, by introducing the collaborative supply probability calculation between vehicles, using the different factors of cargo capacity and transportation distance, the coordination between vehicles is optimized, and the pheromone concentration and heuristic function value are adjusted. To guide the selection of vehicle supply routes.
It improves the coordination between vehicles and the accuracy of path planning, ensures that the best path for each vehicle is more suitable for actual needs, and improves the overall distribution efficiency and the accuracy of the results of the ant colony algorithm.
Smart Images

Figure CN118333510B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of path planning, and in particular to an intelligent path planning method for logistics distribution based on the Internet of Things and a supervision system thereof. Background Art
[0002] With the rapid development of global economic integration and e-commerce, the logistics industry is facing unprecedented challenges and opportunities. As a key technology to improve logistics efficiency and reduce costs, the intelligent development of logistics distribution route planning has become an important force in promoting the transformation and upgrading of the logistics industry. Therefore, how to plan logistics distribution routes has become a focus of the logistics industry.
[0003] The existing patent document CN103413209B shows a multi-customer multi-warehouse logistics distribution path selection method. In this document, the advantages of the taboo search algorithm and the ant colony algorithm are combined to improve the search performance and thus improve the path planning quality.
[0004] However, when using the path planning method in this document to iteratively calculate the optimal path for vehicles, the main focus is on the distribution efficiency of a single vehicle. Because sometimes the distribution efficiency of a single vehicle is high, after comprehensive analysis, the distribution efficiency of all vehicles is low. For example, the demand for goods at some customer points exceeds the cargo capacity of a single vehicle. One of the vehicles can deliver goods to the customer point quickly, but the cargo capacity of the vehicle cannot meet the cargo demand of the customer point, so other vehicles are needed to supply goods until the cargo demand of the customer point is met. In this case, the distribution efficiency of each vehicle is high, but after comprehensive analysis, the total distribution efficiency of all vehicles is low. In order to obtain the optimal path for the vehicle, it is necessary to ensure that the path of all vehicles is the shortest. Since the path planning method in this document does not consider the collaborative supply between vehicles, the efficiency of the optimal path solved is low. Summary of the invention
[0005] In order to solve the problem of low vehicle optimal path calculation due to failure to consider the collaborative supply situation between vehicles, the present invention provides a logistics distribution intelligent path planning method based on the Internet of Things and a supervision system thereof.
[0006] In the first aspect, the present invention provides a method for intelligent path planning of logistics distribution based on the Internet of Things, which adopts the following technical solutions:
[0007] A method for intelligent path planning of logistics distribution based on the Internet of Things, comprising the steps of:
[0008] Obtaining a pre-built ant colony algorithm, and iterating the ant colony algorithm according to an initial pheromone concentration and an initial heuristic function value;
[0009] When the number of iterations of the ant colony algorithm reaches a preset number, the path at the last iteration is used as the optimal path for the vehicle to carry out logistics distribution;
[0010] In each iteration cycle of the ant colony algorithm, in response to the fact that the cargo demand of a customer point is not met, the probability of the vehicle taking a customer point as the next supply location is calculated, and the customer point corresponding to the maximum probability is used as the supply location for supply; in response to the fact that the cargo demand of all customer points is met, the pheromone concentration and the heuristic function value are updated;
[0011] Wherein, the probability satisfies the relationship: , is the initial probability, which is positively correlated with the pheromone concentration and the heuristic function value from the customer point where the vehicle is located to each customer point; , Indicates the possibility of vehicle coordination. Indicates the possibility of vehicle coordination. represents the possibility of coordinated supply of vehicles to the i-th customer point, Indicates the supply coordination flag value of the vehicle to the i-th customer point;
[0012] R1 is positively correlated with the cargo capacity of the coordinated reference vehicle of the vehicle, and negatively correlated with the distance of the coordinated reference vehicle of the vehicle; R2 is negatively correlated with the cargo capacity of the coordinated reference vehicle of the vehicle, and negatively correlated with the distance of the coordinated reference vehicle of the vehicle.
[0013] The effect is that when calculating the probability of each vehicle taking each customer point as the next supply point, the synergy factor caused by the differences in cargo capacity and transportation distance is introduced, thereby increasing the coordination between vehicles. In other words, the present application takes into account the collaborative supply of each customer point between different vehicles, thereby providing more guidance for the vehicle's supply route selection, so that the calculated iterative optimal route for each vehicle is more suitable for actual needs.
[0014] Preferably, the possibility of vehicles being coordinated ; Represents the cargo capacity of a vehicle. represents the cargo capacity of the kth coordinated reference vehicle of the vehicle, It represents the maximum value of the cargo capacity of this vehicle and all coordinated reference vehicles. represents the distance between the vehicle and the kth coordinated reference vehicle, Indicates the maximum distance between the vehicle and all other coordinated reference vehicles. Indicates the number of coordinated reference vehicles of the vehicle.
[0015] Preferably, the vehicle's supply coordination possibility , Represents the cargo capacity of a vehicle. represents the cargo capacity of the kth collaborative reference vehicle of a vehicle, It represents the maximum value of the cargo capacity of this vehicle and all the coordinated reference vehicles. represents the distance between the vehicle and the kth collaborative reference vehicle, Indicates the maximum distance between the vehicle and all other coordinated reference vehicles. Indicates the number of vehicles that this vehicle is a reference for.
[0016] The effect is that the calculation method of the possibility of being coordinated and the possibility of providing coordination, after testing, can more comprehensively and accurately reflect the relationship that the possibility of a vehicle being coordinated is positively correlated with the cargo capacity of the coordinated reference vehicle, and negatively correlated with the distance of the coordinated reference vehicle; the possibility of a vehicle providing coordination is negatively correlated with the cargo capacity of the coordinated reference vehicle, and negatively correlated with the distance of the coordinated reference vehicle - thereby making the results of the ant colony algorithm more accurate.
[0017] Preferably, it also includes setting a supply coordination flag value, including:
[0018] ;
[0019] in, Represents the cargo capacity of a vehicle. represents the demand for goods at the i-th customer point, Indicates the preset minimum limit threshold. Indicates the preset maximum limit threshold.
[0020] The effect is that the supply coordination flag value is set in the form of a step function, which is relatively simple to operate and easy to implement the algorithm.
[0021] Preferably, the method for obtaining the coordinated reference vehicle and the coordinated reference vehicle of the vehicle includes:
[0022] A vehicle whose distance to a vehicle is less than a preset distance threshold Y1 is used as a coordinated reference vehicle of the vehicle;
[0023] A vehicle whose distance to a vehicle is less than a preset distance threshold value Y1 and whose cargo volume difference with the vehicle is greater than a preset cargo volume threshold value Y2 is used as a coordinated reference vehicle of the vehicle.
[0024] Preferably, in an iterative cycle, before supplying the customer point corresponding to the maximum probability as the supply location, it is necessary to determine whether the vehicle's cargo capacity is less than the cargo demand of the supply location. If the vehicle's cargo capacity is less than the cargo demand of the supply location, the pheromone concentration is updated.
[0025] Preferably, the pheromone concentration is updated, including:
[0026] ;
[0027] The point where the vehicle arrives at a delivery location is recorded as the analysis customer point, and the customer point where the vehicle is located before arriving at the analysis customer point is recorded as the pre-position customer point. Represents the cargo capacity of a vehicle. Indicates the demand for goods at the customer point. Indicates the pheromone concentration adjustment between the front customer point and the analysis customer point;
[0028] The cumulative sum of the pheromone concentration adjustment amount and the pheromone concentration between the front customer point and the analysis customer point is taken as the new pheromone concentration between the front customer point and the analysis customer point.
[0029] The effect is that when the pheromone update is triggered, the updated pheromone is related to the possibility of the vehicle being coordinated, so that a higher pheromone is set on the path where the customer point that needs coordinated supply is located, so that the higher pheromone is used to guide the vehicle to deliver goods to the customer point that needs coordinated supply. In this way, the demand for goods at the customer point can be met more quickly.
[0030] Preferably, in an iteration cycle, before supplying the customer point corresponding to the maximum probability as the supply location, it is also necessary to determine whether other vehicles have passed by the supply location arrived at by the vehicle before. If other vehicles have passed by the supply location arrived at by the vehicle before, the heuristic function value is updated.
[0031] Preferably, the heuristic function value is updated, including:
[0032] ;
[0033] Wherein, the point where the vehicle arrives at a delivery location is recorded as the analysis customer point, and the customer point where the vehicle is located before arriving at the analysis customer point is recorded as the pre-position customer point; Represents the cargo capacity of a vehicle. represents the distance between the preceding customer point and the analyzed customer point, represents the driving speed of the vehicle between the preceding customer point and the analysis customer point, represents the adjustment amount of the heuristic function value between the preceding customer point and the analyzed customer point;
[0034] ;
[0035] in, represents the heuristic function value between the previous customer point and the analysis customer point, Represents the new heuristic function value between the previous customer point and the analysis customer point.
[0036] The effect is that the updated heuristic function value is related to the actual working conditions of the vehicle, such as driving speed, distance and other factors, so that a higher heuristic function value is set on the path where customer points with collaborative supply exist, to constrain the vehicle from overly focusing on collaborative supply, which would increase the vehicle transportation cost.
[0037] In a second aspect, the present invention provides a logistics distribution intelligent path planning and supervision system based on the Internet of Things, which adopts the following technical solutions:
[0038] A logistics distribution intelligent path planning and supervision system based on the Internet of Things includes: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned logistics distribution intelligent path planning method based on the Internet of Things is implemented.
[0039] By adopting the above technical solution, the above-mentioned intelligent path planning method for logistics distribution based on the Internet of Things is generated into a computer program and stored in a memory to be loaded and executed by a processor, so that a terminal device is made according to the memory and the processor for easy use.
[0040] The present invention has the following technical effects:
[0041] Compared with traditional path planning algorithms, the present invention introduces the synergy factor caused by differences in cargo capacity and transportation distance when calculating the probability of each vehicle taking each customer point as the next delivery point, thereby increasing the coordination between vehicles. In other words, the present application takes into account the collaborative supply of each customer point between different vehicles, thereby providing more guidance for the vehicle's supply path selection, so that the calculated iterative optimal path for each vehicle is more suitable for actual needs.
[0042] Furthermore, the calculation method of the possibility of being coordinated and the possibility of providing coordination adopted by the present invention has been tested and can more comprehensively and accurately reflect the relationship that the possibility of a vehicle being coordinated is positively correlated with the cargo capacity of the coordinated reference vehicle, and negatively correlated with the distance of the coordinated reference vehicle; the possibility of a vehicle providing coordination is negatively correlated with the cargo capacity of the coordinated reference vehicle, and negatively correlated with the distance of the coordinated reference vehicle, thereby making the results of the ant colony algorithm more accurate.
[0043] Furthermore, the present invention sets the supply coordination mark value in the form of a step function, which is relatively simple to operate and convenient for algorithm implementation.
[0044] Furthermore, the present invention determines the coordinated reference vehicle or the coordinated reference vehicle by comparison with a distance threshold, which facilitates algorithm implementation.
[0045] Furthermore, the present invention is different from the conventional ant colony algorithm. The conventional ant colony algorithm only updates pheromones when the global update rules are met, while the present invention also triggers the update of pheromones when the local update rules are met, thereby improving the efficiency of the algorithm.
[0046] Furthermore, when the trigger pheromone is updated, the updated pheromone is related to the possibility of the vehicle being coordinated, so that a higher pheromone is set on the path of the customer point where coordinated delivery is required, so that the higher pheromone is used to guide the vehicle to deliver goods to the customer point where coordinated delivery is required. In this way, the demand for goods at the customer point can be met more quickly.
[0047] Furthermore, the present invention is different from the conventional ant colony algorithm. The conventional ant colony algorithm only updates the heuristic function value when globally updating the rules, while the present invention also triggers the update of the heuristic function value when locally updating the rules, thereby improving the efficiency of the algorithm.
[0048] Furthermore, the updated heuristic function value is related to the actual working conditions of the vehicle, such as driving speed, distance and other factors, so that a higher heuristic function value is set on the path where customer points with collaborative supply exist, to constrain the vehicle from overly focusing on collaborative supply, which would increase the vehicle transportation cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.
[0050] Figure 1 It is a method flow chart of a method for intelligent path planning of logistics distribution based on the Internet of Things in Embodiment 1 of the present invention;
[0051] Figure 2 is a flowchart of the steps of calculating the probability of a vehicle taking each customer point as the next delivery location in Embodiment 1 of the present invention;
[0052] Figure 3 This is a flow chart of the path planning algorithm provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0054] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0055] Embodiment 1 of the present invention discloses an overview of a method for intelligent path planning for logistics distribution based on the Internet of Things. Figure 1 , the real-time example 1 of the present invention includes steps S1 to S3:
[0056] S1: Get data.
[0057] It should be noted that in order to perform path planning, data for path planning must be obtained first.
[0058] Specifically, the data that needs to be obtained include: the distance between every two customer points, the distance between the warehouse and each customer point, the cargo capacity of each vehicle, the cargo demand of each customer point and the distance between every two vehicles.
[0059] S2: Get a pre-built ant colony algorithm.
[0060] Specifically, the construction method of the ant colony algorithm includes: taking each vehicle as each ant in the ant colony algorithm, taking the warehouse where the vehicle is located as the starting point, the customer point as the location of the vehicle's delivery of goods, taking the path between the warehouse and the customer point, and the path between the customer points as the delivery path that the vehicle can choose, and the total cargo demand of all customer points cannot exceed the total cargo capacity of all vehicles. The number of iterations of the ant colony algorithm is preset to N. In this embodiment, N is described as 100 times. Other embodiments may take other values, and this embodiment does not make specific restrictions.
[0061] It should be noted that the vehicles may depart from the same warehouse at different times, or may depart from different warehouses at the same time or at different times. This embodiment does not impose any specific limitation, and other embodiments may be adjusted according to actual conditions.
[0062] S3: Iterating the ant colony algorithm according to the initial pheromone concentration and the initial heuristic function value, and when the number of iterations of the ant colony algorithm reaches a preset number, taking the path of the last iteration as the optimal path for the vehicle to carry out logistics distribution.
[0063] S30: Set the initial pheromone concentration and the initial heuristic function value.
[0064] Optionally, as an example, the method for setting the initial pheromone concentration and the initial heuristic function value includes: setting the initial pheromone concentration between the warehouse and each customer point and the initial pheromone concentration between every two customer points to 1, and setting the initial heuristic function value between the warehouse and each customer point and the initial heuristic function value between every two customer points to the reciprocal of the distance between the warehouse and each customer point and the reciprocal of the distance between every two customer points, respectively.
[0065] It should be noted that the ant colony algorithm searches by placing a group of "ants" in the solution space, and uses the deposition and volatilization of pheromones between ants to guide the search process. During the search process, ants release pheromones on the paths they pass through, and paths with high pheromone concentrations are more likely to be chosen by other ants. Over time, pheromones gradually accumulate on the path, causing more ants to choose the path, thereby strengthening the "attractiveness" of the path. The heuristic function value in the ant colony algorithm is also used to provide a guide or estimate for ants when choosing the path to move next, so as to help them more likely choose the path to reach the target. The heuristic function is usually defined based on the characteristics and constraints of the problem, and is usually used to constrain ants from paying too much attention to pheromones, thereby increasing the diversity of path selection.
[0066] S31: the ant colony algorithm is iterated according to the initial pheromone concentration and the initial heuristic function value. When the number of iterations of the ant colony algorithm reaches a preset number, the path of the last iteration is used as the optimal path for the vehicle to carry out logistics distribution.
[0067] It should be noted that through Figure 3It can be seen from the flow chart of the path planning algorithm that the ant colony algorithm needs to perform multiple iterative calculations when solving the optimal path for the vehicle, and the calculation will only stop when the preset number of times is met. One of the iterative calculations is recorded as an iterative cycle. In an iterative cycle, the vehicle can only stop supplying goods and the calculation of the iterative cycle can only stop when the demand for goods at each customer point is met. When the customer demand of the customer point is not met, it is necessary to continuously iterate and analyze how the vehicle supplies goods to the customer point. The process of a vehicle departing from one customer point to arrive at another customer point for supply is called a supply stage, and there are multiple supply stages in each iterative cycle. This embodiment takes the supply analysis process of a vehicle in a supply stage of an iterative cycle as an example to illustrate.
[0068] S310: Calculate the probability that the vehicle will choose a customer point as the next delivery location.
[0069] Optionally, as an example, the calculating the probability that the vehicle takes each customer point as the next delivery location includes: using the initial probability calculated according to a conventional probability calculation method in the ant colony algorithm as the probability that the vehicle takes each customer point as the next delivery location, and the formula for calculating the initial probability according to the conventional probability calculation method in the ant colony algorithm is:
[0070]
[0071] in, represents the pheromone concentration between the customer point where the vehicle is located and the i-th customer point, It represents the heuristic function value between the customer point where the vehicle is located and the i-th customer point. Every two adjacent customer points whose cargo demand is not 0 form a customer point pair. represents the pheromone concentration between two customer points in the jth adjacent customer point pair, represents the heuristic function value between two customer points in the jth adjacent customer point pair, N3 represents the number of customer point pairs, Represents the preset pheromone concentration factor, which is used to determine the relative importance of pheromone concentration in guiding the vehicle to choose a path. represents a preset heuristic function value factor, which is used to determine the relative importance of the heuristic function value in guiding the vehicle to select a path. In this embodiment, is the initial probability calculated according to the conventional method. Take 2, 3 is taken as an example for description, and other embodiments may take other values, and this embodiment does not make any specific limitation.
[0072] It should be noted that, since the ant colony algorithm is used to solve the optimal driving path for each vehicle, the coordinated supply between vehicles is not considered, which results in some unnecessary iterative solving processes in the solving process, thus affecting the solving efficiency. Figure 3 As shown, in order to improve the solution efficiency, the collaborative supply between vehicles is considered in the calculation process of the probability that the vehicle in the ant colony algorithm takes each customer point as the next supply location.
[0073] Preferably, as an example, the calculation of the probability that the vehicle will select each customer point as the next delivery location includes steps S3100-3103. Figure 2 The flowchart of the steps for calculating the probability that the vehicle will choose each customer point as the next delivery point is shown in FIG.
[0074] S3100: Calculate the vehicle's possibility of being coordinated and the possibility of providing coordination.
[0075] It should be noted that in order to analyze the collaborative supply between vehicles, it is necessary to determine whether neighboring vehicles can provide assistance to the vehicle during the supply process, and whether the vehicle provides assistance to neighboring vehicles during the supply process. This embodiment uses the possibility of being coordinated and the possibility of supply coordination to reflect the possibility of neighboring vehicles providing assistance to the vehicle during the supply process, and the possibility of providing assistance to neighboring vehicles during the supply process. When analyzing the possibility of being coordinated and the possibility of supply coordination, when the distance between vehicles is close, the cost of mutual assistance in supply between vehicles is lower, and the probability of mutual assistance in supply between vehicles is greater. Only when the difference in cargo capacity between vehicles is large can supply assistance be provided when other vehicles cannot meet the customer's supply point. Otherwise, no supply assistance can be provided.
[0076] The calculating the possibility of the vehicle being coordinated includes:
[0077]
[0078] Represents the cargo capacity of a vehicle. represents the cargo capacity of the kth coordinated reference vehicle of the vehicle, It represents the maximum value of the cargo capacity of the vehicle and all the coordinated reference vehicles. This value is used to adjust the numerator Normalize it, The larger the value is, the smaller the cargo capacity of the vehicle is. The k-th coordinated reference vehicle has a relatively large cargo capacity. When the supply of the vehicle cannot meet the supply of the customer point, the k-th coordinated reference vehicle is more likely to provide supply assistance. represents the distance between the vehicle and the kth coordinated reference vehicle, Indicates the maximum distance between the vehicle and all other coordinated reference vehicles. This value is used to adjust the Normalize it, It reflects the distance between the vehicle and the kth coordinated reference vehicle. The larger the value, the greater the distance between the vehicle and the kth coordinated reference vehicle. The higher the cost of the kth coordinated reference vehicle to provide assistance to the vehicle, and thus the vehicle is less likely to be helped by the kth coordinated reference vehicle. Indicates the number of coordinated reference vehicles of this vehicle, Indicates the possibility of the vehicle being coordinated.
[0079] The calculating the possibility of the vehicles providing cooperation includes:
[0080]
[0081] represents the cargo capacity of the kth collaborative reference vehicle of a vehicle, It represents the maximum value of the cargo capacity of the vehicle and all the coordinated reference vehicles. This value is used to adjust the numerator Normalize it, The larger the value, the larger the cargo capacity of the vehicle. The cargo capacity of the kth reference vehicle for coordination is relatively small. When the cargo supply of the kth reference vehicle for coordination cannot meet the supply of the customer point, the possibility of this vehicle providing coordination is greater. represents the distance between the vehicle and the kth collaborative reference vehicle, Indicates the maximum distance between the vehicle and all other reference vehicles. This value is used to adjust the Normalize it, It reflects the distance between the vehicle and the kth reference vehicle for coordination at the initial moment of the first delivery cycle. The larger the value, the greater the distance between the vehicle and the kth reference vehicle for coordination, and the higher the cost of the vehicle to provide assistance to the kth reference vehicle for coordination. Therefore, the possibility of the vehicle providing assistance to the kth reference vehicle for coordination is smaller. Indicates the number of coordinated reference vehicles for this vehicle, Indicates the possibility of cooperation for this vehicle.
[0082] In the above embodiments, the calculation method of the possibility of being coordinated R1 and the possibility of providing coordination R2, after testing, can more comprehensively and accurately reflect the relationship that the possibility of a vehicle being coordinated is positively correlated with the cargo capacity of the coordinated reference vehicle, and negatively correlated with the distance of the coordinated reference vehicle; the possibility of a vehicle providing coordination is negatively correlated with the cargo capacity of the coordinated reference vehicle, and negatively correlated with the distance of the coordinated reference vehicle, thereby making the results of the ant colony algorithm more accurate.
[0083] In other embodiments, other formulas may also be used, as long as these formulas can reflect that R1 is positively correlated with the cargo capacity of the coordinated reference vehicle of the vehicle, and negatively correlated with the distance of the coordinated reference vehicle of the vehicle; R2 is negatively correlated with the cargo capacity of the vehicle's coordinated reference vehicle, and negatively correlated with the distance of the vehicle's coordinated reference vehicle.
[0084] Furthermore, the above embodiments involve coordinated reference vehicles and coordinated reference vehicles. The following describes how to determine the coordinated reference vehicles and coordinated reference vehicles, including:
[0085] A vehicle whose distance to a vehicle is less than a preset distance threshold Y1 is used as the coordinated reference vehicle of the vehicle; a vehicle whose distance to a vehicle is less than the preset distance threshold Y1 and whose cargo volume difference with the vehicle is greater than the preset cargo volume threshold Y2 is used as the coordinated reference vehicle of the vehicle.
[0086] S3101: Set the supply coordination flag value.
[0087] It should be noted that the possibility of being coordinated and the possibility of supplying coordinated vehicles calculated above do not take into account whether the vehicles can provide supply assistance to each other when supplying goods to the customer point. For example, if the demand for goods at the customer point to be supplied by the vehicle is large, and the vehicle can just meet the demand for goods at the customer point, then the vehicle cannot provide assistance to other vehicles, and other vehicles do not need to provide assistance to the vehicle. Therefore, in order to more accurately analyze the coordination of vehicles, the relationship between the vehicle and the demand for goods at the customer point is also required.
[0088] The setting of the supply coordination flag value includes:
[0089]
[0090] in, represents the demand for goods at the i-th customer point, Indicates the preset minimum limit threshold. Indicates the preset maximum limit threshold. This embodiment is described by taking Y3 as 0 and Y4 as 10 as an example. Other embodiments may take other values, and this embodiment does not make specific limitations. Indicates the supply coordination flag value of the vehicle to the i-th customer point. When , it means that the vehicle's cargo capacity cannot meet the cargo demand of the i-th customer point, and other vehicles are needed to provide assistance. At this time, the vehicle's supply coordination flag value for the i-th customer point is set to -1. , it means that the vehicle's cargo capacity just meets the cargo demand of the i-th customer point (although the vehicle's cargo capacity is slightly larger than the cargo demand of the i-th customer point, the larger degree is small, so the vehicle is less likely to provide assistance to other vehicles). At this time, the vehicle does not need help from other vehicles, and it cannot provide help to other vehicles. Therefore, the vehicle's supply coordination flag value for the i-th customer point is set to 0. , it means that the vehicle's cargo capacity is much greater than the cargo demand of the i-th customer point, and the vehicle can provide assistance to other vehicles. Therefore, the vehicle's supply coordination flag value for the i-th customer point is set to 1.
[0091] S3102: Calculate the possibility of coordinated supply of vehicles to each customer point.
[0092] The calculation of the possibility of coordinated supply of vehicles to each customer point includes:
[0093]
[0094] in, represents the possibility of a vehicle being coordinated, Indicates the possibility of cooperation for the vehicle. represents the possibility of coordinated supply of the vehicle to the i-th customer point, Indicates the supply coordination flag value of the vehicle to the i-th customer point. Reflects the situation where the vehicle is assisted by other vehicles when delivering goods to the i-th customer point, so When equal to -1, When it is large, it means that when the vehicle needs help in supplying goods to the i-th customer point, other vehicles can also provide good help at the same time. Therefore, the possibility of supply coordination for the i-th customer point is relatively large. When it is equal to 1, When it is small, it means that the vehicle does not need help in supplying the i-th customer point, and other vehicles cannot provide it with good assistance. Therefore, the possibility of coordinated supply of the vehicle to the i-th customer point is small. It reflects the situation that the vehicle can provide assistance to other vehicles when supplying goods to the i-th customer point. When it is equal to 1, When it is larger, it means that the vehicle does not need help when supplying goods to the i-th customer point. At the same time, the vehicle can also provide help to other vehicles. Therefore, when the vehicle supplies goods to the i-th customer point, it is more likely to provide help to other vehicles. When equal to -1, When it is small, it means that when the vehicle needs help to supply the i-th customer point, the vehicle cannot provide good help to other vehicles at the same time. Therefore, when the vehicle supplies the i-th customer point, the possibility that the vehicle can provide help to other vehicles is small.
[0095] S3103: Calculate the probability that the vehicle will choose a customer point as the next delivery location.
[0096] The calculating of the probability that the vehicle takes a customer point as the next delivery location includes:
[0097]
[0098] in is the initial probability calculated by the conventional method. The larger the value, the greater the possibility that the vehicles can help each other in supplying goods when they choose the i-th customer point as the next supply point, so that the vehicles can help each other to meet the demand for goods of all customer points more quickly. This makes it possible to iterate the driving paths of each vehicle more quickly. is the probability that the vehicle chooses the i-th customer point as the next delivery location.
[0099] S311: In an iteration cycle, before supplying the customer point corresponding to the maximum probability as the supply location, it is necessary to determine whether the vehicle's cargo capacity is less than the cargo demand of the supply location. If the vehicle's cargo capacity is less than the cargo demand of the supply location, the pheromone concentration is updated.
[0100] It should be noted that in order to attract other vehicles to supply customers who need collaborative supply, it is necessary to set a higher pheromone on the path where the customer point needs collaborative supply. Therefore, it is necessary to determine whether the customer point needs collaborative supply. When the customer point needs collaborative distribution, the pheromone concentration on the path where the customer point is located needs to be updated. Figure 3 As shown, the present invention controls the coordinated supply of vehicles by updating the pheromone concentration.
[0101] Preferably, as an example, the updating of the pheromone concentration includes:
[0102]
[0103] The point where the vehicle arrives at a delivery location is recorded as the analysis customer point, and the customer point where the vehicle is located before arriving at the analysis customer point is recorded as the pre-position customer point. Indicates the demand for goods at the customer point. It reflects whether the vehicle's cargo capacity can meet the cargo demand of the analyzed customer point. The larger the value, the more the vehicle's cargo capacity cannot meet the cargo demand of the analyzed customer point. Therefore, the more necessary it is for the analyzed customer point to have other vehicles to coordinate the supply. It indicates the pheromone concentration adjustment between the front customer point and the analysis customer point. The larger the value, the greater the demand of the analysis customer point for other vehicles to provide coordinated supply to it. Therefore, the pheromone concentration between the front customer point and the analysis customer point should be adjusted to a larger value to attract other vehicles to supply the analysis customer point.
[0104] The cumulative sum of the pheromone concentration adjustment amount and the pheromone concentration between the front customer point and the analysis customer point is taken as the new pheromone concentration between the front customer point and the analysis customer point.
[0105] S312: In an iteration cycle, before supplying the customer point corresponding to the maximum probability as the supply location, it is also necessary to determine whether other vehicles have passed by the supply location where the vehicle arrives before. If other vehicles have passed by the supply location where the vehicle arrives before, the heuristic function value is updated.
[0106] It should be noted that the pheromone concentration and heuristic function value will not be updated in each iteration cycle of the ant colony algorithm. However, in each supply stage of each iteration cycle, some customer points require multiple vehicles to cooperate in supply. At this time, it is necessary to set a higher pheromone concentration at the customer point to attract vehicles to cooperate in supplying them. At the same time, cooperative supply between vehicles will increase transportation costs. If too much attention is paid to assisting in supply, it will affect the vehicle's ability to obtain the best path faster. Therefore, the transportation cost factor caused by cooperative supply needs to be introduced into the heuristic function to constrain vehicles from paying too much attention to cooperative supply. Figure 3 As shown, the present invention constrains the coordinated supply of vehicles by updating the heuristic function value.
[0107] Preferably, as an example, the updating of the heuristic function value includes:
[0108]
[0109] in, represents the distance between the preceding customer point and the analyzed customer point, Indicates the vehicle's travel speed between the preceding customer point and the analysis customer point. It reflects the extra driving time consumed by vehicles due to the collaborative supply effect. It reflects the extra transportation costs caused by the coordinated supply of vehicles. It indicates the adjustment of the heuristic function value between the front customer point and the analysis customer point. This value mainly reflects the cost of the vehicle caused by the collaborative supply effect. The larger the value, the more cost the vehicle causes due to the collaborative supply effect, and the more it is necessary to constrain the vehicle from paying too much attention to the collaborative supply effect.
[0110]
[0111] in, represents the heuristic function value between the previous customer point and the analysis customer point, Represents the new heuristic function value between the previous customer point and the analysis customer point.
[0112] According to the above embodiments, in an iteration cycle, when a condition is met, only the pheromone may be updated, or only the heuristic function value may be updated, or both the pheromone and the heuristic function value may be updated.
[0113] S32: In response to the goods demand of all customer points being met, the pheromone concentration and the heuristic function value are updated.
[0114] Optionally, as an example, the pheromone concentration updating method includes:
[0115]
[0116] in, Indicates the preset pheromone evaporation speed. represents the pheromone concentration between two customer points, represents the pheromone energy left by the e-th vehicle passing through the path between two customer points, represents the total number of vehicles, represents the updated pheromone concentration between two customer points. 0.6 is taken as an example for description, and other embodiments may take other values, which are not specifically limited in this embodiment.
[0117] Optionally, as an example, the heuristic function value updating method includes:
[0118] The heuristic function value between the two customer points is used as the updated heuristic function value between the two customer points.
[0119] It should be noted that the pheromone concentration updating method and the heuristic function value updating method after the cargo demands of all vehicles are met are conventional updating methods in the ant colony algorithm, and thus will not be described in detail here.
[0120] An embodiment of the present invention also discloses a logistics distribution intelligent path planning and supervision system based on the Internet of Things, including a processor and a memory, wherein the memory stores computer program instructions. When the computer program instructions are executed by the processor, an logistics distribution intelligent path planning method based on the Internet of Things according to the present invention is implemented.
[0121] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, whose configuration and functions are known in the art and thus will not be described in detail.
[0122] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory, a dynamic random access memory, a static random access memory, an enhanced dynamic random access memory, a high bandwidth memory, a hybrid storage cube, etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of the device or accessible or connectable to the device.
[0123] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will be able to think of many changes, modifications and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the process of practicing the present invention, various alternatives to the embodiments of the present invention described herein may be adopted.
[0124] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for intelligent path planning of logistics distribution based on the Internet of Things, characterized in that: Includes steps: Obtaining a pre-built ant colony algorithm, and iterating the ant colony algorithm according to an initial pheromone concentration and an initial heuristic function value; When the number of iterations of the ant colony algorithm reaches a preset number, the path at the last iteration is used as the optimal path for the vehicle to carry out logistics distribution; In each iteration cycle of the ant colony algorithm, in response to the fact that the cargo demand of a customer point is not met, the probability of the vehicle taking a customer point as the next supply location is calculated, and the customer point corresponding to the maximum probability is used as the supply location for supply; in response to the fact that the cargo demand of all customer points is met, the pheromone concentration and the heuristic function value are updated; Wherein, the probability satisfies the relationship: , is the initial probability, which is positively correlated with the pheromone concentration and the heuristic function value from the customer point where the vehicle is located to each customer point; , Indicates the possibility of vehicle coordination. Indicates the possibility of vehicle coordination. represents the possibility of coordinated supply of vehicles to the i-th customer point, Indicates the supply coordination flag value of the vehicle to the i-th customer point; R1 is positively correlated with the cargo capacity of the coordinated reference vehicle of the vehicle, and negatively correlated with the distance of the coordinated reference vehicle of the vehicle; R2 is negatively correlated with the cargo capacity of the coordinated reference vehicle of the vehicle, and negatively correlated with the distance of the coordinated reference vehicle of the vehicle; Possibility of vehicle coordination ; Represents the cargo capacity of a vehicle. represents the cargo capacity of the kth coordinated reference vehicle of the vehicle, It represents the maximum value of the cargo capacity of this vehicle and all coordinated reference vehicles. represents the distance between the vehicle and the kth coordinated reference vehicle, Indicates the maximum distance between the vehicle and all other coordinated reference vehicles. represents the number of coordinated reference vehicles of the vehicle; Possibility of vehicle supply coordination , Represents the cargo capacity of a vehicle. represents the cargo capacity of the kth collaborative reference vehicle of a vehicle, It represents the maximum value of the cargo capacity of this vehicle and all the coordinated reference vehicles. represents the distance between the vehicle and the kth collaborative reference vehicle, Indicates the maximum distance between the vehicle and all other coordinated reference vehicles. The number of the coordinated reference vehicles representing the vehicle; It also includes setting the supply coordination flag value, including: ; in, Represents the cargo capacity of a vehicle. represents the demand for goods at the i-th customer point, Indicates the preset minimum limit threshold. Indicates the preset maximum limit threshold.
2. According to the method of intelligent path planning for logistics distribution based on the Internet of Things in claim 1, it is characterized in that: The method for obtaining the coordinated reference vehicle and the coordinated reference vehicle of the vehicle includes: A vehicle whose distance to a vehicle is less than a preset distance threshold Y1 is used as a coordinated reference vehicle of the vehicle; A vehicle whose distance to a vehicle is less than a preset distance threshold value Y1 and whose cargo volume difference with the vehicle is greater than a preset cargo volume threshold value Y2 is used as a coordinated reference vehicle of the vehicle.
3. According to the method of intelligent path planning for logistics distribution based on the Internet of Things in claim 1, it is characterized in that: In an iterative cycle, before supplying the customer point corresponding to the maximum probability as the supply location, it is necessary to determine whether the vehicle's cargo capacity is less than the cargo demand of the supply location. If the vehicle's cargo capacity is less than the cargo demand of the supply location, the pheromone concentration is updated.
4. According to claim 3, a method for intelligent path planning for logistics distribution based on the Internet of Things is characterized in that: Then the pheromone concentration is updated, including: ; The point where the vehicle arrives at a delivery location is recorded as the analysis customer point, and the customer point where the vehicle is located before arriving at the analysis customer point is recorded as the pre-position customer point. Represents the cargo capacity of a vehicle. Indicates the demand for goods at the customer point. Indicates the pheromone concentration adjustment between the front customer point and the analysis customer point; The cumulative sum of the pheromone concentration adjustment amount and the pheromone concentration between the front customer point and the analysis customer point is taken as the new pheromone concentration between the front customer point and the analysis customer point.
5. According to the method of intelligent path planning for logistics distribution based on the Internet of Things in claim 1, it is characterized in that: In an iteration cycle, before supplying the customer point corresponding to the maximum probability as the supply location, it is also necessary to determine whether other vehicles have passed by the supply location where the vehicle arrives before. If other vehicles have passed by the supply location where the vehicle arrives before, the heuristic function value is updated.
6. The method for intelligent path planning for logistics distribution based on the Internet of Things according to claim 5 is characterized in that: Then the heuristic function value is updated, including: ; Wherein, the point where the vehicle arrives at a delivery location is recorded as the analysis customer point, and the customer point where the vehicle is located before arriving at the analysis customer point is recorded as the pre-position customer point; Represents the cargo capacity of a vehicle. represents the distance between the preceding customer point and the analyzed customer point, represents the driving speed of the vehicle between the preceding customer point and the analysis customer point, represents the adjustment amount of the heuristic function value between the preceding customer point and the analyzed customer point; ; in, represents the heuristic function value between the previous customer point and the analysis customer point, Represents the new heuristic function value between the previous customer point and the analysis customer point.
7. An intelligent path planning and supervision system for logistics distribution based on the Internet of Things, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, an intelligent path planning method for logistics distribution based on the Internet of Things according to any one of claims 1-6 is implemented.
Citation Information
Patent Citations
Multi-customer multi-warehouse logistics distribution route selection method
CN103413209B
Multiple-unmanned-aerial-vehicle multiple-ant-colony collaborative target searching method
CN110058613A
Computerized system and method for developing optimized cargo transportation solutions
US20220156693A1
