CN110276488B - A vehicle routing optimization method based on block matrix and fuzzy transit time - Google Patents

A vehicle routing optimization method based on block matrix and fuzzy transit time Download PDF

Info

Publication number
CN110276488B
CN110276488B CN201910526892.1A CN201910526892A CN110276488B CN 110276488 B CN110276488 B CN 110276488B CN 201910526892 A CN201910526892 A CN 201910526892A CN 110276488 B CN110276488 B CN 110276488B
Authority
CN
China
Prior art keywords
manufacturer
habitat
vehicle
time
transportation
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
CN201910526892.1A
Other languages
Chinese (zh)
Other versions
CN110276488A (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.)
Zhejiang University of Finance and Economics
Original Assignee
Zhejiang University of Finance and Economics
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 Zhejiang University of Finance and Economics filed Critical Zhejiang University of Finance and Economics
Priority to CN201910526892.1A priority Critical patent/CN110276488B/en
Publication of CN110276488A publication Critical patent/CN110276488A/en
Application granted granted Critical
Publication of CN110276488B publication Critical patent/CN110276488B/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/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a vehicle path optimization method based on a block matrix and fuzzy transportation time, which comprises the following steps: establishing a path optimization model based on fuzzy transportation time; initializing to obtain a solution of a path optimization model, namely habitats, representing each habitat by adopting a block matrix, calculating a suitability index value of each habitat, and determining an initial optimal solution according to the suitability index value; calculating the migration rate and the migration rate of the population, and performing vector substitution on the block matrix corresponding to the habitat according to the migration rate and the migration rate; calculating the variation rate of the population by using the self-adaptive variation probability and the secondary variation probability, selecting a corresponding habitat for variation operation, and updating the optimal solution; if the iteration times are reached, outputting an optimal solution, namely an optimal transportation scheme; otherwise, the iteration is continued. The method of the invention considers the selection problem of two transportation modes of circular transportation and cross distribution under the condition of fuzzy transportation time, thereby obtaining the optimal transportation scheme under the uncertain condition.

Description

一种基于分块矩阵和模糊运输时间的车辆路径优化方法A vehicle routing optimization method based on block matrix and fuzzy transit time

技术领域technical field

本发明属于物流技术领域,具体涉及一种基于分块矩阵和模糊运输时间的车辆路径优化方法。The invention belongs to the technical field of logistics, and in particular relates to a vehicle path optimization method based on block matrix and fuzzy transit time.

背景技术Background technique

近年来,构成企业核心的供应链通过控制信息流、物流和资金流,将供应商、厂商、分销商、零售商和用户紧密地连接起来。作为供应链的重要组成部分,物流配送优化中的车辆路径问题也得到了越来越多企业的重视。然而,与传统的车辆路径问题相比,目前的车辆路径问题极其复杂,很难得到有效解决。一方面,由于难以获得准确、充分的信息,在实际运输中存在许多不确定的情况(如气候变化、交通堵塞、天气等因素引起的运输时间波动)和模糊数据(如到达时间、需求等)。因此,对于这种复杂问题,需要考虑不确定情况,因为使用精确数据(如运输时间)来描述模型可能会产生不精确的解。例如,由于交通堵塞、天气和其它因素,从一个点到另一个点的运输时间一般是不确定的。因此,到达时间也变得不确定,这可能导致货物在规定的时间窗内无法到达。另一方面,不同的运输方式适合不同的情况,即运输方式的选择对车辆路径问题的优化有着重要影响,也应该加以考虑。例如,在交叉配送运输方式中,入站车辆从供应商处装载货物并将其运输到交叉配送中心,在交叉配送中心进行分类和整理之后,由出站车辆运输到厂商。这一过程增加了运输时间和距离,成本也会相应增加。相反,在循环运输方式中,车辆从供应商处装载货物并直接运输到厂商,其运输时间较短。因此,交叉配送运输方式更适合长距离运输,而循环运输方式更适合短距离运输。In recent years, the supply chain that constitutes the core of an enterprise has closely connected suppliers, manufacturers, distributors, retailers and users by controlling the flow of information, logistics and capital. As an important part of the supply chain, the problem of vehicle routing in logistics distribution optimization has also received more and more attention from enterprises. However, compared with the traditional vehicle routing problem, the current vehicle routing problem is extremely complex and difficult to solve effectively. On the one hand, due to the difficulty of obtaining accurate and sufficient information, there are many uncertain situations in actual transportation (such as climate change, traffic jams, fluctuations in transportation time caused by factors such as weather) and fuzzy data (such as arrival time, demand, etc.) . Therefore, for such complex problems, uncertainty needs to be considered, as using precise data (such as transit times) to describe the model may yield inaccurate solutions. For example, the transit time from one point to another is generally indeterminate due to traffic jams, weather, and other factors. As a result, arrival times also become uncertain, which may result in shipments not arriving within the stipulated time window. On the other hand, different transportation modes are suitable for different situations, that is, the choice of transportation mode has an important influence on the optimization of the vehicle routing problem and should also be considered. For example, in cross-docking transportation, inbound vehicles load goods from suppliers and transport them to a cross-distribution center, where they are sorted and sorted, and then transported by outbound vehicles to the manufacturer. This process increases shipping time and distance, and costs accordingly. In contrast, in the round-robin mode of transportation, the vehicle loads the goods from the supplier and transports it directly to the manufacturer, which has a shorter transit time. Therefore, the cross-docking shipping method is more suitable for long-distance shipping, while the circular shipping method is more suitable for short-distance shipping.

然而,现有的车辆路径问题研究并没有同时考虑上述两个问题。大多数研究聚焦于不确定性情况下的车辆路径优化问题,而没有考虑运输方式选择问题。因为运输方式选择的有效表示是一个挑战性问题。现有的运输方式选择的表示方法,如现有技术中提出的一种基于和声搜索和模拟退火的表示方法,没有同时考虑多种运输方式选择。同时,该方法只考虑了运输方式选择问题,而没有考虑运输环境的不确定性,因此其求得的解不够精确,从而不能求得最优的运输计划。However, existing research on vehicle routing problems does not consider the above two problems simultaneously. Most studies focus on vehicle routing optimization problems under uncertainty, and do not consider the problem of transportation mode selection. Because the efficient representation of transport mode selection is a challenging problem. Existing representation methods for transport mode selection, such as a representation method based on harmonic search and simulated annealing proposed in the prior art, do not consider multiple transport mode options at the same time. At the same time, this method only considers the choice of transportation mode, but does not consider the uncertainty of the transportation environment, so the solution obtained by it is not accurate enough, so the optimal transportation plan cannot be obtained.

由于车辆路径问题的复杂性,许多启发式算法常被应用于求解这一问题,例如遗传算法(GA)、和声搜索算法(HS)、变邻域搜索算法(VNS)、蚁群算法(ACO)、粒子群算法(PSO)和模拟退火算法(SA)。近年来,生物地理学优化算法(BBO)作为求解大规模优化问题的一种有效算法被广泛应用于制造服务供应链优化和约束优化问题的求解。BBO算法是对物种迁徙过程的模拟,并通过迁移操作和变异操作进行进化,最终使种群趋于全局最优。很多实验证明,在求解车辆路径问题时,BBO算法优于PSO和ACO等其它启发式算法。然而传统的BBO算法应用环境较为有限,不能综合考虑上述的多个方面的问题,因此亟需一种改进型BBO算法(EBBO)来求解出更加合理和高效的运输方案。Due to the complexity of the vehicle routing problem, many heuristic algorithms are often used to solve this problem, such as Genetic Algorithm (GA), Harmony Search (HS), Variable Neighbor Search (VNS), Ant Colony Algorithm (ACO) ), particle swarm optimization (PSO), and simulated annealing (SA). In recent years, the biogeographical optimization algorithm (BBO) has been widely used in the solution of manufacturing service supply chain optimization and constraint optimization problems as an effective algorithm for solving large-scale optimization problems. The BBO algorithm simulates the migration process of species, and evolves through migration operations and mutation operations, and finally makes the population tend to be globally optimal. Many experiments show that the BBO algorithm is superior to other heuristic algorithms such as PSO and ACO when solving the vehicle routing problem. However, the traditional BBO algorithm has a limited application environment and cannot comprehensively consider the above problems. Therefore, an improved BBO algorithm (EBBO) is urgently needed to solve a more reasonable and efficient transportation scheme.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种基于分块矩阵和模糊运输时间的车辆路径优化方法,该方法在模糊运输时间条件下考虑了循环运输与交叉配送两种运输方式的选择问题,从而可以获得不确定情况下的最优运输方案。The purpose of the present invention is to provide a vehicle path optimization method based on block matrix and fuzzy transportation time, which considers the selection of two transportation modes of circular transportation and cross-delivery under the condition of fuzzy transportation time, so that uncertainties can be obtained. the optimal transportation solution for the situation.

为实现上述目的,本发明所采取的技术方案为:To achieve the above object, the technical scheme adopted by the present invention is:

一种基于分块矩阵和模糊运输时间的车辆路径优化方法,包括以下步骤:A vehicle routing optimization method based on block matrix and fuzzy transit time, including the following steps:

步骤S1、建立基于模糊运输时间下的运输方式、循环运输顺序和交叉配送中心分配的路径优化模型;Step S1, establishing a path optimization model based on the mode of transport under the fuzzy transport time, the sequence of circular transport and the allocation of the cross distribution center;

步骤S2、初始化获得路径优化模型的解,即栖息地,并采用分块矩阵表示各栖息地,计算各栖息地的适宜度指数值,根据所述适宜度指数值确定初始的最优解;Step S2, initialize to obtain the solution of the path optimization model, namely habitats, and use a block matrix to represent each habitat, calculate the suitability index value of each habitat, and determine the initial optimal solution according to the suitability index value;

步骤S3、计算种群的迁入率和迁出率,并根据所述迁入率和迁出率判断是否对栖息地进行迁入或迁出操作,若需要进行迁入或迁出操作,则对栖息地对应的分块矩阵执行向量替代实现对栖息地的迁入或迁出操作;Step S3, calculate the in-migration rate and the out-migration rate of the population, and judge whether to carry out the in-migration or out-migration operation to the habitat according to the in-migration rate and the out-migration rate. The block matrix corresponding to the habitat performs vector substitution to realize the in-or-out operation of the habitat;

步骤S4、利用自适应变异概率和二次变异概率计算种群的变异率,根据所述自适应变异概率和二次变异概率选取相应的栖息地进行变异操作,更新最优解;Step S4, calculating the mutation rate of the population by using the adaptive mutation probability and the secondary mutation probability, selecting the corresponding habitat to perform mutation operation according to the adaptive mutation probability and the secondary mutation probability, and updating the optimal solution;

步骤S5、判断是否达到预设的迭代次数,若达到迭代次数,则输出最优解,即最优的运输方案;否则进入步骤S3继续迭代。Step S5, judge whether the preset number of iterations is reached, and if the number of iterations is reached, output the optimal solution, that is, the optimal transportation plan; otherwise, go to Step S3 to continue the iteration.

