CN108154254B - Logistics distribution vehicle scheduling method based on improved A-x algorithm - Google Patents

Logistics distribution vehicle scheduling method based on improved A-x algorithm Download PDF

Info

Publication number
CN108154254B
CN108154254B CN201710609578.0A CN201710609578A CN108154254B CN 108154254 B CN108154254 B CN 108154254B CN 201710609578 A CN201710609578 A CN 201710609578A CN 108154254 B CN108154254 B CN 108154254B
Authority
CN
China
Prior art keywords
distance
algorithm
vehicle
grid
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710609578.0A
Other languages
Chinese (zh)
Other versions
CN108154254A (en
Inventor
易星
吴昊
陈军
杨晓星
易阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jinmou Network Technology Co.,Ltd.
Suzhou 30 Billion Technology Co ltd
Original Assignee
Nanjing Communications Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Communications Institute of Technology filed Critical Nanjing Communications Institute of Technology
Priority to CN201710609578.0A priority Critical patent/CN108154254B/en
Publication of CN108154254A publication Critical patent/CN108154254A/en
Application granted granted Critical
Publication of CN108154254B publication Critical patent/CN108154254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q50/40
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Development Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention relates to a method based on improved A*The logistics distribution vehicle scheduling method of the algorithm provides a scheme of vehicle scheduling, path selection and path planning in logistics distribution: comprises a modified type A*Algorithm and logistics distribution algorithm; wherein the improvement is*The algorithm is used for rapidly searching the optimal path between two points and comprises the following steps: gridding a distribution area, preferably evaluating a proper distance, and searching a shortest distance by a recursive method; the logistics distribution algorithm is used for generating vehicle information sent from a distribution center to each customer node, wherein the vehicle information comprises a vehicle number, passing customer nodes, a vehicle route, a load capacity and a total route distance, and the logistics distribution algorithm comprises the following steps: calculating the distance and the route from each client node to the logistics center, and generating a distribution scheme by using an improved weighted graph algorithm. The dispatching method gives consideration to constraint conditions in vehicle paths, reduces the total transportation distance, enhances the comprehensive control and management of the logistics distribution process, and realizes economical and practical distribution lines.

Description

Logistics distribution vehicle scheduling method based on improved A-x algorithm
Technical Field
The invention relates to the technical field of car networking, in particular to a car networking system based on an improved A*A logistics distribution vehicle scheduling method of an algorithm.
Background
Vehicle scheduling problems (VRPs) in logistics distribution paths are a typical combinatorial optimization problem and have proven to be an NP-hard problem that is difficult to solve in a finite time with accurate algorithms.
Common algorithms include Dijkstra algorithm and optimal preferential search (BFS) algorithm, but the two algorithms have certain defects, Dijkstra is a typical single-source shortest path algorithm, when a U-shaped obstacle in a map is encountered, the Dijkstra algorithm runs slowly, and the execution efficiency needs to be improved; BFS, although it is much faster than Dijkstra's algorithm, selects a long path without avoiding when encountering a U-shaped obstacle in the map, since it only considers the cost of reaching the target.
Disclosure of Invention
The invention aims to provide a rapid and convenient VRP combination optimization scheme.
The technical scheme adopted by the invention is as follows:
the invention provides a method based on an improved A*The logistic distribution vehicle dispatching method of the algorithm comprises an improved type A*Algorithm and logistics distribution algorithm.
The terms used in the present invention are explained as follows:
(1) path: a sequence of consecutive numbers called nodes from start to end;
(2) path weight: path length from one node to another;
(3) the following drawings: is a set of nodes and edges, usually denoted by G ═ V, E, where V is the set of all nodes and E is the set of all edges;
(4) undirected graph: is a graph with no direction of edges, and no order relationship between two vertexes, and the examples (V1, V2) and (V2, V1) represent the same edges;
(5) adjacency matrix: for an undirected graph, the adjacency matrix must be symmetrical, the diagonal of the adjacency matrix is 0, and the matrix represents the adjacent relation between each node in the graph;
(6) shortest path: there are multiple paths from the initial vertex to the end vertex in the undirected graph, and the shortest path is taken as the shortest path.
Improved A of the invention*The algorithm is used for rapidly searching the optimal path between two points and comprises the following steps: gridding the delivery area, preferably evaluating the distance appropriately, and searching for the shortest distance three parts in a recursive method.
The logistics distribution algorithm is used for generating vehicle information sent from a distribution center to each customer node, wherein the vehicle information comprises a vehicle number, passing customer nodes, a vehicle route, a load capacity and a total route distance, and the logistics distribution algorithm comprises the following steps: calculating the distance and the route from each client node to the logistics center, and generating a distribution scheme by using an improved weighted graph algorithm.
In the present invention, the positions of the logistics center and the customer sites are known, and the maximum cargo capacity of the cargo truck is Q, and the cargo truck uses at most m cargo trucks from the logistics center to distribute the cargo to n customersmaxMaximum distance of travel LmaxThe trucks start from the logistics distribution center, return to the logistics center after completing the transportation task, and have the following constraint conditions:
(1) the using time of truck transportation is minimum;
(2) the shortest transportation distance;
(3) completing the delivery using a minimum of vehicles;
(4) the total amount of the customer goods in each distribution line is less than or equal to the maximum loading capacity of the truck;
(5) each customer site is completed by one delivery of one truck and cannot be repeated.
Improved A of the invention*The algorithm is realized by the following steps:
(1) gridding a distribution area: on the premise of knowing the accurate geographic position of a client node, dividing a map into square grids (Grid) according to a certain proportion, and describing the Grid state by a two-dimensional array; the trellis pass-then trellis state is labeled □, represented as 0 in the array; if the grid is not passed then the grid status flag is
Figure BDA0001358326680000024
1 in the array; the path is a set of grids passing from a starting grid S to an end grid E, wherein the passing grids are called nodes, the nodes have a passable state and a non-passable state, and the passable state has two modes of moving along the XY axis direction of the grids and moving along the diagonal direction of the grids;
(2) preferably, the appropriate evaluation distance: node n (x)n,yn) Is from a starting point S (x)S,yS) And end point E (x)E,yE) The node reached after n steps evaluates the distance f (n) g (n) h (n), where g (n) is the distance from the starting point S to the path passed by the node n, the grid side length is d, i is a certain grid passed by the starting point a to the node nIf the grid is moved in the XY-axis direction of the grid, the distance d (i) ═ d passed by the grid, and if the grid is moved in the diagonal direction of the grid, the distance passed by the grid
Figure BDA0001358326680000021
Figure BDA0001358326680000022
h (n) is a heuristic function from the node n to the end point E, the value of which is the minimum value of the Manhattan distance and the Euclidean distance between two points, and Min () represents a function for returning the minimum value, then
Figure BDA0001358326680000023
If the terrain is known, and for the convenience of calculation, the manhattan distance can be directly selected, namely h (n) ═ xn-xE|+|yn-yEL, |; comparing the Euclidean distances when the Manhattan distances are the same;
(3) the shortest distance is searched for by a recursive method: with A*(S, E) describing a better path from the starting point S to the end point E and returning a weight of the path, wherein the weight of the path is represented by L1, an open set stores all grids which are considered to find the shortest path, a closed set stores grids which are not considered any more, and a set PminStoring the grids with the minimum f (n) values in the open sets, storing all the sets in a stack form, and constructing a linked list K, A according to a last-in first-out principle*The algorithm of (S, E) is described as follows:
STEP 1: emptying an open set and a closed set, and putting S into the open set;
STEP 2: continuing when the open is not empty, otherwise returning to the error and exiting;
STEP 3: finding out the node n with the minimum evaluation distance in open, and putting n into PminPerforming the following steps;
STEP 4: if n is equal to E, the end point is found, the step9 is switched to, otherwise, the operation is continued;
STEP5: removing n from the open set and adding the n into the closed set;
STEP 6: checking all grids G which can be passed around n, and skipping grids which cannot be passed;
STEP 7: adding all G not in the open set into the open set;
STEP 8: returning to STEP 2;
STEP 9: from E, pop P out in sequenceminAnd adding the linked list K into the nodes in the set until the starting point S is returned, reversely placing the linked list K to obtain a path from the starting point S to the end point E, and obtaining the weight L1 f (E) of the path.
The logistics distribution algorithm of the invention comprises the following steps:
(1) calculating the distance and route from each client node to the logistics center, wherein the address of the distribution center A is (x)A,yA) Address (x) of client node ViVi,yVi) (i ═ 1,2, …, n) by modification a*The algorithm calculates the path weight from the distribution center to each node Vi and puts the path weight into a one-dimensional array Lse Vi]=A*(a, Vi) (i ═ 1, …, n), and saves its path;
(2) generation of delivery plans by means of a modified weighted graph algorithm, known as delivery center A (x)A,yA) The client nodes and paths are described by a weighted undirected graph, G ═ V, E ═ V1, …, Vn }, E { (Vi, Vj) } (Vi ∈ V, Vj ∈ V), using a two-dimensional array L [ Vi ∈ V }][Vj]Storing the weight values between vertexes Vi to Vj, L [ Vi][Vj]=A*(Vi,Vj);D[k]The travel distance to store each vehicle includes the distance to return to the distribution center, where (k ═ 1,2, …, M), M is the vehicle maximum; q [ k ]]Storing the load weight of each vehicle in driving, wherein (k is 1,2, …, M); the maximum travel distance of each vehicle is Lmax(ii) a The maximum load of each vehicle is Qmax(ii) a Set VTIs a set of unassigned vertices; set S [ k ]]Is a set of vertices assigned to the kth vehicle; a is a process variable and represents the current starting point to search the vertex of the next jump; the algorithm is described as follows:
STEP 1: initialization variable k is 1, VT=V;
STEP 2: initializing S [ k ] ═ phi, Q [ k ] ═ 0, D [ k ] ═ 0, and a ═ A;
STEP3:VTturning to STEP10 when empty, otherwise, continuing;
STEP 4: from the set VTMiddle through modified type A*The algorithm finds the vertex V [ i ] with the minimum distance from a];
STEP5: judgment (Q [ k ]]+Q[V[i]]<=Qmax)AND(D[k]+L[a][V[i]]+Lse(V[i])<=Lmax) If true, go to STEP6, otherwise go to STEP 9;
STEP6:D[k]=D[k]+L[a,V[i]],Q[k]=Q[k]+Q[V[i]],a=V[i];
STEP 7: let the vertex V [ i ]]Put into the set S [ k ]]In (3), delete the set VTV [ i ] of (1)];
STEP 8: returning to STEP 3;
STEP 9: d [ k ] + ls [ a ], k ═ k +1, return to STEP 2;
STEP 10: d [ k ] + ls [ a ], and ends.
The returned client nodes which are stored in the set S [ k ] and need to be visited by the vehicle k are the client nodes, the visiting sequence is the sequence of the elements in the set S [ k ], and all the logistics distribution vehicles only need to visit the client nodes in the set according to the corresponding vehicle.
Compared with the prior art, the invention has the following advantages:
improved A of the invention*The algorithm combines the advantages of a conventional algorithm Dijsktra and a heuristic algorithm, different heuristic functions are used for adapting to different terrains for solving the shortest path, a weighted graph is designed in the logistics distribution algorithm for describing the road path condition, and the distribution scheme is planned by an improved recursive weighted graph search algorithm to obtain the optimal solution of the VRP.
Drawings
The invention is further described with reference to the accompanying drawings and detailed description, in which:
FIG. 1 is a schematic diagram of a U-shaped obstacle shortest path;
FIG. 2 shows a modification A*Searching a path map in a straight-line obstacle map by an algorithm;
FIG. 3 is a schematic diagram of a weighting path;
FIG. 4 is a adjacency matrix diagram of a weighted graph.
Detailed Description
Gridding a distribution area:
as shown in fig. 1, on the premise that the precise geographic location of a client is known, a map is divided into square grids (Grid) according to a certain proportion and simplified into a two-dimensional array, each Grid is an element of the array, and the Grid mark □ represents a passable path and is marked as □
Figure BDA0001358326680000051
Indicating an impassable path (e.g., wall, gutter, etc.). A path is referred to as a set of points that pass through the grid from a starting point a to an end point B, where the points that pass through are referred to as "nodes," which may be any location of any shape.
Preferably, the appropriate evaluation distance:
as shown in fig. 2, a is a starting point, B is an end point, the edges of the grid are 10, g (n) is added to 10 when moving along the XY axis of the grid, g (n) is added to 14 when moving along the diagonal of the grid (where integers are taken for convenience of calculation), and the value of h (n) is the minimum value of the manhattan distance from the node to the point B and the euclidean distance, or one of them, where the manhattan distance h ═ x is selected for convenience of calculation1-x2|+|y1-y2|, LABThe final path weight from A to B is stored in the buffer.
The shortest distance is searched for by a recursive method:
as shown in fig. 2, the following steps describe the process of searching for a path:
step 1: emptying open and closed sets;
step 2: putting A into an open set, finding a square which can pass around A, calculating the value of F-G + H, finding the square which is 54 marked with 1, and adding A into a closed set;
step 3: putting 1 into an open set, finding a square grid which can pass around the 1, calculating the value of F-G + H, finding the square grid which is 74 and marked by 2, and adding 1 into a closed set;
step 4: putting 2 into an open set, finding a square grid which can pass around 2, calculating the value of F-G + H, finding the square grid which is 74 and marked by 3, and adding 2 into a closed set;
step5, putting 3 into the open set, finding the square grids which can pass around the 3, calculating the value of F & ltG + H & gt, finding the square grid which is F & lt74 & gt and marked by 4, and adding 3 into the closed set;
step 6: putting 4 into an open set, finding a square which can pass around 4, calculating the value of F-G + H, finding the square which can pass around F-68 and marking the square with 5, and adding 4 into a closed set;
step 7: putting 5 into an open set, finding a square which can pass around the 5, calculating the value of F-G + H, finding the square B of F-68, and adding the 5 into a closed set;
step 8: putting B into an open set, calculating the value of F ═ G + H, F ═ 68, and adding B into a closed set;
step 9: ending circulation, returning path to A, and sequentially B-fifth-fourth-third-fifth-A, so that the shortest path from A to B is LAB=68。
The logistics distribution algorithm is realized as follows:
as shown in fig. 3, the vertex a is the logistics center, the vertices V1 to V6 are the customer nodes, and the logistics distribution needs to traverse all the vertices in the graph from the vertex a, satisfy the logistics distribution constraint, and obtain the optimal path solution.
The distance weights between vertices, represented as a adjacency matrix, can be obtained from FIG. 3, as shown in FIG. 4.
Regarding the undirected weight graph G (V, E) as a road from a distribution center to each customer point, wherein the distribution center A, nodes V1 to V6 are vertexes of each customer, and the weight E on each side represents the distance of the path; qmax=4.9,Lmax200, initialize k 1, set VTAdding V1, V2, V3, V4, V5 and V6 into a set VTSet of
Figure BDA0001358326680000061
Assign a to distribution center A, the vehicle load Q [1]]0, distance D [1]]=0;
Step 1: from the set VT{ V1, V2, V3, V4, V5, V6}, searching a vertex V2 with the minimum distance to a, and judging a condition Q [1]]+2.3<=QmaxAnd D [1]]+15+15<=LmaxIf the condition is satisfied, then V2 is selected from the set VTDelete middle, put set S [1]]In this case, S [1]]={V2},Q[1]=2.3,D[1]15, then V2 is assigned to a;
step 2: from the set VT{ V1, V3, V4, V5, and V6} searching the vertex V6 with the minimum distance to a, and judging the condition Q [1]]+2.3<=QmaxAnd D [1]]+22+30<=LmaxIf the condition is satisfied, then V6 is selected from the set VTDelete middle, put set S [1]]In this case, S [1]]={V2,V6},Q[1]=4.6,D[1]67, V6 is assigned to a;
step 3: from the set VT{ V1, V3, V4, V5} searching the vertex V4 with the minimum distance to a, and judging the condition Q [1]]+1.5<=QmaxAnd D [1]]+25+39<=LmaxIf the first condition is not satisfied, the first vehicle is distributed completely, Q1]=4.6,D[1]67, k 2, assign a to a and reset Q2]=0,D[2]=0;
Step 4: from the set VT{ V1, V3, V4, V5} searching the vertex V3 with the minimum distance to a, and judging the condition Q [2]]+1.8<=QmaxAnd D [2]]+35+35<=LmaxIf the condition is satisfied, then V3 is selected from the set VTDelete middle, put set S [2]]In this case, S2]={V3},Q[2]=1.8,D[2]35, V3 is assigned to a;
step5: from the set VT{ V1, V4, V5} searching the vertex V5 with the minimum distance from a, and judging the condition Q [2]]+1.3<=QmaxAnd D [2]]+40+37<=LmaxIf the condition is satisfied, then V5 is selected from the set VTDelete middle, put set S [2]]In this case, S2]={V3,V5},Q[2]=3.1,D[2]V5 is assigned to a at 75;
step 6: from the set VT{ V1, V4} searching the vertex V4 with the minimum distance to a, and judging the condition Q [2]]+1.5<=QmaxAnd D [2]]+55+39<=LmaxIf the condition is satisfied, then V4 is selected from the set VTDelete middle, put set S [2]]In this case, S2]={V3,V5,V4},Q[2]=4.6,D[2]130, V4 is assigned to a;
step 7: from the set VT{ V1} searching the vertex V1 with the minimum distance from a, and judging the condition Q [2]]+2.3<=QmaxAnd D [2]]+74+44<=LmaxIf all the conditions of the condition are not met, the second vehicle is distributed completely,Q[2]=4.6,D[2]169, k 3, assign a to a and reset Q3]=0,D[3]=0;
Step 8: from the set VT{ V1} searching the vertex V1 with the minimum distance from a, and judging the condition Q [3]]+2.3<=QmaxAnd D [3]]+44+44<=LmaxIf the condition is satisfied, then V1 is selected from the set VTDelete middle, put set S [3]]{ r }, in this case S [3]]={V1},Q[3]=2.3,D[3]44, V1 is assigned to a;
step 9: set VTIs empty, Q3]=2.3,D[3]When the cycle is finished, 88;
according to the logistics distribution algorithm, 3 vehicles are needed to complete distribution tasks; because S [1] = { V2, V6}, the first vehicle delivers vertices V2 and V6 in that order; the second vehicle sequentially delivers three vertexes V3, V5 and V4 because S [2] { V3, V5 and V4 }; s [3] = { V1}, so the third vehicle delivers V1; since Q [1] is 4.6 and D [1] is 67, the first vehicle weighs 4.6T and the travel distance is 67 km; the second vehicle weighs 4.6T and the driving distance is 169 kilometers because Q [2] is 4.6 and D [2] is 169; since Q [3] is 2.3 and D [3] is 88, the third vehicle weighs 2.3T and the travel distance is 88 km.

