Multi-node-mode-oriented vehicle and goods matching method and system

Cargo clusters are generated through the silhouette coefficient method and k-means algorithm, and the heuristic and ant colony algorithm are combined to optimize the path. This solves the transportation efficiency and cost problems in multi-node vehicle and cargo matching, and provides effective matching and matching in multi-node scenarios. Path planning solution.

CN118536889AActive Publication Date: 2024-08-23UNIV OF SCI & TECH BEIJING

Patent Information

Application Number
CN202410762446.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-23
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

Existing vehicle-cargo matching methods are mainly limited to simple one-to-one scenarios and fail to effectively solve the problems of cargo assembly and transit transportation in multi-node scenarios, resulting in increased complexity and cost of transportation paths.

Method used

A vehicle-cargo matching method oriented to multi-node mode is adopted, the number of cargo clusters is determined by the silhouette coefficient method, the cargo clusters are generated using the k-means algorithm, and matching is performed based on the heuristic algorithm of matching fitness, and the ant colony algorithm is improved to design the transition probability and automatic Adapt to the evaporation factor and optimize vehicle path planning by combining distance and time factors.

Benefits of technology

It realizes the optimization of vehicle and cargo matching in multi-node scenarios, improves transportation efficiency and cost savings, can effectively solve the transportation problem of dispersed destination goods, and provides reasonable route solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536889A
    Figure CN118536889A
Patent Text Reader

Abstract

The invention discloses a vehicle and goods matching method and system oriented to a multi-node mode, and relates to the field of logistics operation management. According to the two-stage strategy of clustering according to the geographic coordinate position of the cargo destination and then planning the path, the geographic position information of the cargo is fully utilized, and the problem solving time is saved. According to the algorithm, firstly, a contour coefficient method is utilized to determine a clustering number k value, a k-means algorithm is applied to generate a cargo clustering scheme, and then cargo clusters are matched with vehicles through a matching fitness-based heuristic algorithm. And then, aiming at the path planning of each vehicle, improving the transition probability design of the ant colony algorithm, comprehensively considering distance and time factors, and adopting an adaptive evaporation factor and a local search strategy, thereby realizing the optimal planning of the vehicle path, improving the transportation efficiency and saving the cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of logistics operation management, and more specifically to a vehicle-cargo matching method and system for a multi-node mode. Background Art

[0002] According to the progress of relevant research at home and abroad, although a large number of research results have been achieved in the field of vehicle-cargo matching, the existing methods still have certain limitations in the application of vehicle-cargo matching. By comparing the research results of predecessors, the following main shortcomings can be summarized:

[0003] In practice, the vehicle-cargo matching problem involves a variety of scenarios, such as assembly and transit, but most existing literature only considers simple one-to-one scenarios. Due to the limitations of fewer application scenarios, there are relatively few studies involving one-to-many cargo assembly or transit transportation, which requires more in-depth research. Summary of the invention

[0004] In view of this, the present invention provides a vehicle-cargo matching method and system for a multi-node mode, which adopts a two-stage strategy of clustering the cargo destination geographical coordinates and then planning the path, making full use of the cargo geographical location information and saving the time of solving the problem. The algorithm first uses the silhouette coefficient method to determine the clustering number k value, and applies the k-means algorithm to generate a cargo clustering scheme, and then matches the cargo cluster with the vehicle through a heuristic algorithm based on matching fitness. Then, for the path planning of each vehicle, the transfer probability design of the ant colony algorithm is improved, the distance and time factors are comprehensively considered, and the adaptive evaporation factor and local search strategy are adopted to achieve the optimization planning of the vehicle path, thereby improving the transportation efficiency and cost saving.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] A vehicle-cargo matching method for a multi-node mode comprises the following steps:

[0007] The number of clusters is determined based on the freight information and vehicle information, and the freight information is clustered using the k-means algorithm combined with the silhouette coefficient method to obtain the freight clusters;

[0008] Match each cargo cluster with vehicle information based on heuristic rules;

[0009] The ant colony path planning algorithm is improved by using multiple strategies to plan the vehicle path and output the optimal solution for vehicle-cargo matching.

