CN114580732A - Urban logistics vehicle path optimization method considering dynamic efficiency of driver - Google Patents
Urban logistics vehicle path optimization method considering dynamic efficiency of driver Download PDFInfo
- Publication number
- CN114580732A CN114580732A CN202210193243.6A CN202210193243A CN114580732A CN 114580732 A CN114580732 A CN 114580732A CN 202210193243 A CN202210193243 A CN 202210193243A CN 114580732 A CN114580732 A CN 114580732A
- Authority
- CN
- China
- Prior art keywords
- driver
- vehicle
- fatigue
- customer
- delivery
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
- G06Q10/047—Optimisation of routes or paths, e.g. travelling salesman problem
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
- G06Q10/08355—Routing methods
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Operations Research (AREA)
- Biomedical Technology (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Game Theory and Decision Science (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了考虑驾驶员动态效率的城市物流车辆路径优化方法,包括确定驾驶员疲劳与表现之间的关系:引入疲劳曲线模型、分析驾驶员疲劳与表现之间的关系;建立车辆路径优化模型:确定问题目标与约束条件、确定参数与变量的符号表示、建立数学模型;求解所建立的上述模型:解的编码与评估、初始化阶段设计、雇佣蜂阶段设计、跟随蜂阶段设计、侦查蜂阶段设计。本发明不仅可以使得物流企业在资源有限的情况下更加合理地规划驾驶员的配送路径,帮助企业提高配送效率,节约配送成本,而且也能使得路径规划过程兼顾驾驶员的利益,缓解驾驶员的疲劳积累,提升驾驶员的工作体验。这两个方面对于提高企业的竞争力都具有重要意义。
The invention discloses an urban logistics vehicle path optimization method considering the driver's dynamic efficiency, including determining the relationship between driver fatigue and performance: introducing a fatigue curve model, analyzing the relationship between driver fatigue and performance; establishing a vehicle path optimization model : Determine the problem objectives and constraints, determine the symbolic representation of parameters and variables, and establish a mathematical model; solve the above-mentioned models: solution coding and evaluation, initialization stage design, hiring bee stage design, follower bee stage design, scout bee stage design. The present invention can not only make the logistics enterprise plan the distribution path of the driver more reasonably under the condition of limited resources, help the enterprise to improve the distribution efficiency and save the distribution cost, but also make the path planning process take into account the interests of the driver and alleviate the driver's burden. Fatigue accumulation improves the driver's work experience. These two aspects are of great significance for improving the competitiveness of enterprises.
Description
技术领域technical field
本发明属于物流优化技术领域,涉及考虑驾驶员动态效率的城市物流车辆路径优化方法。The invention belongs to the technical field of logistics optimization, and relates to an urban logistics vehicle path optimization method considering the dynamic efficiency of drivers.
背景技术Background technique
近年来,在电子商务持续增长的推动下,城市物流已成为国民生活领域不可或缺的一部分。在城市物流活动中,驾驶员作为企业与顾客之间联系的纽带,其配送效率直接影响到企业的配送成本、配送效率以及顾客的满意度水平。为了提高驾驶员的配送效率,物流调度员往往会在驾驶员出发之前制定好最优的配送路径方案,但是实际配送情况往往与之不一致。由于在配送过程中可能受到天气、交通等外部因素,以及驾驶员疲劳等内在特性的影响,驾驶员完成配送任务实际行驶路径与所花费的时间往往与调度员在制定方案时所预期的方案存在较大差异。In recent years, driven by the continuous growth of e-commerce, urban logistics has become an indispensable part of national life. In the urban logistics activities, the driver is the link between the enterprise and the customer, and its distribution efficiency directly affects the enterprise's distribution cost, distribution efficiency and customer satisfaction level. In order to improve the delivery efficiency of the driver, the logistics dispatcher often formulates the optimal delivery route plan before the driver leaves, but the actual delivery situation is often inconsistent with it. As the delivery process may be affected by external factors such as weather and traffic, as well as inherent characteristics such as driver fatigue, the actual driving path and time spent by drivers to complete the delivery task are often different from the plans expected by the dispatcher when formulating the plan. big difference.
截止目前,研究者更多地关注外部因素对最优配送路径的影响,忽略了驾驶员内在特性的影响,尤其是驾驶员疲劳这一重要因素。在如今高强度的工作环境之下,配送过程中所产生的疲劳势必影响驾驶员的表现,造成驾驶员配送效率的降低。因此,企业如何在考虑到由疲劳引起驾驶员动态表现的前提下有效地优化配送方案,为客户提供更好的配送服务,这已经成为亟待解决的问题。Up to now, researchers have paid more attention to the influence of external factors on the optimal delivery route, ignoring the influence of the intrinsic characteristics of drivers, especially the important factor of driver fatigue. In today's high-intensity working environment, the fatigue generated during the delivery process will inevitably affect the driver's performance, resulting in a reduction in the driver's delivery efficiency. Therefore, how to effectively optimize the distribution plan and provide better distribution services for customers under the premise of considering the dynamic performance of drivers caused by fatigue has become an urgent problem to be solved.
城市物流中的快递、外卖、生鲜等配送优化问题可统称为车辆路径问题。车辆路径问题是典型的NP-hard问题,目前求解方法研究主要集中在元启发式方法上。其中人工蜂群算法作为一种经典的元启发式算法,最早由Karaboga于2005年正式提出。该算法模拟自然界中的蜂群采蜜这一群体智能行为,通过雇佣蜂、跟随蜂和侦查蜂三种角色的分工以及搜索蜜源、为蜜源召集蜜蜂和放弃蜜源三种基本的行为模式来寻找更好的蜜源。在实际优化问题当中,蜜蜂搜索最优蜜源的过程就是寻找问题最优解的过程。原始人工蜂群算法适用于求解连续性问题,而车辆路径问题属于离散性问题。同时,人工蜂群算法本身存在探索能力强而开采能力弱的缺陷。因此,设计并改进人工蜂群算法使得其适用于车辆路径问题的求解具有必要性。The distribution optimization problems of express delivery, takeaway, and fresh food in urban logistics can be collectively referred to as vehicle routing problems. The vehicle routing problem is a typical NP-hard problem, and the current research on solving methods mainly focuses on the meta-heuristic method. Among them, the artificial bee colony algorithm, as a classic meta-heuristic algorithm, was first formally proposed by Karaboga in 2005. The algorithm simulates the swarm intelligent behavior of bees collecting honey in nature. A good source of honey. In practical optimization problems, the process of bees searching for the optimal nectar source is the process of finding the optimal solution of the problem. The original artificial bee colony algorithm is suitable for solving continuous problems, while vehicle routing problems are discrete problems. At the same time, the artificial bee colony algorithm itself has the defect of strong exploration ability and weak mining ability. Therefore, it is necessary to design and improve the artificial bee colony algorithm to make it suitable for solving vehicle routing problems.
发明内容SUMMARY OF THE INVENTION
本发明具体考虑了驾驶员在配送过程中的表现直接受到驾驶员疲劳的影响。该方法采用改进人工蜂群算法对这一问题进行求解,提出了考虑驾驶员动态效率的城市物流车辆路径优化方法,包括以下步骤:The present invention specifically considers that the driver's performance in the delivery process is directly affected by the driver's fatigue. This method uses an improved artificial bee colony algorithm to solve this problem, and proposes an urban logistics vehicle route optimization method considering the driver's dynamic efficiency, including the following steps:
S1,确定驾驶员疲劳与表现之间的关系;S1, determine the relationship between driver fatigue and performance;
S2,建立车辆路径优化模型;S2, establish a vehicle path optimization model;
S3,求解所建立的上述模型。S3, solve the established above model.
优选地,所述S1,确定驾驶员疲劳与表现之间的关系,具体包括以下步骤:Preferably, the S1, determining the relationship between driver fatigue and performance, specifically includes the following steps:
S11,引入疲劳曲线模型;S11, introduce the fatigue curve model;
S12,分析驾驶员疲劳与表现之间的关系。S12, analyze the relationship between driver fatigue and performance.
优选地,所述S2,建立车辆路径优化模型,具体包括以下步骤:Preferably, the S2, establishing a vehicle path optimization model, specifically includes the following steps:
S21,确定问题目标与约束条件;S21, determine the problem objectives and constraints;
S22,确定参数与变量的符号表示;S22, determine the symbolic representation of parameters and variables;
S23,建立数学模型。S23, establishing a mathematical model.
优选地,所述S3,求解所建立的上述模型,具体包括以下步骤:Preferably, in said S3, solving the established above-mentioned model specifically includes the following steps:
S31,解的编码与评估;S31, coding and evaluation of solutions;
S32,初始化阶段设计;S32, initialization stage design;
S33,雇佣蜂阶段设计;S33, hiring bee stage design;
S34,跟随蜂阶段设计;S34, follow the bee stage design;
S35,侦查蜂阶段设计。S35, scout bee stage design.
优选地,所述引入疲劳曲线模型中,引入人体工程学领域中的经典疲劳曲线模型,具体函数表达式为:Preferably, in the introduction of the fatigue curve model, the classic fatigue curve model in the field of ergonomics is introduced, and the specific function expression is:
ft=1-e-λt f t =1-e- λt
其中,ft为t时刻驾驶员的疲劳程度,λ为疲劳指数,表示疲劳累积的速度。Among them, f t is the fatigue level of the driver at time t, and λ is the fatigue index, indicating the speed of fatigue accumulation.
优选地,所述分析驾驶员疲劳与表现之间的关系中,对疲劳曲线模型进行转换,确定疲劳影响下的驾驶员配送速度函数,公式为:Preferably, in the analysis of the relationship between driver fatigue and performance, the fatigue curve model is converted to determine the driver's delivery speed function under the influence of fatigue, and the formula is:
vt=v0(1-ft)=v0e-λt v t =v 0 (1-f t )=v 0 e -λt
其中,vt为t时刻驾驶员的配送速度,v0为初始速度。Among them, v t is the delivery speed of the driver at time t, and v 0 is the initial speed.
优选地,由所述驾驶员配送速度函数可知,驾驶员的配送速度是非线性变化的,因此配送速度与距离的关系函数表示为:Preferably, it can be known from the driver's delivery speed function that the driver's delivery speed varies nonlinearly, so the relationship function between delivery speed and distance is expressed as:
其中,dij为客户i与客户j之间的距离,si与sj分别为到达客户i与客户j的时间;Among them, d ij is the distance between customer i and customer j, and s i and s j are the time to reach customer i and customer j, respectively;
得出驾驶员从客户点i到客户点j所花费的时间tij,公式为:The time t ij it takes for the driver to travel from customer point i to customer point j is obtained, the formula is:
优选地,所述确定问题目标与约束条件中,问题描述为:一个配送中心拥有若干车辆,为多个客户提供物流配送服务,其中客户的位置与需求是已知的;每个客户只能被一辆车服务并且只被服务一次,派出的车辆数不能超过配送中心拥有的车辆数;每辆车都有容量限制,因此每条配送路径上的客户需求之和不能超过车辆的最大容量;每辆车都从配送中心出发,服务完路径上的所有客户后必须回到配送中心;假设初始时刻驾驶员疲劳不存在,但是随着时间的推移,疲劳不断累积,由于在配送过程中受到疲劳的影响,驾驶员在配送过程中的表现发生着变化;此外,驾驶员的连续配送时间被限制在一个预设时间之内。Preferably, in determining the problem objectives and constraints, the problem is described as: a distribution center has several vehicles and provides logistics distribution services for multiple customers, where the locations and needs of the customers are known; each customer can only be A vehicle serves and is only served once, and the number of vehicles dispatched cannot exceed the number of vehicles owned by the distribution center; each vehicle has a capacity limit, so the sum of customer demands on each distribution route cannot exceed the maximum capacity of the vehicle; The vehicles all start from the distribution center and must return to the distribution center after serving all the customers on the route; it is assumed that the driver's fatigue does not exist at the initial moment, but as time goes on, the fatigue continues to accumulate. Affected, the driver's performance during the delivery process has changed; in addition, the driver's continuous delivery time is limited to a preset time.
优选地,所述确定参数与变量的符号表示包括以下参数及参数说明:Preferably, the symbolic representation of the determined parameters and variables includes the following parameters and parameter descriptions:
G城市物流配送网络,G=(V,A);G city logistics distribution network, G = (V, A);
V节点集合,V={0,1,2,...,n},其中0为配送中心,1~n为客户点;V node set, V={0,1,2,...,n}, where 0 is the distribution center, and 1-n is the customer point;
A弧集,由节点间的路线组成,A={(i,j)|i,j∈V,i≠j};A arc set, consisting of routes between nodes, A={(i,j)|i,j∈V,i≠j};
K车辆集合,K={1,2,...,m},其中车辆与驾驶员一一对应;A set of K vehicles, K={1,2,...,m}, where vehicles correspond to drivers one-to-one;
dij节点i与节点j之间的距离;d ij distance between node i and node j;
Q车辆的最大容量;QThe maximum capacity of the vehicle;
qi顾客i的需求量;q i is the demand of customer i;
tij车辆从节点i到节点j的行驶时间;t ij vehicle travel time from node i to node j;
si车辆到达节点i的时间;The time when the vehicle s i arrives at node i;
T驾驶员允许的最长连续配送时间;The longest continuous delivery time allowed by the driver;
xijk0-1变量,当车辆k从节点i行驶到节点j时为1,否则为0;x ijk 0-1 variable, 1 when vehicle k travels from node i to node j, and 0 otherwise;
yik0-1变量,当车辆k问节点i时为1,否则为0。y ik 0-1 variable, 1 when vehicle k asks node i, and 0 otherwise.
优选地,所述建立数学模型包括,依据问题目标、约束条件以及符号表示,建立车辆路径优化的数学模型:Preferably, the establishing a mathematical model includes establishing a mathematical model for vehicle path optimization according to the problem objective, constraints and symbolic representation:
式(1)为目标函数式,表示最小化总配送时间;式(2)表示每个客户只能被一辆车服务;式(3)表示如果车辆k为客户j提供服务,则必须访问节点j;式(4)表示如果车辆k为客户i提供服务,则服务结束后必须从客户i离开;式(5)表示车辆都从配送中心出发,服务完路径上的所有客户后都必须回到配送中心,并且每辆车只沿一条配送路线行驶;式(6)表示每条配送路径上的所有客户需求之和不能超过车辆的最大容量;式(7)表示车辆使用数不能超过配送中心拥有的车辆数;式(8)表示车辆相继到达两个客户的时间关系;式(9)表示每辆车的配送时间不超过允许的连续配送时间;式(10)和(11)是决策变量取值约束。Equation (1) is the objective function, which means minimizing the total delivery time; Equation (2) indicates that each customer can only be served by one vehicle; Equation (3) indicates that if vehicle k serves customer j, it must visit the node j; Equation (4) indicates that if vehicle k provides service for customer i, it must leave customer i after the service; Equation (5) indicates that vehicles all start from the distribution center and must return to the route after serving all customers on the route. distribution center, and each vehicle only travels along one distribution route; Equation (6) indicates that the sum of all customer demands on each distribution path cannot exceed the maximum capacity of the vehicle; Equation (7) indicates that the number of vehicles used cannot exceed the number of vehicles owned by the distribution center Equation (8) represents the time relationship between vehicles arriving two customers in succession; Equation (9) indicates that the delivery time of each vehicle does not exceed the allowable continuous delivery time; Equations (10) and (11) are the decision variables to take value constraints.
本发明有益效果至少包括:The beneficial effects of the present invention at least include:
1)本发明在进行车辆路径优化时,从人文关怀的视角下考虑了由疲劳引起的驾驶员配送表现的动态变化,并引入基于疲劳程度的配送速度函数来衡量这一重要变化,以总配送时间最短为目标构建了车辆路径优化模型,采用改进人工蜂群算法对优化模型进行求解;1) The present invention considers the dynamic change of the driver's delivery performance caused by fatigue from the perspective of humanistic care when optimizing the vehicle route, and introduces a delivery speed function based on the degree of fatigue to measure this important change. The vehicle path optimization model is constructed with the goal of the shortest time, and the improved artificial bee colony algorithm is used to solve the optimization model;
2)本发明不仅可以使得物流企业在资源有限的情况下更加合理地规划驾驶员的配送路径,帮助企业提高配送效率,节约配送成本,而且也能使得路径规划过程兼顾驾驶员的利益,缓解驾驶员的疲劳积累,提升驾驶员的工作体验。这两个方面对于提高企业的竞争力都具有重要意义。2) The present invention not only enables the logistics enterprise to plan the driver's distribution path more reasonably in the case of limited resources, helps the enterprise to improve the distribution efficiency and save the distribution cost, but also makes the path planning process take into account the interests of the driver and alleviate the driving problem. It can reduce the fatigue accumulation of the driver and improve the working experience of the driver. These two aspects are of great significance for improving the competitiveness of enterprises.
附图说明Description of drawings
图1为本发明实施例的考虑驾驶员动态效率的城市物流车辆路径优化方法的步骤流程图;FIG. 1 is a flow chart of steps of a method for optimizing the route of an urban logistics vehicle considering the dynamic efficiency of a driver according to an embodiment of the present invention;
图2为本发明实施例的考虑驾驶员动态效率的城市物流车辆路径优化方法的S3步骤流程图;Fig. 2 is the S3 step flow chart of the urban logistics vehicle route optimization method considering the driver's dynamic efficiency according to the embodiment of the present invention;
图3为本发明实施例的考虑驾驶员动态效率的城市物流车辆路径优化方法的编码示意图;Fig. 3 is the coding schematic diagram of the urban logistics vehicle route optimization method considering the driver's dynamic efficiency according to the embodiment of the present invention;
图4为本发明实施例的考虑驾驶员动态效率的城市物流车辆路径优化方法的算子示意图;4 is a schematic diagram of an operator of an urban logistics vehicle route optimization method considering driver dynamic efficiency according to an embodiment of the present invention;
图5为本发明实施例的考虑驾驶员动态效率的城市物流车辆路径优化方法的与现有技术对比图;5 is a comparison diagram of an urban logistics vehicle route optimization method considering driver dynamic efficiency according to an embodiment of the present invention and the prior art;
图6为本发明实施例的考虑驾驶员动态效率的城市物流车辆路径优化方法的车辆路径规划图。FIG. 6 is a vehicle route planning diagram of an urban logistics vehicle route optimization method considering driver dynamic efficiency according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
相反,本发明涵盖任何由权利要求定义的在本发明的精髓和范围上做的替代、修改、等效方法以及方案。进一步,为了使公众对本发明有更好的了解,在下文对本发明的细节描述中,详尽描述了一些特定的细节部分。对本领域技术人员来说没有这些细节部分的描述也可以完全理解本发明。On the contrary, the present invention covers any alternatives, modifications, equivalents and arrangements within the spirit and scope of the present invention as defined by the appended claims. Further, in order to give the public a better understanding of the present invention, some specific details are described in detail in the following detailed description of the present invention. The present invention can be fully understood by those skilled in the art without the description of these detailed parts.
参见图1,为方法的步骤流程图,包括以下步骤:Referring to Fig. 1, it is a flow chart of the steps of the method, including the following steps:
S1,确定驾驶员疲劳与表现之间的关系;S1, determine the relationship between driver fatigue and performance;
S11,引入疲劳曲线模型;S11, introduce the fatigue curve model;
本发明中驾驶员在配送过程中的表现直接受到驾驶员疲劳这一重要因素的影响。疲劳是一种生理现象,目前其研究主要集中于人体工程学领域。在城市物流配送过程中,驾驶员长时间保持同一个驾驶状态不变,这会导致疲劳状态的出现。同时随着工作时间的推移,疲劳不断累积。据相关研究可知,疲劳一般被描述为时间的函数,即随着时间的推移疲劳程度不断提高。在此,本发明引入人体工程学领域中的经典疲劳曲线模型,具体函数表达式为:In the present invention, the driver's performance in the delivery process is directly affected by the important factor of driver fatigue. Fatigue is a physiological phenomenon, and its current research mainly focuses on the field of ergonomics. In the process of urban logistics and distribution, the driver maintains the same driving state for a long time, which will lead to the appearance of fatigue. At the same time, fatigue builds up over time. According to relevant research, fatigue is generally described as a function of time, that is, the degree of fatigue continues to increase over time. Here, the present invention introduces the classical fatigue curve model in the field of ergonomics, and the specific function expression is:
ft=1-e-λt f t =1-e- λt
其中ft为t时刻驾驶员的疲劳程度,λ为疲劳指数,表示疲劳累积的速度。Among them, f t is the fatigue degree of the driver at time t, and λ is the fatigue index, indicating the speed of fatigue accumulation.
S12,分析驾驶员疲劳与表现之间的关系。S12, analyze the relationship between driver fatigue and performance.
调度员在进行车辆路径规划时,往往都是默认驾驶员的配送效率是恒定不变的。然而据相关研究表明,配送中产生的疲劳会使得驾驶员的工作能力降低,对驾驶员的工作表现有着消极的影响,同时在行驶速度方面表现为减小趋势。在本发明中,驾驶员配送速度的变化可以作为衡量驾驶员动态表现的指标。因此,伴随着驾驶员疲劳的不断累积,驾驶员的动态表现可以表征为配送速度呈现下降趋势。本发明对疲劳曲线模型进行转换,确定疲劳影响下的驾驶员配送速度函数,公式如下所示:When the dispatcher is planning the vehicle route, it is often the default that the delivery efficiency of the driver is constant. However, according to relevant studies, the fatigue generated during delivery will reduce the driver's work ability, which has a negative impact on the driver's work performance, and at the same time shows a decreasing trend in terms of driving speed. In the present invention, the change of the driver's delivery speed can be used as an index to measure the driver's dynamic performance. Therefore, with the continuous accumulation of driver fatigue, the dynamic performance of the driver can be characterized as a decreasing trend in the delivery speed. The invention converts the fatigue curve model to determine the driver's delivery speed function under the influence of fatigue, and the formula is as follows:
vt=v0(1-vt)=v0e-λt v t =v 0 (1-v t )=v 0 e -λt
其中vt为t时刻驾驶员的配送速度,v0为初始速度。where v t is the delivery speed of the driver at time t, and v 0 is the initial speed.
一般来说,驾驶员速度的变化最终会影响到配送时间。由上述配送速度函数可知,驾驶员的配送速度是非线性变化的,因此配送速度与距离的关系函数可以表示为:In general, changes in driver speed ultimately impact delivery times. It can be seen from the above delivery speed function that the driver's delivery speed varies nonlinearly, so the relationship function between delivery speed and distance can be expressed as:
其中dij为客户i与客户j之间的距离,si与sj分别为到达客户i与客户j的时间。Where d ij is the distance between customer i and customer j, and s i and s j are the time to reach customer i and customer j, respectively.
最终,本发明得出驾驶员从客户点i到客户点j所花费的时间tij,公式如下所示:Finally, the present invention obtains the time t ij spent by the driver from customer point i to customer point j, and the formula is as follows:
通过驾驶员疲劳曲线模型的引入、驾驶员配送速度以及行驶时间公式的分析推导,驾驶员在配送过程中的动态表现能够通过明确的函数关系式表示出来,这有利于将复杂的驾驶员疲劳影响下的动态表现进行量化。Through the introduction of the driver fatigue curve model, the analysis and derivation of the driver's delivery speed and the driving time formula, the dynamic performance of the driver in the delivery process can be expressed by a clear functional relationship, which is conducive to the impact of complex driver fatigue. The dynamic performance of the following is quantified.
S2,建立车辆路径优化模型;S2, establish a vehicle path optimization model;
S21,确定问题目标与约束条件;S21, determine the problem objectives and constraints;
本发明的优化目标是总配送时间最短,具体的问题描述如下:一个配送中心拥有若干车辆,为多个客户提供物流配送服务,其中客户的位置与需求是已知的。每个客户只能被一辆车服务并且只被服务一次,派出的车辆数不能超过配送中心拥有的车辆数。每辆车都有容量限制,因此每条配送路径上的客户需求之和不能超过车辆的最大容量。每辆车都从配送中心出发,服务完路径上的所有客户后必须回到配送中心。假设初始时刻驾驶员疲劳不存在,但是随着时间的推移,疲劳不断累积。由于在配送过程中受到疲劳的影响,驾驶员在配送过程中的表现发生着变化。此外,结合相关规定,驾驶员的连续配送时间应该被限制在一个合理的时间之内。The optimization goal of the present invention is the shortest total distribution time. The specific problem is described as follows: a distribution center has several vehicles and provides logistics distribution services for multiple customers, where the location and demand of the customers are known. Each customer can only be serviced by one vehicle and only once, and the number of vehicles dispatched cannot exceed the number of vehicles owned by the distribution center. Each vehicle has a capacity limit, so the sum of customer demand on each delivery route cannot exceed the maximum capacity of the vehicle. Each vehicle departs from the distribution center and must return to the distribution center after serving all customers in its path. It is assumed that driver fatigue does not exist at the initial moment, but it accumulates over time. The driver's performance during delivery has changed due to fatigue during delivery. In addition, combined with relevant regulations, the continuous delivery time of the driver should be limited to a reasonable time.
S22,确定参数与变量的符号表示;S22, determine the symbolic representation of parameters and variables;
为了便于后续数学模型的建立,有必要先对模型中涉及的参数与变量给予说明。In order to facilitate the establishment of the subsequent mathematical model, it is necessary to explain the parameters and variables involved in the model.
G城市物流配送网络,G=(V,A);G city logistics distribution network, G = (V, A);
V节点集合,V={0,1,2,...,n},其中0为配送中心,1~n为客户点;V node set, V={0,1,2,...,n}, where 0 is the distribution center, and 1-n is the customer point;
A弧集,由节点间的路线组成,A={(i,j)|i,j∈V,i≠j};A arc set, consisting of routes between nodes, A={(i,j)|i,j∈V,i≠j};
K车辆集合,K={1,2,...,m},其中车辆与驾驶员一一对应;A set of K vehicles, K={1,2,...,m}, where vehicles correspond to drivers one-to-one;
dij节点i与节点j之间的距离;d ij distance between node i and node j;
Q车辆的最大容量;QThe maximum capacity of the vehicle;
qi顾客i的需求量;q i is the demand of customer i;
tij车辆从节点i到节点j的行驶时间;t ij vehicle travel time from node i to node j;
si车辆到达节点i的时间;The time when the vehicle s i arrives at node i;
T驾驶员允许的最长连续配送时间;The longest continuous delivery time allowed by the driver;
xijk0-1变量,当车辆k从节点i行驶到节点j时为1,否则为0;x ijk 0-1 variable, 1 when vehicle k travels from node i to node j, 0 otherwise;
yik0-1变量,当车辆k问节点i时为1,否则为0;y ik 0-1 variable, it is 1 when vehicle k asks node i, otherwise it is 0;
S23,建立数学模型。S23, establishing a mathematical model.
依据上述问题目标、约束条件以及符号表示,本发明最终建立车辆路径优化的数学模型:According to the above problem objectives, constraints and symbolic representations, the present invention finally establishes a mathematical model for vehicle path optimization:
式(1)为目标函数式,表示最小化总配送时间;式(2)表示每个客户只能被一辆车服务;式(3)表示如果车辆k为客户j提供服务,则必须访问节点j;式(4)表示如果车辆k为客户i提供服务,则服务结束后必须从客户i离开;式(5)表示车辆都从配送中心出发,服务完路径上的所有客户后都必须回到配送中心,并且每辆车只沿一条配送路线行驶;式(6)表示每条配送路径上的所有客户需求之和不能超过车辆的最大容量;式(7)表示车辆使用数不能超过配送中心拥有的车辆数;式(8)表示车辆相继到达两个客户的时间关系;式(9)表示每辆车的配送时间不超过允许的连续配送时间;式(10)和(11)是决策变量取值约束。Equation (1) is the objective function, which means minimizing the total delivery time; Equation (2) indicates that each customer can only be served by one vehicle; Equation (3) indicates that if vehicle k serves customer j, it must visit the node j; Equation (4) indicates that if vehicle k provides service for customer i, it must leave customer i after the service; Equation (5) indicates that vehicles all start from the distribution center and must return to the route after serving all customers on the route. distribution center, and each vehicle only travels along one distribution route; Equation (6) indicates that the sum of all customer demands on each distribution path cannot exceed the maximum capacity of the vehicle; Equation (7) indicates that the number of vehicles used cannot exceed the number of vehicles owned by the distribution center Equation (8) represents the time relationship between vehicles arriving two customers in succession; Equation (9) indicates that the delivery time of each vehicle does not exceed the allowable continuous delivery time; Equations (10) and (11) are the decision variables to take value constraints.
S3,求解建立的上述模型。S3, solve the established above model.
人工蜂群算法模拟蜂群采蜜的行为,其中蜜蜂采蜜主要有以下四个过程:The artificial bee colony algorithm simulates the behavior of bee colony collecting honey, in which bees collect honey mainly through the following four processes:
(1)初始时刻,侦查蜂随机地搜索蜜源,在搜索到蜜源之后转变为雇佣蜂。(1) At the initial moment, the scout bee randomly searches for the nectar source, and turns into a hired bee after searching for the nectar source.
(2)雇佣蜂采集蜂蜜并记录蜜源的相关信息,同时在蜜源附近寻找质量更好的新蜜源。采蜜结束之后,雇佣蜂回到蜂巢通过跳摇摆舞分享自身携带的蜜源信息,招募蜜蜂开采蜜源。(2) Hire bees to collect honey and record the relevant information of the nectar source, and at the same time look for a new nectar source with better quality near the nectar source. After the honey collection is over, the hired bees return to the hive to share the information about the nectar source they carry by dancing the swing dance, and recruit the bees to mine the nectar source.
(3)在蜂巢待工的跟随蜂根据雇佣蜂提供的信息选择一个蜜源进行采蜜,同时在蜜源附近寻找新的更好的蜜源。(3) The follower bees who are waiting in the hive select a nectar source to collect nectar according to the information provided by the employed bee, and at the same time look for new and better nectar sources near the nectar source.
(4)蜜源开采殆尽,雇佣蜂放弃该蜜源,转变为侦查蜂去寻找新的蜜源。(4) The nectar source is exhausted, and the hired bees give up the nectar source and turn into scout bees to find a new nectar source.
在这种采蜜机制下,蜜蜂通过交流合作完成整个蜂群采蜜的过程。根据这一过程,人工蜂群算法的基本流程可分为初始化阶段、雇佣蜂阶段、跟随蜂阶段与侦查蜂阶段。初始化阶段负责算法各类参数的设置以及初始解的生成,雇佣蜂阶段与跟随蜂阶段在解空间内进行搜索与贪婪选择,而侦查蜂阶段替换多次没有被改进的解。参见图2,S3具体步骤如下:Under this honey collection mechanism, bees complete the process of collecting honey throughout the colony through communication and cooperation. According to this process, the basic process of artificial bee colony algorithm can be divided into initialization phase, hiring bee phase, follower bee phase and scout bee phase. The initialization phase is responsible for the setting of various parameters of the algorithm and the generation of the initial solution. The hiring bee phase and the follower bee phase perform search and greedy selection in the solution space, while the scout bee phase replaces many unimproved solutions. Referring to Figure 2, the specific steps of S3 are as follows:
S31,解的编码与评估;S31, coding and evaluation of solutions;
蜜源代表问题的可行解,蜜源的质量代表解的适应度值。在本发明中,车辆路径问题的解由所有车辆的行驶路径组成。本发明采用自然数编码方式对问题的解进行表示。参见图3,假设有6个客户需要配送服务,配送中心拥有3辆车,在这种情况下问题的解可用图3的序列进行表示。其中数值0代表配送中心,非零数为车辆服务的客户编号。两个数值0之间的序列代表一辆车的配送路径,3辆车的配送路径构成问题的一个完整解。因此,车辆1走路径0-1-3-0,车辆2走路径0-2-4-0,车辆3走路径0-5-6-0。根据编码规则,每个解的维度Dim=N+K+1,其中N代表客户数量,K代表车辆数量。The nectar source represents the feasible solution of the problem, and the quality of the nectar source represents the fitness value of the solution. In the present invention, the solution of the vehicle routing problem consists of the travel paths of all vehicles. The present invention expresses the solution of the problem by means of natural number coding. Referring to Figure 3, it is assumed that there are 6 customers who need delivery services, and the distribution center has 3 vehicles. In this case, the solution to the problem can be represented by the sequence of Figure 3. The
由于解的搜索具有随机性,算法很可能生成不可行解。为了维持种群的多样性,本发明允许不可行解的存在。因此,对于解的评估不能直接使用目标函数值。本发明选择使用如下所示的公式作为评估函数,即在原目标函数基础之上另外增加了对超过车辆容量的惩罚成本。Since the search for solutions is random, the algorithm is likely to generate infeasible solutions. In order to maintain the diversity of the population, the present invention allows the existence of infeasible solutions. Therefore, the objective function value cannot be used directly for the evaluation of the solution. The present invention chooses to use the following formula as the evaluation function, that is, on the basis of the original objective function, the penalty cost for exceeding the vehicle capacity is additionally added.
S32,初始化阶段设计;S32, initialization stage design;
初始化种群数量CS、雇佣蜂与跟随蜂数量SN、最大迭代次数MaxCycle、连续没有被改进的次数trail以及连续没有被改进的次数阈值Limit等算法参数,并且生成初始种群。其中,雇佣蜂与跟随蜂数量分别占种群数量的一半。Initialize the algorithm parameters such as the number of population CS, the number of employed bees and follower bees SN, the maximum number of iterations MaxCycle, the number of consecutive unimproved trails, and the consecutively unimproved threshold Limit and other algorithm parameters, and generate an initial population. Among them, employed bees and follower bees accounted for half of the population respectively.
在生成初始种群的过程中,必须同时考虑到个体的质量及可行性。个体的质量影响算法的收敛速度,同时每个个体必须满足客户需求之和不大于车辆容量的约束。本发明采用一种简单的插入启发式方法生成初始种群,具体步骤如下:In the process of generating the initial population, both the quality and feasibility of the individuals must be considered. The quality of the individual affects the convergence speed of the algorithm, and each individual must satisfy the constraint that the sum of customer demands is not greater than the vehicle capacity. The present invention adopts a simple insertion heuristic method to generate the initial population, and the specific steps are as follows:
(1)对一组包含所有客户点的序列1进行多次随机交换得到序列2;(1) Perform multiple random exchanges on a set of
(2)在一个空序列3的初始位置添加代表配送中心的0值;(2) Add a 0 value representing the distribution center at the initial position of an
(3)对序列2中未添加到序列3的客户点进行需求判断,若在添加客户点后当前子路径上的需求之和不大于车辆容量,则该客户点添加成功,否则跳过该客户点;(3) Judging the demand of the customer points in
(4)依次往后判断并添加客户点到序列3中,若无可添加的客户点,则当前子路径上的客户点添加结束,最后添加0值;(4) Judging and adding customer points to sequence 3 in turn, if there is no customer point to be added, the customer point addition on the current sub-path ends, and finally adds a value of 0;
(5)重复步骤(3)(4)生成所有子路径。(5) Repeat steps (3) and (4) to generate all sub-paths.
在生成初始种群后,需要计算每个个体的适应度值fit,计算公式如下所示:After the initial population is generated, the fitness value fit of each individual needs to be calculated. The calculation formula is as follows:
在问题模型中,目标为最小化配送时间。因此个体越好,目标函数值越小。而依据适应度值计算公式可知,目标函数值越小,则个体的适应度值就越大,这与人工蜂群算法基本原理是相符的。In the problem model, the goal is to minimize delivery time. Therefore, the better the individual, the smaller the objective function value. According to the fitness value calculation formula, the smaller the objective function value is, the larger the individual fitness value is, which is consistent with the basic principle of the artificial bee colony algorithm.
S33,雇佣蜂阶段设计;S33, hiring bee stage design;
雇佣蜂阶段借鉴广度优先搜索的思想,侧重在搜索空间进行广泛的搜索,扩大解的搜索空间。为了突出这一搜索策略发挥的作用,本发明将搜索算子为两类,第一类算子是使得个体更新前后差异较大的算子,第二类是使得个体更新前后差异较小的算子。针对种群中的每个个体,雇佣蜂阶段使用第一类算子进行邻域搜索。第一类算子主要涉及到子路径间的客户点变动或者不同个体之间的交叉变动。这些算子会使得个体迭代前后的差异较大,因此雇佣蜂阶段能够达到在搜索空间内进行广泛搜索的目的。第一类算子共有四个算子,分别为交换、插入、逆转以及交叉算子,具体操作参见图4,其中(a)为交换、(b)为插入、(c)为逆转、(d)为交叉。交换算子在不同子路径内随机选择一至三个客户点进行交换。插入算子在一条子路径内随机选取一至三个客户点插入到另一条子路径内。逆转算子随机选择一个范围内的客户点,然后逆转其顺序。交叉算子借鉴遗传算法的选择与交叉操作,在迭代时首先保留个体中总需求量与车辆容量最接近的一条子路径,然后随机选择种群中的另一个个体,去除与保留部分重复的客户点,最后将两者合并生成一个新个体。The hiring bee stage draws on the idea of breadth-first search and focuses on extensive search in the search space to expand the search space of the solution. In order to highlight the role played by this search strategy, the present invention divides the search operators into two categories. The first type of operator is the operator that makes the difference between the individual before and after the update larger, and the second type is the operator that makes the difference between the individual before and after the update smaller. son. For each individual in the population, the hired bee stage uses the first-class operator to perform a neighborhood search. The first type of operator mainly involves the change of customer points between sub-paths or the cross change between different individuals. These operators will make the difference between individuals before and after iteration larger, so the stage of hiring bees can achieve the purpose of extensive search in the search space. There are four operators in the first type of operator, which are exchange, insertion, reversal and crossover. The specific operations are shown in Figure 4, where (a) is exchange, (b) is insertion, (c) is reversal, (d) ) is a cross. The exchange operator randomly selects one to three client points in different sub-paths to exchange. The insertion operator randomly selects one to three customer points in one sub-path and inserts them into another sub-path. The reversal operator randomly selects a range of client points and then reverses their order. The crossover operator draws on the selection and crossover operation of the genetic algorithm. During the iteration, it first retains a sub-path whose total demand is closest to the vehicle capacity in the individual, and then randomly selects another individual in the population to remove the customer points that are duplicated with the reserved part. , and finally merge the two to generate a new individual.
S34,跟随蜂阶段设计;S34, follow the bee stage design;
跟随蜂阶段借鉴深度优先搜索的思想,侧重于在搜索空间进行深度地开发,加快算法的收敛速度。跟随蜂阶段首先选择一个个体,然后用第二类算子进行邻域搜索。第二类算子主要进行子路径内的客户点变动,这些算子与雇佣蜂阶段的交换、插入、逆转三类算子类似,其中在交换与插入操作时仅选择一个客户点,并且三种算子操作限制在个体的一条子路径内进行,因此个体迭代前后差异较小。同时在该阶段中,每次迭代使用三种算子搜索之后,若个体得到改进,则重复该阶段的搜索,否则进入下一阶段。因为个体变异程度较小,所以这些算子能够有效地与深度优先搜索策略结合使用,加快算法的收敛速度。同时由于算子变异操作简单,深度优先搜索策略的加入不会大幅度降低算法的搜索速度。The following bee stage draws on the idea of depth-first search, focusing on in-depth development in the search space to speed up the convergence speed of the algorithm. The follower bee phase first selects an individual, and then performs neighborhood search with the second-class operator. The second type of operator mainly changes the customer points in the sub-path. These operators are similar to the three types of operators of exchange, insertion and reversal in the hiring bee phase. Only one customer point is selected during the exchange and insertion operations, and three types of operators are used. The operator operation is limited to one sub-path of the individual, so the difference before and after individual iteration is small. At the same time, in this stage, after each iteration uses three kinds of operators to search, if the individual is improved, repeat the search in this stage, otherwise go to the next stage. Because of the small degree of individual variation, these operators can be effectively combined with the depth-first search strategy to speed up the convergence of the algorithm. At the same time, since the operator mutation operation is simple, the addition of the depth-first search strategy will not greatly reduce the search speed of the algorithm.
其中,个体的选择方法为轮盘赌选择法。轮盘赌选择法的基本思想为:种群中的每个个体被选中的概率与其适应度值大小成正比,即个体的适应度值越大,被选择进入下一个迭代的概率越高。因此,在进行个体的选择时,首先要计算种群中每个个体的适应度值,其次依据适应度值计算每个个体的选择概率。对于个体xi来说,其选择概率的计算公式如下所示:Among them, the individual selection method is the roulette selection method. The basic idea of the roulette selection method is that the probability of each individual in the population being selected is proportional to its fitness value, that is, the greater the fitness value of the individual, the higher the probability of being selected into the next iteration. Therefore, when selecting individuals, the fitness value of each individual in the population should be calculated first, and then the selection probability of each individual should be calculated according to the fitness value. For individual xi , the calculation formula of its selection probability is as follows:
然后,通过每个个体的选择概率可以得到每个个体的累积概率,即排在该个体之前的所有个体的选择概率之和,公式如下所示:Then, the cumulative probability of each individual can be obtained through the selection probability of each individual, that is, the sum of the selection probabilities of all individuals before the individual, the formula is as follows:
最后,随机生成一个区间[0,1]内的随机数m,若q(xi-1)<m<q(xi),则个体i被选中。Finally, a random number m in the interval [0,1] is randomly generated. If q(x i-1 )<m<q(x i ), the individual i is selected.
S35,侦查蜂阶段设计;S35, reconnaissance bee stage design;
在雇佣蜂与跟随蜂阶段,会进行新个体与原个体的适应度值大小比较。若生成的新个体适应度值更小,则原个体没有得到改进,其连续没有被改进的次数trail值加一,否则新个体替代原个体并且trail值归零。而在侦查蜂阶段,算法需要先找出种群中trail值最大的一个个体,然后将该个体的trail值与阈值limit进行比较。若trail值大于阈值,则按照初始解的生成方法重新生成一个个体取代该个体。这种替换机制不仅能够维持种群的多样性,同时也能提升算法跳出局部最优的能力。In the stages of employed bees and follower bees, the fitness value of the new individual and the original individual will be compared. If the fitness value of the new individual generated is smaller, the original individual has not been improved, and the trail value of the number of times that it has not been improved continuously increases by one, otherwise the new individual replaces the original individual and the trail value returns to zero. In the scout bee stage, the algorithm needs to first find an individual with the largest trail value in the population, and then compare the individual's trail value with the threshold limit. If the trail value is greater than the threshold, an individual will be regenerated according to the generation method of the initial solution to replace the individual. This replacement mechanism can not only maintain the diversity of the population, but also improve the ability of the algorithm to jump out of the local optimum.
通过以下内容对本发明的技术效果作出直观阐述,主要分为两部分:改进人工蜂群算法的性能验证以及车辆路径模型的计算与分析,这两部分内容分别对应一下实施例一与实施例二。The technical effect of the present invention is intuitively explained through the following contents, which are mainly divided into two parts: the performance verification of the improved artificial bee colony algorithm and the calculation and analysis of the vehicle path model. These two parts correspond to the first embodiment and the second embodiment respectively.
实施例一;
为了验证本发明提出的改进人工蜂群算法(DBABC)的性能,本发明选择原始人工蜂群算法(OABC)、已有文献提出的改进人工蜂群算法(MABC)进行对比实验。OABC使用交换、插入、逆转三种算子,MABC使用交换、插入、逆转、交叉四种算子,并且这两种蜂群算法所使用的算子没有子路径间与子路径内变动之分。在参数设置方面,本文将三种蜂群算法的参数均设置为CS=20,Limit=SN*Dim,这样能够保证算法性能比较的公平性。In order to verify the performance of the improved artificial bee colony algorithm (DBABC) proposed by the present invention, the present invention selects the original artificial bee colony algorithm (OABC) and the improved artificial bee colony algorithm (MABC) proposed in the existing literature for comparative experiments. OABC uses three kinds of operators: exchange, insertion, and reversal, and MABC uses four kinds of operators: exchange, insertion, inversion, and intersection, and the operators used by these two bee colony algorithms have no difference between sub-paths and intra-sub-path changes. In terms of parameter setting, this paper sets the parameters of the three bee colony algorithms as CS=20, Limit=SN*Dim, which can ensure the fairness of the algorithm performance comparison.
首先,本实施例选择经典的CVRP标准测试集中的E-n51-k5比较三种算法在20次运行中得到的最优值与平均值来评估算法性能,算法的收敛速度参见图5。由结果可知,本发明提出的DBABC在收敛速度与稳定性方面明显优于另外两种蜂群算法。从算子的角度来看,虽然在跟随蜂阶段DBABC搜索效果可能不如MABC,但DBABC结合了深度优先搜索策略,明显加快了算法的收敛速度。First, in this embodiment, E-n51-k5 in the classic CVRP standard test set is selected to compare the optimal value and average value obtained by the three algorithms in 20 runs to evaluate the algorithm performance. See Figure 5 for the convergence speed of the algorithm. It can be seen from the results that the DBABC proposed by the present invention is obviously superior to the other two bee colony algorithms in terms of convergence speed and stability. From the operator's point of view, although the search effect of DBABC may not be as good as that of MABC in the following bee stage, DBABC combines the depth-first search strategy, which significantly speeds up the convergence speed of the algorithm.
同时,本实施例选择了两组CVRP标准测试集(A组与B组)来进一步评估DBABC的总体性能。如表1所示,加粗值表示三种算法中得出的最好结果。从数值实验结果来看,本发明设计的DBABC在求解质量与稳定性方面具有明显的优势,其原因在于跟随蜂与侦查蜂的搜索策略的设计,进一步平衡了算法在搜索广度与搜索深度方面的能力,使得算法的局部搜索与全局搜索能力得到增强。Meanwhile, this embodiment selects two sets of CVRP standard test sets (group A and group B) to further evaluate the overall performance of DBABC. As shown in Table 1, the bold values represent the best results among the three algorithms. From the numerical experiment results, the DBABC designed by the present invention has obvious advantages in solving quality and stability. The reason is that the design of the search strategy of the follower bee and the scout bee further balances the search breadth and search depth of the algorithm. It enhances the local search and global search capabilities of the algorithm.
表1Table 1
实施例二
本实施例选用标准测试集CVRP中的A组数据集进行仿真实验,确定该组算例的客户点以及配送中心均分布在横纵坐标为0~100km的坐标轴上。将疲劳指数λ设置为0.05,设置驾驶员的连续配送时间不超过4h,驾驶员初始配送速度为55km/h。为了研究考虑驾驶员疲劳影响前后最优配送方案之间的差异,本实施例采用改进的人工蜂群算法分别求解两个不同实验场景下的车辆路径、总配送时间以及驾驶员工作量的不均衡性,其中不均衡性使用驾驶员配送时间的平均差表示。In this embodiment, a group A data set in the standard test set CVRP is selected to conduct a simulation experiment, and it is determined that the customer points and distribution centers of this group of examples are distributed on the coordinate axis whose abscissa and ordinate are 0-100km. The fatigue index λ is set to 0.05, the continuous delivery time of the driver is set to not exceed 4h, and the initial delivery speed of the driver is 55km/h. In order to study the difference between the optimal delivery schemes before and after considering the influence of driver fatigue, this embodiment uses an improved artificial bee colony algorithm to solve the imbalance of vehicle paths, total delivery time and driver workload in two different experimental scenarios. , where disequilibrium is expressed as the average difference in driver delivery times.
表2Table 2
实验结果如表2所示,与不考虑驾驶员疲劳影响的配送方案相比,考虑疲劳影响后总配送时间平均增加约10.72%,而驾驶员配送时间的不均衡性平均降低了11.53%。在高强度的工作环境下,疲劳的影响是客观存在的。由于配送过程中驾驶员的配送效率呈下降趋势,企业在制定配送方案时很可能会给出一个驾驶员难以达到的配送时间要求。例如在算例A-n38-k5中,因为受到疲劳的影响,驾驶员实际上需要花费14.12小时才能完成该项配送任务。如果疲劳的影响被忽略,驾驶员被要求在13.27小时内完成配送。同时,算例A-n38-k5中驾驶员工作量的不均衡性从54.55%降到了38.63%,这意味着在疲劳影响后的最优路径中,驾驶员的工作量也更加均衡。值得注意的是,当疲劳因素影响较小时,订单分配不会受到影响。而疲劳对每个驾驶员的影响程度又不一致,这导致配送时间不均衡性变大的情况出现。The experimental results are shown in Table 2. Compared with the delivery scheme without considering the influence of driver fatigue, the total delivery time increases by about 10.72% on average after considering the influence of fatigue, while the imbalance of driver delivery time decreases by 11.53% on average. In a high-intensity working environment, the impact of fatigue is objective. Since the delivery efficiency of the driver is on the decline during the delivery process, the company is likely to give a delivery time requirement that is difficult for the driver to meet when formulating the delivery plan. For example, in the calculation example A-n38-k5, the driver actually takes 14.12 hours to complete the delivery task because of fatigue. If the effect of fatigue is ignored, the driver is required to complete the delivery within 13.27 hours. At the same time, the imbalance of driver workload in the calculation example A-n38-k5 is reduced from 54.55% to 38.63%, which means that the driver's workload is also more balanced in the optimal path affected by fatigue. It is worth noting that when the fatigue factor is less affected, order allocation is not affected. The degree of fatigue affecting each driver is inconsistent, which leads to a situation where the unevenness of delivery time becomes larger.
为了更好地体现疲劳对驾驶员最优配送路径的影响,本部分仍然以算例A-n38-k5为例进行详细说明。参见图6,对比两个最优配送方案的车辆路径可以发现,两个方案的配送路径发生了较大的变化,这主要是由配送过程中是否考虑疲劳的影响所造成的。一方面,疲劳上限约束会限制驾驶员的连续配送时间,进而限制了路径上存在过多的客户。另一方面,如果某一个驾驶员的连续配送时间过长时,配送效率可能远远低于其他驾驶员。为了使得总配送时间最短,在优化配送方案时会更倾向于将客户分配给配送效率高的驾驶员。In order to better reflect the influence of fatigue on the optimal delivery route of drivers, this part still takes the calculation example A-n38-k5 as an example for detailed description. Referring to Figure 6, comparing the vehicle paths of the two optimal delivery schemes, it can be found that the delivery paths of the two schemes have changed greatly, which is mainly caused by whether the influence of fatigue is considered in the delivery process. On the one hand, the fatigue ceiling constraint limits the continuous delivery time of the driver, which in turn limits the presence of too many customers on the route. On the other hand, if a certain driver's continuous delivery time is too long, the delivery efficiency may be much lower than that of other drivers. In order to minimize the total delivery time, when optimizing the delivery plan, customers will be more inclined to assign customers to drivers with high delivery efficiency.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210193243.6A CN114580732A (en) | 2022-03-01 | 2022-03-01 | Urban logistics vehicle path optimization method considering dynamic efficiency of driver |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210193243.6A CN114580732A (en) | 2022-03-01 | 2022-03-01 | Urban logistics vehicle path optimization method considering dynamic efficiency of driver |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114580732A true CN114580732A (en) | 2022-06-03 |
Family
ID=81772173
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210193243.6A Pending CN114580732A (en) | 2022-03-01 | 2022-03-01 | Urban logistics vehicle path optimization method considering dynamic efficiency of driver |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114580732A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117408398A (en) * | 2023-07-10 | 2024-01-16 | 浙江财经大学 | Optimization method for location path selection of power swap cabinets for electric bicycles in takeout delivery scenarios |
| CN119338365A (en) * | 2024-12-20 | 2025-01-21 | 上海互普信息技术股份有限公司 | A logistics transportation scheduling method, system, device and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE102005031312A1 (en) * | 2005-07-05 | 2007-01-11 | Deutsches Zentrum für Luft- und Raumfahrt e.V. | Route planner has route computer and considers user sleep information and tiredness estimator input in pause planning |
| US8260485B1 (en) * | 2007-04-26 | 2012-09-04 | The Boeing Company | Adaptive multi-vehicle area coverage optimization system and method |
| CN110782086A (en) * | 2019-10-24 | 2020-02-11 | 山东师范大学 | A method and system for optimizing the distribution path of vehicles with unmanned aerial vehicles for rescue |
| CN112766614A (en) * | 2021-03-05 | 2021-05-07 | 重庆邮电大学 | Dynamic vehicle path optimization method based on two-stage heuristic algorithm |
-
2022
- 2022-03-01 CN CN202210193243.6A patent/CN114580732A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE102005031312A1 (en) * | 2005-07-05 | 2007-01-11 | Deutsches Zentrum für Luft- und Raumfahrt e.V. | Route planner has route computer and considers user sleep information and tiredness estimator input in pause planning |
| US8260485B1 (en) * | 2007-04-26 | 2012-09-04 | The Boeing Company | Adaptive multi-vehicle area coverage optimization system and method |
| CN110782086A (en) * | 2019-10-24 | 2020-02-11 | 山东师范大学 | A method and system for optimizing the distribution path of vehicles with unmanned aerial vehicles for rescue |
| CN112766614A (en) * | 2021-03-05 | 2021-05-07 | 重庆邮电大学 | Dynamic vehicle path optimization method based on two-stage heuristic algorithm |
Non-Patent Citations (2)
| Title |
|---|
| ZHILAN LOU ET AL.: "Multi-Objective Optimization for Order Assignment in Food Delivery Industry with Human Factor Considerations", 《SUSTAINABILITY》, vol. 12, no. 19, 25 September 2020 (2020-09-25), pages 1 - 17 * |
| 赵锐;胡雄;何红弟;: "考虑客户满意度的网购物流配送路径优化", 上海海事大学学报, no. 03, 30 September 2015 (2015-09-30), pages 66 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117408398A (en) * | 2023-07-10 | 2024-01-16 | 浙江财经大学 | Optimization method for location path selection of power swap cabinets for electric bicycles in takeout delivery scenarios |
| CN119338365A (en) * | 2024-12-20 | 2025-01-21 | 上海互普信息技术股份有限公司 | A logistics transportation scheduling method, system, device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112146673B (en) | Expressway multipoint collaborative rescue path planning method based on improved ant colony algorithm | |
| CN114462693B (en) | A delivery route optimization method based on vehicle-UAV collaboration | |
| CN114580732A (en) | Urban logistics vehicle path optimization method considering dynamic efficiency of driver | |
| Zare-Reisabadi et al. | Site dependent vehicle routing problem with soft time window: Modeling and solution approach | |
| CN114626718B (en) | A method for agricultural machinery scheduling based on order resource sharing and agricultural machinery resource sharing | |
| CN116720642A (en) | Method and system for optimizing path of cooperative distribution of vehicle and unmanned aerial vehicle | |
| CN112862414B (en) | Collaborative delivery route optimization method based on clustered traveling salesman problem | |
| CN117408398B (en) | Optimization method for location selection of battery swap cabinets for electric bicycles in food delivery scenarios | |
| CN111915078A (en) | Data-driven flexible cigarette distribution line planning method and system | |
| CN116227817A (en) | A Method for Analyzing and Modeling the Full Link Problem of Dynamic Vehicle Routing | |
| CN109840625B (en) | Courier group path navigation method | |
| Osaba et al. | Multi-objective optimization of bike routes for last-mile package delivery with drop-offs | |
| CN113344267A (en) | Logistics network resource allocation optimization method based on cooperation | |
| CN115495859B (en) | A warehouse network planning method based on genetic algorithm | |
| CN116579511A (en) | Two-stage path planning optimization method based on SP model | |
| CN114970327A (en) | Green vehicle path optimization method considering correlation of vehicle loading capacity and fuel consumption | |
| CN112036623A (en) | Benefit coordination method of transverse logistics alliance | |
| CN104540171B (en) | A kind of node tasks distribution method in wireless sensor network | |
| CN109800911B (en) | Unified navigation method for delivery paths of multiple couriers | |
| Todkar et al. | Aspiration level-based non-dominated sorting genetic algorithm II & III to solve fuzzy multi-objective shortest path problem | |
| CN115473854A (en) | A flow intelligent control method for multi-modal network | |
| CN115018211A (en) | A method and device for setting a transportation dispatch route | |
| CN115496322A (en) | Distributed flow shop scheduling method and device | |
| CN118780455A (en) | Vehicle path planning method and device | |
| CN116029641A (en) | Method for generating and optimizing secondary distribution path of finished oil based on hyper-heuristic algorithm |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |