WO2021031634A1 - Continuous order dispatching method and apparatus for advance order based on real-time one-way vehicle - Google Patents

Continuous order dispatching method and apparatus for advance order based on real-time one-way vehicle Download PDF

Info

Publication number
WO2021031634A1
WO2021031634A1 PCT/CN2020/091260 CN2020091260W WO2021031634A1 WO 2021031634 A1 WO2021031634 A1 WO 2021031634A1 CN 2020091260 W CN2020091260 W CN 2020091260W WO 2021031634 A1 WO2021031634 A1 WO 2021031634A1
Authority
WO
WIPO (PCT)
Prior art keywords
order
time
real
vehicle
term
Prior art date
Application number
PCT/CN2020/091260
Other languages
French (fr)
Chinese (zh)
Inventor
赵海帆
崔大勇
汤义强
李书恒
郭玉林
张之硕
Original Assignee
南京领行科技股份有限公司
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 南京领行科技股份有限公司 filed Critical 南京领行科技股份有限公司
Publication of WO2021031634A1 publication Critical patent/WO2021031634A1/en

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/02Reservations, e.g. for tickets, services or events
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1859Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels

Definitions

  • the invention relates to the technical field of online car-hailing, and in particular to a method and device for dispatching a single-chain order based on a real-time single-trip vehicle.
  • taxis can be divided into two types: cruise taxis and online booking taxis. Cruising taxis means that they are usually on the road and stop when they are called to provide transportation services for passengers; while booking taxis online is to pick up orders through the Internet. Provide transportation services for passengers in a single way. Online car-hailing is short for online car rental.
  • the present invention provides a method and device for dispatching a single-chain order based on a real-time single-journey vehicle to improve the user's service experience.
  • the present invention discloses a reservation single-chain dispatch method based on real-time single-trip vehicles, which is applied to a server of a travel taxi system, and the reservation single-chain dispatch method includes the steps:
  • the travel reservation order is the long-term reservation form
  • the long-term reservation form will be pushed to the multiple real-time single-trip vehicles in the form of broadcast, and the long-term reservations that are not received within the preset time period will be pushed
  • the order is returned to the order pool of the server;
  • the travel reservation order is the short-term reservation order
  • the short-term reservation order and the vehicle information of the real-time single-trip vehicle are optimized through a greedy algorithm, and the vehicle information is obtained from the multiple real-time single-trip vehicles Target vehicle
  • a plurality of short-term appointment orders that do not conflict with each other are sent to the target vehicle.
  • said obtaining real-time travel orders includes:
  • the scheduled travel order is selected from all the travel orders according to the time parameter of the travel order.
  • the acquiring multiple real-time single-trip vehicles includes:
  • the real-time single-stroke vehicle is selected from the passenger-carrying state of each vehicle.
  • the acquiring multiple real-time single-trip vehicles further includes the steps:
  • the real-time single-trip vehicles whose type does not match the specified vehicle type of the short-term reservation form are excluded.
  • the acquiring multiple real-time single-trip vehicles further includes the steps:
  • the real-time single-trip vehicles whose drivers have made a predetermined rejection behavior are excluded.
  • the sending multiple short-term appointment orders that do not conflict with each other to the target vehicle includes:
  • the target vehicle has the current real-time order and has accepted one or more of the short-term appointment orders, the required time will not conflict with the time of the current real-time order and the accepted short-term appointment order.
  • the time reservation form is sent to the target vehicle.
  • the optimization calculation of the vehicle information of the short-term reservation form and the real-time single-trip vehicle through a greedy algorithm includes the steps:
  • the vehicle-order matrix includes a vehicle set and an appointment order set, and also includes the distance between each real-time single-trip vehicle in the vehicle set and each short-term appointment order in the appointment order set
  • a parameter, the distance parameter is the reciprocal of the distance between the current position of the real-time single-journey vehicle and the departure position of the short-term reservation order after normalization processing
  • the target vehicle is selected from the vehicle set by using a greedy algorithm.
  • a device for dispatching a single-loop order based on a real-time single-trip vehicle is applied to a server of a ride-hailing system.
  • the device for dispatching a single-loop single-loop order in a reservation includes:
  • the order obtaining module is configured to obtain travel reservation orders
  • the vehicle acquisition module is configured to acquire multiple real-time single-trip vehicles
  • the first push module is configured to determine whether the scheduled travel order is a long-term reservation order or a short-term reservation order; if the scheduled travel order is the long-term reservation order, broadcast the long-term reservation order Push to the multiple real-time single-trip vehicles, and return long-term appointment orders that are not received within a preset time period to the order pool of the server;
  • the optimization calculation module is configured to perform optimization calculations on the short-term reservation order and the vehicle information of the real-time single-trip vehicle through a greedy algorithm if the travel reservation order is the short-term reservation order, from the multiple Obtain the target vehicle from one real-time single-trip vehicle;
  • the second pushing module is configured to send multiple short-term appointment orders that do not conflict with each other to the target vehicle.
  • the order acquisition module includes:
  • the first obtaining unit is configured to pull all travel orders within the preset time period from the order pool of the server every preset time period;
  • the first filtering unit is configured to select the scheduled travel order from all travel orders according to the time parameter of the travel order.
  • the vehicle acquisition module includes:
  • the second acquiring unit is configured to acquire all vehicles within the preset range according to the location information of the scheduled travel order;
  • the second filtering unit is configured to select the real-time single-stroke vehicle according to the passenger loading status of each vehicle.
  • the vehicle acquisition module further includes:
  • the first filtering module is configured to exclude, from the plurality of real-time single-trip vehicles, the real-time single-trip vehicles whose types do not match the designated vehicle type of the short-term reservation form.
  • the vehicle acquisition module further includes:
  • the second filtering module is configured to exclude, from the plurality of real-time single-trip vehicles, real-time single-trip vehicles whose drivers have made a predetermined rejection behavior.
  • the second pushing module includes:
  • the first pushing unit is configured to, if only the current real-time order exists in the target vehicle, send the short-term reservation order whose start time is after the order end time of the current real-time order to the target vehicle;
  • the second pushing unit is configured to, if the target vehicle has the current real-time order and has accepted one or more of the short-term reservations, compare the required time with the current real-time order and the accepted short-time order The short-term appointment form in which the time of the appointment form does not conflict is sent to the target vehicle.
  • the present invention provides a method and device for dispatching a single reservation order based on a real-time single-trip vehicle.
  • the method and device are applied to the server of the travel taxi system, specifically to obtain reservation travel orders; A real-time single-trip vehicle; judge whether the reservation travel order is a long-term reservation or a short-term reservation.
  • For long-term reservations broadcast to multiple real-time single-trip vehicles; use a greedy algorithm for short-term reservations and real-time single-trips
  • the vehicle information of the vehicle is optimized and calculated, and the target vehicle is obtained from multiple real-time single-trip vehicles; multiple short-term appointment orders that do not conflict with each other are sent to the target vehicle. It can be seen from the above solution that even when the current real-time single-journey vehicle has accepted the reservation travel order, the order can be accepted again, which increases the order acceptance rate, thereby improving the user experience.
  • this application uses a greedy algorithm to select the corresponding vehicle from the vehicle set as the target vehicle to dispatch the order for the corresponding short-term appointment order, instead of simply dispatching the order based on the distance to the vehicle, thereby avoiding the problem of no car to dispatch. , Improve overall efficiency, and correspondingly improve user service experience. Moreover, before using the greedy algorithm for calculation, the vehicles whose models do not match and the vehicles whose drivers have made the prescribed rejection behavior are also eliminated, which effectively improves the efficiency of the optimization calculation.
  • Fig. 1 is a flowchart of a method for dispatching a single-chain order based on a real-time single-trip vehicle according to an embodiment of the application;
  • Fig. 2 is a block diagram of a device for dispatching a single-chain order based on a real-time single-trip vehicle according to an embodiment of the application.
  • Fig. 1 is a flow chart of a method for dispatching a single-chain order based on a real-time single-trip vehicle according to an embodiment of the application.
  • the method for dispatching orders in a chain of reservations is applied to a server of a travel taxi system, and is used to place orders for passengers and provide an order dispatching solution to taxis.
  • the real-time single-trip vehicle here refers to a vehicle that belongs to the contracted vehicle of the ride-hailing system and is in service at the current moment.
  • the vehicle here is limited to electric vehicles, and may also include hybrid vehicles.
  • the method for dispatching an appointment order chain specifically includes the following steps:
  • the travel reservation order here refers to a travel order that passengers who need to provide car rental services currently issue and need to get car rental services in the future. When passengers place corresponding orders, they usually use the mobile terminal to send electronic information to the server of the ride-hailing system.
  • the reservation travel order will include corresponding location information, and the location information will indicate the specific location of the passenger who issued the travel order.
  • a preset time interval such as every 2 seconds
  • For specific travel orders Whether it is a real-time travel order or an appointment travel order can be determined by the additional information of the order itself or the type of the order itself; when all travel orders within this period of time are pulled, the judgment is made based on the additional information in the travel order or the type of the order itself. Select all scheduled travel orders from it.
  • the location information for issuing the travel reservation order obtain real-time traveling vehicles within a preset range based on the location information according to the location information, that is, vehicles that are serving passengers.
  • the preset range may be determined according to actual conditions, such as a block with the location information as a basic point, a range within a certain spatial scale, or a city.
  • the acquisition of real-time single-trip vehicles in this application also includes the following steps, and the order of the following steps does not represent the order of the steps.
  • the passenger’s travel order will provide the vehicle type he needs, that is, the vehicle type requirement is included. If the passenger’s demand cannot be met, the passenger’s experience will be reduced. Therefore, when confirming all real-time orders After the itinerary vehicle, filter all real-time single-trip vehicles according to the specified vehicle type in the travel order. If one or some vehicles do not match the specified vehicle type, it will be removed and then optimized calculations will be performed to avoid the passengers from clarifying The rejected models participate in the calculation.
  • the real-time single-trip vehicle determines whether the corresponding reservation travel order is a long-term reservation or a short-term reservation by judging the reservation time information.
  • the two are divided according to the reservation time information pointed to by the reservation time information.
  • the length of the time that is, the length of the appointment order is determined by the preset time threshold.
  • the time threshold can be one day or one week. The time threshold determined according to this principle is within the protection scope of this application.
  • the real-time single-trip vehicle For the long-term appointment order, because there will be no conflict with the current order status of the real-time single-trip vehicle, it can be pushed to all real-time single-trip vehicles through broadcast, and the driver of the real-time single-trip vehicle can accept or reject the order at any time single.
  • the broadcasted long-term reservation order if the order is not received within the preset time period, such as 1 second, 10 seconds, 60 seconds, 100 seconds, or the duration between the above values or other durations, it will not be received.
  • the long-term appointment order received is returned to the order pool of the server.
  • the reservation travel order and the selected real-time single-trip vehicle vehicle information are optimized, and the real-time single-trip vehicle that best matches the short-term reservation order is found from multiple real-time single-trip vehicles as the target vehicle .
  • the vehicle-order matrix is first constructed.
  • multiple short-term appointment orders are first obtained to form an appointment order set O.
  • the current positions of multiple real-time single-stroke vehicles d based on the position distance are selected to obtain the candidate vehicle set D.
  • the reservation form set and the vehicle set are taken as two dimensions to form the vehicle-order matrix.
  • the matrix also includes the reciprocal of the distance between the departure position of each short-term reservation form and the current position of each real-time single-trip vehicle. After multiple countdowns, normalize them as the distance parameter v between the corresponding short-term reservation and the corresponding real-time single-trip vehicle, as shown in Table 1.
  • Greedy algorithm means that the overall optimal solution of the problem can be achieved through a series of local optimal choices, namely greedy choices. This is the first basic element for the greedy algorithm to be feasible, and it is also the main difference between the greedy algorithm and the dynamic programming algorithm.
  • Greedy algorithm uses a top-down, iterative method to make successive choices. Every time a greedy choice is made, the problem is reduced to a smaller sub-problem. For a specific problem, to determine whether it has the nature of greedy choice, we must prove that the greedy choice made at each step can finally get the optimal solution of the problem.
  • sending to the target vehicle actually refers to sending the real-time travel order to the mobile device on the target vehicle, such as the mobile phone held by the driver or the car machine of the vehicle.
  • a target vehicle only has a real-time order, that is, it is serving the corresponding passengers and has not accepted other reservations, then the short-term reservations whose starting time is after the real-time order are pushed to the corresponding Target vehicle
  • the time gap between the real-time order and the first appointment order, and the time gap between the appointment orders Calculate, if there is a short-term appointment order that can meet the above time gap at this time, the short-term appointment order will be pushed to the target vehicle, or the short-term appointment order whose starting time is after the last short-term appointment order will be pushed to The target vehicle.
  • this embodiment provides a method for dispatching a single reservation order based on real-time single-trip vehicles.
  • the method is applied to the server of the travel taxi system, specifically to obtain reservation travel orders; to obtain multiple real-time orders. Itinerary vehicles; judge whether the reservation travel order is a long-term reservation order or a short-term reservation order.
  • For long-term reservation orders broadcast to multiple real-time single-trip vehicles through broadcast; use greedy algorithm for short-time reservation orders and real-time single-trip vehicles vehicles.
  • the information is optimized and calculated, and the target vehicle is obtained from multiple real-time single-trip vehicles; multiple short-term appointment orders that do not conflict with each other are sent to the target vehicle. It can be seen from the above solution that even when the current real-time single-journey vehicle has accepted the reservation travel order, the order can be accepted again, which increases the order acceptance rate, thereby improving the user experience.
  • this application uses a greedy algorithm to select the corresponding vehicle from the vehicle set as the target vehicle to dispatch the order for the corresponding short-term appointment order, instead of simply dispatching the order based on the distance to the vehicle, thereby avoiding the problem of no car to dispatch. , Improve the overall efficiency, and correspondingly improve the user's service experience. Moreover, before using the greedy algorithm for calculation, the vehicles whose models do not match and the vehicles whose drivers have made the prescribed rejection behavior are also eliminated, which effectively improves the efficiency of the optimization calculation.
  • FIG. 2 is a block diagram of a device for dispatching a single-chain order based on a real-time single-trip vehicle according to an embodiment of the application.
  • the reservation order chain dispatching device is applied to the server of the ride-hailing system, which can be understood as the actual electronic device or the functional module of the server, which is used to place orders for passengers and dispatch orders to taxis Provide dispatch plan.
  • the real-time single-trip vehicle here refers to the contracted vehicle that belongs to the ride-hailing system for the trip and is currently in service.
  • the device for dispatching an appointment order chain specifically includes an order acquisition module 10, a vehicle acquisition module 20, a first pushing module 30, an optimization calculation module 40, and a second pushing module 50.
  • the order obtaining module 10 is used to obtain a travel reservation order.
  • the travel reservation order here refers to a travel order that is currently issued by passengers who need to provide car rental services and needs to get car rental services in the future.
  • passengers When passengers place corresponding orders, they generally use the mobile terminal to send electronic information to the server of the ride-hailing system.
  • the reservation travel order will include corresponding location information, and the location information will indicate the specific location of the passenger who issued the travel order.
  • the order acquisition module here specifically includes a first acquisition unit and a first filter unit.
  • the first acquisition unit is used to pull all travel orders generated during this period of time from the order pool of the server at a preset time interval, such as every 2 seconds, including real-time travel orders and scheduled travel orders.
  • a preset time interval such as every 2 seconds
  • the specific travel order is a real-time travel order or a reservation travel order
  • the first filter unit is used when the first acquisition unit pulls all travel orders within this period of time, Judge based on the additional information in the travel order or the type of the order itself, and select all scheduled travel orders from the judgment.
  • the vehicle acquisition module 20 is configured to acquire multiple real-time single-stroke vehicles within a preset range according to location information.
  • a real-time single-trip vehicle within a preset range based on the location information is obtained according to the location information, that is, a vehicle that is serving passengers.
  • the preset range may be determined according to actual conditions, such as a block with the location information as a basic point, a range within a certain spatial scale, or a city.
  • the module includes a second acquiring unit and a second filtering unit.
  • the second acquiring unit is used to acquire all vehicles within the preset range according to the location information, that is, to acquire the preset range All the vehicles contracted with the ride-hailing system;
  • the second filter unit is used to judge according to the service status of each vehicle, and select real-time single-trip vehicles from it.
  • the vehicle acquisition module in this application further includes a third filter unit and/or a fourth filter unit.
  • the third filtering unit is used to eliminate real-time single-trip vehicles whose type does not match the specified vehicle type of the reserved travel order before the optimization calculation module performs calculation according to the greedy algorithm.
  • the passenger’s travel order will provide the vehicle type he needs, that is, the vehicle type requirement is included. If the passenger’s demand cannot be met, the passenger’s experience will be reduced. Therefore, when confirming all real-time orders After the itinerary vehicle, filter all real-time single-trip vehicles according to the specified vehicle type in the travel order. If one or some vehicles do not match the specified vehicle type, it will be removed and then optimized calculations will be performed to avoid the passengers from clarifying The rejected models participate in the calculation.
  • the fourth filtering unit is used to eliminate real-time single-trip vehicles whose drivers have issued rejection information before the optimization calculation module performs calculations according to the greedy algorithm.
  • the first push module 30 is used for judging the long- and short-term appointment orders, and broadcast and push the long-term appointment orders.
  • the real-time single-trip vehicle determines whether the corresponding reservation travel order is a long-term reservation or a short-term reservation by judging the reservation time information.
  • the two are divided according to the reservation time information pointed to by the reservation time information.
  • the length of the time that is, the length of the appointment order is determined by the preset time threshold.
  • the time threshold can be one day or one week. The time threshold determined according to this principle is within the protection scope of this application.
  • the real-time single-trip vehicle For the long-term appointment order, because there will be no conflict with the current order status of the real-time single-trip vehicle, it can be pushed to all real-time single-trip vehicles through broadcast, and the driver of the real-time single-trip vehicle can accept or reject the order at any time single.
  • the broadcasted long-term reservation order if the order is not received within the preset time period, such as 1 second, 10 seconds, 60 seconds, 100 seconds, or the duration between the above values or other durations, it will not be received.
  • the long-term appointment order received is returned to the order pool of the server.
  • the optimization calculation module 40 is used for calculating according to the greedy algorithm to obtain the target vehicle.
  • the reservation travel order and the selected real-time single-trip vehicle information are optimized, and the real-time single-trip vehicle that best matches the real-time single-trip vehicle is found as the target vehicle from multiple real-time single-trip vehicles.
  • the second pushing module 50 is used to sequentially send non-conflicting short-term appointment orders to the target vehicle.
  • Non-conflict here means that the time of the short-term appointment order does not conflict.
  • sending to the target vehicle actually refers to sending the real-time travel order to the mobile device on the target vehicle, such as a mobile phone held by the driver.
  • the module includes a first push unit and a second push unit.
  • the first push unit is used when a target vehicle has only real-time orders, that is, when a target vehicle is serving the corresponding passengers and no other reservation orders are accepted. Push the short-term appointment order with the start time after the real-time order to the corresponding target vehicle;
  • the second push unit is used at this time when the target vehicle not only has a real-time order, but also has one or more short-term appointment orders, the time gap between the real-time order and the first appointment order, and the appointment order Calculate the time gap between them. If there is a short-term reservation that can meet the above-mentioned time gap, push the short-term reservation to the target vehicle, or set the starting time after the last short-term reservation. The short-term appointment form is pushed to the target vehicle.
  • this embodiment provides a reservation order chain dispatching device based on real-time single-trip vehicles, which is applied to the server of the travel taxi system, specifically to obtain reservation travel orders; to obtain multiple real-time orders Itinerary vehicles; judge whether the reservation travel order is a long-term reservation order or a short-term reservation order.
  • For long-term reservation orders broadcast to multiple real-time single-trip vehicles through broadcast; use greedy algorithm for short-time reservation orders and real-time single-trip vehicles vehicles.
  • the information is optimized and calculated, and the target vehicle is obtained from multiple real-time single-trip vehicles; multiple short-term appointment orders that do not conflict with each other are sent to the target vehicle. It can be seen from the above solution that even when the current real-time single-journey vehicle has accepted the reservation travel order, the order can be accepted again, which increases the order acceptance rate, thereby improving the user experience.
  • this application uses a greedy algorithm to select the corresponding vehicle from the vehicle set as the target vehicle to dispatch the order for the corresponding short-term appointment order, instead of simply dispatching the order based on the distance to the vehicle, thereby avoiding the problem of no car to dispatch. , Improve the overall efficiency, and correspondingly improve the user's service experience. Moreover, before using the greedy algorithm for calculation, the vehicles whose models do not match and the vehicles whose drivers have made the prescribed rejection behavior are also eliminated, which effectively improves the efficiency of the optimization calculation.
  • the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the instruction device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed are a continuous order dispatching method and apparatus for an advance order based on a real-time one-way vehicle. The method and apparatus are applied to a server of a traveling taxi-hailing system. The method specifically comprises: acquiring an advance traveling order (S1); acquiring a plurality of real-time one-way vehicles (S2); determining that the advance traveling order is a long-time advance order or a short-time advance order, and for the long-time advance order, pushing same to the plurality of real-time one-way vehicles by means of broadcasting (S3); carrying out optimization calculation on the short-time advance order and vehicle information of the real-time one-way vehicles by means of a greedy algorithm, so as to obtain a target vehicle from among the plurality of real-time one-way vehicles (S4); and sending a plurality of short-time advance orders that do not conflict with each other to the target vehicle (S5). It can be seen from the above-mentioned solution that the current real-time one-way vehicle can receive other orders even if the vehicle has received an advance traveling order, such that the order receiving rate is improved, thereby improving the usage experience of a user.