Claims (1)

1. Based on the improved A*Algorithmic method for logistics distribution vehicle scheduling, characterized in that said method comprises the improvement A*Algorithm and logistics distribution algorithm; the modification A*The algorithm is used for rapidly searching the optimal path between two points and comprises the following steps: gridding a distribution area, preferably evaluating a proper distance, and searching a shortest distance by a recursive method; the logistics distribution algorithm is used for generating vehicle information sent from a distribution center to each customer node, wherein the vehicle information comprises a vehicle number, passing customer nodes, a vehicle route, a load capacity and a total route distance, and the logistics distribution algorithm comprises the following steps: calculating the distance and route from each client node to the logistics center, and generating a distribution scheme by an improved weighted graph algorithm;
wherein the improvement is*The algorithm is realized by the following steps:
(1) gridding a distribution area: on the premise of knowing the accurate geographic position of the client node, dividing the map into a plurality of parts according to a certain proportionA square Grid (Grid), the state of the Grid being described in a two-dimensional array; the trellis is then labeled □ through the trellis state, represented by 0 in the array; if the grid is not passed then the grid status flag is
Figure FDA0003146554500000014
1 in the array; the path is a set of grids passing from a starting grid S to an end grid E, wherein the passing grids are called nodes, the nodes have a passable state and a non-passable state, and the passable state and the non-passable state can be moved along the XY axis direction of the grids and along the diagonal direction of the grids;
(2) preferably, the appropriate evaluation distance: node n (x)n,yn) Is from a starting point S (x)S,yS) And end point E (x)E,yE) The node reached by the n steps evaluates the distance f (n) ═ g (n) + h (n), where g (n) is the distance from the starting point S to the path passed by the node n, the side length of the grid is d, i is a certain grid passed by the starting point A to the node n, if the grid is moved along the XY axis direction of the grid, the distance d (i) ═ d passed by the grid is passed, if the grid is moved along the diagonal direction of the grid, the distance d (i) ═ d passed by the grid is passed by the grid
Figure FDA0003146554500000011
Figure FDA0003146554500000012
h (n) is a heuristic function from the node n to the end point E, the value of which is the minimum of the manhattan distance and the euclidean distance between the two points, and when Min () represents the return minimum function, h (n) is Min ((| x)n-xE|+|yn-yE|),
Figure FDA0003146554500000013
If the terrain is known, and for the convenience of calculation, the manhattan distance can be directly selected, namely h (n) ═ xn-xE|+|yn-yEL, |; comparing the Euclidean distances when the Manhattan distances are the same;
(3) the shortest distance is searched for by a recursive method: with A*(S, E) describing a better path from the starting point S to the end point E and returning a weight of the path, wherein the weight of the path is represented by L1, an open set stores all grids which are considered to find the shortest path, a closed set stores grids which are not considered any more, and a set PminStoring the grids with the minimum f (n) values in the open sets, storing all the sets in a stack form, constructing a linked list K and storing a final path according to a last-in first-out principle, A*The algorithm of (S, E) is described as follows:
STEP 1: emptying an open set and a closed set, and putting S into the open set;
STEP 2: continuing when the open is not empty, otherwise returning to the error and exiting;
STEP 3: finding out the node n with the minimum evaluation distance in open, and putting n into PminPerforming the following steps;
STEP 4: if n is equal to E, the end point is found, the step9 is switched to, otherwise, the operation is continued;
STEP5: removing n from the open set and adding the n into the closed set;
STEP 6: checking all grids G which can be passed around n, and skipping grids which cannot be passed;
STEP 7: adding all G not in the open set into the open set;
STEP 8: returning to STEP 2;
STEP 9: from E, pop P out in sequenceminAdding a linked list K into the nodes in the set until a starting point S is returned, inversely setting the linked list K to obtain a path from the starting point S to an end point E, wherein the weight L1 of the path is f (E);
the logistics distribution algorithm comprises the following implementation steps:
(1) calculating the distance and route from each client node to the logistics center, wherein the address of the distribution center A is (x)A,yA) Address (x) of client node ViVi,yVi) (i ═ 1,2, …, n) by modification a*The algorithm calculates the path weight from the distribution center to each node Vi and puts the path weight into a one-dimensional array Lse Vi]=A*(a, Vi) (i ═ 1, …, n), and saves its path;
(2) the distribution scheme is generated by a modified weighted graph algorithm,known distribution center A (x)A,yA) The client nodes and paths are described by a weighted undirected graph, G ═ V, E ═ V1, …, Vn }, E { (Vi, Vj) } (Vi ∈ V, Vj ∈ V), using a two-dimensional array L [ Vi ∈ V }][Vj]Storing the weight values between vertexes Vi to Vj, L [ Vi][Vj]=A*(Vi,Vj);D[k]The travel distance to store each vehicle includes the distance to return to the distribution center, where (k ═ 1,2, …, M), M is the vehicle maximum; q [ k ]]Storing the load weight of each vehicle in driving, wherein (k is 1,2, …, M); the maximum travel distance of each vehicle is Lmax(ii) a The maximum load of each vehicle is Qmax(ii) a Set VTIs a set of unallocated nodes; set S [ k ]]Is a set of vertices assigned to the kth vehicle; the node a is a process variable and represents the current starting point to search the vertex of the next hop; the algorithm is described as follows:
STEP 1: initialization variable k is 1, VT=V;
STEP 2: initializing S [ k ] ═ phi, Q [ k ] ═ 0, D [ k ] ═ 0, and a ═ A;
STEP3:VTturning to STEP10 when empty, otherwise, continuing;
STEP 4: from the set VTMiddle through modified type A*The algorithm finds the vertex V [ i ] with the minimum distance from a];
STEP5: judgment (Q [ k ]]+Q[V[i]]<=Qmax)AND(D[k]+L[a][V[i]]+Lse(V[i])<=Lmax) If true, go to STEP6, otherwise go to STEP 9;
STEP6:D[k]=D[k]+L[a,V[i]],Q[k]=Q[k]+Q[V[i]],a=V[i];
STEP 7: let the vertex V [ i ]]Put into the set S [ k ]]In (3), delete the set VTV [ i ] of (1)];
STEP 8: returning to STEP 3;
STEP 9: d [ k ] + ls [ a ], k ═ k +1, return to STEP 2;
STEP 10: d [ k ] + ls [ a ], end;
the returned client nodes which are stored in the set S [ k ] and need to be visited by the vehicle k are the client nodes, the visiting sequence is the sequence of the elements in the set S [ k ], and all the logistics distribution vehicles only need to visit the client nodes in the set according to the corresponding vehicle.
CN201710609578.0A 2017-07-24 2017-07-24 Logistics distribution vehicle scheduling method based on improved A-x algorithm Active CN108154254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710609578.0A CN108154254B (en) 2017-07-24 2017-07-24 Logistics distribution vehicle scheduling method based on improved A-x algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710609578.0A CN108154254B (en) 2017-07-24 2017-07-24 Logistics distribution vehicle scheduling method based on improved A-x algorithm