[0010] Optionally, the steps for determining the cluster value k using the silhouette coefficient method are as follows:

[0011] Run K-means clustering: Run each best k-means candidate selected by the elbow method;

[0012] Calculate the silhouette coefficient: For each data point, calculate its silhouette coefficient:

[0013]

[0014] Among them, a represents the average distance from the data point to other points in the same cluster, and b represents the average distance from the data point to the nearest cluster;

[0015] Calculate the average silhouette coefficient: Calculate the average silhouette coefficient corresponding to each best k-means candidate value, that is, average the silhouette coefficients of all data points;

[0016] Draw the average silhouette coefficient curve: Draw the average silhouette coefficient of each K value into a curve. Observe the curve, the silhouette coefficient range is between [-1,1]. The larger the value, the more reasonable the classification, thus determining the K value.

[0017] Optionally, each cargo cluster is matched with vehicle information based on heuristic rules. The specific steps are as follows:

[0018] Determine the cargo volume of each cluster: Calculate the total weight and volume of all cargo in each cluster and compare it with the model with the maximum load capacity. If it exceeds, remove the customer farthest from the cluster center until the capacity limit is met;

[0019] Cargo redistribution: Determine whether there is excess vehicle capacity in other customer groups. If so, the excluded customers will be included in the nearest customer group. If not, they will become a separate cluster.

[0020] Calculate the adaptability of each vehicle model using the following formula:

[0021]

[0022] Among them, w i represents the total weight of the i-th cluster, W k represents the load of the kth vehicle, δ ik It represents the fitness value of the k-th vehicle relative to the i-th cluster;

[0023] A greedy algorithm is used to assign vehicles one by one in the order of their adaptability.

[0024] Optionally, the specific steps of the multi-strategy improved ant colony path planning algorithm are as follows:

[0025] Initialize parameters and set the maximum number of iterations iter max ;

[0026] Based on the transition probability Calculate the jump probability of accessible nodes, use the roulette strategy to select the jump node of the ant, and update the tabulist k, add the selected city to it, and repeat the operation until a complete path construction is completed, that is, all cities are visited and returned to the starting city;

[0027] Calculate the cost of each road path and record the current optimal cost and corresponding path;

[0028] Calculate the adaptive evaporation coefficient and update the pheromone concentration τ on each path ij (t+1);

[0029] If the maximum number of iterations iter is reached max , the algorithm stops running and outputs the optimal result; if the maximum number of iterations iter is not reached max , then clear the taboo tables of all ants and continue iteration;

[0030] Output the best path found and its corresponding objective function value.

[0031] Optionally, transition probability The calculation formula is as follows:

[0032]

[0033] Among them, n ij (t) represents the visibility in the heuristic, α represents the time penalty coefficient, β represents the expected heuristic factor, τ ij (t) represents pheromone.

[0034] Optionally, the adaptive volatility coefficient is expressed as follows:

[0035]

[0036] Among them, L mean represents the average length of all contemporary paths; L min Indicates the shortest length of all contemporary paths.

[0037] A vehicle-cargo matching system for a multi-node mode, comprising:

[0038] Cargo clustering module: used to determine the number of clusters based on freight information and vehicle information, and cluster freight information using the k-means algorithm combined with the silhouette coefficient method to obtain cargo clusters;

[0039] Vehicle-cargo matching module: used to match each cargo cluster with vehicle information based on heuristic rules;

[0040] Optimal path planning module: used to improve the ant colony path planning algorithm using multiple strategies to plan vehicle paths and output the optimal solution for vehicle-cargo matching.