作为优选,所述建立基于模糊运输时间下的运输方式、循环运输顺序和交叉配送中心分配的路径优化模型,包括:Preferably, the establishment of a route optimization model based on the transportation mode, circular transportation sequence and cross-distribution center assignment under the fuzzy transportation time includes:

以最大化厂商满意度为优化目标,建立目标函数为:Taking maximizing the manufacturer's satisfaction as the optimization goal, the objective function is established as:

Figure BDA0002098519290000031
Figure BDA0002098519290000031

式中,s为厂商满意度的适应度函数,G为厂商集合,g为厂商g,K为车辆集合,k为车辆k,rkg为厂商g的满意度且该厂商的订单是由循环运输车辆k运输的,wkg为厂商g满意度的权重且该厂商的订单是由循环运输车辆k运输的,L为交叉配送中心集合,l为交叉配送中心l,rlg为厂商g的满意度且该厂商的订单是通过交叉配送中心l运输的,wlg为厂商g满意度的权重且该厂商的订单是通过交叉配送中心l运输的,S为供应商集合,i为供应商i,[cg,dg]为厂商g要求的时间窗,Dig为厂商g对供应商i的订单,Dg为厂商g对所有供应商的订单;In the formula, s is the fitness function of the manufacturer's satisfaction, G is the set of manufacturers, g is the manufacturer g, K is the set of vehicles, k is the vehicle k, r kg is the satisfaction of the manufacturer g and the order of the manufacturer is transported by circular transportation. Vehicle k transports, w kg is the weight of manufacturer g’s satisfaction and the manufacturer’s orders are transported by circular transport vehicle k, L is the set of cross-distribution centers, l is the cross-distribution center l, and r lg is the satisfaction of manufacturer g And the manufacturer's order is transported through the cross-distribution center l, w lg is the weight of the satisfaction of the manufacturer g and the manufacturer's order is transported through the cross-distribution center l, S is the supplier set, i is the supplier i, [ c g ,d g ] is the time window required by manufacturer g, D ig is the order of manufacturer g to supplier i, and D g is the order of manufacturer g to all suppliers;

目标函数中的yikg和xilg为决策变量,且y ikg and x ilg in the objective function are decision variables, and

Figure BDA0002098519290000032
Figure BDA0002098519290000032

Figure BDA0002098519290000033
Figure BDA0002098519290000033

目标函数中的bkg1、bkg2、和bkg3为通过循环运输车辆k运输的厂商g的订单到达的模糊时间,该模糊时间为bkg的模糊数,bkg为车辆k通过循环运输到达厂商g的时间,且In the objective function, b kg1 , b kg2 , and b kg3 are the fuzzy time of the arrival of the order of the manufacturer g transported by the circular transport vehicle k, the fuzzy time is the fuzzy number of b kg , and b kg is the transport of the vehicle k to the manufacturer through the circular transport time of g, and

bkg=bki+stki+tig b kg = b ki + st ki + t ig

式中,k∈K,g∈G,i∈S,bki为循环运输车辆k到达供应商i的时间,stki为循环运输车辆k在供应商i的服务时间,tig为从供应商i到厂商g的运输时间,且In the formula, k∈K, g∈G, i∈S, b ki is the time when the circulating transport vehicle k arrives at supplier i, st ki is the service time of the circulating transport vehicle k at supplier i, and t ig is the time from the supplier i the transit time of i to firm g, and

stki=γDigyikg st ki = γD ig y ikg

式中,γ为单位产品装载或卸载时间,Dig为厂商g对供应商i的订单,yikg为决策变量;In the formula, γ is the unit product loading or unloading time, D ig is the order of manufacturer g to supplier i, and y ikg is the decision variable;

目标函数中的flg1、flg2、和flg3为通过交叉配送中心l的厂商g的订单到达的模糊时间,该模糊时间为flg的模糊数,flg为车辆通过交叉配送中心l到达厂商g的时间,且f lg1 , f lg2 , and f lg3 in the objective function are the fuzzy time for the arrival of the order of the manufacturer g through the cross-distribution center l, the fuzzy time is the fuzzy number of f lg , and f lg is the vehicle reaching the manufacturer through the cross-distribution center l time of g, and

flg=alg+tlg f lg = a lg +t lg

式中,l∈L,g∈G,alg为厂商g的订单离开交叉配送中心l的时间,tlg为从交叉配送中心l到厂商g的运输时间,且In the formula, l∈L, g∈G , alg is the time for the order of manufacturer g to leave the cross-distribution center l, tlg is the transportation time from the cross-distribution center l to the manufacturer g, and

Figure BDA0002098519290000041
Figure BDA0002098519290000041

式中,γ为单位产品装载或卸载时间,Tilg为通过交叉配送中心l前往厂商g的车辆运输的初始化时间,q为厂商q,Diq为厂商q对供应商i的订单,xilq和xilg为决策变量,til为供应商i到交叉配送中心l的运输时间,Dig为厂商g对供应商i的订单。In the formula, γ is the unit product loading or unloading time, T ilg is the initialization time of vehicle transportation through the cross-distribution center l to the manufacturer g, q is the manufacturer q, D iq is the order of the manufacturer q to the supplier i, x ilq and x ilg is the decision variable, t il is the transportation time from supplier i to the cross-distribution center l, and D ig is the order from manufacturer g to supplier i.

作为优选,根据所述目标函数建立约束条件,包括:Preferably, constraints are established according to the objective function, including:

设定厂商g对供应商i的订单只能选择一种运输方式:Suppose that manufacturer g can only choose one shipping method for the order of supplier i:

Figure BDA0002098519290000042
Figure BDA0002098519290000042

设定循环运输车辆k装载的货物不能超过该车的容量Q:It is set that the cargo loaded by the circulating transport vehicle k cannot exceed the capacity Q of the vehicle:

Figure BDA0002098519290000043
Figure BDA0002098519290000043

设定从供应商i运输到交叉配送中心l的入站车辆装载的货物不能超过该车的容量Q,其中从供应商i到交叉配送运中心l的车辆数量为milSuppose that an inbound vehicle transported from supplier i to cross-distribution center l cannot load more than the vehicle's capacity Q, where the number of vehicles from supplier i to cross-distribution center l is mil :

Figure BDA0002098519290000044
Figure BDA0002098519290000044

设定从交叉配送中心l运输到厂商g的出站车辆装载的货物不能超过该车的容量Q,其中从交叉配送中心l到厂商g的车辆数量为nlgIt is assumed that the goods loaded by the outbound vehicle transported from the cross-distribution center l to the manufacturer g cannot exceed the capacity Q of the vehicle, and the number of vehicles from the cross-distribution center l to the manufacturer g is n lg :

Figure BDA0002098519290000045
Figure BDA0002098519290000045

设定通过循环运输车辆k运输的厂商g的订单,其到达时间bkg不能超过dg,其中到达时间bkg的模糊数为

Figure BDA0002098519290000051
风险承担的置信水平为Cr*:Suppose that the order of the manufacturer g transported by the circulating transport vehicle k, its arrival time b kg cannot exceed d g , where the fuzzy number of the arrival time b kg is
Figure BDA0002098519290000051
The confidence level for the exposure is Cr * :

Figure BDA0002098519290000052
Figure BDA0002098519290000052

设定通过交叉配送中心l运输的厂商g的订单,其到达时间flg不能超过dg,其中到达时间flg的模糊数为

Figure BDA0002098519290000053
风险承担的置信水平为Cr*:Suppose that the order of manufacturer g transported through the cross distribution center l, its arrival time f lg cannot exceed d g , and the fuzzy number of the arrival time f lg is
Figure BDA0002098519290000053
The confidence level for the exposure is Cr * :

Figure BDA0002098519290000054
Figure BDA0002098519290000054

设定决策变量的范围:Set the range of the decision variable:

xilg∈{0,1},i∈S,l∈L,g∈Gx ilg ∈ {0,1}, i ∈ S, l ∈ L, g ∈ G

yikg∈{0,1},i∈S,k∈K,g∈G。y ikg ∈ {0,1}, i∈S, k∈K, g∈G.

作为优选,所述采用分块矩阵表示各栖息地,包括:Preferably, each habitat is represented by a block matrix, including:

每个栖息地由一个分块矩阵T=[Tg]表示,其中g表示厂商g,该分块矩阵的列表示供应商,行表示厂商,分块矩阵T的元素由许多小矩阵Tg组成;Each habitat is represented by a block matrix T = [T g ], where g represents the manufacturer g, the columns of the block matrix represent the supplier, and the rows represent the manufacturer, and the elements of the block matrix T are composed of many small matrices T g ;

其中,矩阵Tg包含三行,第一行为0到M之间的整数,0表示货物通过交叉配送方式运输,M表示循环运输的车辆数,整数E∈{0,M},表示相应供应商的货物由第E辆车通过循环运输配送;矩阵Tg的第二行为0和1之间的随机实数,表示循环运输车辆配送的顺序,该随机实数越大表示相应的供应商较早被遍历,而该随机实数为0表示相应供应商的货物没有通过循环运输方式配送;矩阵Tg的第三行为0和n之间的随机整数,0表示相应供应商的货物没有通过交叉配送方式运输,n表示交叉配送中心的数目,随机整数F∈{0,n}表示相应供应商的货物通过第F个交叉配送中心运输。Among them, the matrix T g contains three rows, the first row is an integer between 0 and M, 0 indicates that the goods are transported by cross-delivery, M indicates the number of vehicles transported in a circular manner, and the integer E∈{0,M} indicates the corresponding supplier The goods are distributed by the E-th vehicle through cyclic transportation; the second row of the matrix T g is a random real number between 0 and 1, which represents the order of cyclic transportation vehicles. The larger the random real number, the earlier the corresponding supplier is traversed , and the random real number is 0, which means that the goods of the corresponding supplier are not delivered by cyclic transportation; the third row of the matrix T g is a random integer between 0 and n, 0 means that the goods of the corresponding supplier are not delivered by cross-delivery, n represents the number of cross-distribution centers, and a random integer F∈{0,n} indicates that the goods of the corresponding supplier are transported through the F-th cross-distribution center.

作为优选,所述若需要进行迁入或迁出操作,则对栖息地对应的分块矩阵执行向量替代实现对栖息地的迁入或迁出操作,包括:Preferably, if a move-in or move-out operation is required, vector substitution is performed on the block matrix corresponding to the habitat to implement the move-in or move-out operation on the habitat, including:

栖息地中的适宜度向量由分块矩阵T中的一列表示,在对栖息地进行迁入或迁出操作时,利用待迁出栖息地的迁出列替代待迁入栖息地的迁入列,完成向量替代。The suitability vector in the habitat is represented by a column in the block matrix T. When the habitat is moved in or out, the outgoing column of the habitat to be moved is used to replace the incoming column of the habitat to be moved in. , completes the vector substitution.