Publications (2)

Publication Number Publication Date
CN108154254A CN108154254A (en) 2018-06-12
CN108154254B true CN108154254B (en) 2022-04-05

Family

ID=62468648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710609578.0A Active CN108154254B (en) 2017-07-24 2017-07-24 Logistics distribution vehicle scheduling method based on improved A-x algorithm

Country Status (1)

Country Link
CN (1) CN108154254B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109255475A (en) * 2018-08-24 2019-01-22 广州大学 The maximized method and device of vehicle transport loading capacity based on maximum spanning tree
CN111158358B (en) * 2019-11-29 2022-11-11 中国电力科学研究院有限公司 Method and system for self-optimization routing inspection of transformer/converter station based on three-dimensional model
CN111063031B (en) * 2019-12-06 2021-09-28 南京航空航天大学 Method for limiting laying area of ceramic matrix composite material laying yarns
CN111062531B (en) * 2019-12-13 2021-08-27 上海中通吉网络技术有限公司 Method and device for generating express trunk transportation scheme
CN111310984B (en) * 2020-01-21 2023-09-26 成都智库二八六一信息技术有限公司 Path planning method and system based on two-dimensional map grid division
CN111429078B (en) * 2020-06-08 2020-09-08 北京每日优鲜电子商务有限公司 E-commerce platform delivery system
CN112561168A (en) * 2020-12-17 2021-03-26 珠海格力电器股份有限公司 Scheduling method and device for unmanned transport vehicle
CN113085895B (en) * 2021-04-19 2022-07-22 陕西理工大学 Vehicle lane change track planning method, device, equipment, storage medium and vehicle
CN115271205B (en) * 2022-07-28 2023-11-28 南通大学 Shortest logistics path planning method based on Dijkstra algorithm
CN117151343B (en) * 2023-10-26 2024-02-13 新黎明科技股份有限公司 Park geographic information scene construction method, system, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156897A (en) * 2016-08-22 2016-11-23 武汉轻工大学 Optimum path planning analog systems in logistics distribution
CN106355291A (en) * 2016-09-23 2017-01-25 湖南科技大学 Method for planning logistics paths on basis of bisectors of store point groups
CN106527448A (en) * 2016-12-16 2017-03-22 浙江工业大学 Improved A* robot optimal path planning method suitable for warehouse environment
CN106779173A (en) * 2016-11-25 2017-05-31 浙江工业大学 A kind of route optimizing method for logistic distribution vehicle

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4398455B2 (en) * 2006-12-22 2010-01-13 インターナショナル・ビジネス・マシーンズ・コーポレーション Route search method, program and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156897A (en) * 2016-08-22 2016-11-23 武汉轻工大学 Optimum path planning analog systems in logistics distribution
CN106355291A (en) * 2016-09-23 2017-01-25 湖南科技大学 Method for planning logistics paths on basis of bisectors of store point groups
CN106779173A (en) * 2016-11-25 2017-05-31 浙江工业大学 A kind of route optimizing method for logistic distribution vehicle
CN106527448A (en) * 2016-12-16 2017-03-22 浙江工业大学 Improved A* robot optimal path planning method suitable for warehouse environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A*算法距离评估函数在不同障碍物下的性能分析与改进;兰坤;《农业网络信息》;20160426(第4期);22-25 *
贪婪和 A-Star 算法在物流配送中的应用及仿真;徐彬 等;《软件》;20170323;第34卷(第6期);35-39 *