[0041] Through the above technical solutions, it can be known that compared with the prior art, the present invention provides a vehicle-cargo matching method and system for a multi-node mode, combines actual transportation constraints, establishes an optimization model that minimizes transportation costs, and proposes a k-means-based ant colony vehicle scheduling algorithm to solve the vehicle-cargo matching problem in this mode. First, according to the geographical coordinates of the destination of the goods, the clustering number k value is determined by the silhouette coefficient method, and the k-means algorithm is used to generate a cargo clustering scheme, and then the cargo cluster is matched with the vehicle through a heuristic algorithm based on the fitness value; then the path plan for each vehicle is planned. The present invention designs the transfer probability based on the traditional ant colony algorithm while considering the time and distance factors, and adopts the evaporation factor adaptive adjustment strategy and the local search strategy, and uses the improved ant colony algorithm to achieve path optimization; whether it is solving the problem of urban terminal distribution or long-distance transportation, the present invention can obtain a reasonable and effective route. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1 It is a schematic diagram of the overall solution flow of the present invention;

[0044] Figure 2 This is a flow chart of the K-means clustering algorithm of the present invention;

[0045] Figure 3 It is a schematic diagram of the local search strategy of the present invention;

[0046] Figure 4 This is a flow chart of the multi-strategy improved ant colony path planning algorithm of the present invention;

[0047] Figure 5 Schematic diagram of the vehicle-cargo matching problem in the multi-node transit mode of the present invention. DETAILED DESCRIPTION

[0048] 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 only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The embodiment of the present invention discloses a vehicle-cargo matching method for a multi-node mode, such as Figure 1 As shown, the following steps are included:

[0050] The number of clusters is determined based on the freight information and vehicle information, and the freight information is clustered using the k-means algorithm combined with the silhouette coefficient method to obtain the freight clusters;

[0051] Match each cargo cluster with vehicle information based on heuristic rules;

[0052] The ant colony path planning algorithm is improved by using multiple strategies to plan the vehicle path and output the optimal solution for vehicle-cargo matching.

[0053] In reality, transportation in a multi-node transit mode often involves one vehicle carrying goods for multiple destinations, which are scattered in different cities. This dispersion leads to longer transportation routes for goods, increases the complexity and cost of transportation, and reduces transportation efficiency. Therefore, for this dispersed cargo destination situation, it is necessary to adopt appropriate methods to cluster destinations in order to improve the efficiency of cargo distribution and reduce costs.

[0054] The present invention selects the k-means clustering algorithm combined with the silhouette coefficient method for clustering. The k-means clustering algorithm is a distance-based unsupervised learning algorithm that can divide data points into a predetermined number of clusters. Its core idea is to assign data points to the nearest cluster center through iteration, and update the cluster center until convergence.

[0055] Since the number of trucks in actual matching situations is often much larger than the amount of cargo, and the types of vehicles are not the same, the k value cannot be determined according to the number of trucks, and choosing the correct number of clusters K is crucial. Therefore, the present invention determines the optimal k value through the silhouette coefficient method.

[0056] The silhouette coefficient method evaluates clustering quality by measuring the ratio of the internal compactness of the clusters to the inter-cluster separation of the data points. The steps of the silhouette coefficient method of the present invention are as follows:

[0057] Run K-means clustering: Run each best k-means candidate selected by the elbow method;

[0058] Calculate the silhouette coefficient: For each data point, calculate its silhouette coefficient:

[0059]

[0060] Among them, a represents the average distance from the data point to other points in the same cluster, and b represents the average distance from the data point to the nearest cluster.

[0061] Calculate the average silhouette coefficient: Calculate the average silhouette coefficient corresponding to each best k-means candidate value, that is, average the silhouette coefficients of all data points;

[0062] Draw the average silhouette coefficient curve: Draw the average silhouette coefficient of each K value into a curve. Observe the curve, the silhouette coefficient range is between [-1,1]. The larger the value, the more reasonable the classification is, thus determining the K (final number of clusters) value.

[0063] The specific steps of the heuristic cargo allocation method are as follows:

[0064] Determine the cargo volume of each cluster: Calculate the total weight and volume of all cargo in each cluster and compare it with the model with the maximum load capacity. If it exceeds, remove the customer farthest from the cluster center until the capacity limit is met;

[0065] Cargo redistribution: Check whether there is excess vehicle capacity in other customer groups. If so, the excluded customers will be included in the nearest customer group. If not, they will become a separate cluster.

[0066] Calculate the adaptability δ of each type of vehicle: Since variable costs such as vehicle driving cost, fuel cost, and time penalty cost are mainly reflected in the path planning of the next stage, in this stage, the matching effect mainly affects the fixed cost in the cost. By maximizing the vehicle load utilization rate, the fixed cost expenditure can be reduced most directly to achieve the purpose of cost saving. For each type of vehicle, calculate its degree of adaptability to each cluster according to its load capacity. Investigate the ratio of the total weight of the cargo in the cluster to the load capacity of the vehicle. If the ratio is greater than 1, the fitness value is 0 (not considered); if it is less than 1, the closer the fitness value is to 1, the higher the fitness value.

[0067]

[0068] Among them, w i represents the total weight of the i-th cluster, W k represents the load of the kth vehicle, δ ik It represents the fitness value of the k-th vehicle relative to the i-th cluster.

[0069] Assign vehicles: Use a greedy algorithm to assign vehicles one by one in order of adaptability.

[0070] like Figure 2 As shown, the detailed steps of the K-means clustering algorithm of the present invention are as follows:

[0071] S1: Initialization: set the number of clusters K to be divided and the initial K cluster centers;

[0072] S2: Assignment: For each data point, i.e. the latitude and longitude coordinates of the destination, calculate its distance from each cluster center, and then assign the data point to the cluster to which the closest cluster center belongs. i , calculate its distance to each cluster center μ i , select the cluster center closest to it:

[0073]

[0074] Where C(x i ) is the data point x i The cluster to which it belongs, μ j is the center of the jth cluster.

[0075] The data points are expressed as longitude and latitude geographic coordinates, and the distance calculation formula is:

[0076]

[0077] S3: Update cluster center: For each cluster, calculate the average value of all data points in it and use it as the new cluster center. The mathematical representation of this step is:

[0078]

[0079] Among them, C j It is cluster C j The number of data points in .

[0080] S4: Repeat S2 and S3 until the cluster center no longer changes significantly, and output the cluster classification result;

[0081] S5: Determine the cargo volume of each cluster;

[0082] S6: Calculate the adaptability of each vehicle model;

[0083] S7: Allocate vehicles: Use a greedy algorithm to allocate vehicles one by one in the order of adaptability;

[0084] S8: Update vehicle cargo status: Once the vehicle allocation is completed, update the status of the cargo in each cluster, record which vehicles are assigned and the amount of cargo transported by each vehicle;

[0085] S9: Iteration: Repeat S5-8 until all goods are allocated.

[0086] For vehicles that have been assigned goods, path planning is performed for each vehicle to optimize the path while taking into account the goods time window to minimize the total cost.

[0087] The optimization goal of the present invention is to minimize the total cost, including vehicle fixed costs, transportation costs and time penalty costs. In this link, the largest proportion is the transportation cost and time window penalty cost. Therefore, in the process of path search, the two factors are first considered: waiting time factor and transportation distance factor, so that the transportation distance in the distribution process is as small as possible and the goods are delivered within the specified time range as much as possible. In response to the above requirements, the present invention uses the transition probability based on time factor and transportation distance factor to optimize the genetic algorithm for the reasonable selection of path nodes.

[0088] The time factor reflects the urgency of the cargo point's requirements for the cargo time. The present invention uses the early or late cargo delivery deadline to define the waiting time factor, so that cargo with an earlier deadline has a higher priority. Assume there are cargo points i and j, where i is the current location and j is the destination. Then the time factor wt can be defined ij for:

[0089] wt ij =LT i -t j ;

[0090] Among them: LT j is the latest allowed delivery time of cargo point j; t j is the actual time when the vehicle arrives at point j.

[0091] If wt ij A larger value of means that there is enough time margin for the transportation from cargo point i to cargo point j, and there is no rush for delivery. On the contrary, if wt ij If the value of is small or even negative, it means that the deadline of cargo point j is approaching or has already passed, and it needs to be delivered as soon as possible.