作为优选,所述利用自适应变异概率和二次变异概率计算种群的变异率,根据所述自适应变异概率和二次变异概率选取相应的栖息地进行变异操作,包括:Preferably, the adaptive mutation probability and the secondary mutation probability are used to calculate the mutation rate of the population, and the corresponding habitat is selected to perform the mutation operation according to the adaptive mutation probability and the secondary mutation probability, including:

自适应变异概率mi1为:The adaptive mutation probability m i1 is:

Figure BDA0002098519290000061
Figure BDA0002098519290000061

式中,fi表示第i个栖息地的HSI值,fmid表示所有栖息地的HSI值的中间值,

Figure BDA0002098519290000062
表示所有栖息地中的HSI值的最大值;where f i represents the HSI value of the ith habitat, f mid represents the median of the HSI values of all habitats,
Figure BDA0002098519290000062
represents the maximum value of HSI in all habitats;

二次变异概率mi2为:The quadratic mutation probability m i2 is:

Figure BDA0002098519290000063
Figure BDA0002098519290000063

式中,fi表示第i个栖息地的HSI值,fmid表示所有栖息地的HSI值的中间值,

Figure BDA0002098519290000064
表示中间70%的栖息地中的HSI值的最大值;where f i represents the HSI value of the ith habitat, f mid represents the median of the HSI values of all habitats,
Figure BDA0002098519290000064
Represents the maximum value of HSI in the middle 70% of the habitat;

首先选择所有栖息地作为一次变异目标,根据自适应变异概率mi1对一次变异目标中的相应栖息地进行第一次变异,并根据第一次变异的结果,选取第一次变异后的栖息地的HSI值处于中间的70%的栖息地作为二次变异目标,并根据二次变异概率mi2对二次变异目标中相应栖息地进行第二次变异。First, all habitats are selected as the primary mutation target, and the corresponding habitats in the primary mutation target are mutated for the first time according to the adaptive mutation probability m i1 , and the habitats after the first mutation are selected according to the results of the first mutation. The habitats whose HSI value is in the middle 70% are used as the secondary mutation target, and the corresponding habitats in the secondary mutation target are subjected to secondary mutation according to the secondary mutation probability m i2 .

作为优选,所述预设迭代次数,包括:Preferably, the preset number of iterations includes:

若车辆路径优化的参与方中厂商的数量Ng为1≤Ng<4,则预设迭代次数为300;若车辆路径优化的参与方中厂商的数量Ng为Ng≥4,则预设迭代次数为500。If the number of manufacturers N g in the participants in vehicle routing optimization is 1≤N g <4, the preset number of iterations is 300; if the number N g of manufacturers in the participants in vehicle routing optimization is N g ≥ 4, then Set the number of iterations to 500.

本发明提供的基于分块矩阵和模糊运输时间的车辆路径优化方法,该方法综合考虑了供应商、厂商、运输方式的选择,车辆循环运输顺序以及交叉配送中心的选择等问题,且提出了一种基于分块矩阵的表示方法,以一种更直观、合理和高效的方式表示运输方案;将传统BBO算法中的一维栖息地表示扩展为二维栖息地表示,从而解决所提出的混合车辆路径优化模型;基于当前栖息地的质量与中间栖息地质量的相对差异,提出了自适应变异概率计算方法,使得高质量和低质量的栖息地都具有较高的概率进化为更优解,同时配合提出的二次变异操作,以提高中间质量栖息地的进化概率。The vehicle route optimization method based on block matrix and fuzzy transportation time provided by the present invention comprehensively considers the selection of suppliers, manufacturers, transportation methods, vehicle circulation transportation sequence and selection of cross distribution centers, and proposes a A block matrix-based representation method to represent the transportation scheme in a more intuitive, reasonable and efficient way; the one-dimensional habitat representation in the traditional BBO algorithm is extended to a two-dimensional habitat representation to solve the proposed hybrid vehicle Path optimization model; based on the relative difference between the quality of the current habitat and the quality of the intermediate habitat, an adaptive mutation probability calculation method is proposed, so that both high-quality and low-quality habitats have a higher probability to evolve into a better solution, and at the same time Cooperate with the proposed quadratic mutation operation to improve the evolutionary probability of intermediate quality habitats.

附图说明Description of drawings

图1为本发明基于分块矩阵和模糊运输时间的车辆路径优化方法的流程图;Fig. 1 is the flow chart of the vehicle route optimization method based on block matrix and fuzzy transit time of the present invention;

图2为本发明实施例2中迁移操作的示意图;2 is a schematic diagram of a migration operation in Embodiment 2 of the present invention;

图3为本发明实施例3中变异操作的示意图;3 is a schematic diagram of a mutation operation in Embodiment 3 of the present invention;

图4为本发明实施例4中不同种群规模下厂商满意度曲线图;Fig. 4 is the manufacturer satisfaction curve graph under different population scales in the embodiment of the present invention 4;

图5为本发明实施例4中Cr*值为0.4且小型车辆路径的各算法的厂商满意度曲线图;FIG. 5 is a graph of manufacturer satisfaction of each algorithm with a Cr* value of 0.4 and a small vehicle path in Embodiment 4 of the present invention;

图6为本发明实施例4中Cr*值为0.4且大型车辆路径的各算法的厂商满意度曲线图;FIG. 6 is a graph of manufacturer satisfaction of each algorithm with a Cr* value of 0.4 and a large vehicle path in Embodiment 4 of the present invention;

图7为本发明实施例4中不同Cr*值下的厂商满意度曲线图;Fig. 7 is the manufacturer satisfaction curve graph under different Cr* value in the embodiment of the present invention 4;

图8为本发明实施例4中Cr*值为0.9时各算法的厂商满意度曲线图。FIG. 8 is a graph of manufacturer satisfaction of each algorithm when the Cr* value is 0.9 in Example 4 of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是在于限制本发明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.

如图1所示,在一实施例中,提供了一种基于分块矩阵和模糊运输时间的车辆路径优化方法,该方法在模糊运输时间条件下考虑了循环运输与交叉配送两种运输方式的选择问题,从而可以获得不确定情况下的最优运输方案。As shown in FIG. 1 , in one embodiment, a vehicle route optimization method based on block matrix and fuzzy transit time is provided, and the method considers the two modes of transportation of circular transportation and cross-delivery under the condition of fuzzy transit time. Choose the problem so that you can get the optimal transportation plan under uncertainty.

为便于对本实施例的车辆路径优化方法的理解,首先给出本实施例中所涉及的参数如下:In order to facilitate the understanding of the vehicle path optimization method of this embodiment, the parameters involved in this embodiment are first given as follows:

S表示供应商集合;G表示厂商集合;Ng表示厂商的数量;L表示交叉配送中心集合;K表示车辆集合;Q表示车辆容量;γ表示单位产品装载或卸载时间;Dig表示厂商g对供应商i的订单;tij表示从供应商i到节点j的运输时间;stki表示循环运输车辆k在节点i的服务时间;bki表示循环运输车辆k到达节点i的时间;alg表示厂商g的订单离开交叉配送中心l的时间;flg表示通过交叉配送中心l的车辆到达厂商g的时间;Tilg表示通过交叉配送中心l前往厂商g的车辆运输的初始化时间;nlg表示从交叉配送中心l到厂商g的车辆数量;mil表示从供应商i到交叉配送运中心l的车辆数量;rkg表示厂商g的满意度且该厂商的订单是由循环运输车辆k运输的;rlg表示厂商g的满意度且该厂商的订单是通过交叉配送中心l运输的;wkg表示厂商g满意度的权重且该厂商的订单是由循环运输车辆k运输的;wlg表示厂商g满意度的权重且该厂商的订单是通过交叉配送中心l运输的;[cg,dg]表示厂商g的时间窗。S is the set of suppliers; G is the set of manufacturers; N g is the number of manufacturers; L is the set of cross-distribution centers; K is the set of vehicles; Q is the vehicle capacity; γ is the unit product loading or unloading time; Supplier i's order; t ij represents the transportation time from supplier i to node j; st ki represents the service time of circular transport vehicle k at node i; b ki represents the time that circular transport vehicle k arrives at node i; a lg represents The time when the order of manufacturer g leaves the cross-distribution center l; flg is the time when the vehicle passing through the cross-distribution center l arrives at the manufacturer g; The number of vehicles from the cross-distribution center l to the manufacturer g; mil represents the number of vehicles from the supplier i to the cross-distribution logistics center l; r kg represents the satisfaction of the manufacturer g and the order of the manufacturer is transported by the circular transport vehicle k; r lg represents the satisfaction of the manufacturer g and the orders of the manufacturer are transported through the cross distribution center l; w kg represents the weight of the satisfaction of the manufacturer g and the orders of the manufacturer are transported by the circulating transport vehicle k; w lg represents the manufacturer g Satisfaction weight and the manufacturer's order is transported through the cross-distribution center l; [c g ,d g ] represents the time window of the manufacturer g.

本发明重点在于车辆路径的优化,所以在交叉配送运输方式中,不考虑仓库内的扫描、分拣以及其它操作,和货物延迟情况。具体的,基于分块矩阵和模糊运输时间的车辆路径优化方法,包括以下步骤:The present invention focuses on the optimization of vehicle paths, so in the cross-delivery mode of transportation, scanning, sorting and other operations in the warehouse, and cargo delays are not considered. Specifically, the vehicle route optimization method based on block matrix and fuzzy transit time includes the following steps:

步骤S1、建立基于模糊运输时间下的运输方式、循环运输顺序和交叉配送中心分配的路径优化模型。Step S1, establishing a path optimization model based on the transportation mode, circular transportation sequence and cross-distribution center assignment under the fuzzy transportation time.

为了更好地说明这个模型,本实施例提出以下假设:所有车辆的类型都一样;厂商对供应商的订单小于车辆的容量;有足够的车辆来运输货物;某个点的服务时间指在该点的装载或卸载时间;交叉配送中心不临时存储货物,即货物从入站车辆卸载后立即被装入出站车辆;驶向厂商的出站车辆必须留在交叉配送中心,直到该厂商需要的所有订单都装载到该出站车辆上。To better illustrate this model, this example makes the following assumptions: all vehicles are of the same type; the manufacturer's order to the supplier is less than the capacity of the vehicle; there are enough vehicles to transport the goods; the service time at a certain point refers to the Loading or unloading time at point; cross-distribution centers do not temporarily store goods, i.e. goods are loaded into outbound vehicles immediately after unloading from inbound vehicles; outbound vehicles heading for the manufacturer must remain at the cross-distribution center until required by the manufacturer All orders are loaded onto this outbound vehicle.

步骤S1.1、在建立模型时,首先以最大化厂商满意度为优化目标,建立目标函数为:Step S1.1. When establishing the model, first take maximizing the manufacturer's satisfaction as the optimization goal, and establish the objective function as:

