CN113393026B - Unmanned taxi transfer and path matching method - Google Patents
Unmanned taxi transfer and path matching method Download PDFInfo
- Publication number
- CN113393026B CN113393026B CN202110643256.4A CN202110643256A CN113393026B CN 113393026 B CN113393026 B CN 113393026B CN 202110643256 A CN202110643256 A CN 202110643256A CN 113393026 B CN113393026 B CN 113393026B
- Authority
- CN
- China
- Prior art keywords
- passenger
- passengers
- unmanned taxi
- unbound
- unmanned
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; CALCULATING OR 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/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06311—Scheduling, planning or task assignment for a person or group
- G06Q10/063114—Status monitoring or status determination for a person or group
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0645—Rental transactions; Leasing transactions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Theoretical Computer Science (AREA)
- Marketing (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Accounting & Taxation (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Finance (AREA)
- Educational Administration (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Traffic Control Systems (AREA)
Abstract
本发明公开了一种无人出租车换乘及路径匹配方法,包括以下步骤:后台服务器收集乘客Pi在共乘app上输入的基本需求信息;根据乘客Pi所提交的起始地和目的地,搜寻请求区域内所有未绑定乘客Pj,进行初次绑定;对初次绑定的乘客组的路径进行规划,并计算规划后的路线是否符合时间约束条件,若符合,则最终绑定乘客组,反之则将乘客加入未绑定的集合中;将最终绑定的乘客组与无人出租车候选集Wc中的无人出租车进行司乘匹配;在下一时间间隔内,更新未绑定集合W和无人出租车候选集Wc,对新加入和未绑定的集合中的乘客循环判断换乘条件,直到所有的乘客被分配至目的地或者没有新乘客为止。本发明具有提高无人出租车的合乘率、降低城市交通拥挤率等优点。
The invention discloses an unmanned taxi transfer and route matching method, comprising the following steps: a background server collects basic demand information input by passengers P i on a ride-sharing app; ground, search for all unbound passengers P j in the request area, and perform initial binding; plan the route of the passenger group bound for the first time, and calculate whether the planned route meets the time constraint, if so, the final binding The passenger group, otherwise, add the passengers to the unbound set; match the final bound passenger group with the unmanned taxis in the unmanned taxi candidate set Wc ; in the next time interval, update the unbounded set. The binding set W and the unmanned taxi candidate set W c , and the transfer conditions are cyclically judged for the passengers in the newly joined and unbound sets until all passengers are assigned to the destination or there are no new passengers. The present invention has the advantages of increasing the unmanned taxi sharing rate, reducing the urban traffic congestion rate, and the like.
Description
技术领域technical field
本发明涉及智能交通的技术领域,尤其涉及一种无人出租车换乘及路径匹配方法。The invention relates to the technical field of intelligent transportation, in particular to an unmanned taxi transfer and path matching method.
背景技术Background technique
随着交通行业的自动驾驶技术迅速发展以及大数据分析的广泛应用,未来人们出行的主要方式将以无人驾驶为主。然而,现有的网约车平台只能一次性给乘客分配出租车,不能实时性地根据路网上地情况智能分配,不足以满足未来无人驾驶的需求。为了提出一种更有效的匹配算法,本专利提出无人出租车换乘的定义。无人出租车换乘是指乘客在一定范围内搭乘无人出租车出行时,为了节约时间和出租车费用,增加其与他人共享的距离,采取的一种在乘坐过程中搭乘多辆无人出租车的方式。乘客在传统的出租车出行时,有时会遇到当前时间段无空闲车辆或无与其有顺路的车辆而等待时间过长的情况,通过无人出租车换乘方式,能减少乘客的等待时间,加快无人出租车的运行效率,进一步能降低城市的交通拥挤率,具有十分重要的意义。With the rapid development of autonomous driving technology in the transportation industry and the wide application of big data analysis, the main way for people to travel in the future will be driverless. However, the existing online car-hailing platforms can only allocate taxis to passengers at one time, and cannot intelligently allocate taxis in real time according to the situation on the road network, which is not enough to meet the needs of future driverless cars. In order to propose a more efficient matching algorithm, this patent proposes the definition of unmanned taxi transfer. Unmanned taxi transfer means that when passengers travel by unmanned taxis within a certain range, in order to save time and taxi costs, and increase the distance they share with others, a method of taking multiple unmanned taxis during the ride is adopted. way of taxi. When passengers travel in traditional taxis, they sometimes encounter the situation that there is no idle vehicle in the current time period or there is no vehicle on the way, and the waiting time is too long. The unmanned taxi transfer method can reduce the waiting time of passengers. It is of great significance to speed up the operation efficiency of unmanned taxis and further reduce the urban traffic congestion rate.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题在于,提供一种无人出租车换乘及路径匹配方法,能有效解决乘客二次换乘问题并减少等待时间,实质性地再次提高车辆的合乘率,降低城市交通拥挤率。The technical problem to be solved by the present invention is to provide an unmanned taxi transfer and route matching method, which can effectively solve the problem of passengers' second transfer and reduce the waiting time, substantially increase the carpooling rate again, and reduce the urban Traffic congestion rate.
为了解决上述技术问题,本发明提供了一种无人出租车换乘及路径匹配方法,包括以下步骤:In order to solve the above technical problems, the present invention provides an unmanned taxi transfer and path matching method, comprising the following steps:
S1、后台服务器收集乘客Pi在共乘app上输入的基本需求信息,包括起始地Oi、目的地Dj、出发时间T0、预期到达时间Tt、允许延误时间Td;S1. The background server collects the basic demand information input by the passenger Pi on the ride-sharing app, including the origin O i , the destination D j , the departure time T 0 , the expected arrival time T t , and the allowable delay time T d ;
S2、根据乘客Pi提交的起始地Oi和目的地Dj,搜寻请求区域内所有未绑定乘客Pj,即未绑定集合W中的乘客,通过对比乘客Pi的基本需求信息和未绑定乘客Pj的信息,依据初始换乘条件,筛选出满足换乘条件的乘客组,并对其进行初次绑定,然后进入步骤S3;如果没有与乘客Pi匹配的未绑定乘客Pj,则直接将乘客Pi加入未绑定集合W中,匹配结束,在下一时间间隔再次进行匹配;S2. According to the origin O i and the destination D j submitted by the passenger Pi , search for all the unbound passengers P j in the request area, that is, the passengers in the unbound set W, and compare the basic demand information of the passenger P i and the information of the unbound passenger P j , according to the initial transfer conditions, filter out the passenger groups that meet the transfer conditions, and bind them for the first time, and then enter step S3; if there is no unbound matching with the passenger P i Passenger P j , directly add passenger P i to the unbound set W, the matching ends, and the matching is performed again in the next time interval;
S3、使用改进后的路径算法,对初次绑定的乘客组的路径进行规划,并计算规划后的路线是否符合时间约束条件,若符合,则最终绑定乘客组,且乘客组中乘客Pj脱离未绑定集合W后,进入步骤S4;反之则将Pi加入未绑定集合W中,匹配结束;S3. Use the improved route algorithm to plan the route of the passenger group bound for the first time, and calculate whether the planned route meets the time constraint. If so, the passenger group is finally bound, and the passenger P j in the passenger group After leaving the unbound set W, enter step S4; otherwise, add P i to the unbound set W, and the matching ends;
S4、将最终绑定的乘客组与无人出租车候选集Wc中的无人出租车进行司乘匹配;S4, matching the final bound passenger group with the unmanned taxis in the unmanned taxi candidate set Wc ;
S5、在下一时间间隔内,更新未绑定集合W和无人出租车候选集Wc,并对新加入和未绑定的集合中的乘客循环判断换乘条件,直到所有的乘客被分配至目的地或者没有新乘客为止。S5. In the next time interval, update the unbound set W and the driverless taxi candidate set W c , and cyclically judge the transfer conditions for the passengers in the newly added and unbound sets, until all passengers are assigned to destination or until there are no new passengers.
进一步地,依据初始换乘条件筛选出满足换乘条件的乘客组的具体过程如下:Further, the specific process of screening out the passenger groups that meet the transfer conditions according to the initial transfer conditions is as follows:
A1、确立中心点;A1. Establish the center point;
提取乘客Pi的起始地Oi和目的地Dj坐标以及其他在乘客Pi请求区域内上的未绑定乘客Pj的位置坐标点,并判断得到包含所有乘客的最小范围,即由max{Xi,Xj}、min{Xi,Xj}、max{Yi,Yj}、min{Yi,Yj}围成的矩形框,然后以:Extract the coordinates of the origin O i and destination D j of the passenger P i and the coordinate points of other unbound passengers P j in the area requested by the passenger P i , and determine the minimum range including all passengers, that is, by The rectangle bounded by max{X i ,X j }, min{X i ,X j }, max{Y i ,Y j }, min{Y i ,Y j }, and then:
作为中心点;as the center point;
A2、路线变换;A2, route change;
将每位乘客的路径按照下面的方式进行连接:Connect each passenger's path as follows:
Yj)→(Xj,Yj) Y j )→(X j , Y j )
A3、判断乘客的路径重合:A3. Determine the passenger's path coincidence:
若存在两位乘客Pi、Pj的路径从某一个节点开始路径重合,即至少有两个节点一致,且节点连线而成的矢量方向一致,则初步绑定两位乘客Pi、Pj,得到乘客组;若存在多位乘客Pj与乘客Pi同时重合,则按重合的节点的时间先后依次两两绑定;若某位乘客Pi与其他乘客Pj从起始地Oi到目的地Dj的路径均没有重合,则将该名乘客Pi加入未绑定集合W中。If the paths of two passengers P i and P j overlap from a certain node, that is, at least two nodes are the same, and the vector directions formed by connecting the nodes are the same, then the two passengers P i and P are initially bound. j , get the passenger group; if there are multiple passengers P j and passengers P i that overlap at the same time , they will be bound in pairs according to the time sequence of the overlapping nodes; The paths from i to the destination D j do not overlap, so the passenger Pi is added to the unbound set W.
进一步地,步骤S3使用改进后的路径算法,对初次绑定的乘客组的路径进行规划,并确定是否最终进行绑定的具体过程如下:Further, step S3 uses the improved path algorithm to plan the path of the passenger group bound for the first time, and the specific process of determining whether the binding is finally performed is as follows:
B1、利用Dijakstra算法分别算出已最终绑定的两位乘客Pi、Pj的最短路径,并计算其相应的到达时间Tt;B1. Use the Dijakstra algorithm to calculate the shortest paths of the two passengers P i and P j that have been finally bound respectively, and calculate their corresponding arrival times T t ;
B2、使用DFS算法分别排列出乘客Pi、Pj从起始地Oi到目的地Dj所有可行的路径;B2. Use the DFS algorithm to arrange all feasible paths for passengers Pi and P j from the origin O i to the destination D j respectively ;
B3、计算路径相似度,将相似度高的两条路径进行整合,确认乘客Pi、Pj的最终路径轨迹;B3. Calculate the path similarity, integrate the two paths with high similarity, and confirm the final path trajectories of passengers P i and P j ;
B4、计算乘客Pi、Pj最终路径轨迹所需时间,判断其是否在时间约束内[T0,Tt+Td];若两位乘客Pi、Pj均在时间约束范围内到达其各自目的地,则可最终确认绑定,并分别确定乘客Pi、Pj路径轨迹;若至少一位乘客没有在时间约束范围内,则不确认最终绑定,将乘客Pi送至未绑定集合W。B4. Calculate the time required for the final path trajectory of passengers P i and P j to determine whether they are within the time constraint [T 0 , T t + T d ]; if both passengers P i and P j arrive within the time constraint range Their respective destinations, the binding can be finally confirmed, and the path trajectories of passengers P i and P j can be determined respectively; if at least one passenger is not within the time constraint, the final binding is not confirmed, and the passenger P i is sent to the destination. Bind set W.
进一步地,进行司乘匹配的具体过程如下:Further, the specific process of matching driver and passenger is as follows:
C1、判断当前无人出租车载客数Ln是否等于2;若是,则说明无人出租车已满载,不可再载乘客;若Ln小于2,则将该无人出租车加入无人出租车候选集Wc中;C1. Determine whether the current number of unmanned taxi passengers L n is equal to 2; if so, it means that the unmanned taxi is fully loaded and no more passengers can be carried; if L n is less than 2, the unmanned taxi is added to the unmanned taxi In the car candidate set W c ;
C2、为绑定乘客组分配车辆;C2. Allocate vehicles for bound passenger groups;
若无人出租车候选集Wc中存在载客数Ln为0的无人出租车,则根据无人出租车与乘客Pi之间距离,曼哈顿距离近的即进行匹配;若无人出租车候选集Wc中没有载客数Ln为0的无人出租车,则在无人出租车候选集Wc中,从未绑定集合W中的乘客Pj所乘坐的无人出租车中选择车辆;根据乘客Pj所乘坐的无人出租车的当前所在位置Sp、预计下一时间间隔所到达的位置Ns和当前时刻的最终的目的地Tj,依次对比绑定乘客的信息,如果乘客Pi的起始地Oi与无人出租车的当前所在位置Sp或者下一时间间隔所到达的位置Ns或者最终的目的地Tj中任一位置一致或曼哈顿距离相近,那么绑定乘客Pi和无人出租车信息;若此时乘客Pi仍无匹配无人出租车,则等待下一时间段无人出租车的匹配;一旦无人出租车与乘客Pi绑定,即从无人出租车候选集Wc中移除该无人出租车,无论该无人出租车载客数Ln是否为2。If there is an unmanned taxi with a passenger number L n of 0 in the unmanned taxi candidate set W c , according to the distance between the unmanned taxi and the passenger P i , the one with the closest Manhattan distance will be matched; There is no unmanned taxi with the number of passengers L n equal to 0 in the candidate set W c of the vehicle, then in the candidate set W c of the unmanned taxi, the unbound taxis taken by the passengers P j in the set W are not bound According to the current location Sp of the unmanned taxi taken by the passenger P j , the position N s expected to arrive in the next time interval and the final destination T j at the current moment, compare the bound passengers in turn. information, if the starting place O i of the passenger P i is the same as the current location Sp of the unmanned taxi, or the location N s to be reached in the next time interval, or the final destination T j , or the Manhattan distance is similar , then bind the passenger Pi and the unmanned taxi information; if the passenger Pi still does not match the unmanned taxi at this time, wait for the matching of the unmanned taxi in the next time period; once the unmanned taxi matches the passenger Pi Binding, that is, remove the unmanned taxi from the unmanned taxi candidate set W c , regardless of whether the number of passengers L n of the unmanned taxi is 2.
与现有技术相比,本方案原理及优点如下:Compared with the prior art, the principle and advantages of this scheme are as follows:
1.通过使用共乘app上传乘客需求信息,由后台服务器将新乘客信息与其他未绑定乘客信息进行汇总处理,并以最多合乘次数为目标。本方案利用实时的路网信息,再使用换乘判断的方法进行匹配,提高了车辆的合乘率,进而大大提高了车辆的利用率。1. By uploading the passenger demand information through the shared ride app, the background server will aggregate the new passenger information and other unbound passenger information, and take the maximum number of rides as the goal. This scheme uses real-time road network information, and then uses the method of transfer judgment for matching, which improves the carpooling rate and greatly improves the utilization rate of vehicles.
2.允许乘客中途更换无人出租车,直到到达目的地。由于有的乘客没有与他路径相同的乘客,系统判断为不能合乘,只能单独前行,可能会导致乘客的车费过高,而本发明通过允许乘客多次换乘,能有效解决乘客问题,大幅度减少乘客成本。2. Allow passengers to change driverless taxis midway until they reach their destination. Since some passengers do not have passengers on the same route as others, the system judges that they cannot ride together and can only travel alone, which may lead to excessively high fares for passengers. The present invention can effectively solve the problem for passengers by allowing passengers to transfer multiple times. problems, greatly reducing passenger costs.
附图说明Description of drawings
图1为本发明一种无人出租车换乘及路径匹配方法的原理流程图;Fig. 1 is the principle flow chart of a kind of unmanned taxi transfer and route matching method of the present invention;
图2为模拟路网示意图;Figure 2 is a schematic diagram of a simulated road network;
图3为路程对比图。Figure 3 is a comparison chart of the route.
具体实施方式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. Only this statement, the present invention appears or will appear in the text up, down, left, right, front, rear, inside, outside and other orientation terms, only based on the accompanying drawings of the present invention, which are not specific to the present invention limited.
本发明提供了一种无人出租车换乘及路径匹配方法,包括以下步骤:The present invention provides an unmanned taxi transfer and path matching method, comprising the following steps:
S1、后台服务器收集乘客Pi在共乘app上输入的基本需求信息,包括起始地Oi、目的地Dj、出发时间T0、预期到达时间Tt、允许延误时间Td;S1. The background server collects the basic demand information input by the passenger Pi on the ride-sharing app, including the origin O i , the destination D j , the departure time T 0 , the expected arrival time T t , and the allowable delay time T d ;
S2、根据乘客Pi提交的起始地Oi和目的地Dj,搜寻请求区域内所有未绑定乘客Pj,即未绑定集合W中的乘客,通过对比乘客Pi的基本需求信息和未绑定乘客Pj的信息,依据初始换乘条件,筛选出满足换乘条件的乘客组,并对其进行初次绑定,然后进入步骤S3;如果没有与乘客Pi匹配的未绑定乘客Pj,则直接将乘客Pi加入未绑定集合W中,匹配结束,在下一时间间隔再次进行匹配;S2. According to the origin O i and the destination D j submitted by the passenger Pi , search for all the unbound passengers P j in the request area, that is, the passengers in the unbound set W, and compare the basic demand information of the passenger P i and the information of the unbound passenger P j , according to the initial transfer conditions, filter out the passenger groups that meet the transfer conditions, and bind them for the first time, and then enter step S3; if there is no unbound matching with the passenger P i Passenger P j , directly add passenger P i to the unbound set W, the matching ends, and the matching is performed again in the next time interval;
依据初始换乘条件筛选出满足换乘条件的乘客组的具体过程如下:The specific process of selecting passenger groups that meet the transfer conditions according to the initial transfer conditions is as follows:
A1、确立中心点;A1. Establish the center point;
提取乘客Pi的起始地Oi和目的地Dj坐标以及其他在乘客Pi请求区域内上的未绑定乘客Pj的位置坐标点,并判断得到包含所有乘客的最小范围,即由max{Xi,Xj}、min{Xi,Xj}、max{Yi,Yj}、min{Yi,Yj}围成的矩形框,然后以:Extract the coordinates of the origin O i and destination D j of the passenger P i and the coordinate points of other unbound passengers P j in the area requested by the passenger P i , and determine the minimum range including all passengers, that is, by The rectangle bounded by max{X i ,X j }, min{X i ,X j }, max{Y i ,Y j }, min{Y i ,Y j }, and then:
作为中心点;as the center point;
A2、路线变换;A2, route change;
将每位乘客的路径按照下面的方式进行连接:Connect each passenger's path as follows:
Yj)→(Xj,Yj) Y j )→(X j , Y j )
A3、判断乘客的路径重合:A3. Determine the passenger's path coincidence:
若存在两位乘客Pi、Pj的路径从某一个节点开始路径重合,即至少有两个节点一致,且节点连线而成的矢量方向一致,则初步绑定两位乘客Pi、Pj,得到乘客组;若存在多位乘客Pj与乘客Pi同时重合,则按重合的节点的时间先后依次两两绑定;若某位乘客Pi与其他乘客Pj从起始地Oi到目的地Dj的路径均没有重合,则将该名乘客Pi加入未绑定集合W中。If the paths of two passengers P i and P j overlap from a certain node, that is, at least two nodes are the same, and the vector directions formed by connecting the nodes are the same, then the two passengers P i and P are initially bound. j , get the passenger group; if there are multiple passengers P j and passengers P i that overlap at the same time , they will be bound in pairs according to the time sequence of the overlapping nodes; The paths from i to the destination D j do not overlap, so the passenger Pi is added to the unbound set W.
S3、使用改进后的路径算法,对初次绑定的乘客组的路径进行规划,并计算规划后的路线是否符合时间约束条件,若符合,则最终绑定乘客组,且乘客组中乘客Pj脱离未绑定集合W后,进入步骤S4;反之则将Pi加入未绑定集合W中,匹配结束;S3. Use the improved route algorithm to plan the route of the passenger group bound for the first time, and calculate whether the planned route meets the time constraints. If so, the passenger group is finally bound, and the passenger P j in the passenger group After leaving the unbound set W, enter step S4; otherwise, add P i to the unbound set W, and the matching ends;
具体过程如下:The specific process is as follows:
B1、利用Dijakstra算法分别算出已最终绑定的两位乘客Pi、Pj的最短路径,并计算其相应的到达时间Tt;B1. Use the Dijakstra algorithm to calculate the shortest paths of the two passengers P i and P j that have been finally bound respectively, and calculate their corresponding arrival times T t ;
B2、使用DFS算法分别排列出乘客Pi、Pj从起始地Oi到目的地Dj所有可行的路径;B2. Use the DFS algorithm to arrange all feasible paths for passengers Pi and P j from the origin O i to the destination D j respectively ;
B3、计算路径相似度,将相似度高的两条路径进行整合,确认乘客Pi、Pj的最终路径轨迹;B3. Calculate the path similarity, integrate the two paths with high similarity, and confirm the final path trajectories of passengers P i and P j ;
B4、计算乘客Pi、Pj最终路径轨迹所需时间,判断其是否在时间约束内[T0,Tt+Td];若两位乘客Pi、Pj均在时间约束范围内到达其各自目的地,则可最终确认绑定,并分别确定乘客Pi、Pj路径轨迹;若至少一位乘客没有在时间约束范围内,则不确认最终绑定,将乘客Pi送至未绑定集合W。B4. Calculate the time required for the final path trajectory of passengers P i and P j to determine whether they are within the time constraint [T 0 , T t + T d ]; if both passengers P i and P j arrive within the time constraint range Their respective destinations, the binding can be finally confirmed, and the path trajectories of passengers P i and P j can be determined respectively; if at least one passenger is not within the time constraint, the final binding is not confirmed, and the passenger P i is sent to the destination. Bind set W.
S4、将最终绑定的乘客组与无人出租车候选集Wc中的无人出租车进行司乘匹配,过程如下:S4. Match the final bound passenger group with the unmanned taxis in the unmanned taxi candidate set Wc . The process is as follows:
C1、判断当前无人出租车载客数Ln是否等于2;若是,则说明无人出租车已满载,不可再载乘客;若Ln小于2,则将该无人出租车加入无人出租车候选集Wc中;C1. Determine whether the current number of unmanned taxi passengers L n is equal to 2; if so, it means that the unmanned taxi is fully loaded and no more passengers can be carried; if L n is less than 2, the unmanned taxi is added to the unmanned taxi In the car candidate set W c ;
C2、为绑定乘客组分配车辆;C2. Allocate vehicles for bound passenger groups;
若无人出租车候选集Wc中存在载客数Ln为0的无人出租车,则根据无人出租车与乘客Pi之间距离,曼哈顿距离近的即进行匹配;若无人出租车候选集Wc中没有载客数Ln为0的无人出租车,则在无人出租车候选集Wc中,从未绑定集合W中的乘客Pj所乘坐的无人出租车中选择车辆;根据乘客Pj所乘坐的无人出租车的当前所在位置Sp、预计下一时间间隔所到达的位置Ns和当前时刻的最终的目的地Tj,依次对比绑定乘客的信息,如果乘客Pi的起始地Oi与无人出租车的当前所在位置Sp或者下一时间间隔所到达的位置Ns或者最终的目的地Tj中任一位置一致或曼哈顿距离相近,那么绑定乘客Pi和无人出租车信息;若此时乘客Pi仍无匹配无人出租车,则则等待下一时间段无人出租车的匹配;一旦无人出租车与乘客Pi绑定,即从无人出租车候选集Wc中移除该无人出租车,无论该无人出租车载客数Ln是否为2。If there is an unmanned taxi with a passenger number L n of 0 in the unmanned taxi candidate set W c , according to the distance between the unmanned taxi and the passenger P i , the one with the closest Manhattan distance will be matched; There is no unmanned taxi with the number of passengers L n equal to 0 in the candidate set W c of the vehicle, then in the candidate set W c of the unmanned taxi, the unbound taxis taken by the passengers P j in the set W are not bound Select a vehicle in the taxis; according to the current location Sp of the unmanned taxi taken by the passenger P j , the position N s expected to arrive in the next time interval and the final destination T j at the current moment, compare the bound passengers in turn. information, if the starting place O i of the passenger P i is the same as the current location Sp of the unmanned taxi, or the location N s to be reached in the next time interval, or the final destination T j , or the Manhattan distance is similar , then bind the passenger P i and the unmanned taxi information; if the passenger Pi still does not match the unmanned taxi at this time, wait for the matching of the unmanned taxi in the next time period; once the unmanned taxi and the passenger P are matched i binding, that is, remove the unmanned taxi from the unmanned taxi candidate set W c , regardless of whether the number of passengers L n of the unmanned taxi is 2.
S5、在下一时间间隔内,更新未绑定集合W和无人出租车候选集Wc,并对新加入和未绑定的集合中的乘客循环判断换乘条件,直到所有的乘客被分配至目的地或者没有新乘客为止。S5. In the next time interval, update the unbound set W and the driverless taxi candidate set W c , and cyclically judge the transfer conditions for the passengers in the newly added and unbound sets, until all passengers are assigned to destination or until there are no new passengers.
为了证明本实施例的有效性,下面采用模拟实验的方式对本实施例进行检验,其中需要模拟的对象有路网、乘客和无人出租车。实验采取的评价指标是在一定时间内所节省的总里程。具体的求解方法描述如下:In order to prove the effectiveness of this embodiment, a simulation experiment is used to test this embodiment below, wherein the objects to be simulated include road network, passengers and unmanned taxis. The evaluation index adopted in the experiment is the total mileage saved in a certain period of time. The specific solution method is described as follows:
数据模拟方法介绍Introduction to Data Simulation Methods
路网如图2所示。该路网一共有20个节点,34条边。The road network is shown in Figure 2. The road network has a total of 20 nodes and 34 edges.
对于乘客请求,一轮随机产生4位乘客,其每轮产生时间间隔为5分钟。每位乘客的起点和终点在路网中随机出现,且允许不同乘客的起点或终点相同。如表1所示,系统随机产生的两轮新乘客,共8位乘客,每位乘客的需求信息见表格。For passenger requests, 4 passengers are randomly generated in one round, and the time interval between each round is 5 minutes. The origin and destination of each passenger appear randomly in the road network, and different passengers are allowed to have the same origin or destination. As shown in Table 1, the system randomly generates two rounds of new passengers, a total of 8 passengers, and the demand information of each passenger is shown in the table.
表1Table 1
对于无人出租车信息,选取4辆无人出租车作为基本运行车辆,其初始位置以第一轮出现的乘客位置为准。For the unmanned taxi information, four unmanned taxis are selected as the basic running vehicles, and their initial positions are based on the positions of passengers appearing in the first round.
实验步骤Experimental procedure
1)根据介绍的数据模拟方法,随机生成乘客的请求信息,并初始化4辆无人出租车。1) According to the introduced data simulation method, the request information of passengers is randomly generated, and 4 unmanned taxis are initialized.
2)以5分钟为一时间间隔更新路网上的乘客和无人出租车信息,使用本实施例说明的换乘方法对乘客需求进行分配,循环到无新乘客且所有乘客均送至目的地为止。2) Update the passenger and unmanned taxi information on the road network at intervals of 5 minutes, use the transfer method described in this embodiment to allocate passenger demand, and cycle until there are no new passengers and all passengers are sent to the destination .
3)为了验证本方法的有效性,收集无人出租车完成三轮乘客所运行的路程数,乘客的路线信息如表2所示;对比乘客不合乘、不换乘的无人出租车运行里程数,计算减少路程的公里数,绘制路程对比图,见图3。3) In order to verify the validity of this method, the number of journeys traveled by unmanned taxis to complete three rounds of passengers is collected, and the route information of passengers is shown in Table 2; the mileage of unmanned taxis with passengers who do not share or transfer is compared. Calculate the number of kilometers to reduce the distance, and draw a comparison chart of the distance, as shown in Figure 3.
表2Table 2
实验结果和分析Experimental Results and Analysis
本模拟实验的评价指标为无人出租车送完乘客后所节省的里程数。该实验的总共乘客数为8位。图3是无人出租车每送完一位乘客后的车辆运行路程公里数变化图。星号表示预计无人出租车运行总路程数,圆圈表示实际无人出租车运行总路程数,正五角星表示无人出租车运行中减少的路程数(在计算总路程的时候,不计无人出租车在前往乘客起始地的路程数)。从图中可知,随着乘客的增多,可换乘的几率越大,可节省的公里数就越多,节省路径长度可达总路程的48%。The evaluation index of this simulation experiment is the mileage saved by the unmanned taxi after delivering the passengers. The total number of passengers for this experiment was 8. Figure 3 is a graph of the change in the distance traveled by the unmanned taxi after each passenger has been delivered. The asterisk represents the estimated total distance of unmanned taxi operation, the circle represents the actual total distance of unmanned taxi operation, and the positive five-pointed star represents the number of distances reduced in the operation of unmanned taxi (when calculating the total distance, excluding unmanned taxis) The number of journeys the taxi has made to the passenger's origin). It can be seen from the figure that with the increase of passengers, the greater the probability of transfer, the more kilometers can be saved, and the saved path length can reach 48% of the total distance.
尽管本公开的描述已经相当详尽且特别对几个所述实施例进行了描述,但其并非旨在局限于任何这些细节或实施例或任何特殊实施例,而是应当将其视作是通过参考所附权利要求考虑到现有技术为这些权利要求提供广义的可能性解释,从而有效地涵盖本公开的预定范围。此外,上文以发明人可预见的实施例对本公开进行描述,其目的是为了提供有用的描述,而那些目前尚未预见的对本公开的非实质性改动仍可代表本公开的等效改动。Although the description of the present disclosure has been described in considerable detail and with particular reference to a few of the described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be considered by reference The appended claims are to provide the broadest possible interpretation of these claims in view of the prior art so as to effectively encompass the intended scope of the disclosure. Furthermore, the foregoing description of the present disclosure in terms of embodiments foreseen by the inventors is intended to provide a useful description, and those insubstantial modifications of the present disclosure that are not presently foreseen may nevertheless represent equivalent modifications of the present disclosure.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110643256.4A CN113393026B (en) | 2021-06-09 | 2021-06-09 | Unmanned taxi transfer and path matching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110643256.4A CN113393026B (en) | 2021-06-09 | 2021-06-09 | Unmanned taxi transfer and path matching method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113393026A CN113393026A (en) | 2021-09-14 |
CN113393026B true CN113393026B (en) | 2022-07-26 |
Family
ID=77620064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110643256.4A Active CN113393026B (en) | 2021-06-09 | 2021-06-09 | Unmanned taxi transfer and path matching method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113393026B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6542815B1 (en) * | 1999-10-13 | 2003-04-01 | Denso Corporation | Route setting device and navigation device |
CN102637359A (en) * | 2012-04-24 | 2012-08-15 | 广西工学院 | Taxi sharing cluster optimization system based on complex road network and optimization method thereof |
CN111126799A (en) * | 2019-12-10 | 2020-05-08 | 广东工业大学 | Shared network driver and passenger matching method based on bipartite graph |
-
2021
- 2021-06-09 CN CN202110643256.4A patent/CN113393026B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6542815B1 (en) * | 1999-10-13 | 2003-04-01 | Denso Corporation | Route setting device and navigation device |
CN102637359A (en) * | 2012-04-24 | 2012-08-15 | 广西工学院 | Taxi sharing cluster optimization system based on complex road network and optimization method thereof |
CN111126799A (en) * | 2019-12-10 | 2020-05-08 | 广东工业大学 | Shared network driver and passenger matching method based on bipartite graph |
Non-Patent Citations (1)
Title |
---|
曾伟良等.自动驾驶出租车动态合乘效益仿真分析.《计算机科学》.2021,第48卷(第2期),第257-263页. * |
Also Published As
Publication number | Publication date |
---|---|
CN113393026A (en) | 2021-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104931063B (en) | path planning method | |
CN105489002B (en) | A kind of share-car method and system based on intelligent Matching and path optimization | |
CN104464274B (en) | Rideshare is called a taxi method and server | |
CN111325967B (en) | Intelligent networking automobile formation control method and device based on cooperative assignment | |
CN108765948B (en) | A flexible bus scheduling method and system | |
CN104217249B (en) | A kind of dynamic share-car matching process based on time Yu expense restriction | |
CN105448082B (en) | A kind of quick public transport combined schedule method that variable interval is dispatched a car | |
CN111882107B (en) | Driver and passenger matching method based on automatic driving shared taxi system | |
CN113255948B (en) | Matching strategy method for improving accuracy of carpooling | |
CN111126799B (en) | Shared network driver and crew matching method based on bipartite graph | |
CN112381472A (en) | Subway connection bus route optimization method and device and storage medium | |
CN105702035A (en) | Method for evaluating bus taking difficulty degree by using historical bus data | |
CN110827563B (en) | A parking guidance system and method based on the most reliable path | |
CN115146956B (en) | A method for matching passengers and vehicles in online car-hailing sharing | |
CN116307580A (en) | Method and device for scheduling capacity, electronic equipment and storage medium | |
CN113393026B (en) | Unmanned taxi transfer and path matching method | |
CN113739812B (en) | Distribution plan generation method, device, system, and computer-readable storage medium | |
CN119227926A (en) | Railway transfer travel route optimization method, device, equipment and storage medium | |
CN116151397A (en) | Network appointment vehicle order dispatching method under mixed service mode | |
CN113409567A (en) | A traffic evaluation method and system for mixed lanes of public transport and autonomous vehicles | |
CN110111600B (en) | Parking lot recommendation method based on VANETs | |
WO2023274264A1 (en) | Vehicle control method and apparatus, and system | |
CN110046851A (en) | Unmanned vehicle logistics method for allocating tasks based on Multi-Paxos | |
CN117073698A (en) | Urban public transportation service path planning method based on dynamic planning algorithm | |
CN115729106A (en) | A Lightweight Carpooling Scheduling Method Based on Mileage Optimization Under Multiple Time Constraints |
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 |