[0092] The transport distance factor is related to the distance between two cargo points. The greater the distance, the greater the transport distance factor. Assume d ij represents the distance between customer i and customer j, (x i ,y i ) represents the location of customer i, (x j ,y j ) represents the location of customer j. If the transport vehicle departs from customer i, and there are two undelivered customer points j1 and j2, the transport distance factor d ij1 <d ij2 , then the customer j1 with the shortest transportation distance should be given priority for delivery, which can improve the subsequent transportation efficiency of the vehicle and meet the needs of customers in a timely manner. Therefore, the present invention introduces the transportation distance factor into the transition probability to affect the selection of the transportation path, and the heuristic information factor d ij The mathematical expression is as follows:

[0093] Δy=y2-y1

[0094] Δx=x2-x1;

[0095]

[0096] d ij = r·c;

[0097] The average radius r of the earth is 6371 kilometers.

[0098] Since both distance and time factors affect the delivery efficiency and cost, in order to reflect both distance and time factors in the transfer probability, the present invention constructs a cost function C that comprehensively considers these two factors when designing the transfer probability. ij , which also takes into account the distance d from cargo point i to cargo point j ij and time factor wt ij , as shown below:

[0099] C ij = χd ij +δwt ij ;

[0100] Among them, d ij is the distance from cargo point i to cargo point j. wt ij is the time factor, which reflects the urgency of the deadline of cargo point j. χ and δ are weight coefficients, which determine the relative importance of distance and time factors in the cost function.

[0101] In the ant colony algorithm, visibility n ij The design of (t) depends on the specific nature of the problem and the definition of the cost function. Its meaning is to encourage ants to choose paths with shorter distances. Therefore, the visibility n of the present invention is ij (t) is expressed as the inverse of the cost function:

[0102]

[0103] Transition probability It represents the transfer probability of delivery vehicle k from customer point i to customer point j. The greater the transfer probability of the customer point, the greater the possibility of selecting the customer for delivery. Its calculation formula is as follows:

[0104]

[0105] Assume that after the transport vehicle completes the transport service for cargo i, and there are cargo points j1 and j2 that have not been transported, calculate the transfer probability from cargo point i to cargo points j1 and j2 respectively and If exists Cargo j2 is given priority for transportation.

[0106] In the ant colony algorithm, the volatilization of pheromones is a key mechanism that simulates the process of pheromones disappearing over time in the real world. The volatilization of pheromones helps prevent the algorithm from falling into a local optimal solution too early and drives the algorithm to find new solutions. The adaptive pheromone volatilization coefficient is introduced to balance the exploration and utilization capabilities of the algorithm. The degree of pheromone volatilization can be dynamically adjusted according to the distribution of path lengths during the iteration process. If the path length is relatively concentrated, it means that a better solution has been found, and the volatilization can be reduced; conversely, if the path length is dispersed, the volatilization is increased to promote the exploration of new paths. The expression formula of the adaptive volatilization coefficient is as follows:

[0107]

[0108] Where: L mean is the average length of all paths in the contemporary era; L min It is the shortest length of all contemporary paths.

[0109] When L mean Close to L min When , this indicates that most ants have found similar paths, which may mean that the pheromone distribution points to a neighborhood of excellent solutions. In this case, we want to retain these valuable pheromones, thus reducing the evaporation rate of pheromones, so the value of ρ will be smaller.

[0110] On the contrary, L mean Much larger than L min , indicating that the quality of the paths found by ants is uneven, and the pheromone distribution may not be able to effectively guide the ants to find a good solution. Therefore, we hope to increase the pheromone evaporation rate and remove pheromones that lead to poor paths to promote the algorithm to explore new paths, so the value of ρ will be larger.

[0111] In this way, the adaptive pheromone evaporation coefficient can dynamically adjust the evaporation degree of pheromone according to the current path length distribution, which helps to maintain the balance between exploring new solutions and utilizing known excellent solutions.