Also Published As

Publication number Publication date
CN108154254A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN108154254B (en) Logistics distribution vehicle scheduling method based on improved A-x algorithm
US8630958B2 (en) Systems and methods for multi-vehicle resource allocation and routing solutions
CN106156898B (en) Commodity distribution path planning method based on MoCD algorithm
CN106682769A (en) Method and apparatus for realizing product vehicle route
CN110222890B (en) Double-layer path optimization method and system for logistics distribution of vehicles and unmanned aerial vehicles
Chen et al. The location-routing problem with full truckloads in low-carbon supply chain network designing
CN111380554B (en) Efficient searching over meaningful links within defined topologies
CN112884409A (en) Distribution route recommendation method, device, equipment and storage medium
CN114841582A (en) Truck and unmanned aerial vehicle cooperative distribution method
Bae et al. Finding a risk-constrained shortest path for an unmanned combat vehicle
Rabe et al. Evaluating the consolidation of distribution flows using a discrete event supply chain simulation tool: Application to a case study in Greece
CN114358677A (en) Logistics transportation distribution method and device, computer equipment and storage medium
CN115576343A (en) Multi-target vehicle path optimization method combining unmanned aerial vehicle distribution
CN112180919A (en) Robot operation path planning method, device and system in storage system
KR102624451B1 (en) Server, method and computer program for providing route information for logistics
Pan et al. Tabu search algorithm for the bike sharing rebalancing problem
Zavin et al. Towards developing an intelligent system to suggest optimal path based on historic and real-time traffic data
Chen et al. A hybrid two-stage sweep algorithm for capacitated vehicle routing problem
JP4025652B2 (en) Transportation planning system and method
CN116414139B (en) Mobile robot complex path planning method based on A-Star algorithm
CN115018211B (en) Method and device for setting transportation scheduling line
CN116772850A (en) Digital twinning-based intelligent park navigation method, device, equipment and storage medium
CN112016750A (en) Improved method for solving problem of vehicle path with constraint
Jakara et al. VEHICLE ROUTING PROBLEM-CASE STUDY ON LOGISTICS COMPANY IN CROATIA.
CN114154394A (en) Parallel time window vehicle path planning method based on improved ant colony algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221101

Address after: Room 101, Block H, No. 237, Loumen Road, Suzhou Industrial Park, Jiangsu 215127

Patentee after: Suzhou 30 billion Technology Co.,Ltd.

Address before: 211188 No. 629 Longmian Avenue, Jiangning Science Park, Nanjing City, Jiangsu Province

Patentee before: NANJING COMMUNICATIONS INSTITUTE OF TECHNOLOGY

Effective date of registration: 20221101

Address after: 201,100 Room 407, Floor 4, Building 10, No. 185, Hongjing Road, Minhang District, Shanghai

Patentee after: Shanghai Jinmou Network Technology Co.,Ltd.

Address before: Room 101, Block H, No. 237, Loumen Road, Suzhou Industrial Park, Jiangsu 215127

Patentee before: Suzhou 30 billion Technology Co.,Ltd.

TR01 Transfer of patent right