Figure BDA0002098519290000081
Figure BDA0002098519290000081

公式(1)中,s为厂商满意度的适应度函数,G为厂商集合,g为厂商g,K为车辆集合,k为车辆k,rkg为厂商g的满意度且该厂商的订单是由循环运输车辆k运输的,wkg为厂商g满意度的权重且该厂商的订单是由循环运输车辆k运输的,L为交叉配送中心集合,l为交叉配送中心l,rlg为厂商g的满意度且该厂商的订单是通过交叉配送中心l运输的,wlg为厂商g满意度的权重且该厂商的订单是通过交叉配送中心l运输的,S为供应商集合,i为供应商i,[cg,dg]为厂商g要求的时间窗,Dig为厂商g对供应商i的订单,Dg为厂商g对所有供应商的订单。In formula (1), s is the fitness function of the manufacturer's satisfaction, G is the manufacturer set, g is the manufacturer g, K is the vehicle set, k is the vehicle k, r kg is the satisfaction of the manufacturer g and the manufacturer's order is Transported by the circular transport vehicle k, w kg is the weight of the satisfaction of the manufacturer g and the order of the manufacturer is transported by the circular transport vehicle k, L is the set of cross-distribution centers, l is the cross-distribution center l, and r lg is the manufacturer g and the manufacturer's order is transported through the cross-distribution center l, w lg is the weight of the satisfaction of the manufacturer g and the manufacturer's order is transported through the cross-distribution center l, S is the supplier set, and i is the supplier i, [c g ,d g ] is the time window required by manufacturer g, D ig is the order of manufacturer g to supplier i, and D g is the order of manufacturer g to all suppliers.

目标函数中的yikg和xilg为决策变量,且y ikg and x ilg in the objective function are decision variables, and

Figure BDA0002098519290000091
Figure BDA0002098519290000091

Figure BDA0002098519290000092
Figure BDA0002098519290000092

目标函数中的bkg1、bkg2、和bkg3为通过循环运输车辆k运输的厂商g的订单到达的模糊时间,该模糊时间为bkg的模糊数,bkg为车辆k通过循环运输到达厂商g的时间,且In the objective function, b kg1 , b kg2 , and b kg3 are the fuzzy time of the arrival of the order of the manufacturer g transported by the circular transport vehicle k, the fuzzy time is the fuzzy number of b kg , and b kg is the transport of the vehicle k to the manufacturer through the circular transport time of g, and

bkg=bki+stki+tig (2)b kg = b ki +st ki +t ig (2)

公式(2)中,k∈K,g∈G,i∈S,bki为循环运输车辆k到达供应商i的时间,stki为循环运输车辆k在供应商i的服务时间,tig为从供应商i到厂商g的运输时间,且In formula (2), k ∈ K, g ∈ G, i ∈ S, b ki is the time when the circular transport vehicle k arrives at supplier i, st ki is the service time of the circular transport vehicle k at supplier i, and t ig is the transit time from supplier i to firm g, and

stki=γDigyikg (3)st ki = γD ig y ikg (3)

公式(3)中,γ为单位产品装载或卸载时间,Dig为厂商g对供应商i的订单,yikg为决策变量;In formula (3), γ is the unit product loading or unloading time, D ig is the order from manufacturer g to supplier i, and y ikg is the decision variable;

目标函数中的flg1、flg2、和flg3为通过交叉配送中心l的厂商g的订单到达的模糊时间,该模糊时间为flg的模糊数,flg为车辆通过交叉配送中心l到达厂商g的时间,且f lg1 , f lg2 , and f lg3 in the objective function are the fuzzy time for the arrival of the order of the manufacturer g through the cross-distribution center l, the fuzzy time is the fuzzy number of f lg , and f lg is the vehicle reaching the manufacturer through the cross-distribution center l time of g, and

flg=alg+tlg (4)f lg = a lg +t lg (4)

公式(4)中,l∈L,g∈G,alg为厂商g的订单离开交叉配送中心l的时间,tlg为从交叉配送中心l到厂商g的运输时间,且In formula (4), l∈L, g∈G , alg is the time when the order of manufacturer g leaves the cross-distribution center l, tlg is the transportation time from the cross-distribution center l to the manufacturer g, and

Figure BDA0002098519290000093
Figure BDA0002098519290000093

公式(5)中,γ为单位产品装载或卸载时间,Tilg为通过交叉配送中心l前往厂商g的车辆运输的初始化时间,q为厂商q,Diq为厂商q对供应商i的订单,xilg和xilq为决策变量,xilq在厂商q对供应商i的订单通过交叉配送中心l配送时取1;其它情况时取0,til为供应商i到交叉配送中心l的运输时间,Dig为厂商g对供应商i的订单。In formula (5), γ is the unit product loading or unloading time, T ilg is the initialization time of vehicle transportation to manufacturer g through the cross-distribution center l, q is manufacturer q, D iq is the order of manufacturer q to supplier i, x ilg and x ilq are decision variables, x ilq is taken as 1 when the order from manufacturer q to supplier i is delivered by cross-distribution center l; otherwise, it is taken as 0, and t il is the transportation time from supplier i to cross-distribution center l , D ig is the order from manufacturer g to supplier i.

另外,公式(1)中的rkg的初始表示方法为:In addition, the initial representation of r kg in formula (1) is:

Figure BDA0002098519290000101
Figure BDA0002098519290000101

由于通过循环运输车辆k运输的厂商g的订单到达的模糊时间为

Figure BDA0002098519290000102
故可将公式(6)改写为如下形式,即目标函数中的表示方式:The fuzzy time due to the arrival of the order from firm g transported by the circular transport vehicle k is
Figure BDA0002098519290000102
Therefore, formula (6) can be rewritten as the following form, that is, the representation in the objective function:

Figure BDA0002098519290000103
Figure BDA0002098519290000103

公式(1)中的rlg的初始表示方法为:The initial representation of r lg in formula (1) is:

Figure BDA0002098519290000104
Figure BDA0002098519290000104

由于通过交叉配送中心l的厂商g的订单到达的模糊时间为

Figure BDA0002098519290000105
故可将公式(8)改写为如下形式,即目标函数中的表示方式:Since the fuzzy time for the arrival of the order from firm g through the cross-distribution center l is
Figure BDA0002098519290000105
Therefore, formula (8) can be rewritten as the following form, that is, the representation in the objective function:

Figure BDA0002098519290000106
Figure BDA0002098519290000106

由于厂商的订单既可以通过循环运输也可以通过交叉配送运输来满足,因此厂商g的订单到达时间可能不同,相应的满意度也可能不同。为了解决这一问题,本实施例为不同的运输方式分配一个与运输量相关的满意度权重,因为具有较大运输量的车辆,厂商更希望其能按时到达,因此公式(1)中的wkg和wlg分别可以根据以下公式计算得到:Since the manufacturer's order can be fulfilled by both round-robin and cross-delivery shipping, the arrival time of the order of manufacturer g may be different, and the corresponding satisfaction may also be different. In order to solve this problem, this embodiment assigns a satisfaction weight related to the transportation volume to different transportation modes, because the vehicle with a larger transportation volume is more expected by the manufacturer to arrive on time, so w in formula (1) kg and w lg , respectively, can be calculated according to the following formulas:

Figure BDA0002098519290000107
Figure BDA0002098519290000107

Figure BDA0002098519290000108
Figure BDA0002098519290000108

步骤S1.2、根据所述目标函数建立约束条件:Step S1.2, establishing constraints according to the objective function:

所提出模型的目标函数应该满足各种约束条件,如下所示。The objective function of the proposed model should satisfy various constraints, as shown below.

(1)厂商g对供应商i的订单只能通过循环运输或交叉配送中的一种方式来运输:(1) Manufacturer g's order to supplier i can only be transported by one of round-robin or cross-delivery:

Figure BDA0002098519290000109
Figure BDA0002098519290000109

(2)循环运输车辆k装载的货物不能超过该车的容量Q:(2) The cargo loaded by the circulating transport vehicle k cannot exceed the capacity Q of the vehicle:

Figure BDA0002098519290000111
Figure BDA0002098519290000111

(3)从供应商i运输到交叉配送中心l的入站车辆装载的货物不能超过该车的容量Q,其中从供应商i到交叉配送运中心l的车辆数量为mil(3) The cargo loaded by an inbound vehicle transported from supplier i to cross-distribution center l cannot exceed the capacity Q of the vehicle, where the number of vehicles from supplier i to cross-distribution center l is mil :

Figure BDA0002098519290000112
Figure BDA0002098519290000112

(4)从交叉配送中心l运输到厂商g的出站车辆装载的货物不能超过该车的容量Q,其中从交叉配送中心l到厂商g的车辆数量为nlg(4) The goods loaded by the outbound vehicle transported from the cross-distribution center l to the manufacturer g cannot exceed the capacity Q of the vehicle, where the number of vehicles from the cross-distribution center l to the manufacturer g is n lg :

Figure BDA0002098519290000113
Figure BDA0002098519290000113

(5)通过循环运输车辆k运输的厂商g的订单,其到达时间bkg不能超过dg(5) For the order of manufacturer g transported by the circular transport vehicle k, its arrival time b kg cannot exceed d g :

bkg≤dg,k∈K,g∈G (16)b kg ≤d g , k∈K,g∈G (16)

(6)通过交叉配送中心l运输的厂商g的订单,其到达时间flg不能超过dg(6) The arrival time f lg of the order of manufacturer g transported through the cross distribution center l cannot exceed d g :

flg≤dg,l∈L,g∈G (17)f lg ≤d g , l∈L,g∈G (17)

(7)如果厂商对供应商i有订单,且该订单是通过循环运输配送的,那么存在车辆k从供应商i到下一个节点j的决策变量zikj为:(7) If the manufacturer has an order for supplier i, and the order is distributed through circular transportation, then there is a decision variable z ikj of vehicle k from supplier i to the next node j as:

Figure BDA0002098519290000114
Figure BDA0002098519290000114

(8)如果厂商g对供应商i的订单是通过循环运输配送的,那么存在车辆k从供应商i到厂商g的决策变量zikg为:(8) If the order from manufacturer g to supplier i is distributed through circular transportation, then there is a decision variable z ikg for vehicle k from supplier i to manufacturer g as:

Figure BDA0002098519290000115
Figure BDA0002098519290000115

(9)车辆k从供应商i到厂商g只有一条路线的决策变量zikg为:(9) The decision variable z ikg that vehicle k has only one route from supplier i to manufacturer g is:

Figure BDA0002098519290000116
Figure BDA0002098519290000116

(10)设定决策变量的范围:(10) Set the range of decision variables:

xilg∈{0,1},i∈S,l∈L,g∈G (21)x ilg ∈ {0,1}, i∈S,l∈L,g∈G (21)

yikg∈{0,1},i∈S,k∈K,g∈G (22)y ikg ∈ {0,1}, i∈S, k∈K, g∈G (22)