Description

一种基于实时单行程车辆的预约单连环派单方法和装置Method and device for dispatching an appointment single-loop order based on a real-time single-trip vehicle 技术领域Technical field
本发明涉及网约车技术领域,特别是涉及一种基于实时单行程车辆的预约单连环派单方法和装置。The invention relates to the technical field of online car-hailing, and in particular to a method and device for dispatching a single-chain order based on a real-time single-trip vehicle.
背景技术Background technique
一般来说,出租车可以分为巡游出租汽车和网络预约出租汽车两种,巡游出租即是平时巡游在路上,即招即停为乘客提供运输服务;而网络预约出租汽车是通过网络下单接单的方式为乘客提供运输服务。网约车就是网络预约出租汽车的简称。Generally speaking, taxis can be divided into two types: cruise taxis and online booking taxis. Cruising taxis means that they are usually on the road and stop when they are called to provide transportation services for passengers; while booking taxis online is to pick up orders through the Internet. Provide transportation services for passengers in a single way. Online car-hailing is short for online car rental.
当处于上下班等高峰时段时,几乎所有车辆都处于服务状态,而对于预约出行订单这种不需即时提供服务的订单,如果相应的实时单行程车辆能够接受多个这样的订单,势必会提高预约出行订单的接单率,从而能够提高用户的服务体验。When in peak hours such as commuting, almost all vehicles are in service, and for booking travel orders that do not require immediate service, if the corresponding real-time single-trip vehicle can accept multiple such orders, it is bound to increase The order acceptance rate of booking travel orders can improve the service experience of users.
发明内容Summary of the invention
有鉴于此,本发明提供了一种基于实时单行程车辆的预约单连环派单方法和装置,以提高用户的服务体验。In view of this, the present invention provides a method and device for dispatching a single-chain order based on a real-time single-journey vehicle to improve the user's service experience.
为了解决上述问题,本发明公开了一种基于实时单行程车辆的预约单连环派单方法,应用于出行打车系统的服务器,所述预约单连环派单方法包括步骤:In order to solve the above problems, the present invention discloses a reservation single-chain dispatch method based on real-time single-trip vehicles, which is applied to a server of a travel taxi system, and the reservation single-chain dispatch method includes the steps:
获取预约出行订单;Obtain travel reservation orders;
获取多个实时单行程车辆;Acquire multiple real-time single-trip vehicles;
判断所述预约出行订单为长时预约单还是短时预约单;Determine whether the travel reservation order is a long-term reservation form or a short-term reservation form;
若所述预约出行订单为所述长时预约单,则对于所述长时预约单通过广播形式向所述多个实时单行程车辆推送,并将预设时长内没有被接单的长时预约单返回到所述服务器的订单池中;If the travel reservation order is the long-term reservation form, then the long-term reservation form will be pushed to the multiple real-time single-trip vehicles in the form of broadcast, and the long-term reservations that are not received within the preset time period will be pushed The order is returned to the order pool of the server;
若所述预约出行订单为所述短时预约单,则通过贪心算法对所述短时预约单和所述实时单行程车辆的车辆信息进行优化计算,从所述多个实时单行程车辆中得到目标车辆;If the travel reservation order is the short-term reservation order, the short-term reservation order and the vehicle information of the real-time single-trip vehicle are optimized through a greedy algorithm, and the vehicle information is obtained from the multiple real-time single-trip vehicles Target vehicle
将互相不相冲突的多个短时预约单发送至所述目标车辆。A plurality of short-term appointment orders that do not conflict with each other are sent to the target vehicle.
可选的,所述获取实时出行订单,包括:Optionally, said obtaining real-time travel orders includes:
从所述服务器的订单池中每隔预设时长拉取所述预设时长内的所有出行订单;Pull all travel orders within the preset time period from the order pool of the server every preset time period;
根据所述出行订单的时间参数从所述所有出行订单中选取出所述预约出行订单。The scheduled travel order is selected from all the travel orders according to the time parameter of the travel order.
可选的,所述获取多个实时单行程车辆,包括:Optionally, the acquiring multiple real-time single-trip vehicles includes:
根据所述预约出行订单的位置信息获取所述预设范围内所有车辆;Acquiring all vehicles within the preset range according to the location information of the travel reservation order;
根据每个所述车辆的载客状态从中选取出所述实时单行程车辆。The real-time single-stroke vehicle is selected from the passenger-carrying state of each vehicle.
可选的,所述获取多个实时单行程车辆,还包括步骤:Optionally, the acquiring multiple real-time single-trip vehicles further includes the steps:
从所述多个实时单行程车辆中剔除类型与所述短时预约单的指定车型不匹配的 实时单行程车辆。From the plurality of real-time single-trip vehicles, the real-time single-trip vehicles whose type does not match the specified vehicle type of the short-term reservation form are excluded.
可选的,所述获取多个实时单行程车辆,还包括步骤:Optionally, the acquiring multiple real-time single-trip vehicles further includes the steps:
从所述多个实时单行程车辆中剔除其司机做出预先规定的拒单行为的实时单行程车辆。From the plurality of real-time single-trip vehicles, the real-time single-trip vehicles whose drivers have made a predetermined rejection behavior are excluded.
可选的,所述将互相不相冲突的多个短时预约单发送给所述目标车辆,包括:Optionally, the sending multiple short-term appointment orders that do not conflict with each other to the target vehicle includes:
如果所述目标车辆仅存在当前实时单,则将开始时间位于所述当前实时单的订单终点时间之后的短时预约单发送给所述目标车辆;If there is only a current real-time order in the target vehicle, sending a short-term reservation order whose start time is after the order end time of the current real-time order to the target vehicle;
如果所述目标车辆存在所述当前实时单且已接受一个或多个所述短时预约单,将所需时间与所述当前实时单和已被接受的短时预约单的时间不冲突的短时预约单发送给所述目标车辆。If the target vehicle has the current real-time order and has accepted one or more of the short-term appointment orders, the required time will not conflict with the time of the current real-time order and the accepted short-term appointment order. The time reservation form is sent to the target vehicle.
可选的,所述通过贪心算法对所述短时预约单和所述实时单行程车辆的车辆信息进行优化计算,包括步骤:Optionally, the optimization calculation of the vehicle information of the short-term reservation form and the real-time single-trip vehicle through a greedy algorithm includes the steps:
构建车辆-订单矩阵,所述车辆-订单矩阵包括车辆集合和预约单集合,还包括所述车辆集合中每个实时单行程车辆与所述预约订单集合中每个短时预约单相对应的距离参数,所述距离参数为经过归一化处理的所述实时单行程车辆的当前位置与所述短时预约单的出发位置的距离的倒数;Construct a vehicle-order matrix. The vehicle-order matrix includes a vehicle set and an appointment order set, and also includes the distance between each real-time single-trip vehicle in the vehicle set and each short-term appointment order in the appointment order set A parameter, the distance parameter is the reciprocal of the distance between the current position of the real-time single-journey vehicle and the departure position of the short-term reservation order after normalization processing;
针对每个所述短时预约单,利用贪心算法从所述车辆集合中选定所述目标车辆。For each of the short-term appointment orders, the target vehicle is selected from the vehicle set by using a greedy algorithm.
一种基于实时单行程车辆的预约单连环派单装置,应用于出行打车系统的服务器,所述预约单里连环派单装置包括:A device for dispatching a single-loop order based on a real-time single-trip vehicle is applied to a server of a ride-hailing system. The device for dispatching a single-loop single-loop order in a reservation includes:
订单获取模块,被配置为获取预约出行订单;The order obtaining module is configured to obtain travel reservation orders;
车辆获取模块,被配置为获取多个实时单行程车辆;The vehicle acquisition module is configured to acquire multiple real-time single-trip vehicles;
第一推送模块,被配置为判断所述预约出行订单为长时预约单还是短时预约单;若所述预约出行订单为所述长时预约单,则对于所述长时预约单通过广播形式向所述多个实时单行程车辆推送,并将预设时长内没有被接单的长时预约单返回到所述服务器的订单池中;The first push module is configured to determine whether the scheduled travel order is a long-term reservation order or a short-term reservation order; if the scheduled travel order is the long-term reservation order, broadcast the long-term reservation order Push to the multiple real-time single-trip vehicles, and return long-term appointment orders that are not received within a preset time period to the order pool of the server;
优化计算模块,被配置为若所述预约出行订单为所述短时预约单,则通过贪心算法对所述短时预约单和所述实时单行程车辆的车辆信息进行优化计算,从所述多个实时单行程车辆中得到目标车辆;The optimization calculation module is configured to perform optimization calculations on the short-term reservation order and the vehicle information of the real-time single-trip vehicle through a greedy algorithm if the travel reservation order is the short-term reservation order, from the multiple Obtain the target vehicle from one real-time single-trip vehicle;
第二推送模块,被配置为将互相不相冲突的多个短时预约单发送至所述目标车辆。The second pushing module is configured to send multiple short-term appointment orders that do not conflict with each other to the target vehicle.
可选的,所述订单获取模块包括:Optionally, the order acquisition module includes:
第一获取单元,被配置为从所述服务器的订单池中每隔预设时长拉取所述预设时长内的所有出行订单;The first obtaining unit is configured to pull all travel orders within the preset time period from the order pool of the server every preset time period;
第一过滤单元,被配置为根据所述出行订单的时间参数从所述所有出行订单中选取出所述预约出行订单。The first filtering unit is configured to select the scheduled travel order from all travel orders according to the time parameter of the travel order.
可选的,所述车辆获取模块包括:Optionally, the vehicle acquisition module includes:
第二获取单元,被配置为根据所述预约出行订单的位置信息获取所述预设范围内所有车辆;The second acquiring unit is configured to acquire all vehicles within the preset range according to the location information of the scheduled travel order;
第二过滤单元,被配置为根据每个所述车辆的载客状态从中选取出所述实时单 行程车辆。The second filtering unit is configured to select the real-time single-stroke vehicle according to the passenger loading status of each vehicle.
可选的,所述车辆获取模块还包括:Optionally, the vehicle acquisition module further includes:
第一过滤模块,被配置为从所述多个实时单行程车辆中剔除类型与所述短时预约单的指定车型不匹配的实时单行程车辆。The first filtering module is configured to exclude, from the plurality of real-time single-trip vehicles, the real-time single-trip vehicles whose types do not match the designated vehicle type of the short-term reservation form.
可选的,所述车辆获取模块还包括:Optionally, the vehicle acquisition module further includes:
第二过滤模块,被配置为从所述多个实时单行程车辆中剔除其司机做出预先规定的拒单行为的实时单行程车辆。The second filtering module is configured to exclude, from the plurality of real-time single-trip vehicles, real-time single-trip vehicles whose drivers have made a predetermined rejection behavior.
可选的,所述第二推送模块包括:Optionally, the second pushing module includes:
第一推送单元,被配置为如所述目标车辆仅存在当前实时单,则将开始时间位于所述当前实时单的订单终点时间之后的短时预约单发送给所述目标车辆;The first pushing unit is configured to, if only the current real-time order exists in the target vehicle, send the short-term reservation order whose start time is after the order end time of the current real-time order to the target vehicle;
第二推送单元,被配置为如果所述目标车辆存在所述当前实时单且已接受一个或多个所述短时预约单,将所需时间与所述当前实时单和已被接受的短时预约单的时间不冲突的短时预约单发送给所述目标车辆。The second pushing unit is configured to, if the target vehicle has the current real-time order and has accepted one or more of the short-term reservations, compare the required time with the current real-time order and the accepted short-time order The short-term appointment form in which the time of the appointment form does not conflict is sent to the target vehicle.
从上述技术方案可以看出,本发明提供了一种基于实时单行程车辆的预约单连环派单方法和装置,该方法和装置应用于出行打车系统的服务器,具体为获取预约出行订单;获取多个实时单行程车辆;判断预约出行订单为长时预约单还是短时预约单,对于长时预约单通过广播形式向多个实时单行程车辆推送;通过贪心算法对短时预约单和实时单行程车辆的车辆信息进行优化计算,从多个实时单行程车辆中得到目标车辆;将互相不相冲突的多个短时预约单发送给目标车辆。通过上述方案可以看出,即使在当前实时单行程车辆已经接受有预约出行订单的情况下,也能将再次接单,提高了接单率,从而提高了用户的使用体验。It can be seen from the above technical solutions that the present invention provides a method and device for dispatching a single reservation order based on a real-time single-trip vehicle. The method and device are applied to the server of the travel taxi system, specifically to obtain reservation travel orders; A real-time single-trip vehicle; judge whether the reservation travel order is a long-term reservation or a short-term reservation. For long-term reservations, broadcast to multiple real-time single-trip vehicles; use a greedy algorithm for short-term reservations and real-time single-trips The vehicle information of the vehicle is optimized and calculated, and the target vehicle is obtained from multiple real-time single-trip vehicles; multiple short-term appointment orders that do not conflict with each other are sent to the target vehicle. It can be seen from the above solution that even when the current real-time single-journey vehicle has accepted the reservation travel order, the order can be accepted again, which increases the order acceptance rate, thereby improving the user experience.
另外,本申请中针对相应的短时预约单通过贪心算法从车辆集合中选择相应车辆作为目标车辆进行派单,而非简单基于与车辆的距离进行派单,从而避免了无车可派的问题,提高了全局效率,相应提高了用户的服务体验。并且,在利用贪心算法进行计算之前,还剔除了其中的车型不匹配的车辆和其司机做出规定的拒单行为的车辆,有效地提高了优化计算的效率。In addition, this application uses a greedy algorithm to select the corresponding vehicle from the vehicle set as the target vehicle to dispatch the order for the corresponding short-term appointment order, instead of simply dispatching the order based on the distance to the vehicle, thereby avoiding the problem of no car to dispatch. , Improve overall efficiency, and correspondingly improve user service experience. Moreover, before using the greedy algorithm for calculation, the vehicles whose models do not match and the vehicles whose drivers have made the prescribed rejection behavior are also eliminated, which effectively improves the efficiency of the optimization calculation.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为本申请实施例的一种基于实时单行程车辆的预约单连环派单方法的流程图;Fig. 1 is a flowchart of a method for dispatching a single-chain order based on a real-time single-trip vehicle according to an embodiment of the application;
图2为本申请实施例的一种基于实时单行程车辆的预约单连环派单装置的框图。Fig. 2 is a block diagram of a device for dispatching a single-chain order based on a real-time single-trip vehicle according to an embodiment of the application.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于 本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with 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, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
实施例一Example one
图1为本申请实施例的一种基于实时单行程车辆的预约单连环派单方法的流程图。Fig. 1 is a flow chart of a method for dispatching a single-chain order based on a real-time single-trip vehicle according to an embodiment of the application.
如图1所示,本实施例提供的预约单连环派单方法应用于出行打车系统的服务器,用于为乘客下单并向出租车辆派单提供派单方案。这里的实时单行程车辆是指属于该出行打车系统的签约车辆,且当前时刻处于服务状态的车辆,这里的车辆限于电动车辆,也可以包括混动车辆。该预约单连环派单方法具体包括如下步骤:As shown in FIG. 1, the method for dispatching orders in a chain of reservations provided by this embodiment is applied to a server of a travel taxi system, and is used to place orders for passengers and provide an order dispatching solution to taxis. The real-time single-trip vehicle here refers to a vehicle that belongs to the contracted vehicle of the ride-hailing system and is in service at the current moment. The vehicle here is limited to electric vehicles, and may also include hybrid vehicles. The method for dispatching an appointment order chain specifically includes the following steps:
S1、获取预约出行订单。S1. Obtain an appointment travel order.
这里的预约出行订单是指需要提供租车服务的乘客当前发出并需要在将来得到租车服务的出行订单。乘客在发出相应订单时一般通移动终端向本出行打车系统的服务器发出的电子信息。该预约出行订单中会包括相应的位置信息,该位置信息会表明发出该出行订单的乘客的具体位置。The travel reservation order here refers to a travel order that passengers who need to provide car rental services currently issue and need to get car rental services in the future. When passengers place corresponding orders, they usually use the mobile terminal to send electronic information to the server of the ride-hailing system. The reservation travel order will include corresponding location information, and the location information will indicate the specific location of the passenger who issued the travel order.
由于服务器所接收到的出行订单包括实时出行订单和预约出行订单,因此这里获取预约出行订单具体通过以下操作实现:Since the travel orders received by the server include real-time travel orders and scheduled travel orders, obtaining the scheduled travel orders here is implemented through the following operations:
首先从上述服务器的订单池中每隔预设时长、如每隔2秒拉取在这段时间内所产生的所有出行订单,其中会包括实时出行订单和预约出行订单,对于具体的出行订单究竟为实时出行订单还是预约出行订单可以通订单本身的附加信息或者订单本身类型确定;当拉取到此段时间内所有出行订单后,根据出行订单中的附加信息或者订单本身类型进行判断,通过判断从中选取出所有的预约出行订单。First, pull all travel orders generated during this period from the order pool of the above server at a preset time interval, such as every 2 seconds, which will include real-time travel orders and scheduled travel orders. For specific travel orders, Whether it is a real-time travel order or an appointment travel order can be determined by the additional information of the order itself or the type of the order itself; when all travel orders within this period of time are pulled, the judgment is made based on the additional information in the travel order or the type of the order itself. Select all scheduled travel orders from it.
S2、获取多个实时单行程车辆。S2. Acquire multiple real-time single-trip vehicles.
即在确定发出该预约出行订单的位置信息的情况下,根据该位置信息获取以该位置信息为根据的预设范围内的实时行程车辆,即正在为乘客提供服务的车辆。该预设范围可以根据实际情况确定,例如以该位置信息为基本点的一个街区、一定空间尺度内的范围或者一个城市等。That is, in the case of determining the location information for issuing the travel reservation order, obtain real-time traveling vehicles within a preset range based on the location information according to the location information, that is, vehicles that are serving passengers. The preset range may be determined according to actual conditions, such as a block with the location information as a basic point, a range within a certain spatial scale, or a city.
在获取多个实时单行程车辆的过程中,首先根据该位置信息获取该预设范围内所有车辆,即获取该预设范围内所有与该出行打车系统签约的车辆;然后根据每个车辆的服务状态进行判断,从中选取出实时单行程车辆。In the process of obtaining multiple real-time single-trip vehicles, first obtain all the vehicles within the preset range according to the location information, that is, obtain all the vehicles within the preset range that have contracted with the ride-hailing system; and then according to the service of each vehicle The status is judged, and the real-time single-stroke vehicle is selected from it.
S3、对长短时预约订单进行判断,将长时预约单进行广播推送。S3. Judge the long- and short-term appointment orders, and broadcast the long-term appointment orders.
另外,本申请中获取实时单行程车辆还包括如下步骤,对下面步骤的排序不代表步骤的先后顺序。In addition, the acquisition of real-time single-trip vehicles in this application also includes the following steps, and the order of the following steps does not represent the order of the steps.
S01、剔除类型与预约出行订单指定车型不匹配的实时单行程车辆。S01. Eliminate real-time single-trip vehicles whose type does not match the specified vehicle type of the reservation travel order.
一般来说,有时会乘客所发出的出行订单中会提供自己所需的车型,即包括了车型要求,如果不能满足乘客这一需求则会降低乘客的使用体验,因此,当确定全部的实时单行程车辆后,根据出行订单中指定车型对所有实时单行程车辆进行过滤,如果某个或某些车辆与该指定车型不匹配,则将其予以剔除,然后再进行优化计算,从而可以避免乘客明确拒绝的车型参与计算。Generally speaking, sometimes the passenger’s travel order will provide the vehicle type he needs, that is, the vehicle type requirement is included. If the passenger’s demand cannot be met, the passenger’s experience will be reduced. Therefore, when confirming all real-time orders After the itinerary vehicle, filter all real-time single-trip vehicles according to the specified vehicle type in the travel order. If one or some vehicles do not match the specified vehicle type, it will be removed and then optimized calculations will be performed to avoid the passengers from clarifying The rejected models participate in the calculation.
S02、剔除其司机做出预先规定的拒单行为的实时单行程车辆。S02. Exclude real-time single-trip vehicles whose drivers have made pre-determined rejections.
即在确定全部的实时单行程车辆后,如果其中有车辆的司机曾做出预先规定的拒单行为、如上一次无理由拒单或者在一定时间内做出限定次数的拒单行为,此时可以将该车辆予以剔除,然后再进行优化计算,从而可以避免有问题车辆被推送预约出行订单而影响乘客的用车。That is, after determining all real-time single-trip vehicles, if the driver of the vehicle has made a predetermined refusal, such as the previous refusal without reason or made a limited number of refusals within a certain period of time, you can The vehicle is eliminated, and then optimized calculations are performed, so as to avoid the problematic vehicle being pushed to the reservation travel order and affecting the passenger's car.
即在确定实时单行程车辆后,通过对预约时间信息的判断确定相应预约出行订单为长时预约单还是短时预约单,两者划分的根据为预约时间信息所指向的预约用车时间距离当前时刻的长短,即通过预设的时间阈值对长短时预约单进行判定,该时间阈值可以为一天或一周,按此原则所确定的时间阈值均在本申请的保护范围之内。That is, after determining the real-time single-trip vehicle, determine whether the corresponding reservation travel order is a long-term reservation or a short-term reservation by judging the reservation time information. The two are divided according to the reservation time information pointed to by the reservation time information. The length of the time, that is, the length of the appointment order is determined by the preset time threshold. The time threshold can be one day or one week. The time threshold determined according to this principle is within the protection scope of this application.
对于其中的长时预约单,因为与实时单行程车辆的当前订单状态不会产生任何冲突,因此可以通过广播形式向所有实时单行程车辆进行推送,实时单行程车辆的司机可以随时接单或拒单。For the long-term appointment order, because there will be no conflict with the current order status of the real-time single-trip vehicle, it can be pushed to all real-time single-trip vehicles through broadcast, and the driver of the real-time single-trip vehicle can accept or reject the order at any time single.
另外,对于被广播的长时预约单,如果在预设时长内没有被接单,例如1秒、10秒、60秒、100秒或者上述数值之间的时长或者其他时长,则将该没有被接单的长时预约单返回给服务器的订单池。In addition, for the broadcasted long-term reservation order, if the order is not received within the preset time period, such as 1 second, 10 seconds, 60 seconds, 100 seconds, or the duration between the above values or other durations, it will not be received. The long-term appointment order received is returned to the order pool of the server.
S4、根据贪心算法匹配出目标车辆。S4. Match the target vehicle according to the greedy algorithm.
即根据贪心算法对预约出行订单和选定的实时单行程车辆的车辆信息进行优化计算,从多个实时单行程车辆中找出与该短时预约单最匹配的实时单行程车辆作为该目标车辆。That is, according to the greedy algorithm, the reservation travel order and the selected real-time single-trip vehicle vehicle information are optimized, and the real-time single-trip vehicle that best matches the short-term reservation order is found from multiple real-time single-trip vehicles as the target vehicle .
具体是指,首先构建车辆-订单矩阵,在构建该车辆-订单矩阵时,首先获取多个短时预约单,从而构成预约单集合O,针对其中的每个短时预约单o,根据其出发位置距离的多个实时单行程车辆d的当前位置进行选择,从而得到候选的车辆集合D。将预约单集合和车辆集合作为两个维度构成该车辆-订单矩阵,该矩阵中还包括每个短时预约单的出发位置与每个实时单行程车辆的当前位置的距离的倒数,且在得到多个倒数后对其进行归一化处理作为相应短时预约单与相应实时单行程车辆的距离参数v,具体如表1所示。Specifically, it means that the vehicle-order matrix is first constructed. When constructing the vehicle-order matrix, multiple short-term appointment orders are first obtained to form an appointment order set O. For each short-term appointment order o, according to its departure The current positions of multiple real-time single-stroke vehicles d based on the position distance are selected to obtain the candidate vehicle set D. The reservation form set and the vehicle set are taken as two dimensions to form the vehicle-order matrix. The matrix also includes the reciprocal of the distance between the departure position of each short-term reservation form and the current position of each real-time single-trip vehicle. After multiple countdowns, normalize them as the distance parameter v between the corresponding short-term reservation and the corresponding real-time single-trip vehicle, as shown in Table 1.
 To d1d1 d2d2 d3d3 d4d4 d5d5 d6d6
