CN111445186A - Petri network theory-based vehicle path optimization method with time window - Google Patents

Petri network theory-based vehicle path optimization method with time window Download PDF

Info

Publication number
CN111445186A
CN111445186A CN202010230036.4A CN202010230036A CN111445186A CN 111445186 A CN111445186 A CN 111445186A CN 202010230036 A CN202010230036 A CN 202010230036A CN 111445186 A CN111445186 A CN 111445186A
Authority
CN
China
Prior art keywords
vehicle
constraint
point
time window
customer
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.)
Granted
Application number
CN202010230036.4A
Other languages
Chinese (zh)
Other versions
CN111445186B (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.)
Shaanxi University of Science and Technology
Original Assignee
Shaanxi University of Science and 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 Shaanxi University of Science and Technology filed Critical Shaanxi University of Science and Technology
Priority to CN202010230036.4A priority Critical patent/CN111445186B/en
Publication of CN111445186A publication Critical patent/CN111445186A/en
Application granted granted Critical
Publication of CN111445186B publication Critical patent/CN111445186B/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/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0835Relationships between shipper or supplier and carriers
    • G06Q10/08355Routing methods
    • 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/067Enterprise or organisation modelling

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Traffic Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method for optimizing vehicle route with time window based on Petri network theory includes setting up customer data model according to vehicle route problem with time window to be solved, calculating distance between each other in distribution center and customer point, setting up mathematical model of vehicle route problem with time window, setting up Petri network model of vehicle route problem with time window based on customer data model, converting mathematical model into integer linear programming problem based on Petri network model, calling relevant program of integer linear programming problem in MAT L AB, and finally utilizing YA L MIP optimizing tool box to solve program content and carry out result analysis.

Description

Petri network theory-based vehicle path optimization method with time window
Technical Field
The invention belongs to the technical field of logistics, and particularly relates to a Petri net theory-based vehicle path optimization method with a time window.
Background
With the advancement of science and technology and the vigorous development of the internet, electronic commerce enters a high-speed development stage, and the scale of logistics distribution is increased rapidly. The efficiency of logistics distribution is seriously affected due to the increase in the number of logistics orders, the complexity of transportation networks, and the unreasonable distribution routes. Therefore, how to scientifically optimize the distribution route and reduce the transportation cost is an important research content of the logistics industry.
In the logistics industry, Vehicle Routing distribution (VRP) is one of the core problems in logistics management and transportation, and research thereof is receiving a great deal of attention. The vehicle path problem is an optimization problem of enabling a fleet of vehicles to start from a distribution center, distributing goods to customers with different quantity of goods, and meeting certain constraint conditions (such as time limit, vehicle-mounted capacity limit and the like) to achieve the goals of lowest distribution cost, minimum distributed vehicles, shortest distribution distance and the like.
The vehicle path optimization problem belongs to an NP difficult problem, and the solutions thereof comprise a heuristic method and a mathematical analysis method. The heuristic method is a hotspot of current research and comprises a saving method, a simulated annealing method, a tabu search method, a neural network method and the like, but the heuristic method generally requires a designer to have stronger professional knowledge and stronger specificity; in addition, heuristics often do not yield optimal solutions. The common mathematical analysis methods include a branch boundary method, an integer programming method, a dynamic programming method and the like, the operation amount of the method increases exponentially with the increase of the problem scale, and the method can obtain an optimal solution but is not suitable for solving a large-scale problem.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a Petri network theory-based vehicle path optimization method with a time window, which can realize the optimal vehicle distribution route of a distribution center, simultaneously enables the total distribution distance of vehicles to be shortest, reduces the vehicle transportation cost to a greater extent and has good application prospect.
In order to achieve the purpose, the invention adopts the following technical scheme:
a Petri net theory-based vehicle path optimization method with a time window comprises the following steps:
step one, establishing a customer data model: establishing a client data model according to the vehicle path problem with the time window to be solved;
step two, calculating the distance d between each two of the distribution center and the customer pointsi,jI ≠ j, and meanwhile, the transportation time between every two is assumed to be 1;
step three, establishing a mathematical model of the vehicle path problem with a time window: according to the distribution demand of the vehicles, the vehicle distribution problem belongs to the vehicle route problem with hard time window constraint, and the vehicles from the distribution center must arrive at the destination according to the time window requirement of the destination, and cannot be earlier than the earliest time requirement and cannot be later than the latest time requirement; designing an objective function, wherein the objective function is used for enabling the total distribution distance of the vehicles to be shortest;
step four, establishing a Petri network model with a time window vehicle path problem based on the client data model;
step five, based on the Petri network model in the step four, converting the mathematical model in the step three into an integer linear programming problem;
step six, calling a relevant program of the integer linear programming problem in the step five in MAT L AB;
and step seven, solving the program content in the step six by using a YA L MIP optimization tool box and analyzing the result.
The Petri network model of the step four-time window vehicle path problem is as follows:
a) distribution center and customer point i 1, 2, n is represented by set P, P1,p2,...,pnDenotes a collection of libraries of distribution centers and customer sites, where each element is denoted by piI 1 denotes a distribution center, i 2, 3.
b) In the distribution centre and in all customer points, there may be transport paths between each other, so transition t is used in the Petri networki,jTo indicate the vehicle slave position piTransport to pjBy tj,iTo indicate the vehicle slave position pjTransport to pi
c) Based on the reason that each customer point can only be accessed by one vehicle and only once, K is used for representing the number of steps of vehicle movement, and each step of vehicle addition means that the vehicle accesses one point;
d) in order to clarify the transportation state of each step of the vehicle, namely know the position of each step of the vehicle, the identifier M of the Petri net is used for representing; using Mc,k=[Mc,k(p1),Mc,k(p2),...,Mc,k(pn)]TIndicating that the vehicle c is at each point p at the k-th stepiA position mark, i.e. the position of the vehicle C at the k-th step, where C is 1, 2. K1, 2,. K; 1, 2, n; if the position of the vehicle c at the k step is piThen Mc,k(pi) 1, otherwise Mc,k(pi)=0;
e) In Petri nets, using
Figure BDA0002429007600000031
And
Figure BDA0002429007600000032
respectively representing a pre-incidence matrix and a post-incidence matrix of the library and the transition; if the output arc of the bank p points to the transition t, Pre (p, t) is 1, otherwise Pre (p, t) is 0; if the output arc of the transition t points to the position p of the library, the Post (p, t) is 1, otherwise, the Post (p, t) is 0;
f) use of v in Petri netsi,jThis cargo vector represents the vehicle from piTo pjDuring transportation, pjA required amount r ofj
g) To represent the transport path of the kth step c of the vehicle, a column vector θ is used in a Petri networkc,k,i,j=[θc,k,0,1,θc,k,0,2,...,θc,k,i,j,...,θc,k,n,n-1]TPath vector representing the k-th step of vehicle cWherein: i, j ≠ 1, 2,. n; if the k-th step of vehicle c is from position piTo position pjThen thetac,k,i,j1, otherwise θc,k,i,j=0;
h) To satisfy each position piUsing tau in a Petri netc,kTo indicate the time of the vehicle c at the kth step and the initial time τc,0=0。
The integer linear programming problem model of the step five is as follows:
the objective function is:
Figure BDA0002429007600000041
the constraint conditions are as follows:
constraint 1: mc,k=Mc,k-1+(Post-Pre)×θc,k,i,j
Constraint 2: mc,k-1-Pre×θc,k,i,j≥0
Constraint condition 3: 1T×θc,k,i,j≤1
Constraint 4:
Figure BDA0002429007600000042
constraint 5:
Figure BDA0002429007600000043
constraint 6:
Figure BDA0002429007600000044
constraint 7: e.g. of the typeic,k≤[1-Mc,k(pi)]×H,i=2,3,...,n,k=1,2,...,K-1,c=1,2,...,C
Constraint condition 8: tau isc,k-li≤[1-Mc,k(pi)]×H,i=2,3,...,n,k=1,2,...,K-1,c=1,2,...,C
Constraint 9: e.g. of the type1c,K≤[1-Mc,K(p1)]×H,c=1,2,...,C
Constraint 10: tau isc,K-l1≤[1-Mc,K(p1)]×H,c=1,2,...,C
Constraint 11: tau isc,k=τc,k-1+1T×θc,k,i,j+Dc,k-1
Constraint 12: tau isc,0=0,c=1,2,...,C
Constraint condition 13: i, j ≠ n and i ≠ j, K ≠ 1, 2,.. K, C ═ 1, 2
Wherein H is a sufficiently large number; other variables are defined as follows:
c is the set of invokable vehicles, C ═ 1, 2,. C };
k is the number of moving steps of the vehicle, K is the number of steps the vehicle moves most, and K is {1, 2.., K };
i, j denotes a customer site or a distribution center, i, j ═ 1, 2.
Figure BDA0002429007600000051
A Pre-correlation matrix representing the library and the transition, wherein if the output arc of the library p points to the transition t, Pre (p, t) is 1, otherwise Pre (p, t) is 0;
Figure BDA0002429007600000052
representing a Post incidence matrix of the library and the transition, wherein when an output arc of the transition t points to the library p, Post (p, t) is 1, otherwise, Post (p, t) is 0;
θc,k,i,j=[θc,k,0,1,θc,k,0,2,...,θc,k,i,j,...,θc,k,n,n-1]Ta path vector representing a Petri net; if the vehicle c departs at the k-th step point i to visit the j point, thetac,k,i,j1, otherwise θc,k,i,j=0;
Mc,k=[Mc,k(p1),Mc,k(p2),...,Mc,k(pn)]TIs the location identification of the Petri net, if the location of the vehicle c at the kth step is piThen Mc,k(pi) 1, otherwise Mc,k(pi)=0;
di,jRepresents the Euclidean distance between point i and point j;
r is the maximum cargo capacity per vehicle;
vi,ja freight vector representing a Petri Net, if the vehicle goes from point i to point j, then vi,j=rj
eiAnd liRespectively representing the earliest service time and the latest service time at each customer point or distribution center i;
Dc,krepresenting the service time of the k step of the vehicle c;
τc,kindicating the moment at which the vehicle c steps k.
The invention has the beneficial effects that:
the method combines a Petri network model, converts a mathematical model of a vehicle path problem into an integer linear programming problem, solves the problem in MAT L AB by using a YA L MIP optimization tool box, and finally finds the optimal distribution path meeting distribution requirements.
Drawings
FIG. 1 is a block flow diagram of the method of the present invention.
FIG. 2 is a schematic diagram of a distribution path according to an embodiment of the present invention.
Detailed Description
The invention is further illustrated below with reference to examples and figures.
Referring to fig. 1, a Petri net theory-based vehicle path optimization method with a time window comprises the following steps:
step one, establishing a customer data model: establishing a client data model according to the vehicle path problem with the time window to be solved;
it is known that a distribution center completes distribution tasks for all customer points by using vehicles with the same model and load capacity at most, and all vehicles at the end of distribution should return to the distribution center, each customer point can be visited by one vehicle only and can be visited only once, and the distribution center and the customer points are represented by i (i is 1, 2.., n), wherein i is 1 represents the distribution center, i is 2.., and n represents the customer points; the coordinates for setting the customer site and the distribution center are xi,yi(ii) a The maximum cargo capacity of each vehicle is set to R and it is assumed that the demand of the distribution center and the customer site is RiAnd max riR is less than or equal to R; setting the time window of the distribution center and the customer point as [ e ]i,li],eiAnd liRespectively representing the earliest time and the latest time when the vehicle arrives at the distribution center or the customer site i, the service time of the distribution center is 0, the service time of each customer site is unit 1, and customer information is stored in the form of a data table as shown in the following table.
Figure BDA0002429007600000071
Figure BDA0002429007600000081
Step two, calculating the distance d between each two of the distribution center and the customer pointsi,j(i ≠ j), meanwhile, assuming that the transportation time between every two is 1;
calculating the distance d between two of the distribution center and the customer sitei,j(i ≠ j; i ≠ 1, 2, …, n, j ═ 1, 2, …, n), it is used
Figure BDA0002429007600000082
Obtaining the linear distance between any two points; the transit time between any two points is measured in units of 1;
step three, establishing a mathematical model of the vehicle path problem with a time window: according to the distribution demand of the vehicles, the vehicle distribution problem belongs to the vehicle route problem with hard time window constraint, and the vehicles from the distribution center must arrive at the destination according to the time window requirement of the destination, and cannot be earlier than the earliest time requirement and cannot be later than the latest time requirement; designing an objective function, wherein the objective function is used for enabling the total distribution distance of the vehicles to be shortest;
the mathematical model of the vehicle path problem with the time window established in the third step is as follows:
Figure BDA0002429007600000083
Figure BDA0002429007600000084
Figure BDA0002429007600000085
Figure BDA0002429007600000086
Figure BDA0002429007600000087
Figure BDA0002429007600000088
ei≤Tc,i≤li,i=1,2,3,…,n;c=1,2,...,C (7)
Tc,1,0=0,c=1,2,...,C (8)
xc,i,j∈{0,1},i=1,2,…,n,j=1,2,…,n;c=1,2,…,C;i≠j
yci∈{0,1},i=1,2,…,n;c=1,2,…,C
wherein:
Figure BDA0002429007600000091
Figure BDA0002429007600000092
the meaning of each formula in the mathematical model is as follows:
formula (1) is an objective function, and represents that the total distribution distance of all vehicles in a distribution center is shortest; equation (2) is the loadability constraint of each vehicle, i.e., the total load of each vehicle c on its delivery route cannot exceed its maximum load R by 90; equation (3) indicates that only one vehicle will serve each customer site; the formula (4) ensures that the number of vehicles in the distribution center is C, namely all vehicles start from the distribution center and return to the distribution center after distribution; equations (5) and (6) ensure that the number of vehicles arriving and leaving each customer site is 1; equation (7) indicates that the time when each vehicle arrives at the distribution center or customer point i is always within the time window required by the point; formula (8) shows that each vehicle is at the distribution center at the initial moment;
step four, establishing a Petri network model with a time window vehicle path problem based on the client data model in the step one;
the Petri net model for the vehicle path problem with the time window is as follows:
a) distribution center and customer point i 1, 2, n is represented by set P, P1,p2,...,pnDenotes a collection of libraries of distribution centers and customer sites, where each element is denoted by pi(i 1, 2.., n), i 1 denotes a distribution center, i 2, 3., n denotes a customer point;
b) in the distribution centre and in all customer points, there may be transport paths between each other, so transition t is used in the Petri networki,jTo indicate the vehicle slave position piTransport to pjBy tj,iTo indicate the vehicle slave position pjTransport to pi(ii) a Wherein i, j ≠ j, 1, 2., n;
c) based on the reason that each customer point can only be visited by one vehicle and only once, K is used to represent the number of steps that the vehicle moves, and each step that the vehicle increases means that the vehicle visits one point (which may be the same point as the previous step, i.e. it means that the vehicle does not leave the customer point or the distribution center);
d) in order to clarify the transportation state of each step of the vehicle, namely know the position of each step of the vehicle, the identifier M of the Petri net is used for representing; using Mc,k=[Mc,k(p1),Mc,k(p2),...,Mc,k(pn)]TIndicating that the vehicle c is at each point p at the k-th stepiA position mark, i.e. the position of the vehicle C at the k-th step, where C is 1, 2. K1, 2,. K; 1, 2, n; if the position of the vehicle c at the k step is piThen Mc,k(pi) 1, otherwise Mc,k(pi)=0;
e) In Petri nets, using
Figure BDA0002429007600000101
And
Figure BDA0002429007600000102
respectively representing a pre-incidence matrix and a post-incidence matrix of the library and the transition; if the output arc of the bank p points to the transition t, Pre (p, t) is 1, otherwise Pre (p, t) is 0; if the output arc of the transition t points to the position p of the library, the Post (p, t) is 1, otherwise, the Post (p, t) is 0;
f) to represent each position piDemand of (c), using v in the Petri neti,jThis cargo vector represents the vehicle from piTo pjDuring transportation, pjA required amount r ofj(ii) a Wherein i, j ≠ j, 1, 2., n, and i ≠ j;
g) to represent the transport path of the kth step c of the vehicle, a column vector θ is used in a Petri networkc,k,i,j=[θc,k,0,1,θc,k,0,2,...,θc,k,i,j,...,θc,k,n,n-1]TA path vector representing the kth step of vehicle c, wherein: i, j ≠ 1, 2,. n; if the k-th step of vehicle c is from position piTo position pjThen thetac,k,i,j1, otherwise θc,k,i,j=0;
h) To satisfy each position piUsing tau in a Petri netc,kTo indicate the time of the vehicle c at the kth step and the initial time τc,0=0;
Step five, based on the Petri network model in the step four, converting the mathematical model in the step three into an integer linear programming problem;
the specific method comprises the following steps:
equation (1) translates to:
Figure BDA0002429007600000111
equation (2) translates to:
Figure BDA0002429007600000112
equation (3) translates to:
Figure BDA0002429007600000113
equation (4) translates to:
Figure BDA0002429007600000114
equation (7) translates to:
eic,k≤[1-Mc,k(pi)]×H,i=2,3,...,n,k=1,2,...,K-1,c=1,2,...,C (13)
τc,k-li≤[1-Mc,k(pi)]×H,i=2,3,...,n,k=1,2,...,K-1,c=1,2,...,C (14)
e1c,K≤[1-Mc,K(p1)]×H,c=1,2,...,C (15)
τc,K-l1≤[1-Mc,KK(p1)]×H,c=1,2,...,C (16)
equation (8) translates to:
τc,0=0,c=1,2,...,C (17)
therefore, the integer linear programming problem model of step five is as follows:
the objective function is:
Figure BDA0002429007600000115
the constraint conditions are as follows:
constraint 1: mc,k=Mc,k-1+(Post-Pre)×θc,k,i,j
Constraint 2: mc,k-1-Pre×θc,k,i,j≥0
Constraint 3: 1T×θc,k,i,j≤1
Constraint 4:
Figure BDA0002429007600000121
constraint 5:
Figure BDA0002429007600000122
constraint 6:
Figure BDA0002429007600000123
constraint 7: e.g. of the typeic,k≤[1-Mc,k(pi)]×H,i=2,3,...,n,k=1,2,...,K-1,c=1,2,...,C
Constraint condition 8: tau isc,k-li≤[1-Mc,k(pi)]×H,i=2,3,...,n,k=1,2,...,K-1,c=1,2,...,C
Constraint 9: e.g. of the type1c,K≤[1-Mc,K(p1)]×H,c=1,2,...,C
Constraint 10: tau isc,K-l1≤[1-Mc,K(p1)]×H,c=1,2,...,C
Constraint 11: tau isc,k=τc,k-1+1T×θc,k,i,j+Dc,k-1
Constraint 12: tau isc,0=0,c=1,2,...,C
Constraint condition 13: i, j ≠ n and i ≠ j, K ≠ 1, 2,.. K, C ═ 1, 2
Wherein H is a sufficiently large number; other variables are defined as follows:
c is the set of invokable vehicles, C ═ 1, 2,. C };
k is the number of moving steps of the vehicle, K is the number of steps the vehicle moves most, and K is {1, 2.., K };
i, j denotes a customer site or a distribution center, i, j ═ 1, 2.
Figure BDA0002429007600000124
A Pre-correlation matrix representing the library and the transition, wherein if the output arc of the library p points to the transition t, Pre (p, t) is 1, otherwise Pre (p, t) is 0;
Figure BDA0002429007600000125
representing a Post incidence matrix of the library and the transition, wherein when an output arc of the transition t points to the library p, Post (p, t) is 1, otherwise, Post (p, t) is 0;
θc,k,i,j=[θc,k,0,1,θc,k,0,2,...,θc,k,i,j,...,θc,k,n,n-1]Ta path vector representing a Petri net; if the vehicle c departs at the k-th step point i to visit the j point, thetac,k,i,j1, otherwise θc,k,i,j=0;
Mc,k=[Mc,k(p1),Mc,k(p2),...,Mc,k(pn)]TIs the location identification of the Petri net, if the location of the vehicle c at the kth step is piThen Mc,k(pi) 1, otherwise Mc,k(pi)=0;
di,jRepresents the Euclidean distance between point i and point j;
r is the maximum cargo capacity per vehicle;
vi,ja freight vector representing a Petri net, if a vehicle goes from point i to point j, i, j ≠ 1, 2i,j=rj
eiAnd liRespectively representing the earliest service time and the latest service time at each customer point or distribution center i;
Dc,krepresenting the service time of the k step of the vehicle c;
τc,kindicating the moment at which the vehicle c steps k;
the objective function ensures that the total transportation distance of all vehicles is shortest; constraint 1 represents the transport state of each step; the constraint condition 2 ensures the correctness of the transportation process of each step; the constraint condition 3 ensures that the vehicle has at most one transition trigger in each step, namely the vehicle only goes to one destination at most to complete distribution in the transportation process of each step; the constraint condition 4 ensures that the cargo capacity of each vehicle on the transportation path does not exceed the maximum cargo capacity of each vehicle; constraint 5 ensures that each customer point will only be delivered once; constraint 6 indicates that all vehicle starting points and the last step positions are at the distribution center; constraint conditions 7 and 8 ensure that the time when the vehicle c reaches the client point in the kth step meets the time window requirement of the client point; the constraint conditions 9 and 10 ensure that the time when the vehicle c returns to the distribution center in the last step meets the time window requirement of the distribution center; constraint 11 indicates the time of the kth step of vehicle c; constraint 12 ensures that the initial time of all vehicles is 0; constraint 13 is n-23, K-8, and C-4;
step six, calling a relevant program of the step five integer linear programming problem in MAT L AB, and specifically comprising the following steps:
6.1) constructing a Petri network structure, wherein the Petri network structure comprises a pre-incidence matrix, a post-incidence matrix and an incidence matrix, and meanwhile, adding corresponding demand to each transition;
6.2) inputting the distance between each two of the distribution center and the customer points;
6.3) inputting variables such as the transport path of the vehicle, the initial identification and the final identification of the vehicle;
6.4) converting the objective function and the constraint condition of the integer linear programming problem into a program;
6.5) calling a YA L MIP optimization tool box to solve;
step seven, solving the program content in the step six by using a YA L MIP optimization tool box and analyzing the result;
referring to fig. 2, the vehicle path planning results generated by 1 distribution center in the embodiment, 22 customer point models, using YA L MIP optimization toolbox to solve the procedure of step six are as follows:
the distribution route of the 1 st vehicle is as follows: p is a radical of1(distribution center) → p6(client Point 6) → p4(client Point 4) → p23(client Point 23) → p11(customer Point 11) → p21(client Point 21) → p16(client Point 16) → p1(distribution center);
delivery route of 2 nd vehicle: p is a radical of1(distribution center) → p17(client Point 17) → p15(client Point 15) → p12(client Point 12) → p20(client Point 20) → p19(customer site 19) → p1(distribution center);
delivery route of 3 rd vehicle: p is a radical of1(distribution center) → p22(client Point 22) → p9(client Point 9) → p10(client Point 10) → p18(client Point 18) → p14(client Point 14) → p13(client Point 13) → p7(client Point 7) → p1(distribution center);
delivery route of 4 th vehicle: p is a radical of1(distribution center) → p8(client Point 8) → p2(client Point 2) → p3(customer site)3)→p5(client Point 5) → p1(distribution center);
the results meet the time window requirements of the examples, as shown in the following table:
TABLE 1 time windows for distribution centers and customer sites
Figure BDA0002429007600000151
The results were further analyzed as follows: all customer points only have one vehicle to distribute the customer points, 4 vehicles exist in a distribution center and can be called to distribute, the shortest total transportation distance is finally realized, and the transportation cost is greatly saved; the actual cargo capacity of the 1 st vehicle is 90 units, the actual cargo capacity of the 2 nd vehicle is 80 units, the actual cargo capacity of the 3 rd vehicle is 83 units, the actual cargo capacity of the 4 th vehicle is 41 units, the maximum cargo capacity of the vehicles is not exceeded, and the sum of the path tracks of the vehicles achieves the shortest 25.0128 km.
Finally, it should be noted that: the foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the invention, and these modifications and improvements should be considered as the protection scope of the present invention.