zikj∈{0,1},i∈S,k∈K,j∈S∪G (23)z ikj ∈{0,1}, i∈S,k∈K,j∈S∪G (23)

在上述约束条件中,由于运输时间是不确定的,到达时间和离开时间也是不确定的,所以需要对运输时间做模糊运输时间的处理,处理过程如下:In the above constraints, since the transportation time is uncertain, and the arrival time and departure time are also uncertain, it is necessary to do fuzzy transportation time processing for the transportation time. The processing process is as follows:

首先,将车辆k从节点i到节点j的运输时间tij转换为模糊数

Figure BDA0002098519290000121
同理得到到达时间bkg的模糊数为
Figure BDA0002098519290000122
到达时间flg的模糊数为
Figure BDA0002098519290000123
故公式(16)、(17)可分别转化如下形式:First, convert the transit time tij of vehicle k from node i to node j into a fuzzy number
Figure BDA0002098519290000121
Similarly, the fuzzy number of arrival time b kg is obtained as
Figure BDA0002098519290000122
The fuzzy number of arrival time f lg is
Figure BDA0002098519290000123
Therefore, formulas (16) and (17) can be respectively transformed into the following forms:

Figure BDA0002098519290000124
Figure BDA0002098519290000124

Figure BDA0002098519290000125
Figure BDA0002098519290000125

为了处理该优化模型中的不确定变量,本实施例采用可信度理论,将模糊变量与定值进行比较,以评估不确定值。因此,约束条件(24)和(25)还可以转换为以下形式:In order to deal with the uncertain variables in the optimization model, the present embodiment adopts the reliability theory, and compares the fuzzy variables with the fixed values to evaluate the uncertain values. Therefore, constraints (24) and (25) can also be transformed into the following form:

Figure BDA0002098519290000126
Figure BDA0002098519290000126

Figure BDA0002098519290000127
Figure BDA0002098519290000127

其中,

Figure BDA0002098519290000128
为到达时间bkg的模糊随机变量,且
Figure BDA0002098519290000129
Figure BDA00020985192900001210
为到达时间flg的模糊随机变量,且
Figure BDA00020985192900001211
Cr*表示风险承担的置信水平。in,
Figure BDA0002098519290000128
is a fuzzy random variable of arrival time b kg , and
Figure BDA0002098519290000129
Figure BDA00020985192900001210
is a fuzzy random variable of arrival time f lg , and
Figure BDA00020985192900001211
Cr * represents the confidence level of the risk-taking.

其中Cr*值越高,解空间越大,越容易获得更优解。但是,Cr*值越大,失败风险也越大。在一实施例中,将Cr*设定在范围[0.4,0.6]内,该范围内厂商可以获得最优满意度,并且厂商的满意度波动较小,失败风险水平也在可接受范围内。The higher the Cr * value, the larger the solution space, and the easier it is to obtain a better solution. However, the higher the Cr * value, the higher the risk of failure. In one embodiment, Cr * is set in the range [0.4, 0.6], within which the manufacturer can obtain the optimal satisfaction, and the fluctuation of the satisfaction of the manufacturer is small, and the failure risk level is also within an acceptable range.

以下本实施例将采用基于分块矩阵的表示方法和基于EBBO算法对路径优化模型求解,得到最优的运输方案,包括:The following present embodiment will adopt the representation method based on the block matrix and the EBBO algorithm to solve the route optimization model, and obtain the optimal transportation plan, including:

步骤S2、初始化获得路径优化模型的解,即栖息地,并采用分块矩阵表示各栖息地,计算各栖息地的适宜度指数值(HSI值),根据所述适宜度指数值确定初始的最优解。Step S2, initialize and obtain the solution of the path optimization model, that is, habitats, and use a block matrix to represent each habitat, calculate the suitability index value (HSI value) of each habitat, and determine the initial optimum value according to the suitability index value. optimal solution.

需要说明的是,确定初始的最优解时,选择HSI值最大的解作为最优解。It should be noted that, when determining the initial optimal solution, the solution with the largest HSI value is selected as the optimal solution.

路径优化模型的解,也就是对应的运输方案,可以被看作是一个栖息地。由于本申请同时考虑基于运输方式、循环运输顺序和交叉配送中心分配这三个子问题,故利用分块矩阵来表示模糊运输时间条件下的运输方案。The solution of the route optimization model, that is, the corresponding transportation scheme, can be regarded as a habitat. Since this application considers three sub-problems based on transportation mode, circular transportation sequence and cross-distribution center allocation at the same time, a block matrix is used to represent the transportation scheme under the condition of fuzzy transportation time.

该分块矩阵包含了运输方式选择、车辆循环运输顺序以及交叉配送中心的选择,将传统BBO算法中的一维栖息地表示扩展为二维栖息地表示,从而解决所提出的车辆路径优化模型。The block matrix includes the choice of transportation mode, the sequence of vehicle circulation and the choice of cross-distribution center, which expands the one-dimensional habitat representation in the traditional BBO algorithm to a two-dimensional habitat representation, thereby solving the proposed vehicle routing optimization model.

每个栖息地由一个分块矩阵T=[Tg],其中g表示厂商g,该分块矩阵的列表示供应商,行表示厂商,分块矩阵T的元素由许多小矩阵Tg组成;Each habitat consists of a block matrix T = [T g ], where g represents the manufacturer g, the columns of the block matrix represent the supplier, and the rows represent the manufacturer, and the elements of the block matrix T are composed of many small matrices T g ;

其中,矩阵Tg包含三行,第一行为0到M之间的整数,0表示货物通过交叉配送方式运输,M表示循环运输的车辆数,整数E∈{0,M},表示相应供应商的货物由第E辆车通过循环运输配送;矩阵Tg的第二行为0和1之间的随机实数,表示循环运输车辆配送的顺序,该随机实数越大表示相应的供应商较早被遍历,而该随机实数0表示相应供应商的货物没有通过循环运输方式配送;矩阵Tg的第三行为0和n之间的随机整数,0表示相应供应商的货物没有通过交叉配送方式运输,n表示交叉配送中心的数目,随机整数F∈{0,n}表示相应供应商的货物通过第F个交叉配送中心运输。Among them, the matrix T g contains three rows, the first row is an integer between 0 and M, 0 indicates that the goods are transported by cross-delivery, M indicates the number of vehicles transported in a circular manner, and the integer E∈{0,M} indicates the corresponding supplier The goods are distributed by the E-th vehicle through cyclic transportation; the second row of the matrix T g is a random real number between 0 and 1, which represents the order of cyclic transportation vehicles. The larger the random real number, the earlier the corresponding supplier is traversed , and the random real number 0 indicates that the goods of the corresponding supplier are not delivered by cyclic transportation; the third row of the matrix T g is a random integer between 0 and n, 0 indicates that the goods of the corresponding supplier are not delivered by cross-distribution, n Represents the number of cross-distribution centers, and a random integer F∈{0,n} indicates that the goods of the corresponding supplier are transported through the F-th cross-distribution center.

下面通过实施例进一步说明分块矩阵表示栖息地的方法。The method for representing habitats by a block matrix is further described below through embodiments.

实施例1:Example 1:

表1基于分块矩阵表示的栖息地Table 1 Habitat representation based on block matrix

Figure BDA0002098519290000131
Figure BDA0002098519290000131

表1提供了一个基于分块矩阵表示的运输方案(栖息地)的示例,该示例包含六个供应商、三个厂商和两个交叉配送中心。如矩阵的第一行所示,供应商2和5下的两个“2”值表明这两个供应商的货物通过车辆2循环运输到厂商1。矩阵的第二行表示车辆2首先访问供应商2,如果车辆未超载,则继续访问供应商5。这个过程一直持续到所有供应商被访问或车辆超载。如果发生这种情况,将选择其它车辆访问剩余供应商。矩阵第三行表示没有参加循环运输的供应商将通过交叉配送方式运输货物。这里,供应商3和4的货物通过交叉配送中心2运输到厂商1。Table 1 provides an example of a transportation scenario (habitat) based on a tiled matrix representation with six suppliers, three manufacturers, and two cross-distribution centers. As shown in the first row of the matrix, the two "2" values under Suppliers 2 and 5 indicate that the goods of these two suppliers are transported in a circular manner by Vehicle 2 to Supplier 1. The second row of the matrix indicates that vehicle 2 visits supplier 2 first and continues to visit supplier 5 if the vehicle is not overloaded. This process continues until all suppliers are visited or the vehicle is overloaded. If this happens, other vehicles will be selected to visit the remaining suppliers. The third row of the matrix indicates that suppliers who do not participate in round-robin shipping will ship the goods through cross-shipping. Here, the goods of suppliers 3 and 4 are transported to the manufacturer 1 through the cross-distribution center 2.

步骤S3、计算种群的迁入率和迁出率,并根据所述迁入率和迁出率判断是否对栖息地进行迁入或迁出操作,若需要进行迁入或迁出操作,则对栖息地对应的分块矩阵执行向量替代实现对栖息地的迁入或迁出操作。Step S3, calculate the in-migration rate and the out-migration rate of the population, and judge whether to carry out the in-migration or out-migration operation to the habitat according to the in-migration rate and the out-migration rate. The block matrix corresponding to the habitat performs vector substitution to realize the in-or-out operation of the habitat.

在迁移阶段,栖息地的HSI值越高,该栖息地就越容易与具有较低HSI值的栖息地共享其特征。在本申请中,每个栖息地的HSI值根据公式(1)计算得到。每个解(即栖息地)的改变是由迁移率决定的。当选择一个解进行改变时,迁移率被用来概率性地选择栖息地进行迁出与迁入操作。迁入率和迁出率的计算如下所示:During the migration phase, the higher the HSI value of a habitat, the easier it is for that habitat to share its characteristics with habitats with lower HSI values. In this application, the HSI value of each habitat is calculated according to formula (1). The change in each solution (i.e. habitat) is determined by the mobility. Mobility rates are used to probabilistically select habitats for out- and in-migration operations when selecting a solution to change. The in-migration and out-migration rates are calculated as follows:

Figure BDA0002098519290000141
Figure BDA0002098519290000141

Figure BDA0002098519290000142
Figure BDA0002098519290000142

其中,ki是所有解按照其HSI值降序排序后第i个解的排名次序,n表示解的个数,I表示最大迁入率,E表示最大迁出率。Among them, k i is the ranking order of the i-th solution after all solutions are sorted in descending order of their HSI values, n represents the number of solutions, I represents the maximum in-migration rate, and E represents the maximum in-migration rate.

栖息地中的适宜度向量(SIV)由分块矩阵T中的一列表示,在对栖息地进行迁入或迁出操作时,利用待迁出栖息地的迁出列替代待迁入栖息地的迁入列,完成向量替代。The suitability vector (SIV) in the habitat is represented by a column in the block matrix T. When the habitat is moved in or out, the outgoing column of the habitat to be emigrated is used to replace the one of the habitat to be emigrated. Move in columns, complete vector substitution.