[0112] In the ant colony algorithm, local search methods are used to improve the quality of the solution by making minor adjustments to the current solution to find a better solution. The 2-opt operator is an optimization algorithm for solving the vehicle routing problem. The basic idea is to optimize the path by randomly selecting two nodes in the path and reversing the path between the two nodes to eliminate possible intersections in the path. If the reversed path is shorter than the original path, the reversed path is used to replace the original path. Suppose there is a path {0,2,4,3,1,0} that selects nodes 2 and 1 through the 2-opt operator, reverses the path between the two nodes, and obtains a new path {0,2,3,4,1,0}. According to the triangle inequality, if the length of the new path is shorter than the original path, the new path is accepted. This is because in geometric space, the length of any side of the triangle formed by any three points is less than the sum of the lengths of the other two sides. Therefore, if nodes 1, 2, 3, and 4 in the original path form an intersection, then by reversing this part of the path, this intersection can be eliminated, which may shorten the total length of the path, such as Figure 3 shown.

[0113] like Figure 4 As shown, the overall process of the improved strategy ant colony algorithm is as follows:

[0114] Initialization parameters: Initialize the number of ants m, and randomly place all ants on n different cities. Set time t = 0, iteration number iter = 0, and set the maximum number of iterations iter max Initialize the pheromone matrix Δτ ij (0) = 0, initialize the visibility matrix n ij (t), set constant ρ0 as the initial pheromone concentration. Set the information heuristic factor α and the expected heuristic factor β. Set the pheromone increase intensity Q. Set the taboo table to record the cities visited by the ants;

[0115] Generate Path: Based on Transition Probability Calculate the jump probability of accessible nodes, use the roulette strategy to select the jump node of the ant, and update the tabulist k , add the selected city to it. Repeat the operation until a complete path is built, that is, all cities are visited and returned to the starting city;

[0116] Calculate the fitness value: calculate the cost of each path, and record the current optimal cost and corresponding path;

[0117] Update pheromone: calculate the adaptive evaporation coefficient and update the pheromone concentration τ on each path ij (t+1);

[0118] Determine whether the algorithm ends: If the maximum number of iterations iter is reached max , the algorithm stops running and outputs the optimal result. If the maximum number of iterations iter is not reached max , then clear the taboo tables of all ants and return to the "generation path" to continue iteration;

[0119] Output result: Output the best path found and its corresponding objective function value.

[0120] In the field of road freight, a multi-node transit network refers to a logistics network that involves multiple transfer points or transit stations in the process of cargo transportation. In such a network, cargo may need to pass through one or more transit stations from the starting point to finally reach the destination. For example, LTL freight involves combining small batches of goods sent to different destinations for transportation, which needs to be delivered to several different cities in turn; large logistics companies usually have transportation networks covering a wide range of areas, and goods may need to be sorted, reloaded and transferred at several transit stations before reaching the final destination; in terminal transportation, goods may first be transported from a distribution center to nearby regional outlets. In a multi-node transit network, the vehicle-cargo matching problem is particularly important, and it is necessary to comprehensively consider the distribution of goods and the scheduling of vehicles in order to optimize the efficiency and cost of the entire transportation process. The problem is illustrated as follows Figure 5 shown.

[0121] In order to fit the actual application scenario and simplify the model to a certain extent, the following assumptions are made first:

[0122] There is a batch of goods with different sizes, weights, destinations and timeliness;

[0123] There is a fleet of vehicles available, which vary in model, load capacity, and volume;

[0124] These goods need to be matched with vehicles while ensuring that the maximum load and volume limits of each vehicle are not exceeded, and the vehicles deliver the assigned goods in sequence;

[0125] The goal is to find a matching solution between goods and vehicles so that all goods can be delivered to the corresponding destinations and the total transportation cost is minimized;

[0126] Regardless of the special properties of the goods, goods from different sources can be assembled;

[0127] This embodiment is based on studying the matching of vehicle and cargo sources in the city, so it is assumed that the departure point of the cargo and the location of the vehicle are the same;

[0128] The scenario studied in this embodiment is that all goods are transported to the distribution point in the city by small trucks before transportation. The freight trucks directly load the goods from this point and depart without picking up the goods at multiple locations. Therefore, this model does not have a picking up link;

[0129] Each cargo corresponds to a destination, called a cargo node;

[0130] The vehicle starts from the shipping point and needs to return to the shipping point before the transportation is completed;

[0131] Assume that idle vehicles can meet the needs of all shippers;