Claims (3)

1. A Petri net theory-based vehicle path optimization method with a time window is characterized by comprising the following steps:
step one, establishing a customer data model: establishing a client data model according to the vehicle path problem with the time window to be solved;
step two, calculating the distance d between each two of the distribution center and the customer pointsi,jI ≠ j, and meanwhile, the transportation time between every two is assumed to be 1;
step three, establishing a mathematical model of the vehicle path problem with a time window: according to the distribution demand of the vehicles, the vehicle distribution problem belongs to the vehicle route problem with hard time window constraint, and the vehicles from the distribution center must arrive at the destination according to the time window requirement of the destination, and cannot be earlier than the earliest time requirement and cannot be later than the latest time requirement; designing an objective function, wherein the objective function is used for enabling the total distribution distance of the vehicles to be shortest;
step four, establishing a Petri network model with a time window vehicle path problem based on the client data model;
step five, based on the Petri network model in the step four, converting the mathematical model in the step three into an integer linear programming problem;
step six, calling a relevant program of the integer linear programming problem in the step five in MAT L AB;
and step seven, solving the program content in the step six by using a YA L MIP optimization tool box and analyzing the result.
2. The Petri net theory-based vehicle path optimization method with the time window is characterized by comprising the following steps of: the Petri network model of the step four-time window vehicle path problem is as follows:
a) distribution center and customer point i 1, 2, n is represented by set P, P1,p2,...,pnDenotes a collection of libraries of distribution centers and customer sites, where each element is denoted by piI 1 denotes a distribution center, i 2, 3.
b) In the distribution centre and in all customer points, there may be transport paths between each other, so transition t is used in the Petri networki,jTo indicate the vehicle slave position piTransport to pjBy tj,iTo indicate the vehicle slave position pjTransport to pi
c) Based on the reason that each customer point can only be accessed by one vehicle and only once, K is used for representing the number of steps of vehicle movement, and each step of vehicle addition means that the vehicle accesses one point;
d) in order to clarify the transportation state of each step of the vehicle, namely know the position of each step of the vehicle, the identifier M of the Petri net is used for representing; using Mc,k=[Mc,k(p1),Mc,k(p2),...,Mc,k(pn)]TIndicating that the vehicle c is at each point p at the k-th stepiA position mark, i.e. the position of the vehicle C at the k-th step, where C is 1, 2. K1, 2,. K; 1, 2, n; if the position of the vehicle c at the k step is piThen Mc,k(pi) 1, otherwise Mc,k(pi)=0;
e) In Petri nets, using
Figure FDA0002429007590000021
And
Figure FDA0002429007590000022
respectively representing a pre-incidence matrix and a post-incidence matrix of the library and the transition; if the output arc of the bank p points to the transition t, Pre (p, t) is 1, otherwise Pre (p, t) is 0; if the output arc of the transition t points to the position p of the library, the Post (p, t) is 1, otherwise, the Post (p, t) is 0;
f) use of v in Petri netsi,jThis cargo vector represents the vehicle from piTo pjDuring transportation, pjA required amount r ofj
g) To represent the transport path of the kth step c of the vehicle, a column vector θ is used in a Petri networkc,k,i,j=[θc,k,0,1,θc,k,0,2,...,θc,k,i,j,...,θc,k,n,n-1]TA path vector representing the kth step of vehicle c, wherein: i, j ≠ 1, 2,. n; if the k-th step of vehicle c is from position piTo position pjThen thetac,k,i,j1, otherwise θc,k,i,j=0;
h) To satisfy each position piUsing tau in a Petri netc,kTo indicate the time of the vehicle c at the kth step and the initial time τc,0=0。
3. The Petri net theory-based vehicle path optimization method with the time window is characterized by comprising the following steps of: the integer linear programming problem model of the step five is as follows:
the objective function is:
Figure FDA0002429007590000031
the constraint conditions are as follows:
constraint 1: mc,k=Mc,k-1+(Post-Pre)×θc,k,i,j
Constraint 2: mc,k-1-Pre×θc,k,i,j≥0
Constraint 3: 1T×θc,k,i,j≤1
Constraint 4:
Figure FDA0002429007590000032
constraint 5:
Figure FDA0002429007590000033
constraint 6:
Figure FDA0002429007590000034
constraint 7: e.g. of the typeic,k≤[1-Mc,k(pi)]×H,i=2,3,...,n,k=1,2,...,K-1,c=1,2,...,C
Constraint condition 8: tau isc,k-li≤[1-Mc,k(pi)]×H,i=2,3,...,n,k=1,2,...,K-1,c=1,2,...,C
Constraint 9: e.g. of the type1c,K≤[1-Mc,K(p1)]×H,c=1,2,...,C
Constraint 10: tau isc,K-l1≤[1-Mc,K(p1)]×H,c=1,2,...,C
Constraint 11: tau isc,k=τc,k-1+1T×θc,k,i,j+Dc,k-1
Constraint 12: tau isc,0=O,c=1,2,...,C
Constraint condition 13: i, j ≠ n and i ≠ j, K ≠ 1, 2,.. K, C ═ 1, 2
Wherein H is a sufficiently large number; other variables are defined as follows:
c is the set of invokable vehicles, C ═ 1, 2,. C };
k is the number of moving steps of the vehicle, K is the number of steps the vehicle moves most, and K is {1, 2.., K };
i, j denotes a customer site or a distribution center, i, j ═ 1, 2.
Figure FDA0002429007590000041
A Pre-correlation matrix representing the library and the transition, wherein if the output arc of the library p points to the transition t, Pre (p, t) is 1, otherwise Pre (p, t) is 0;
Figure FDA0002429007590000042
representing a Post incidence matrix of the library and the transition, wherein when an output arc of the transition t points to the library p, Post (p, t) is 1, otherwise, Post (p, t) is 0;
θc,k,i,j=[θc,k,0,1,θc,k,0,2,...,θc,k,i,j,...,θc,k,n,n-1]Ta path vector representing a Petri net; if the vehicle c departs at the k-th step point i to visit the j point, thetac,k,i,j1, otherwise θc,k,i,j=0;
Mc,k=[Mc,k(p1),Mc,k(p2),...,Mc,k(pn)]TIs the location identification of the Petri net, if the location of the vehicle c at the kth step is piThen Mc,k(pi) 1, otherwise Mc,k(pi)=0;
di,jRepresents the Euclidean distance between point i and point j;
r is the maximum cargo capacity per vehicle;
vi,ja freight vector representing a Petri Net, if the vehicle goes from point i to point j, then vi,j=rj
eiAnd liRespectively representing the earliest service time and the latest service time at each customer point or distribution center i;
Dc,krepresenting the service time of the k step of the vehicle c;
τc,kindicating the moment at which the vehicle c steps k.
CN202010230036.4A 2020-03-27 2020-03-27 Petri network theory-based vehicle path optimization method with time window Active CN111445186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010230036.4A CN111445186B (en) 2020-03-27 2020-03-27 Petri network theory-based vehicle path optimization method with time window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010230036.4A CN111445186B (en) 2020-03-27 2020-03-27 Petri network theory-based vehicle path optimization method with time window

Publications (2)

Publication Number Publication Date
CN111445186A true CN111445186A (en) 2020-07-24
CN111445186B CN111445186B (en) 2021-08-24

Family

ID=71650931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010230036.4A Active CN111445186B (en) 2020-03-27 2020-03-27 Petri network theory-based vehicle path optimization method with time window

Country Status (1)

Country Link
CN (1) CN111445186B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898830A (en) * 2020-08-04 2020-11-06 湖南工学院 Logistics distribution path site selection optimization method and terminal equipment
CN113077106A (en) * 2021-04-16 2021-07-06 北京京东振世信息技术有限公司 Time window-based article transportation method and device
CN113111546A (en) * 2021-04-27 2021-07-13 陕西科技大学 Multi-beam water cutting optimal feed path planning method based on Petri network
CN115619063A (en) * 2022-12-02 2023-01-17 华侨大学 Community common distribution method, system, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992242A (en) * 2015-07-01 2015-10-21 广东工业大学 Method for solving logistic transport vehicle routing problem with soft time windows
CN105046061A (en) * 2015-06-26 2015-11-11 北京交通大学 Method for positioning hidden danger of door system of train based on probability petri network
CN105159244A (en) * 2015-07-29 2015-12-16 安徽理工大学 Event coordination control method based on Petri network
CN105302958A (en) * 2015-10-28 2016-02-03 北京交通大学 Method for establishing high-speed train system-level electromagnetic compatibility model
KR101740529B1 (en) * 2015-12-30 2017-05-30 한국철도기술연구원 Path planning determination and allocation method of driverless ground vehicle
CN109034468A (en) * 2018-07-19 2018-12-18 南京邮电大学 A kind of logistics distribution paths planning method with time window based on cuckoo algorithm
CN109034481A (en) * 2018-07-31 2018-12-18 北京航空航天大学 A kind of vehicle routing problem with time windows modeling and optimization method based on constraint planning
CN110046810A (en) * 2019-04-02 2019-07-23 南京理工大学 A kind of Shop Floor Multiobjective Scheduling method based on Timed Petri nets
CN110334837A (en) * 2019-04-11 2019-10-15 浙江同筑科技有限公司 A kind of more AGV dispatching methods decomposed based on petri net
US20200043332A1 (en) * 2018-08-02 2020-02-06 Mapanything, Inc. Utilizing determined optimized time windows for precomputing optimal path matrices to reduce computer resource usage

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105046061A (en) * 2015-06-26 2015-11-11 北京交通大学 Method for positioning hidden danger of door system of train based on probability petri network
CN104992242A (en) * 2015-07-01 2015-10-21 广东工业大学 Method for solving logistic transport vehicle routing problem with soft time windows
CN105159244A (en) * 2015-07-29 2015-12-16 安徽理工大学 Event coordination control method based on Petri network
CN105302958A (en) * 2015-10-28 2016-02-03 北京交通大学 Method for establishing high-speed train system-level electromagnetic compatibility model
KR101740529B1 (en) * 2015-12-30 2017-05-30 한국철도기술연구원 Path planning determination and allocation method of driverless ground vehicle
CN109034468A (en) * 2018-07-19 2018-12-18 南京邮电大学 A kind of logistics distribution paths planning method with time window based on cuckoo algorithm
CN109034481A (en) * 2018-07-31 2018-12-18 北京航空航天大学 A kind of vehicle routing problem with time windows modeling and optimization method based on constraint planning
US20200043332A1 (en) * 2018-08-02 2020-02-06 Mapanything, Inc. Utilizing determined optimized time windows for precomputing optimal path matrices to reduce computer resource usage
CN110046810A (en) * 2019-04-02 2019-07-23 南京理工大学 A kind of Shop Floor Multiobjective Scheduling method based on Timed Petri nets
CN110334837A (en) * 2019-04-11 2019-10-15 浙江同筑科技有限公司 A kind of more AGV dispatching methods decomposed based on petri net

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王琥珀: "基于Petri网的冷链物流业务流程建模及配送路径优化", 《中国优秀硕士学位论文全文数据库》 *
答家瑞等: "带时间窗的车辆路径问题的精确算法研究", 《技术与方法》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898830A (en) * 2020-08-04 2020-11-06 湖南工学院 Logistics distribution path site selection optimization method and terminal equipment
CN113077106A (en) * 2021-04-16 2021-07-06 北京京东振世信息技术有限公司 Time window-based article transportation method and device
CN113111546A (en) * 2021-04-27 2021-07-13 陕西科技大学 Multi-beam water cutting optimal feed path planning method based on Petri network
CN113111546B (en) * 2021-04-27 2021-11-16 陕西科技大学 Multi-beam water cutting optimal feed path planning method based on Petri network
CN115619063A (en) * 2022-12-02 2023-01-17 华侨大学 Community common distribution method, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111445186B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN111445186B (en) Petri network theory-based vehicle path optimization method with time window
Liu et al. An ‘Internet of Things’ enabled dynamic optimization method for smart vehicles and logistics tasks
Fazlollahtabar et al. Hybrid cost and time path planning for multiple autonomous guided vehicles
CN105096006A (en) Method for optimizing a routing of an intelligent ammeter distributing vehicle
Walteros et al. Hybrid algorithm for route design on bus rapid transit systems
Pan et al. Demand-oriented integration optimization of train timetabling and rolling stock circulation planning with flexible train compositions: A column-generation-based approach
CN107680403A (en) Vehicle, which is led, stops method and system
CN102915401A (en) Journey planning in public transportation networks
CN105022862B (en) A kind of automatic vehicle access system modular emulation and optimization system
CN105373909A (en) Logistics dispensing center addressing method based on simulation software
CN114237222B (en) Delivery vehicle path planning method based on reinforcement learning
Hatzenbühler et al. Modular vehicle routing for combined passenger and freight transport
Fielbaum Optimizing a vehicle’s route in an on-demand ridesharing system in which users might walk
Rezapour et al. A machine-to-loop assignment and layout design methodology for tandem AGV systems with single-load vehicles
Li et al. A hybrid simulated annealing heuristic for multistage heterogeneous fleet scheduling with fleet sizing decisions
Chen et al. A simulation platform for combined rail/road transport in multiyards intermodal terminals
CN114037380A (en) Vehicle path planning method for picking and delivering goods
Ge et al. Electric vehicle routing problems with stochastic demands and dynamic remedial measures
Yao et al. A dynamic tree algorithm for peer-to-peer ridesharing matching
Hani et al. Simulation based optimization of a train maintenance facility
Lu et al. A sample average approximation approach for the stochastic dial-a-ride problem on a multigraph with user satisfaction
Gan A logistics distribution route optimization model based on hybrid intelligent algorithm and its application
CN115545663B (en) Urban rail transit asset information matching method based on contract asset mapping model
Wang et al. DSS approach for sustainable system design of shuttle-based storage and retrieval systems
CN116306216A (en) Multi-vehicle type path planning method, system, equipment and medium for column generation

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