下面通过实施例进一步描述本申请对栖息地的迁移操作。The following examples further describe the habitat migration operation of the present application.

实施例2:Example 2:

如图2所示,在一次车辆路径优化中,包含四个供应商、两个厂商和两个交叉配送中心。其中栖息地i中的第二列SIV迁出该栖息地,而栖息地j中的第三列SIV迁入栖息地i。因此,栖息地i中的第二列

Figure BDA0002098519290000143
被栖息地j中的第三列
Figure BDA0002098519290000144
代替。这里,栖息地i中的向量((2,0.78,0)-(1,0.34,0))被栖息地j中的向量((1,0.42,0)–(0,0,2))所代替,完成迁移。As shown in Figure 2, in a vehicle routing optimization, four suppliers, two manufacturers and two cross distribution centers are included. where the second column of SIVs in habitat i migrated out of that habitat, and the third column of SIVs in habitat j migrated into habitat i. So the second column in habitat i
Figure BDA0002098519290000143
by the third column in habitat j
Figure BDA0002098519290000144
replace. Here, the vector ((2,0.78,0)-(1,0.34,0)) in habitat i is divided by the vector ((1,0.42,0)-(0,0,2)) in habitat j Instead, complete the migration.

步骤S4、利用自适应变异概率和二次变异概率计算种群的变异率,根据所述自适应变异概率和二次变异概率选取相应的栖息地进行变异操作,更新最优解。Step S4: Calculate the mutation rate of the population by using the adaptive mutation probability and the secondary mutation probability, select corresponding habitats to perform mutation operations according to the adaptive mutation probability and the secondary mutation probability, and update the optimal solution.

传统BBO算法通过迁移和变异两个操作进行进化,在求解不同类型的优化问题时表现出很好的搜索能力。然而,具有较高HSI值的栖息地仅能通过变异操作略有改善,并且由于初始最大变异率的值较小,导致具有较高HSI值的栖息地的进化概率非常小。为了解决这一问题,本实施例引入一种新的自适应变异概率和二次变异操作来提高种群的多样性。其中The traditional BBO algorithm evolves through the two operations of migration and mutation, and shows good search ability when solving different types of optimization problems. However, habitats with higher HSI values were only slightly improved by mutation operations, and the evolutionary probability of habitats with higher HSI values was very small due to the small value of the initial maximum mutation rate. In order to solve this problem, this embodiment introduces a new adaptive mutation probability and quadratic mutation operation to improve the diversity of the population. in

自适应变异概率mi1为:The adaptive mutation probability m i1 is:

Figure BDA0002098519290000151
Figure BDA0002098519290000151

式中,fi表示第i个栖息地的HSI值,fmid表示所有栖息地的HSI值的中间值,

Figure BDA0002098519290000152
表示所有栖息地中的HSI值的最大值;此处的HSI值的中间值应理解为将栖息地根据HSI值从大到小排列之后,选取位于中间的栖息地的HSI值。例如:若有3个栖息地,从大到小排列后的HSI值分别为3、2、1,则中间值为2;若有4个栖息地,从大到小排列后它们的HSI值分别为4、3、2、1,则中间值为2.5。where f i represents the HSI value of the ith habitat, f mid represents the median of the HSI values of all habitats,
Figure BDA0002098519290000152
Represents the maximum value of HSI value in all habitats; the median value of HSI value here should be understood as the HSI value of the habitat located in the middle after the habitats are arranged from large to small according to the HSI value. For example: if there are 3 habitats, and the HSI values after ranking from largest to smallest are 3, 2, and 1, the median value is 2; if there are 4 habitats, their HSI values after ranking from largest to smallest are respectively 4, 3, 2, 1, then the median value is 2.5.

二次变异概率mi2为:The quadratic mutation probability m i2 is:

Figure BDA0002098519290000153
Figure BDA0002098519290000153

式中,fi表示第i个栖息地的HSI值,fmid表示所有栖息地的HSI值的中间值,

Figure BDA0002098519290000154
表示中间70%的栖息地中的HSI值的最大值;此处的中间70%的栖息地应理解为将栖息地根据HSI值递减排列之后,去除前面和后面的各15%的数量的栖息地,选取位于中间70%的数量的栖息地,且向后选取。例如:若栖息地有100个,则取第16~85个;若栖息地有10个,则向后选取,取第3~9个。where f i represents the HSI value of the ith habitat, f mid represents the median of the HSI values of all habitats,
Figure BDA0002098519290000154
Represents the maximum value of HSI value in the middle 70% of the habitats; the middle 70% of the habitats here should be understood as the habitats in the descending order of the HSI value, and the front and rear 15% of the habitats are removed , select habitats that are in the middle 70% of the population, and select backwards. For example: if there are 100 habitats, take the 16th to 85th; if there are 10 habitats, select backward and take the 3rd to 9th.

首先选择所有栖息地作为一次变异目标,根据自适应变异概率mi1对一次变异目标中的相应栖息地进行第一次变异,并根据第一次变异的结果,选取第一次变异后的栖息地的HSI值处于中间的70%的栖息地作为二次变异目标,并根据二次变异概率mi2对二次变异目标中相应栖息地进行第二次变异。First, all habitats are selected as the primary mutation target, and the corresponding habitats in the primary mutation target are mutated for the first time according to the adaptive mutation probability m i1 , and the habitats after the first mutation are selected according to the results of the first mutation. The habitats whose HSI value is in the middle 70% are used as the secondary mutation target, and the corresponding habitats in the secondary mutation target are subjected to secondary mutation according to the secondary mutation probability m i2 .

本申请所提出的自适应变异概率mi1,使得较低HSI值和较高HSI值的栖息地都具有较高的概率进化为更优解。并且,为了克服具有中间HSI值的栖息地仍然具有较小的概率进化为更优解的局限性,引入二次变异操作,以提高中间HSI值的栖息地的变异概率。The adaptive mutation probability m i1 proposed in this application makes both habitats with a lower HSI value and a higher HSI value have a higher probability to evolve into a better solution. And, in order to overcome the limitation that habitats with intermediate HSI values still have a smaller probability to evolve into better solutions, a quadratic mutation operation is introduced to improve the mutation probability of habitats with intermediate HSI values.

下面通过实施例进一步描述本申请对栖息地的变异操作。The following examples further describe the variation operations of the present application on habitats.

实施例3:Example 3:

如图3所示,为基于所提出的混合车辆路径模型变异操作的一个示例,该示例包含四个供应商、两个厂商和两个交叉配送中心。在本示例中,由于从供货商3到厂商1的货物运输方式由交叉配送变为循环运输,因此

Figure BDA0002098519290000161
从0变为随机数0.35,
Figure BDA0002098519290000162
相应地从2变为0。同理,因为供应商3到厂商2的货物运输方式由循环运输变为交叉配送,所以
Figure BDA0002098519290000163
从随机数0.72变为0,并且
Figure BDA0002098519290000164
相应地从0变为2。即在变异操作中,栖息地i第三列即((0,0,2)-(1,0.72,0))被新的列即((1,0.35,0)-(0,0,2))所替代。Figure 3 shows an example of mutation operation based on the proposed hybrid vehicle routing model, which contains four suppliers, two manufacturers, and two cross-distribution centers. In this example, since the mode of transportation of goods from supplier 3 to manufacturer 1 has changed from cross-delivery to round-robin, so
Figure BDA0002098519290000161
from 0 to a random number 0.35,
Figure BDA0002098519290000162
Change from 2 to 0 accordingly. In the same way, because the transportation mode of goods from supplier 3 to manufacturer 2 has changed from circular transportation to cross-distribution, so
Figure BDA0002098519290000163
from a random number 0.72 to 0, and
Figure BDA0002098519290000164
Change from 0 to 2 accordingly. That is, in the mutation operation, the third column of habitat i i.e. ((0,0,2)-(1,0.72,0)) is replaced by the new column i.e. ((1,0.35,0)-(0,0,2 )) is replaced.

步骤S5、判断是否达到预设的迭代次数,若达到迭代次数,则输出最优解,即最优的运输方案;否则进入步骤S3继续迭代。Step S5, judge whether the preset number of iterations is reached, and if the number of iterations is reached, output the optimal solution, that is, the optimal transportation plan; otherwise, go to Step S3 to continue the iteration.

本实施例在预设迭代次数时,根据厂商的数量进行设置,若车辆路径优化的参与方中厂商的数量Ng为1≤Ng<4,则预设迭代次数为300;若车辆路径优化的参与方中厂商的数量Ng为Ng≥4,则预设迭代次数为500。In this embodiment, when the number of iterations is preset, it is set according to the number of manufacturers. If the number of manufacturers N g among the participants in the vehicle routing optimization is 1≤N g <4, the preset number of iterations is 300; if the vehicle routing optimization The number of manufacturers N g in the participating parties is N g ≥ 4, and the preset number of iterations is 500.

例如:若车辆路径优化的参与方涉及1个厂商、10个供应商和2个交叉配送中心,则预设迭代次数为300次;若车辆路径优化的参与方涉及4个厂商、30个供应商和5个交叉配送中心,则预设迭代次数为500次。For example: if the participants in vehicle routing optimization involve 1 manufacturer, 10 suppliers and 2 cross-distribution centers, the preset number of iterations is 300; if the participants in vehicle routing optimization involve 4 manufacturers and 30 suppliers and 5 cross distribution centers, the preset number of iterations is 500.

为了验证本发明的一种基于分块矩阵和模糊运输时间的车辆路径优化方法的优越性和可行性,通过实施例选取本发明改进生物地理学优化算法(EBBO)与标准的BBO算法(BBO)、遗传算法(GA)、粒子群算法(PSO)和变邻域搜索算法(VNS)进行对比。In order to verify the superiority and feasibility of a vehicle route optimization method based on block matrix and fuzzy transit time of the present invention, an improved biogeographical optimization algorithm (EBBO) of the present invention and a standard BBO algorithm (BBO) are selected through examples. , Genetic Algorithm (GA), Particle Swarm Optimization (PSO) and Variable Neighborhood Search (VNS) are compared.

实施例4:Example 4:

为了获得合理的种群规模,本实施例首先使用一个包含10个供应商、1个厂商和2个交叉配送中心的小型车辆路径,测试不同算法在种群规模从30到100时的性能。对于每个种群规模,本实施例在相同的情况下运行50次,计算出平均的最优厂商满意度,并且每次运行的最大迭代次数均设为300。计算结果如图4所示。In order to obtain a reasonable population size, this example first uses a small vehicle path including 10 suppliers, 1 manufacturer and 2 cross distribution centers to test the performance of different algorithms when the population size ranges from 30 to 100. For each population size, this example is run 50 times under the same conditions to calculate the average optimal manufacturer satisfaction, and the maximum number of iterations for each run is set to 300. The calculation results are shown in Figure 4.