[0132] If the vehicle is late for the given delivery deadline, there will be a corresponding time penalty cost, but if it is early for the specified time, there will be no penalty cost;

[0133] The goods cannot be split and each item can only be transported by one vehicle;

[0134] The vehicles travel at a constant speed and generate corresponding service time at each cargo node.

[0135] In this embodiment, the objective function mainly includes three parts, namely, vehicle fixed cost, transportation cost, and time penalty cost.

[0136] Fixed cost analysis: Vehicle activation will generate a certain fixed cost, which increases with the number of activated vehicles and has nothing to do with vehicle mileage and the number of customers visited. When the number of activated vehicles increases or decreases, the total cost also changes accordingly. If the fixed cost of vehicle k is f k , then the expression of fixed cost TC1 is as follows:

[0137]

[0138] Transportation cost analysis: In multi-node transportation, trucks usually need to visit multiple cargo nodes. Suppose that when vehicle k visits path (i, j), the travel distance is d ijk Therefore, the expression of transportation cost TC2 is as follows:

[0139]

[0140] Time penalty cost analysis: This embodiment mainly considers the soft time window scenario. If the transportation arrival time is later than the customer's given time, a corresponding penalty cost will be incurred. If the vehicle arrives later than the deadline, the late penalty cost will be included. The time window penalty cost function p(t) is expressed as follows:

[0141]

[0142] Then the time window deviation penalty cost TC3 is:

[0143]

[0144] In summary, the expressions of the objective function and the total cost of this embodiment are as follows:

[0145] minf(x)=FC+VC+TC;

[0146] The constraints are as follows:

[0147] Vehicle scheduling constraints: The vehicle path is a closed loop, with both the starting point and the end point being the shipping point.

[0148]

[0149] Secondly, each customer is served by one and only one vehicle during the transportation process.

[0150]

[0151] Each node must maintain a balance between input and output, ensuring that the number of times a vehicle goes from node i to node j is equal to the number of times a vehicle goes from node j to node i. This balance ensures that after completing the task at each node, the vehicle will continue to the next node, thus maintaining the continuity of the path. This helps ensure that the transport vehicles can perform their tasks efficiently and avoid unnecessary stops and path interruptions.

[0152]

[0153] Each vehicle can be dispatched at most once per match.

[0154]

[0155] Travel time constraint: The time it takes for a vehicle to arrive at customer i from the transportation center is the time it takes to depart from the shipping point plus the time it takes to travel the path (0, j). The time it takes for a vehicle to arrive at j is the time it takes to arrive at i plus the service time and the time it takes to travel to (i, j).

[0156]

[0157] The vehicle driving process cannot exceed the maximum vehicle driving time T k .

[0158]

[0159] Vehicle load restrictions:

[0160] The load of the vehicle at any time must not exceed the maximum load and volume limit of the vehicle.

[0161]

[0162] When a vehicle visits the path (i, j), when it arrives at customer point j, the vehicle's load is equal to the vehicle's load when it arrives at customer point i minus the demand weight of customer point i.

[0163]

[0164] Finally, the present invention discloses a vehicle-cargo matching system for a multi-node mode, comprising:

[0165] Cargo clustering module: used to determine the number of clusters based on freight information and vehicle information, and cluster freight information using the k-means algorithm combined with the silhouette coefficient method to obtain cargo clusters;

[0166] Vehicle-cargo matching module: used to match each cargo cluster with vehicle information based on heuristic rules;

[0167] Optimal path planning module: used to improve the ant colony path planning algorithm using multiple strategies to plan vehicle paths and output the optimal solution for vehicle-cargo matching.

[0168] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0169] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined in the present invention may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in the present invention, but will conform to the widest scope consistent with the principles and novel features disclosed in the present invention.

Claims

1. A vehicle-cargo matching method for a multi-node mode, characterized in that: The following steps are involved: The number of clusters is determined based on the freight information and vehicle information, and the freight information is clustered using the k-means algorithm combined with the silhouette coefficient method to obtain the freight clusters; Match each cargo cluster with vehicle information based on heuristic rules; The ant colony path planning algorithm is improved by using multiple strategies to plan the vehicle path and output the optimal solution for vehicle-cargo matching.

2. A vehicle-cargo matching method for a multi-node mode according to claim 1, characterized in that: The steps to determine the cluster value k using the silhouette coefficient method are as follows: Run K-means clustering: Run each best k-means candidate selected by the elbow method; Calculate the silhouette coefficient: For each data point, calculate its silhouette coefficient: Among them, a represents the average distance from the data point to other points in the same cluster, and b represents the average distance from the data point to the nearest cluster; Calculate the average silhouette coefficient: Calculate the average silhouette coefficient corresponding to each best k-means candidate value, that is, average the silhouette coefficients of all data points; Draw the average silhouette coefficient curve: Draw the average silhouette coefficient of each k value into a curve graph; observe the curve, the silhouette coefficient range is between [-1,1], the larger the value, the more reasonable the classification, thus determining the K value.

3. The vehicle-cargo matching method for a multi-node mode according to claim 1, characterized in that: Based on the heuristic rules, each cargo cluster is matched with the vehicle information. The specific steps are as follows: Determine the cargo volume of each cluster: Calculate the total weight and volume of all cargo in each cluster and compare it with the model with the maximum load capacity. If it exceeds, remove the customer farthest from the cluster center until the capacity limit is met; Cargo redistribution: Determine whether there is excess vehicle capacity in other customer groups. If so, the excluded customers will be included in the nearest customer group. If not, they will become a separate cluster. Calculate the adaptability of each vehicle model using the following formula: Among them, w i represents the total weight of the i-th cluster, W k represents the load of the kth vehicle, δ ik It represents the fitness value of the k-th vehicle relative to the i-th cluster; A greedy algorithm is used to assign vehicles one by one in the order of their adaptability.

4. The vehicle-cargo matching method for a multi-node mode according to claim 1, characterized in that: The specific steps of the multi-strategy improved ant colony path planning algorithm are as follows: Initialize parameters and set the maximum number of iterations iter max ; Based on the transition probability Calculate the jump probability of accessible nodes, use the roulette strategy to select the jump node of the ant, and update the tabulist k , add the selected city to it, and repeat the operation until a complete path construction is completed, that is, all cities are visited and returned to the starting city; Calculate the cost of each road path and record the current optimal cost and corresponding path; Calculate the adaptive evaporation coefficient and update the pheromone concentration τ on each path ij (t+1); If the maximum number of iterations iter is reached max , the algorithm stops running and outputs the optimal result; if the maximum number of iterations iter is not reached max , then clear the taboo tables of all ants and continue iteration; Output the best path found and its corresponding objective function value.

5. The vehicle-cargo matching method for a multi-node mode according to claim 4 is characterized in that: Transition probability The calculation formula is as follows: Among them, n ij (t) represents the visibility in the heuristic, α represents the time penalty coefficient, β represents the expected heuristic factor, τ ij (t) represents pheromone.

6. The vehicle-cargo matching method for a multi-node mode according to claim 4 is characterized in that: The expression formula of adaptive volatility coefficient is as follows: Among them, L mean represents the average length of all contemporary paths; L min Indicates the shortest length of all contemporary paths.

7. A vehicle-cargo matching system for a multi-node mode, characterized in that: include: Cargo clustering module: used to determine the number of clusters based on freight information and vehicle information, and cluster freight information using the k-means algorithm combined with the silhouette coefficient method to obtain cargo clusters; Vehicle-cargo matching module: used to match each cargo cluster with vehicle information based on heuristic rules; Optimal path planning module: used to improve the ant colony path planning algorithm using multiple strategies to plan vehicle paths and output the optimal solution for vehicle-cargo matching.

Citation Information

Patent Citations

  • Task scheduling method based on greedy adaptive ant colony algorithm

    CN111967643A

Cited By

  • Recovery control system based on MVR system

    CN119105347A

  • Fault criterion mining method and device based on K-means clustering

    CN120492959A

  • Path planning method for transportation of bulk edible oil tank truck

    CN120806321A

  • Transport vehicle scheduling method for smart port

    CN120952496A