o1o1 v=0.2v=0.2 0.50.5 0.60.6 0.80.8 0.70.7 0.80.8
o2o2 0.10.1 0.60.6 0.70.7 0.70.7 0.20.2 0.20.2
o3o3 0.60.6 0.40.4 0.50.5 0.30.3 0.10.1 0.70.7
表1Table 1
在得到上述车辆-订单矩阵后,针对每个短时预约单,利用贪心算法从车辆集合中进行选择,即利用贪心算法对相应短时预约单与相应实时单行程车辆以及两者之间的距离参数进行计算,得到目标车辆。After obtaining the above vehicle-order matrix, for each short-term reservation, use the greedy algorithm to select from the vehicle collection, that is, use the greedy algorithm to compare the corresponding short-term reservation and the corresponding real-time single-trip vehicle and the distance between the two The parameters are calculated to obtain the target vehicle.
具体来说,先从o1订单开始筛选,选中d4(0.8),d6(0.8);然后o2继续选择,选中d3(0.7),d4(0.7),但是d4已经被o1给选中了,这时候再选择d2(0.6);最后o3选择,选择d1(0.6),d6(0.7),没有冲突。Specifically, first start filtering from the order of o1, select d4(0.8), d6(0.8); then continue to select o2, select d3(0.7), d4(0.7), but d4 has been selected by o1, and then Choose d2(0.6); finally choose o3, choose d1(0.6), d6(0.7), there is no conflict.
贪心算法是指所求问题的整体最优解可以通过一系列局部最优的选择,即贪心选择来达到。这是贪心算法可行的第一个基本要素,也是贪心算法与动态规划算法的主要区别。Greedy algorithm means that the overall optimal solution of the problem can be achieved through a series of local optimal choices, namely greedy choices. This is the first basic element for the greedy algorithm to be feasible, and it is also the main difference between the greedy algorithm and the dynamic programming algorithm.
贪心算法是采用从顶向下、以迭代的方法做出相继选择,每做一次贪心选择就将 所求问题简化为一个规模更小的子问题。对于一个具体问题,要确定它是否具有贪心选择的性质,我们必须证明每一步所作的贪心选择最终能得到问题的最优解。Greedy algorithm uses a top-down, iterative method to make successive choices. Every time a greedy choice is made, the problem is reduced to a smaller sub-problem. For a specific problem, to determine whether it has the nature of greedy choice, we must prove that the greedy choice made at each step can finally get the optimal solution of the problem.
通常可以首先证明问题的一个整体最优解,是从贪心选择开始的,而且作了贪心选择后,原问题简化为一个规模更小的类似子问题。然后,用数学归纳法证明,通过每一步贪心选择,最终可得到问题的一个整体最优解。Usually it can be proved that an overall optimal solution of the problem starts from the greedy choice, and after making the greedy choice, the original problem is reduced to a similar sub-problem on a smaller scale. Then, use mathematical induction to prove that through each step of greedy selection, you can finally get an overall optimal solution to the problem.
S5、将不相冲突的短时预约单发送至目标车辆。S5. Send a non-conflicting short-term appointment form to the target vehicle.
在确定目标车辆后,将多个不相冲突的短时预约单发送至该目标车辆,以便该目标车辆为发送该订单的乘客服务。这里不相冲突是指短时预约单的时间不相冲突。这里发送至目标车辆实际是指将该实时出行订单发送至该目标车辆上的移动设备,例如司机所持的手机或车辆的车机等。After the target vehicle is determined, multiple non-conflicting short-term appointment orders are sent to the target vehicle, so that the target vehicle serves the passenger who sent the order. Non-conflict here means that the time of the short-term appointment order does not conflict. Here, sending to the target vehicle actually refers to sending the real-time travel order to the mobile device on the target vehicle, such as the mobile phone held by the driver or the car machine of the vehicle.
具体来说,首先,如果一个目标车辆仅有实时单,即正在为相应的乘客提供服务且没有接受的其他预约单,此时将起始时间位于该实时单之后的短时预约单推送给相应目标车辆;Specifically, first, if a target vehicle only has a real-time order, that is, it is serving the corresponding passengers and has not accepted other reservations, then the short-term reservations whose starting time is after the real-time order are pushed to the corresponding Target vehicle
其次,如果此时不仅有实时单,还存在一个或多个短时预约单,则对实时单与排在第一位的预约单之间的时间空隙、以及对预约单之间的时间空隙进行计算,如果此时有能够满足上述时间空隙的短时预约单,则将该短时预约单推送给该目标车辆,或者将起始时间位于最后一个短时预约单之后的短时预约单推送给该目标车辆。Secondly, if there are not only real-time orders, but also one or more short-term appointment orders, the time gap between the real-time order and the first appointment order, and the time gap between the appointment orders Calculate, if there is a short-term appointment order that can meet the above time gap at this time, the short-term appointment order will be pushed to the target vehicle, or the short-term appointment order whose starting time is after the last short-term appointment order will be pushed to The target vehicle.
从上述技术方案可以看出,本实施例提供了一种基于实时单行程车辆的预约单连环派单方法,该方法应用于出行打车系统的服务器,具体为获取预约出行订单;获取多个实时单行程车辆;判断预约出行订单为长时预约单还是短时预约单,对于长时预约单通过广播形式向多个实时单行程车辆推送;通过贪心算法对短时预约单和实时单行程车辆的车辆信息进行优化计算,从多个实时单行程车辆中得到目标车辆;将互相不相冲突的多个短时预约单发送给目标车辆。通过上述方案可以看出,即使在当前实时单行程车辆已经接受有预约出行订单的情况下,也能将再次接单,提高了接单率,从而提高了用户的使用体验。It can be seen from the above technical solutions that this embodiment provides a method for dispatching a single reservation order based on real-time single-trip vehicles. The method is applied to the server of the travel taxi system, specifically to obtain reservation travel orders; to obtain multiple real-time orders. Itinerary vehicles; judge whether the reservation travel order is a long-term reservation order or a short-term reservation order. For long-term reservation orders, broadcast to multiple real-time single-trip vehicles through broadcast; use greedy algorithm for short-time reservation orders and real-time single-trip vehicles vehicles The information is optimized and calculated, and the target vehicle is obtained from multiple real-time single-trip vehicles; multiple short-term appointment orders that do not conflict with each other are sent to the target vehicle. It can be seen from the above solution that even when the current real-time single-journey vehicle has accepted the reservation travel order, the order can be accepted again, which increases the order acceptance rate, thereby improving the user experience.
另外,本申请中针对相应的短时预约单通过贪心算法从车辆集合中选择相应车辆作为目标车辆进行派单,而非简单基于与车辆的距离进行派单,从而避免了无车可派的问题,提高了全局效率,相应提高了用户的服务体验。并且,在利用贪心算法进行计算之前,还剔除了其中的车型不匹配的车辆和其司机做出规定的拒单行为的车辆,有效地提高了优化计算的效率。In addition, this application uses a greedy algorithm to select the corresponding vehicle from the vehicle set as the target vehicle to dispatch the order for the corresponding short-term appointment order, instead of simply dispatching the order based on the distance to the vehicle, thereby avoiding the problem of no car to dispatch. , Improve the overall efficiency, and correspondingly improve the user's service experience. Moreover, before using the greedy algorithm for calculation, the vehicles whose models do not match and the vehicles whose drivers have made the prescribed rejection behavior are also eliminated, which effectively improves the efficiency of the optimization calculation.
实施例二Example two
图2为本申请实施例的一种基于实时单行程车辆的预约单连环派单装置的框图。FIG. 2 is a block diagram of a device for dispatching a single-chain order based on a real-time single-trip vehicle according to an embodiment of the application.
如图2所示,本实施例提供的预约单连环派单装置应用于出行打车系统的服务器,可以理解为实际的电子设备或者服务器的功能模块,用于为乘客下单并向出租车辆派单提供派单方案。这里的实时单行程车辆是指属于该出行打车系统的签约车辆,且当前时刻处于服务状态。该预约单连环派单装置具体包括订单获取模块10、车辆获取模块20、第一推送模块30、优化计算模块40和第二推送模块50。As shown in Figure 2, the reservation order chain dispatching device provided by this embodiment is applied to the server of the ride-hailing system, which can be understood as the actual electronic device or the functional module of the server, which is used to place orders for passengers and dispatch orders to taxis Provide dispatch plan. The real-time single-trip vehicle here refers to the contracted vehicle that belongs to the ride-hailing system for the trip and is currently in service. The device for dispatching an appointment order chain specifically includes an order acquisition module 10, a vehicle acquisition module 20, a first pushing module 30, an optimization calculation module 40, and a second pushing module 50.
订单获取模块10用于获取预约出行订单。The order obtaining module 10 is used to obtain a travel reservation order.
这里的预约出行订单是指需要提供租车服务的乘客当前发出并需要在将来得到 租车服务的出行订单。乘客在发出相应订单时一般通移动终端向本出行打车系统的服务器发出的电子信息。该预约出行订单中会包括相应的位置信息,该位置信息会表明发出该出行订单的乘客的具体位置。The travel reservation order here refers to a travel order that is currently issued by passengers who need to provide car rental services and needs to get car rental services in the future. When passengers place corresponding orders, they generally use the mobile terminal to send electronic information to the server of the ride-hailing system. The reservation travel order will include corresponding location information, and the location information will indicate the specific location of the passenger who issued the travel order.
由于服务器所接收到的出行订单包括实时出行订单和预约出行订单,因此这里的订单获取模块具体包括第一获取单元和第一过滤单元。Since the travel orders received by the server include real-time travel orders and scheduled travel orders, the order acquisition module here specifically includes a first acquisition unit and a first filter unit.
第一获取单元用于从上述服务器的订单池中每隔预设时长、如每隔2秒拉取在这段时间内所产生的所有出行订单,其中会包括实时出行订单和预约出行订单,对于具体的出行订单究竟为实时出行订单还是预约出行订单可以通过预约订单本身的附加信息或者订单本身类型确定;第一过滤单元用于当第一获取单元拉取到此段时间内所有出行订单后,根据出行订单中的附加信息或者订单本身类型进行判断,通过判断从中选取出所有的预约出行订单。The first acquisition unit is used to pull all travel orders generated during this period of time from the order pool of the server at a preset time interval, such as every 2 seconds, including real-time travel orders and scheduled travel orders. Whether the specific travel order is a real-time travel order or a reservation travel order can be determined by the additional information of the reservation order itself or the type of the order itself; the first filter unit is used when the first acquisition unit pulls all travel orders within this period of time, Judge based on the additional information in the travel order or the type of the order itself, and select all scheduled travel orders from the judgment.
车辆获取模块20用于根据位置信息获取预设范围内多个实时单行程车辆。The vehicle acquisition module 20 is configured to acquire multiple real-time single-stroke vehicles within a preset range according to location information.
即在确定发出该预约出行订单的位置信息的情况下,根据该位置信息获取以该位置信息为根据的预设范围内的实时单行程车辆,即正在为乘客提供服务的车辆。该预设范围可以根据实际情况确定,例如以该位置信息为基本点的一个街区、一定空间尺度内的范围或者一个城市等。That is, in the case where the location information for issuing the travel reservation order is determined, a real-time single-trip vehicle within a preset range based on the location information is obtained according to the location information, that is, a vehicle that is serving passengers. The preset range may be determined according to actual conditions, such as a block with the location information as a basic point, a range within a certain spatial scale, or a city.
该模块包括第二获取单元和第二过滤单元,在获取多个实时单行程车辆的过程中,第二获取单元用于根据该位置信息获取该预设范围内所有车辆,即获取该预设范围内所有与该出行打车系统签约的车辆;第二过滤单元用于根据每个车辆的服务状态进行判断,从中选取出实时单行程车辆。The module includes a second acquiring unit and a second filtering unit. In the process of acquiring multiple real-time single-trip vehicles, the second acquiring unit is used to acquire all vehicles within the preset range according to the location information, that is, to acquire the preset range All the vehicles contracted with the ride-hailing system; the second filter unit is used to judge according to the service status of each vehicle, and select real-time single-trip vehicles from it.
另外,本申请中车辆获取模块还包括第三过滤单元和/或第四过滤单元。In addition, the vehicle acquisition module in this application further includes a third filter unit and/or a fourth filter unit.
第三过滤单元用于在优化计算模块根据贪心算法进行计算之前,剔除类型与预约出行订单指定车型不匹配的实时单行程车辆。The third filtering unit is used to eliminate real-time single-trip vehicles whose type does not match the specified vehicle type of the reserved travel order before the optimization calculation module performs calculation according to the greedy algorithm.
一般来说,有时会乘客所发出的出行订单中会提供自己所需的车型,即包括了车型要求,如果不能满足乘客这一需求则会降低乘客的使用体验,因此,当确定全部的实时单行程车辆后,根据出行订单中指定车型对所有实时单行程车辆进行过滤,如果某个或某些车辆与该指定车型不匹配,则将其予以剔除,然后再进行优化计算,从而可以避免乘客明确拒绝的车型参与计算。Generally speaking, sometimes the passenger’s travel order will provide the vehicle type he needs, that is, the vehicle type requirement is included. If the passenger’s demand cannot be met, the passenger’s experience will be reduced. Therefore, when confirming all real-time orders After the itinerary vehicle, filter all real-time single-trip vehicles according to the specified vehicle type in the travel order. If one or some vehicles do not match the specified vehicle type, it will be removed and then optimized calculations will be performed to avoid the passengers from clarifying The rejected models participate in the calculation.
第四过滤单元用于在优化计算模块根据贪心算法进行计算之前,剔除其司机发出拒单信息的实时单行程车辆。The fourth filtering unit is used to eliminate real-time single-trip vehicles whose drivers have issued rejection information before the optimization calculation module performs calculations according to the greedy algorithm.
即在确定全部的实时单行程车辆后,如果其中有车辆的司机有拒单历史、如上一次拒单或者在一定时间内做出限定次数的拒单行为,此时可以将该车辆予以剔除,然后再进行优化计算,从而可以避免有问题车辆被推送预约出行订单而影响乘客的用车。That is, after determining all real-time single-trip vehicles, if the driver of the vehicle has a history of rejection, such as the last rejection or a limited number of rejections within a certain period of time, the vehicle can be removed at this time, and then Optimized calculations are carried out to prevent problematic vehicles from being pushed to the scheduled travel order and affecting the use of passengers.
第一推送模块30用于对长短时预约订单进行判断,将长时预约单进行广播推送。The first push module 30 is used for judging the long- and short-term appointment orders, and broadcast and push the long-term appointment orders.
即在确定实时单行程车辆后,通过对预约时间信息的判断确定相应预约出行订单为长时预约单还是短时预约单,两者划分的根据为预约时间信息所指向的预约用车时间距离当前时刻的长短,即通过预设的时间阈值对长短时预约单进行判定,该时间阈值可以为一天或一周,按此原则所确定的时间阈值均在本申请的保护范围之内。That is, after determining the real-time single-trip vehicle, determine whether the corresponding reservation travel order is a long-term reservation or a short-term reservation by judging the reservation time information. The two are divided according to the reservation time information pointed to by the reservation time information. The length of the time, that is, the length of the appointment order is determined by the preset time threshold. The time threshold can be one day or one week. The time threshold determined according to this principle is within the protection scope of this application.
对于其中的长时预约单,因为与实时单行程车辆的当前订单状态不会产生任何 冲突,因此可以通过广播形式向所有实时单行程车辆进行推送,实时单行程车辆的司机可以随时接单或拒单。For the long-term appointment order, because there will be no conflict with the current order status of the real-time single-trip vehicle, it can be pushed to all real-time single-trip vehicles through broadcast, and the driver of the real-time single-trip vehicle can accept or reject the order at any time single.
另外,对于被广播的长时预约单,如果在预设时长内没有被接单,例如1秒、10秒、60秒、100秒或者上述数值之间的时长或者其他时长,则将该没有被接单的长时预约单返回给服务器的订单池。In addition, for the broadcasted long-term reservation order, if the order is not received within the preset time period, such as 1 second, 10 seconds, 60 seconds, 100 seconds, or the duration between the above values or other durations, it will not be received. The long-term appointment order received is returned to the order pool of the server.
优化计算模块40用于根据贪心算法进行计算,得到目标车辆。The optimization calculation module 40 is used for calculating according to the greedy algorithm to obtain the target vehicle.
即根据贪心算法对预约出行订单和选定的实时单行程车辆的车辆信息进行优化计算,从多个实时单行程车辆中找出与该实时出行订单最匹配的实时单行程车辆作为该目标车辆。That is, according to the greedy algorithm, the reservation travel order and the selected real-time single-trip vehicle information are optimized, and the real-time single-trip vehicle that best matches the real-time single-trip vehicle is found as the target vehicle from multiple real-time single-trip vehicles.
第二推送模块50用于依次将不相冲突的短时预约单发送至目标车辆。The second pushing module 50 is used to sequentially send non-conflicting short-term appointment orders to the target vehicle.
在确定目标车辆后,依次将多个不相冲突的短时预约单发送至该目标车辆,以便该目标车辆为发送该订单的乘客服务。这里不相冲突是指短时预约单的时间不相冲突。这里发送至目标车辆实际是指将该实时出行订单发送至该目标车辆上的移动设备,例如司机所持的手机等。After the target vehicle is determined, a plurality of non-conflicting short-term appointment orders are sent to the target vehicle in turn, so that the target vehicle serves the passenger who sent the order. Non-conflict here means that the time of the short-term appointment order does not conflict. Here, sending to the target vehicle actually refers to sending the real-time travel order to the mobile device on the target vehicle, such as a mobile phone held by the driver.
具体来说,该模块包括第一推送单元和第二推送单元,第一推送单元用于当一个目标车辆仅有实时单,即正在为相应的乘客提供服务且没有接受的其他预约单时,此时将起始时间位于该实时单之后的短时预约单推送给相应目标车辆;Specifically, the module includes a first push unit and a second push unit. The first push unit is used when a target vehicle has only real-time orders, that is, when a target vehicle is serving the corresponding passengers and no other reservation orders are accepted. Push the short-term appointment order with the start time after the real-time order to the corresponding target vehicle;
第二推送单元用于此时目标车辆不仅有实时单,还存在一个或多个短时预约单时,则对实时单与排在第一位的预约单之间的时间空隙、以及对预约单之间的时间空隙进行计算,如果此时有能够满足上述时间空隙的短时预约单,则将该短时预约单推送给该目标车辆,或者将起始时间位于最后一个短时预约单之后的短时预约单推送给该目标车辆。The second push unit is used at this time when the target vehicle not only has a real-time order, but also has one or more short-term appointment orders, the time gap between the real-time order and the first appointment order, and the appointment order Calculate the time gap between them. If there is a short-term reservation that can meet the above-mentioned time gap, push the short-term reservation to the target vehicle, or set the starting time after the last short-term reservation. The short-term appointment form is pushed to the target vehicle.
从上述技术方案可以看出,本实施例提供了一种基于实时单行程车辆的预约单连环派单装置,该装置应用于出行打车系统的服务器,具体为获取预约出行订单;获取多个实时单行程车辆;判断预约出行订单为长时预约单还是短时预约单,对于长时预约单通过广播形式向多个实时单行程车辆推送;通过贪心算法对短时预约单和实时单行程车辆的车辆信息进行优化计算,从多个实时单行程车辆中得到目标车辆;将互相不相冲突的多个短时预约单发送给目标车辆。通过上述方案可以看出,即使在当前实时单行程车辆已经接受有预约出行订单的情况下,也能将再次接单,提高了接单率,从而提高了用户的使用体验。It can be seen from the above technical solutions that this embodiment provides a reservation order chain dispatching device based on real-time single-trip vehicles, which is applied to the server of the travel taxi system, specifically to obtain reservation travel orders; to obtain multiple real-time orders Itinerary vehicles; judge whether the reservation travel order is a long-term reservation order or a short-term reservation order. For long-term reservation orders, broadcast to multiple real-time single-trip vehicles through broadcast; use greedy algorithm for short-time reservation orders and real-time single-trip vehicles vehicles The information is optimized and calculated, and the target vehicle is obtained from multiple real-time single-trip vehicles; multiple short-term appointment orders that do not conflict with each other are sent to the target vehicle. It can be seen from the above solution that even when the current real-time single-journey vehicle has accepted the reservation travel order, the order can be accepted again, which increases the order acceptance rate, thereby improving the user experience.
另外,本申请中针对相应的短时预约单通过贪心算法从车辆集合中选择相应车辆作为目标车辆进行派单,而非简单基于与车辆的距离进行派单,从而避免了无车可派的问题,提高了全局效率,相应提高了用户的服务体验。并且,在利用贪心算法进行计算之前,还剔除了其中的车型不匹配的车辆和其司机做出规定的拒单行为的车辆,有效地提高了优化计算的效率。In addition, this application uses a greedy algorithm to select the corresponding vehicle from the vehicle set as the target vehicle to dispatch the order for the corresponding short-term appointment order, instead of simply dispatching the order based on the distance to the vehicle, thereby avoiding the problem of no car to dispatch. , Improve the overall efficiency, and correspondingly improve the user's service experience. Moreover, before using the greedy algorithm for calculation, the vehicles whose models do not match and the vehicles whose drivers have made the prescribed rejection behavior are also eliminated, which effectively improves the efficiency of the optimization calculation.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机 可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present invention are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing terminal equipment to generate a machine, so that instructions executed by the processor of the computer or other programmable data processing terminal equipment A device for realizing the functions specified in one flow or multiple flows in the flowchart and/or one block or multiple blocks in the block diagram is generated.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The instruction device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to produce computer-implemented processing, so that the computer or other programmable terminal equipment The instructions executed above provide steps for implementing functions specified in one or more processes in the flowchart and/or one or more blocks in the block diagram.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities Or there is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also those that are not explicitly listed. Other elements listed, or also include elements inherent to this process, method, article, or terminal device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article or terminal device that includes the element.
以上对本发明所提供的技术方案进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The technical solutions provided by the present invention are described in detail above, and specific examples are used in this article to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; At the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as limiting the present invention.