如图4所示,在给定的种群规模范围内,使用EBBO算法得到的平均厂商最优满意度高于其它四种算法得到的平均厂商最优满意度。此外,随着种群规模从30增加到100,使用EBBO算法得到的厂商满意度曲线保持相对稳定,使用PSO算法得到的厂商满意度曲线呈弱增长趋势。然而,使用BBO和GA算法得到的厂商满意度曲线是波动的,直到种群规模超过80后才保持稳定。使用VNS算法得到的厂商满意度曲线也是波动的,且稳定性较差。当种群规模为80左右时,使用VNS算法得到厂商满意度达到最优。因此,在后续试验中将五种算法的种群规模设均为80,以确保五种算法比较的公平性。As shown in Figure 4, within a given population size range, the average manufacturer's optimal satisfaction obtained by using the EBBO algorithm is higher than the average manufacturer's optimal satisfaction obtained by the other four algorithms. In addition, as the population size increased from 30 to 100, the manufacturer satisfaction curve obtained by using the EBBO algorithm remained relatively stable, and the manufacturer satisfaction curve obtained by using the PSO algorithm showed a weak growth trend. However, the manufacturer satisfaction curves obtained using the BBO and GA algorithms are fluctuating and remain stable until the population size exceeds 80. The vendor satisfaction curve obtained using the VNS algorithm is also volatile and less stable. When the population size is about 80, the VNS algorithm is used to obtain the optimal manufacturer satisfaction. Therefore, in the subsequent experiments, the population size of the five algorithms is set to be 80 to ensure the fairness of the comparison of the five algorithms.

进一步验证本发明算法(EBBO)的有效性:Further verify the validity of the algorithm of the present invention (EBBO):

首先,选取一个包含10个供应商、1个厂商和2个交叉配送中心的小型车辆路径案例来比较厂商满意度。First, a small vehicle routing case involving 10 suppliers, 1 manufacturer, and 2 cross-distribution centers was selected to compare manufacturer satisfaction.

如图5所示,在Cr*值为0.4,迭代次数为300时,使用EBBO算法获得的厂商满意度,所表现出的性能都优于其它四种算法。其主要原因是EBBO引入了自适应变异概率和二次变异操作,增加了种群多样性,提高了算法的全局搜索能力。As shown in Figure 5, when the Cr* value is 0.4 and the number of iterations is 300, the manufacturer satisfaction obtained by using the EBBO algorithm is superior to the other four algorithms. The main reason is that EBBO introduces adaptive mutation probability and quadratic mutation operation, which increases population diversity and improves the global search ability of the algorithm.

为了进一步证明本发明EBBO算法的有效性,本实施例选取一个包含30个供应商、4个厂商和5个交叉配送中心的大型车辆路径案例来比较厂商满意度。In order to further prove the effectiveness of the EBBO algorithm of the present invention, a large vehicle routing case including 30 suppliers, 4 manufacturers and 5 cross-distribution centers is selected in this embodiment to compare the satisfaction of manufacturers.

如图6所示,在Cr*值为0.4,迭代次数为500时,本发明的EBBO算法在解决大规模混合车辆路径问题上相比其它四种算法也表现出更好的性能。EBBO算法在求解大规模车辆路径问题时表现出弱收敛性的原因,是因为当问题规模变大时,寻找全局最优解所需的时间也需要相应增加。此外,EBBO算法引入了二次变异操作,导致了收敛速度减慢。然而,EBBO算法在求解大规模混合车辆路径问题时,具有较好的全局搜索能力,在寻找全局最优解方面优于其它四种算法。As shown in Figure 6, when the Cr* value is 0.4 and the number of iterations is 500, the EBBO algorithm of the present invention also shows better performance than the other four algorithms in solving the large-scale mixed vehicle routing problem. The reason why the EBBO algorithm shows weak convergence when solving large-scale vehicle routing problems is that when the problem size becomes larger, the time required to find the global optimal solution also needs to increase accordingly. In addition, the EBBO algorithm introduces a quadratic mutation operation, resulting in a slower convergence rate. However, the EBBO algorithm has better global search ability when solving large-scale mixed vehicle routing problems, and is superior to the other four algorithms in finding the global optimal solution.

进一步验证本发明算法(EBBO)的可行性:Further verify the feasibility of the algorithm of the present invention (EBBO):

假设一个物流公司被分配一个任务,从生产离合器、制动盘、转向器、阀门、油泵和消声器等六个不同的汽车零部件供应商运输零部件到某个汽车制造商。为了集中交货时间,汽车制造商接收货物的时间窗为[11:10,12:50]。Suppose a logistics company is assigned the task of transporting parts from six different auto parts suppliers producing clutches, brake discs, steering gears, valves, oil pumps, and mufflers to a certain car manufacturer. In order to centralize the delivery time, the time window for the car manufacturer to receive the goods is [11:10, 12:50].

由于Cr*值会影响求解得到的最优解,因此先根据上述假设任务测试不同Cr*值情况下EBBO算法的性能。对每一个Cr*值,实验运行50次,每次运行的最大迭代数设为300。计算结果如图7所示。Since the Cr* value will affect the optimal solution obtained, the performance of the EBBO algorithm under different Cr* values is first tested according to the above hypothetical tasks. For each Cr* value, the experiment was run 50 times, and the maximum number of iterations per run was set to 300. The calculation results are shown in Figure 7.

图中当Cr*值范围为[0.4,0.9],曲线相对稳定。由于Cr*越低,失败风险越高,最合理的Cr*值为0.9。因此,将Cr*设置为0.9,以便进一步研究。In the figure, when the Cr* value range is [0.4, 0.9], the curve is relatively stable. Since the lower the Cr*, the higher the risk of failure, the most reasonable Cr* value is 0.9. Therefore, Cr* was set to 0.9 for further study.

在上述任务下,设置Cr*为0.9时,得到如图8所示的适应度曲线,根据图中可得:随着迭代次数的增加,EBBO算法获得的厂商满意度高于其它四种算法获得的厂商满意度。Under the above task, when Cr* is set to 0.9, the fitness curve as shown in Figure 8 is obtained. According to the figure, as the number of iterations increases, the manufacturer satisfaction obtained by the EBBO algorithm is higher than that obtained by the other four algorithms. manufacturer satisfaction.

本发明提供的基于分块矩阵和模糊运输时间的车辆路径优化方法,该方法综合考虑了供应商、厂商、运输方式的选择,车辆循环运输顺序以及交叉配送中心的选择等问题,且提出了一种基于分块矩阵的表示方法,以一种更直观、合理和高效的方式表示运输方案;将传统BBO算法中的一维栖息地表示扩展为二维栖息地表示,从而解决所提出的混合车辆路径优化模型;基于当前栖息地的质量与中间栖息地质量的相对差异,提出了自适应变异概率计算方法,使得高质量和低质量的栖息地都具有较高的概率进化为更优解,同时配合提出的二次变异操作,以提高中间质量栖息地的进化概率。The vehicle route optimization method based on block matrix and fuzzy transportation time provided by the present invention comprehensively considers the selection of suppliers, manufacturers, transportation methods, vehicle circulation transportation sequence and selection of cross distribution centers, and proposes a A block matrix-based representation method to represent the transportation scheme in a more intuitive, reasonable and efficient way; the one-dimensional habitat representation in the traditional BBO algorithm is extended to a two-dimensional habitat representation to solve the proposed hybrid vehicle Path optimization model; based on the relative difference between the quality of the current habitat and the quality of the intermediate habitat, an adaptive mutation probability calculation method is proposed, so that both high-quality and low-quality habitats have a higher probability to evolve into a better solution, and at the same time Cooperate with the proposed quadratic mutation operation to improve the evolutionary probability of intermediate quality habitats.

以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above-described embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be regarded as the scope described in this specification.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present invention, and the descriptions thereof are more specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present invention, several modifications and improvements can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the appended claims.

Claims (4)

1. A vehicle path optimization method based on a block matrix and fuzzy transportation time is characterized by comprising the following steps:
s1, establishing a transportation mode, a circulating transportation sequence and a path optimization model distributed by a cross distribution center based on fuzzy transportation time;
step S2, initializing to obtain a solution of a path optimization model, namely habitats, representing each habitat by adopting a block matrix, calculating a suitability index value of each habitat, and determining an initial optimal solution according to the suitability index value;
step S3, calculating the migration rate and the migration rate of the population, judging whether to perform the operation of migration in or out of the habitat or not according to the migration rate and the migration rate, and if the operation of migration in or out is required, performing vector substitution on the block matrix corresponding to the habitat to realize the operation of migration in or out of the habitat;
step S4, calculating the variation rate of the population by using the self-adaptive variation probability and the secondary variation probability, selecting a corresponding habitat for variation operation according to the self-adaptive variation probability and the secondary variation probability, and updating the optimal solution;
step S5, judging whether a preset iteration number is reached, and if the preset iteration number is reached, outputting an optimal solution, namely an optimal transportation scheme; otherwise, the step S3 is entered for continuing the iteration;
the establishing of the transportation mode, the circulating transportation sequence and the path optimization model distributed by the cross distribution center based on the fuzzy transportation time comprises the following steps:
with the maximum manufacturer satisfaction as an optimization target, establishing an objective function as follows:
Figure FDA0003033855250000011
in the formula, s is a fitness function of the satisfaction degree of the manufacturer, G is a manufacturer set, G is a manufacturer G, K is a vehicle set, K is a vehicle K, and r iskgIs satisfied by the manufacturer g and the order of the manufacturer is transported by a circulating transport vehicle k, wkgIs the weight of satisfaction of the manufacturer g and the order of the manufacturer is transported by a circulating transport vehicle k, L is a cross distribution center set, L is a cross distribution center L, rlgIs satisfied by the manufacturer g and the order of the manufacturer is transported through the cross-distribution centre l, wlgIs the weight of satisfaction of the vendor g whose order was shipped through the cross-distribution center l, S is the set of suppliers, i is the supplier i, [ c ]g,dg]Time window required by manufacturer g, DigFor the order of the manufacturer g to the supplier i, DgOrders for vendor g for all suppliers;
y in the objective functionikgAnd xilgIs a decision variable, and
Figure FDA0003033855250000021
Figure FDA0003033855250000022
b in the objective functionkg1、bkg2And bkg3Fuzzy time of arrival of order of manufacturer g transported by circulating transport vehicle k, the fuzzy time being bkgFuzzy number of (b)kgFor the time that the vehicle k reaches the manufacturer g through the circulation transportation, and
bkg=bki+stki+tig
wherein K belongs to K, G belongs to G, i belongs to S, bkiFor circulating the time of arrival of the transport vehicle k at the supplier i, stkiFor circulating the service time, t, of the transport vehicle k at the supplier iigIs the transit time from supplier i to vendor g, and
stki=γDigyikg
where γ is the unit product loading or unloading time, DigFor the order of the manufacturer g to the supplier i, yikgIs a decision variable;
f in the objective functionlg1、flg2And flg3Fuzzy time of arrival of order for manufacturer g passing through cross-distribution center l, flgFuzzy number of flgFor the time of arrival of the vehicle at the manufacturer g through the cross distribution center l, and
flg=alg+tlg
wherein L is belonged to L, G is belonged to G, algTime of departure, t, from the Cross distribution center l for the order of the manufacturer glgFor the transit time from the cross-distribution center l to the manufacturer g, and
Figure FDA0003033855250000023
where γ is the unit product loading or unloading time, TilgFor the initialization time of the transport of vehicles through the cross-distribution centre l to the manufacturer g, q being the manufacturer q, DiqFor orders of manufacturer q to supplier i, xilqAnd xilgAs decision variables, tilFor the transit time of the supplier i to the cross-distribution centre l, DigAn order for vendor g to supplier i;
wherein, establishing constraint conditions according to the objective function comprises:
the supplier g can only select one transportation mode for the order of the supplier i:
Figure FDA0003033855250000031
setting that the goods loaded by the circulating transport vehicle k cannot exceed the capacity Q of the vehicle:
Figure FDA0003033855250000032
it is set that the volume Q of an inbound vehicle transported from a supplier i to a cross distribution center l, where the number of vehicles from the supplier i to the cross distribution center l is m, is not exceeded by cargo loaded on the vehicleil
Figure FDA0003033855250000033
It is set that the capacity Q of an outbound vehicle transported from a cross distribution center l to a manufacturer g, the number of which is n, cannot exceed the capacity Q of the vehiclelg
Figure FDA0003033855250000034
Setting the order of the manufacturer g transported by the circulating transport vehicle k, the arrival time b thereofkgMust not exceed dgWherein the arrival timebkgIs a fuzzy number of
Figure FDA0003033855250000035
Confidence level of risk exposure is Cr*
Figure FDA0003033855250000036
Setting the order of manufacturer g transported through the cross-distribution center l and the arrival time flgMust not exceed dgWherein the arrival time flgIs a fuzzy number of
Figure FDA0003033855250000037
Confidence level of risk exposure is Cr*
Figure FDA0003033855250000038
Setting the range of decision variables:
xilg∈{0,1},i∈S,l∈L,g∈G
yikg∈{0,1},i∈S,k∈K,g∈G;
the method comprises the following steps of calculating the mutation rate of a population by utilizing the self-adaptive mutation probability and the secondary mutation probability, and selecting a corresponding habitat to perform mutation operation according to the self-adaptive mutation probability and the secondary mutation probability, wherein the method comprises the following steps:
adaptive mutation probability mi1Comprises the following steps:
Figure FDA0003033855250000039
in the formula (f)iDenotes the HSI value, f, of the ith habitatmidRepresents the median of the HSI values for all habitats,
Figure FDA0003033855250000041
represents the maximum value of HSI values in all habitats;
probability of quadratic variation mi2Comprises the following steps:
Figure FDA0003033855250000042
in the formula (f)iDenotes the HSI value, f, of the ith habitatmidRepresents the median of the HSI values for all habitats,
Figure FDA0003033855250000043
represents the maximum value of HSI values in the middle 70% of the habitats;
firstly, all habitats are selected as a primary mutation target, and the mutation target is obtained according to the self-adaptive mutation probability mi1Performing first mutation on the corresponding habitat in the first mutation target, selecting 70% of the habitats with the HSI value in the middle of the habitat after the first mutation as the second mutation target according to the result of the first mutation, and performing second mutation according to the second mutation probability mi2And carrying out secondary variation on the corresponding habitat in the secondary variation target.
2. The block matrix and fuzzy transit time based vehicle path optimization method of claim 1, wherein said representing habitats with block matrices comprises:
each habitat is composed of a block matrix T ═ Tg]Where g denotes the vendor g, the columns of the block matrix denote vendors, the rows denote vendors, the elements of the block matrix T consist of a number of small matrices TgComposition is carried out;
wherein, the matrix TgThe method comprises the following steps that three lines are included, wherein the first line is an integer from 0 to M, 0 represents that goods are transported in a cross distribution mode, M represents the number of vehicles for circulating transportation, and the integer E belongs to {0, M }, represents that the goods of a corresponding supplier are distributed by the E vehicle through circulating transportation; matrix TgRepresents the order of delivery of the circulating transport vehicles, the larger the random real number, the earlier the corresponding supplier isIs traversed, and the random real number is 0, which indicates that the goods of the corresponding supplier are not distributed in a circulating transportation mode; matrix TgThe third row of (a) is a random integer between 0 and n, 0 indicates that the goods of the corresponding supplier are not transported by the cross-distribution manner, n indicates the number of cross-distribution centers, and the random integer F e {0, n } indicates that the goods of the corresponding supplier are transported by the F-th cross-distribution center.
3. The block matrix and fuzzy transportation time based vehicle path optimization method of claim 2, wherein if an immigration or an emigration operation is required, performing vector substitution on the block matrix corresponding to the habitat to realize the immigration or the emigration operation on the habitat comprises:
the fitness vector in the habitat is represented by a column in the block matrix T, and when the habitat is subjected to the operation of immigration or immigration, the immigration column of the habitat to be immigrated is replaced by the immigration column of the habitat to be immigration, so that vector replacement is completed.
4. The block matrix and fuzzy transit time based vehicle path optimization method of claim 1, wherein said predetermined number of iterations comprises:
number of manufacturers N in participants if vehicle routing is optimizedgIs 1. ltoreq. NgIf the number of iterations is less than 4, the preset number of iterations is 300; number of manufacturers N in participants if vehicle routing is optimizedgIs NgAnd if the number of iterations is more than or equal to 4, the preset number of iterations is 500.
CN201910526892.1A 2019-06-18 2019-06-18 A vehicle routing optimization method based on block matrix and fuzzy transit time Active CN110276488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910526892.1A CN110276488B (en) 2019-06-18 2019-06-18 A vehicle routing optimization method based on block matrix and fuzzy transit time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910526892.1A CN110276488B (en) 2019-06-18 2019-06-18 A vehicle routing optimization method based on block matrix and fuzzy transit time

Publications (2)

Publication Number Publication Date
CN110276488A CN110276488A (en) 2019-09-24
CN110276488B true CN110276488B (en) 2021-06-15

Family

ID=67961007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910526892.1A Active CN110276488B (en) 2019-06-18 2019-06-18 A vehicle routing optimization method based on block matrix and fuzzy transit time

Country Status (1)

Country Link
CN (1) CN110276488B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178730A (en) * 2019-12-24 2020-05-19 中国航空工业集团公司西安飞机设计研究所 Method and device for planning supply of oiling machine
CN111709570B (en) * 2020-06-11 2022-09-27 西南交通大学 Optimization method for network drop-and-drop transport scheduling
CN112766614B (en) * 2021-03-05 2023-09-15 重庆邮电大学 Dynamic vehicle path optimization method based on two-stage heuristic algorithm
CN113537885B (en) * 2021-07-14 2024-03-15 合肥工业大学 Method and system for delivering package by combining truck and unmanned aerial vehicle for delivery
CN117130265B (en) * 2023-10-27 2024-01-02 江苏辰星药业股份有限公司 Self-adaptive control method and system for health product transportation environment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002187622A (en) * 2000-12-21 2002-07-02 Honda Express Co Ltd Method of optimizing loading pattern in vehicle transportation system and base server for the same and memory medium recorded with program for the same
US8457240B2 (en) * 2008-08-25 2013-06-04 Daniel Lee Methods of selecting signal transmitting, receiving, and/or sensing devices with probabilistic evolutionary algorithms in information conveyance systems
US8103532B2 (en) * 2008-10-23 2012-01-24 Raytheon Company Method and system for fast local search and insertion heuristics for vehicle routing
US20110138255A1 (en) * 2009-12-09 2011-06-09 Lee Daniel Chonghwan Probabilistic Learning-Based Decoding of Communication Signals
JP5944431B2 (en) * 2014-04-07 2016-07-05 エヌイーシー ヨーロッパ リミテッドNec Europe Ltd. Dynamic fleet routing
CN105528643A (en) * 2016-01-11 2016-04-27 盐城工学院 Biogeographic optimization method for emergency service facility location problem
CN107480922B (en) * 2017-07-07 2021-03-16 西安建筑科技大学 Establishment method of cargo space allocation and scheduling model under the two-vehicle operation mode of two-end type on the same track
CN108803332B (en) * 2018-06-20 2021-01-19 桂林电子科技大学 Path planning method based on improved biophysics
CN109816243A (en) * 2019-01-24 2019-05-28 浙江财经大学 A collaborative task scheduling method for cloud manufacturing based on dynamic task awareness

Also Published As

Publication number Publication date
CN110276488A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN110276488B (en) A vehicle routing optimization method based on block matrix and fuzzy transit time
CN108764777B (en) Electric logistics vehicle scheduling method and system with time window
Pasha et al. Exact and metaheuristic algorithms for the vehicle routing problem with a factory-in-a-box in multi-objective settings
Ho et al. A hybrid genetic algorithm for the multi-depot vehicle routing problem
CN110322066B (en) Collaborative vehicle path optimization method based on shared carrier and shared warehouse
CN112001064B (en) Full-autonomous water transport scheduling method and system between container terminals
CN109800910B (en) Vehicle route optimization method based on tabu search hyperheuristic algorithm
CN111459108A (en) Task allocation and conflict-free path planning method for trailer-mounted multi-AGV system
WO2024032376A1 (en) Vehicle path optimization method based on hybrid genetic algorithm, and application thereof
CN117669992B (en) Real-time two-stage scheduling method and system for multiple mobile robots in intelligent warehousing
CN111985730B (en) Logistics path planning method, device, computer equipment and storage medium
CN110942251B (en) Batch scheduling method based on joint ant colony algorithm
CN112801347A (en) Multi-target city two-stage distribution planning method based on mobile transfer station and crowdsourcing
CN115345549A (en) Vehicle path adjusting method and system combined with loading scheme
CN114757394B (en) Logistics vehicle path optimization method, system and medium based on workload balance
Sedaghat et al. A sustainable transportation location inventory routing problem
Londoño et al. A hybrid heuristic approach for the multi-objective multi depot vehicle routing problem
CN115345550B (en) Vehicle path planning method and system
CN108921338B (en) A multi-vehicle workshop logistics transportation scheduling method
CN117973988A (en) A multi-objective logistics path optimization method and system considering carbon emissions
Lee et al. Endosymbiotic evolutionary algorithm for an integrated model of the vehicle routing and truck scheduling problem with a cross-docking system
CN111445100B (en) Vehicle and goods matching method based on self-adaptive time window under limited transport capacity
CN112700190B (en) Improved method for distributing tray materials by scanning method and genetic simulation annealing method
CN115796419A (en) Robot logistics transportation scheduling method, system, equipment and storage medium with time window
Fang et al. Dynamic Robot Routing and Destination Assignment Policies for Robotic Sorting Systems

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