Claims (13)

  1. 一种基于实时单行程车辆的预约单连环派单方法,应用于出行打车系统的服务器,其特征在于,所述预约单连环派单方法包括步骤:A reservation single-chain dispatch method based on real-time single-journey vehicles, applied to a server of a travel taxi system, is characterized in that the reservation single-chain dispatch method includes the steps:
    获取预约出行订单;Obtain travel reservation orders;
    获取多个实时单行程车辆;Acquire multiple real-time single-trip vehicles;
    判断所述预约出行订单为长时预约单还是短时预约单;Determine whether the travel reservation order is a long-term reservation form or a short-term reservation form;
    若所述预约出行订单为所述长时预约单,则对于所述长时预约单通过广播形式向所述多个实时单行程车辆推送,并将预设时长内没有被接单的长时预约单返回到所述服务器的订单池中;If the travel reservation order is the long-term reservation form, then the long-term reservation form will be pushed to the multiple real-time single-trip vehicles in the form of broadcast, and the long-term reservations that are not received within the preset time period will be pushed The order is returned to the order pool of the server;
    若所述预约出行订单为所述短时预约单,则通过贪心算法对所述短时预约单和所述实时单行程车辆的车辆信息进行优化计算,从所述多个实时单行程车辆中得到目标车辆;If the travel reservation order is the short-term reservation order, the short-term reservation order and the vehicle information of the real-time single-trip vehicle are optimized through a greedy algorithm, and the vehicle information is obtained from the multiple real-time single-trip vehicles Target vehicle
    将互相不相冲突的多个短时预约单发送至所述目标车辆。A plurality of short-term appointment orders that do not conflict with each other are sent to the target vehicle.
  2. 如权利要求1所述的预约单连环派单方法,其特征在于,所述获取实时出行订单,包括:The method for dispatching an appointment order chain according to claim 1, wherein said obtaining a real-time travel order comprises:
    从所述服务器的订单池中每隔预设时长拉取所述预设时长内的所有出行订单;Pull all travel orders within the preset time period from the order pool of the server every preset time period;
    根据所述出行订单的时间参数从所述所有出行订单中选取出所述预约出行订单。The scheduled travel order is selected from all the travel orders according to the time parameter of the travel order.
  3. 如权利要求1所述的预约单连环派单方法,其特征在于,所述获取多个实时单行程车辆,包括:The method for dispatching an appointment and a chain of orders according to claim 1, wherein said acquiring multiple real-time single-trip vehicles comprises:
    根据所述预约出行订单的位置信息获取所述预设范围内所有车辆;Acquiring all vehicles within the preset range according to the location information of the travel reservation order;
    根据每个所述车辆的载客状态从中选取出所述实时单行程车辆。The real-time single-stroke vehicle is selected from the passenger-carrying state of each vehicle.
  4. 如权利要求3所述的预约单连环派单方法,其特征在于,所述获取多个实时单行程车辆,还包括步骤:The method for dispatching an appointment and a chain of orders according to claim 3, wherein said acquiring multiple real-time single-trip vehicles further comprises the steps of:
    从所述多个实时单行程车辆中剔除类型与所述短时预约单的指定车型不匹配的实时单行程车辆。A real-time single-trip vehicle whose type does not match the specified model of the short-term reservation form is excluded from the plurality of real-time single-trip vehicles.
  5. 如权利要求3所述的预约单连环派单方法,其特征在于,所述获取多个实时单行程车辆,还包括步骤:The method for dispatching an appointment and a chain of orders according to claim 3, wherein said acquiring multiple real-time single-trip vehicles further comprises the steps of:
    从所述多个实时单行程车辆中剔除其司机做出预先规定的拒单行为的实时单行程车辆。From the plurality of real-time single-trip vehicles, the real-time single-trip vehicles whose drivers have made a predetermined rejection behavior are excluded.
  6. 如权利要求1所述的预约单连环派单方法,其特征在于,所述将互相不相冲突的多个短时预约单发送给所述目标车辆,包括:The method for dispatching reservations in a chain of claim 1, wherein the sending a plurality of short-term reservations that do not conflict with each other to the target vehicle comprises:
    如所述目标车辆仅存在当前实时单,则将开始时间位于所述当前实时单的订单终点时间之后的短时预约单发送给所述目标车辆;If there is only a current real-time order in the target vehicle, sending the short-term reservation order whose start time is after the order end time of the current real-time order to the target vehicle;
    如果所述目标车辆存在所述当前实时单且已接受一个或多个所述短时预约单,将所需时间与所述当前实时单和已被接受的短时预约单的时间不冲突的短时预约单发送给所述目标车辆。If the target vehicle has the current real-time order and has accepted one or more of the short-term appointment orders, the required time will not conflict with the time of the current real-time order and the accepted short-term appointment order. The time reservation form is sent to the target vehicle.
  7. 如权利要求1所述的预约单连环派单方法,其特征在于,所述通过贪心算法对所述短时预约单和所述实时单行程车辆的车辆信息进行优化计算,包括步骤:The method for dispatching an appointment order chain according to claim 1, wherein the optimization calculation of the short-term appointment order and the vehicle information of the real-time single-trip vehicle through a greedy algorithm comprises the steps of:
    构建车辆-订单矩阵,所述车辆-订单矩阵包括车辆集合和预约单集合,还包括所述车辆集合中每个实时单行程车辆与所述预约订单集合中每个短时预约单相对应的距离参数,所述距离参数为经过归一化处理的所述实时单行程车辆的当前位置与所述短时预约单的 出发位置的距离的倒数;Construct a vehicle-order matrix. The vehicle-order matrix includes a vehicle set and an appointment order set, and also includes the distance between each real-time single-trip vehicle in the vehicle set and each short-term appointment order in the appointment order set A parameter, the distance parameter is the reciprocal of the distance between the current position of the real-time single-journey vehicle and the departure position of the short-term reservation order after normalization processing;
    针对每个所述短时预约单,利用贪心算法从所述车辆集合中选定所述目标车辆。For each of the short-term appointment orders, the target vehicle is selected from the vehicle set by using a greedy algorithm.
  8. 一种基于实时单行程车辆的预约单连环派单装置,应用于出行打车系统的服务器,其特征在于,所述预约单派单装置包括:A reservation single-chain dispatching device based on a real-time single-trip vehicle, applied to a server of a travel taxi system, characterized in that the reservation dispatching device includes:
    订单获取模块,被配置为获取预约出行订单;The order obtaining module is configured to obtain travel reservation orders;
    车辆获取模块,被配置为获取多个实时单行程车辆;The vehicle acquisition module is configured to acquire multiple real-time single-trip vehicles;
    第一推送模块,被配置为判断所述预约出行订单为长时预约单还是短时预约单;若所述预约出行订单为所述长时预约单,则对于所述长时预约单通过广播形式向所述多个实时单行程车辆推送,并将预设时长内没有被接单的长时预约单返回到所述服务器的订单池中;The first push module is configured to determine whether the scheduled travel order is a long-term reservation order or a short-term reservation order; if the scheduled travel order is the long-term reservation order, broadcast the long-term reservation order Push to the multiple real-time single-trip vehicles, and return long-term appointment orders that are not received within a preset time period to the order pool of the server;
    优化计算模块,被配置为若所述预约出行订单为所述短时预约单,则通过贪心算法对所述短时预约单和所述实时单行程车辆的车辆信息进行优化计算,从所述多个实时单行程车辆中得到目标车辆;The optimization calculation module is configured to perform optimization calculations on the short-term reservation order and the vehicle information of the real-time single-trip vehicle through a greedy algorithm if the travel reservation order is the short-term reservation order, from the multiple Obtain the target vehicle from one real-time single-trip vehicle;
    第二推送模块,被配置为将互相不相冲突的多个短时预约单发送给所述目标车辆。The second pushing module is configured to send multiple short-term appointment orders that do not conflict with each other to the target vehicle.
  9. 如权利要求8所述的预约单连环派单装置,其特征在于,所述订单获取模块包括:The device for dispatching an appointment order chain according to claim 8, wherein the order obtaining module comprises:
    第一获取单元,被配置为从所述服务器的订单池中每隔预设时长拉取所述预设时长内的所有出行订单;The first obtaining unit is configured to pull all travel orders within the preset time period from the order pool of the server every preset time period;
    第一过滤单元,被配置为根据所述出行订单的时间参数从所述所有出行订单中选取出所述预约出行订单。The first filtering unit is configured to select the scheduled travel order from all travel orders according to the time parameter of the travel order.
  10. 如权利要求8所述的预约单连环派单装置,其特征在于,所述车辆获取模块包括:The device for dispatching an appointment order chain according to claim 8, wherein the vehicle acquisition module comprises:
    第二获取单元,被配置为根据所述预约出行订单的位置信息获取所述预设范围内所有车辆;The second acquiring unit is configured to acquire all vehicles within the preset range according to the location information of the scheduled travel order;
    第二过滤单元,被配置为根据每个所述车辆的载客状态从中选取出所述实时单行程车辆。The second filtering unit is configured to select the real-time single-stroke vehicle according to the passenger loading status of each vehicle.
  11. 如权利要求10所述的预约单连环派单装置,其特征在于,所述车辆获取模块还包括:The device for dispatching an appointment order chain according to claim 10, wherein the vehicle acquisition module further comprises:
    第三过滤单元,被配置为从所述多个实时单行程车辆中剔除类型与所述短时预约单的指定车型不匹配的实时单行程车辆。The third filtering unit is configured to exclude, from the plurality of real-time single-trip vehicles, the real-time single-trip vehicles whose types do not match the specified vehicle type of the short-term reservation form.
  12. 如权利要求10所述的预约单连环派单装置,其特征在于,所述车辆获取模块还包括:The device for dispatching an appointment order chain according to claim 10, wherein the vehicle acquisition module further comprises:
    第四过滤单元,被配置为从所述多个实时单行程车辆中剔除其司机做出预先规定的拒单行为的实时单行程车辆。The fourth filtering unit is configured to exclude, from the plurality of real-time single-trip vehicles, the real-time single-trip vehicles whose drivers make a predetermined rejection behavior.
  13. 如权利要求7所述的预约单连环派单装置,其特征在于,所述第二推送模块包括:The device for dispatching an appointment order chain according to claim 7, wherein the second pushing module comprises:
    第一推送单元,被配置为如所述目标车辆仅存在当前实时单,则将开始时间位于所述当前实时单的订单终点时间之后的短时预约单发送给所述目标车辆;The first pushing unit is configured to, if only the current real-time order exists in the target vehicle, send the short-term reservation order whose start time is after the order end time of the current real-time order to the target vehicle;
    第二推送单元,被配置为如果所述目标车辆存在所述当前实时单且已接受一个或多个所述短时预约单,将所需时间与所述当前实时单和已被接受的短时预约单的时间不冲突的短时预约单发送给所述目标车辆。The second pushing unit is configured to, if the target vehicle has the current real-time order and has accepted one or more of the short-term reservations, compare the required time with the current real-time order and the accepted short-time order The short-term appointment form in which the time of the appointment form does not conflict is sent to the target vehicle.
PCT/CN2020/091260 2019-08-20 2020-05-20 Continuous order dispatching method and apparatus for advance order based on real-time one-way vehicle WO2021031634A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910770934.6 2019-08-20
CN201910770934.6A CN110852464A (en) 2019-08-20 2019-08-20 Reservation list interlinked dispatching method and device based on real-time single-stroke vehicle

Publications (1)

Publication Number Publication Date
WO2021031634A1 true WO2021031634A1 (en) 2021-02-25

Family

ID=69595741

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/091260 WO2021031634A1 (en) 2019-08-20 2020-05-20 Continuous order dispatching method and apparatus for advance order based on real-time one-way vehicle

Country Status (2)

Country Link
CN (1) CN110852464A (en)
WO (1) WO2021031634A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110852464A (en) * 2019-08-20 2020-02-28 南京领行科技股份有限公司 Reservation list interlinked dispatching method and device based on real-time single-stroke vehicle
CN112053028A (en) * 2020-07-24 2020-12-08 长沙市到家悠享家政服务有限公司 Order allocation method, device, equipment and storage medium
CN113178064A (en) * 2021-03-25 2021-07-27 安顺市娜卡科技网络有限公司 Special vehicle dispatching system and device thereof
CN113033849B (en) * 2021-03-30 2024-02-27 满帮信息科技有限公司 Reserved vehicle matching method, reserved vehicle matching system, electronic equipment and storage medium
CN114548456A (en) * 2022-02-23 2022-05-27 南京领行科技股份有限公司 Online taxi appointment order processing method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013072729A1 (en) * 2011-11-14 2013-05-23 Way Better Ltd System and method for ride sharing
CN107101643A (en) * 2017-04-10 2017-08-29 浙江工业大学 A kind of share-car matching process
CN109948874A (en) * 2017-12-21 2019-06-28 北京嘀嘀无限科技发展有限公司 Share-car order allocation method and system
CN109961158A (en) * 2017-12-25 2019-07-02 北京嘀嘀无限科技发展有限公司 Reserve order allocation method and reservation Order splitting device
CN110570003A (en) * 2019-08-20 2019-12-13 南京领行科技股份有限公司 Reservation travel order dispatching method and device based on idle travel vehicle
CN110570002A (en) * 2019-08-20 2019-12-13 南京领行科技股份有限公司 Reservation list mixed interlinked dispatching method and device based on non-idle travel vehicle
CN110852463A (en) * 2019-08-20 2020-02-28 南京领行科技股份有限公司 Reservation list serial dispatching method and device based on idle-trip vehicle
CN110852464A (en) * 2019-08-20 2020-02-28 南京领行科技股份有限公司 Reservation list interlinked dispatching method and device based on real-time single-stroke vehicle
CN110853333A (en) * 2019-08-20 2020-02-28 南京领行科技股份有限公司 Reservation order dispatching method and device based on real-time single-stroke vehicle

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013072729A1 (en) * 2011-11-14 2013-05-23 Way Better Ltd System and method for ride sharing
CN107101643A (en) * 2017-04-10 2017-08-29 浙江工业大学 A kind of share-car matching process
CN109948874A (en) * 2017-12-21 2019-06-28 北京嘀嘀无限科技发展有限公司 Share-car order allocation method and system
CN109961158A (en) * 2017-12-25 2019-07-02 北京嘀嘀无限科技发展有限公司 Reserve order allocation method and reservation Order splitting device
CN110570003A (en) * 2019-08-20 2019-12-13 南京领行科技股份有限公司 Reservation travel order dispatching method and device based on idle travel vehicle
CN110570002A (en) * 2019-08-20 2019-12-13 南京领行科技股份有限公司 Reservation list mixed interlinked dispatching method and device based on non-idle travel vehicle
CN110852463A (en) * 2019-08-20 2020-02-28 南京领行科技股份有限公司 Reservation list serial dispatching method and device based on idle-trip vehicle
CN110852464A (en) * 2019-08-20 2020-02-28 南京领行科技股份有限公司 Reservation list interlinked dispatching method and device based on real-time single-stroke vehicle
CN110853333A (en) * 2019-08-20 2020-02-28 南京领行科技股份有限公司 Reservation order dispatching method and device based on real-time single-stroke vehicle

Also Published As

Publication number Publication date
CN110852464A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
WO2021031634A1 (en) Continuous order dispatching method and apparatus for advance order based on real-time one-way vehicle
WO2021031637A1 (en) Method and device for dispatching booked trip orders on basis of idle travel vehicles
WO2021031638A1 (en) Dispatching method and device
US11250531B2 (en) Hierarchical selection process
WO2021031635A1 (en) Non-idle travel vehicle-based booked order hybrid chain dispatching method and device
DE102016107185A1 (en) Sharing long-term carpool groups
CN107230091B (en) Car pooling request order matching method and device
WO2017106256A1 (en) Systems and methods for adjusting ride-sharing schedules and routes
CN111832788B (en) Service information generation method, device, computer equipment and storage medium
CN112598928B (en) Parking lot management method and related device
WO2018113976A1 (en) Apparatus, computer program product, signal sequence, means of transport and method for assisting a user in finding a suitable fellow passenger
US20210150418A1 (en) System and Method for Managing Parking Queries
CN111860902A (en) Order processing method, device, equipment and computer readable storage medium
CN111915050A (en) Parking space availability prediction system and method
CN110852463A (en) Reservation list serial dispatching method and device based on idle-trip vehicle
WO2021031636A1 (en) Real-time order travel vehicle-based real-time order assignment method and apparatus
JP6439251B2 (en) Vehicle management system and vehicle management method
CN110853333A (en) Reservation order dispatching method and device based on real-time single-stroke vehicle
CN111178558B (en) Network appointment order processing method and device, computer equipment and readable storage medium
CN110766492A (en) Order information processing method, device and equipment
CN106382036A (en) Parking space management method and system and terminal
WO2017215831A1 (en) Method for coordinating a meeting point of an automatically driving motor vehicle and of a user
CN110910191A (en) Car pooling order generation method and equipment
CN110254284B (en) Electric taxi charging reminding method, electronic equipment and storage medium
CN114595849A (en) Car pooling method and device, terminal and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20854619

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20854619

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20854619

Country of ref document: EP

Kind code of ref document: A1