Shared vehicle dispatching method, device, electronic device and storage medium
By calculating the beta distribution and random sampling of vehicle flow data, the target parking fence is determined, which solves the limitations of manual and random selection of points in the shared bicycle business, enables efficient exploration and reasonable scheduling of potential orders, and increases business volume. and sustainability.
Patent Information
- Application Number
- CN202210354952.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-04-06
AI Technical Summary
In the shared bicycle business scenario, when manually selecting or randomly selecting points to explore potential orders, it is limited by human cognition and randomness, and potential points cannot be fully explored, resulting in cost waste, reduced revenue, and inaccurate evaluation of the speed of individual bicycles. , affecting program sustainability.
By calculating beta distribution based on vehicle flow data, performing parameter updates and random sampling, target parking fences are determined to increase dispatch volume and explore potential orders.
It improves the accuracy of exploring potential orders, achieves reasonable scheduling of vehicles, increases business volume, reduces cost waste, and improves the sustainability of the solution.
Smart Images

Figure CN114862115B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of scheduling shared vehicles, and more specifically, to a scheduling method, device, electronic device, and storage medium for shared vehicles. Background Art
[0002] In the business scenario of shared bicycles, due to the supply of bicycles, the number of user ride orders at a bicycle deployment point will never be greater than the number of bicycles supplied. However, when the number of ride orders of a bicycle is equal to the supply, there may be potential orders, that is, the demand at this point may be greater than the supply. In order to explore these potential order demands as much as possible, it is necessary to tentatively increase the dispatch volume to some points to explore possible orders.
[0003] The current technical solution for exploring possible orders is to manually select points based on operating conditions, or randomly select popular points, then increase the daily dispatch volume, and evaluate the speed of scattered vehicles for exploration. However, the method of manually selecting points is limited by human cognition of operations, and the points that can be explored are very limited, and potential points cannot be fully explored, and the workload is large. The random selection method is too random, and the exploration effect is not good, resulting in a waste of costs and a decrease in revenue. In addition, the speed of scattered vehicles is affected by many factors, and it is difficult to accurately evaluate the effect of exploration, and the solution is not sustainable enough. Summary of the invention
[0004] An object of the present disclosure is to provide a new technical solution for a scheduling method, device, electronic device and storage medium for shared vehicles.
[0005] In a first aspect, an embodiment of the present application provides a method for scheduling shared vehicles, comprising: obtaining a beta distribution corresponding to the probability of a vehicle riding out of each parking fence within a preset time period based on vehicle flow data; obtaining an initialization beta parameter of the beta distribution, updating the initialization beta parameter to obtain a predicted beta distribution; performing random sampling based on the predicted beta distribution to obtain a target parking fence, wherein the target parking fence is configured to be a parking fence that increases the vehicle scheduling volume.
[0006] Optionally, before obtaining the initialized beta parameters of the beta distribution, the method includes: obtaining the beta parameters of the beta distribution; and preprocessing the beta parameters according to a preset threshold to obtain the initialized beta parameters of the beta distribution.
[0007] Optionally, updating the initialization parameters to obtain a predicted beta distribution includes: obtaining the vehicle outflow and supply within the preset time period; and updating the initialization beta parameters according to a preset attenuation coefficient and the outflow and supply to obtain a predicted beta distribution.
[0008] Optionally, the updating of the initialized beta parameters according to the preset attenuation coefficient and the outflow and supply comprises: when the supply is greater than zero, updating the initialized beta parameters according to the preset attenuation coefficient and the outflow and supply; when the supply is equal to zero, updating the initialized beta parameters according to the outflow and supply.
[0009] Optionally, the vehicle flow data includes weekday vehicle flow data and holiday vehicle flow data, and the beta distribution corresponding to the probability of a vehicle riding out of each parking fence within a preset time period is obtained based on the vehicle flow data, and also includes: obtaining a first beta distribution based on the weekday vehicle flow data; obtaining a second beta distribution based on the holiday vehicle flow data; wherein the first beta distribution is used to obtain the target parking fence corresponding to the weekday, and the second beta distribution is used to obtain the target parking fence corresponding to the holiday.
[0010] Optionally, in the case where the beta distribution includes a first beta distribution and a second beta distribution, updating the initialized beta parameters to obtain a predicted beta distribution includes: updating the initialized beta parameters of the first beta distribution and the second beta distribution respectively to obtain a first predicted beta distribution and a second predicted beta distribution, wherein when updating the parameters of one of the first beta distribution and the second beta distribution, the parameters of the other beta distribution are kept unchanged.
[0011] Optionally, the random sampling based on the predicted beta distribution to obtain the target parking fence includes: for each parking fence, using the Thompson sampling method to generate a random number within the preset time, and selecting N parking fences with the largest random numbers as the target parking fences.
[0012] In a second aspect, an embodiment of the present application provides a scheduling device for shared vehicles, the device comprising: a data processing module for obtaining, based on vehicle flow data, a beta distribution corresponding to the probability of a vehicle riding out of each parking fence within a preset time period; a parameter updating module for obtaining initialization beta parameters of the beta distribution, updating the initialization beta parameters, and obtaining a predicted beta distribution; a target determination module for performing random sampling based on the predicted beta distribution to obtain a target parking fence, wherein the target parking fence is configured to be a parking fence that increases the vehicle scheduling volume.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program; the processor is used to execute the computer program to implement the steps of the shared vehicle scheduling method according to the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the shared vehicle scheduling method according to any one of the first aspects are implemented.
[0015] One beneficial effect of the disclosed embodiment is that, based on the vehicle flow data, the embodiment obtains a beta distribution corresponding to the probability of a vehicle riding out of each parking fence within a preset time period, and can use each parking fence as an exploration point to perform exploratory scheduling of the single-vehicle fence; then obtains the initialization beta parameters of the beta distribution, and updates the initialization beta parameters, and can timely update the parameters based on the daily vehicle flow data to obtain a predicted beta distribution to improve the exploration accuracy, and then performs random sampling based on the predicted beta distribution to explore possible unknown vehicle outflows, and obtain target parking fences with unknown orders, and explore unknown orders by increasing the vehicle scheduling volume of the target parking fence, thereby achieving reasonable scheduling of vehicles in each parking fence.
[0016] Other features and advantages of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the specification.
[0018] Figure 1 A schematic diagram of a system architecture that can be used to implement an embodiment of the present disclosure.
[0019] Figure 2 The figure is a flow chart of a method for dispatching a shared vehicle according to an embodiment.
[0020] Figure 3 It is a block diagram of a dispatching device for shared vehicles according to another embodiment.
[0021] Figure 4 is a block diagram of an electronic device according to an embodiment. DETAILED DESCRIPTION
[0022] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0023] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0024] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0025] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0026] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0027] The embodiments of the present disclosure relate to an application scenario of scheduling shared vehicles.
[0028] In the business scenario of shared bicycles, due to the supply of bicycles, the number of user ride orders at a bicycle deployment point will never be greater than the number of bicycles supplied. However, when the number of ride orders of a bicycle is equal to the supply, there may be potential orders, that is, the demand at this point may be greater than the supply. In order to explore these potential order demands as much as possible, it is necessary to tentatively increase the dispatch volume to some points to explore possible orders.
[0029] In response to the above requirements, we can manually select points according to the operating conditions, or randomly select popular points, and then increase the daily dispatch volume and evaluate the speed of scattered vehicles for exploration. However, the method of manually selecting points is limited by human cognition of operations, and the points that can be explored are very limited, and it is impossible to fully explore potential points, and the workload is large. The random selection method is too random, and the exploration effect is not good, resulting in a waste of costs and a decrease in revenue. In addition, the speed of scattered vehicles is affected by many factors, and it is difficult to accurately evaluate the effect of exploration, and the sustainability of the solution is insufficient.
[0030] In view of the technical problems existing in the above implementation methods, the present disclosure provides a scheduling method, device, electronic device and storage medium for shared vehicles. Exploration scheduling is regarded as a problem of recommending parking fences. Selecting exploration points is to recommend the points where the parking fences with the most likely supply shortage are located. The previous vehicle flow data is characterized by Beta distribution. Based on Thompson sampling, the target parking fence is obtained, and unknown orders are explored by continuously increasing the scheduling amount within the target parking fence.
[0031] <Hardware Configuration>
[0032] Figure 1 A schematic diagram of a system architecture that can be used to implement an embodiment of the present disclosure.
[0033] like Figure 1As shown, the system includes a server 2000 and an electronic device 1000. The server 2000 and the electronic device 1000 perform information exchange via a network 3000, and the network 3000 may be a wireless network or a wired network.
[0034] The server 2000 provides a business point of processing, database, and communication facilities. The server 2000 can be a monolithic server, a distributed server across multiple computers, a computer data center, a cloud server, or a server cluster deployed in the cloud. The server can be of various types, such as but not limited to, a web server, a news server, a mail server, a message server, an advertising server, a file server, an application server, an interactive server, a database server, or a proxy server. In some embodiments, each server may include hardware, software, or an embedded logic component or a combination of two or more such components for performing the appropriate functions supported or implemented by the server.
[0035] The specific configuration of the server 2000 may include, but is not limited to, a processor 2100, a memory 2200, an interface device 2300, and a communication device 2400. The processor 2100 is used to execute a computer program written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 2200 is, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 2300 is, for example, a USB interface, a serial interface, a parallel interface, a network port, etc. The communication device 2400 is, for example, capable of wired communication or wireless communication, and may include, for example, WiFi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, etc.
[0036] As used in the embodiments of the present disclosure, the memory 2200 of the server 2000 is used to store a computer program, which is used to control the processor 2100 to operate to implement the method according to the embodiments of the present disclosure. A technician can design the computer program according to the scheme disclosed in the present disclosure. How the computer program controls the processor to operate is well known in the art, so it will not be described in detail here.
[0037] It should be understood by those skilled in the art that Figure 1 In addition to the devices shown, the server 2000 may also include other devices, which are not limited here.
[0038] The electronic device 1000 may include, but is not limited to, a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like. Among them, the processor 1100 may be a central processing unit CPU, a graphics processing unit GPU, a microprocessor MCU, and the like, and is used to execute a computer program, and the computer program may be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, and the like. The memory 1200 may include, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, and the like. The interface device 1300 may include, for example, a USB interface, a serial interface, a parallel interface, and the like. The communication device 1400 may, for example, be capable of wired communication using an optical fiber or a cable, or wireless communication, and may specifically include WiFi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, and the like. The display device 1500 may be, for example, a liquid crystal display screen, a touch display screen, and the like. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. The speaker 1700 is used to output audio signals. The microphone 1800 is used to collect audio signals.
[0039] The electronic device 1000 may be a smart phone, a portable computer, a desktop computer, a tablet computer, a wearable device, etc., which is not limited here.
[0040] In this embodiment, the electronic device 1000 can be used to obtain a beta distribution corresponding to the probability of a vehicle riding out of each parking fence within a preset time period based on vehicle flow data; obtain the initialization beta parameters of the beta distribution, update the initialization beta parameters to obtain a predicted beta distribution; and perform random sampling based on the predicted beta distribution to obtain a target parking fence.
[0041] As used in the embodiments of the present disclosure, the memory 1200 of the electronic device 1000 is used to store a computer program, which is used to control the processor 1100 to operate to implement the method according to any embodiment of the present disclosure. A technician can design the computer program according to the scheme disclosed in the present disclosure. How the computer program controls the processor to operate is well known in the art, so it will not be described in detail here. The electronic device 1000 can be installed with an intelligent operating system (such as Windows, Linux, Android, IOS, etc.) and application software.
[0042] It should be understood by those skilled in the art that although Figure 1 , multiple devices of the electronic device 1000 are shown; however, the electronic device 1000 of the embodiment of the present disclosure may only involve some of the devices, for example, only the processor 1100, the memory 1200, etc.
[0043] Hereinafter, various embodiments and examples according to the present invention are described with reference to the accompanying drawings.
[0044] <Method Example>
[0045] Figure 2 is a flow chart of a method for dispatching a shared vehicle according to an embodiment. The embodiment can be Figure 1 The electronic device or server is implemented in the embodiment of the present invention.
[0046] like Figure 2 As shown, the scheduling method for shared vehicles in this embodiment may include the following steps:
[0047] S210. Obtain, based on the vehicle flow data, a Beta distribution of the probability of a vehicle riding out of each parking fence within a preset time period.
[0048] In this embodiment, the vehicle flow data may include data such as the vehicle supply, outflow, inflow, and transfer-in volume in each parking fence. The preset time period can be set according to actual conditions, for example, the preset time period can be one hour. The vehicle riding out probability refers to the probability that a vehicle in the parking fence is ridden out of the fence within the preset time period.
[0049] If we regard the probability of a bicycle being ridden out of a fence within an hour as a Bernoulli distribution, then from the perspective of Bayesian statistics, the best way to describe the probability of a bicycle being ridden out is the Beta distribution, hereinafter referred to as the Beta distribution.
[0050] For one hour of a fence, select the outflow and supply of the past N days, sum the outflow as the parameter A of the Beta distribution, sum the supply, and subtract the sum of the outflow as the parameter B of the Beta distribution. The Beta distribution is obtained:
[0051] Beta(A,B)=Beta(∑outflow,∑supply-∑outflow)
[0052] The distribution Beta(A, B) represents the probability of a bicycle being ridden out of a fence within one hour.
[0053] S220. Obtain the initialization beta parameters of the beta distribution, update the initialization beta parameters, and obtain the predicted beta distribution.
[0054] In one example, directly obtaining the Beta parameters based on vehicle flow data may result in the problem of parameters being too large or too small. If the parameters are too large, the parameter update speed may be too slow, and some fences may be repeatedly recommended. If the parameters are too small, the randomness may be too large, and the actual order volume of vehicles in the target parking fence may not be large, and the exploration effect may not be good, resulting in a waste of costs. Therefore, before obtaining the initialization Beta parameters of the Beta distribution, preprocessing is required. The preprocessing method in this embodiment includes: obtaining the Beta parameters of the Beta distribution; preprocessing the Beta parameters according to a preset threshold to obtain the initialization Beta parameters of the Beta distribution.
[0055] In one embodiment, preprocessing the beta parameters according to a preset threshold includes preprocessing the excessively large parameters. For example, the beta parameters of the beta distribution are A and B. When either A or B is greater than a preset threshold T max When it is greater than the preset threshold value T max The beta parameter of is proportionally reduced to T max . This can avoid the impact of excessive parameters.
[0056] In one embodiment, preprocessing the beta parameters according to the preset threshold value includes preprocessing the parameters that are too small. For example, when the beta parameters of the beta distribution are A and B, when either A or B is less than the preset threshold value T min When the vehicle flow data is used to obtain the 30% quantile of the vehicle outflow rate of a preset area, the initial parameter is obtained, wherein the preset area can be a city, a district or a county. For example, the 30% quantile of the vehicle outflow rate of a city is p, and the updated initial parameter B'=20, then the updated initial parameter A'=20*p / (1-p). This embodiment uses the overall average outflow rate of a preset area to replace the too small parameter, which can avoid the inaccurate prediction effect caused by the beta parameter being too small.
[0057] In this embodiment, the initialization parameters are updated to obtain a predicted beta distribution, including: obtaining the vehicle outflow and supply within a preset time period; and updating the initialization beta parameters according to a preset attenuation coefficient and the outflow and supply to obtain a predicted beta distribution.
[0058] In this embodiment, the supply volume includes the initial supply volume of vehicles within a preset time period, the inflow volume flowing into the parking fence within a preset time period, the transfer-in volume within a preset time period, and the transfer-out volume within a preset time period. It can be understood that the maximum value of the supply volume within a preset time period is equal to the sum of the initial supply volume of vehicles, the inflow volume flowing into the parking fence within a preset time period, and the transfer-in volume within a preset time period minus the transfer-out volume within a preset time period. Since the outflow volume cannot be greater than the supply volume, the supply volume of vehicles is the upper limit value of the maximum outflow volume of vehicles within a preset time period. Among them, the vehicle outflow volume is the actual amount of vehicles riding out.
[0059] In one example, since the vehicle's business data has a certain timeliness, the newer the data, the higher its value. Therefore, when updating the distribution parameters, it is necessary to give the parameters a certain forgetting ability. In the process of updating the parameters, this embodiment sets a decay coefficient c for the old parameters, and its size depends on the half-life of the desired coefficient decay. For example, assuming that the expected half-life is h (unit: day), then c can be h = 0.5, calculate the decay coefficient. For example, if the half-life is 7 days, then c = 0.9057.
[0060] In this embodiment, if there is no vehicle supply at a location for a long time, its forgetting ability should be reduced in order to retain effective information as much as possible. Therefore, this solution sets a supply amount judgment before multiplying the attenuation coefficient. That is, according to the preset attenuation coefficient and the outflow and supply, the supply amount needs to be judged during the update of the initialized beta parameter. When the supply is greater than zero, the initialized beta parameter is updated according to the preset attenuation coefficient and the outflow and supply; when the supply is equal to zero, the initialized beta parameter is updated according to the outflow and supply. In other words, when the supply is greater than 0, the beta parameter is attenuated, and when the supply is equal to 0, it is not attenuated.
[0061] In an example, suppose the vehicle outflow at the previous moment is a t-1 , the vehicle supply at the previous moment is b t-1 , let the Beta distribution in the preset time period before the update be Beta(A t-1 ,B t-1 ), then the Beta distribution in the preset time period after the update is Beta(A t ,B t ), updated beta parameters:
[0062] A t =c·A t-1 +a t-1 ,
[0063] B t =c·B t-1 +max(b t-1 –a t-1 ),
[0064] Where c is the attenuation coefficient, max(b t-1 –a t-1 ) is the maximum remaining vehicle in the parking fence at the end of the previous moment.
[0065] In this embodiment, the attenuation coefficient is introduced in the process of obtaining the predicted Beta distribution, which can ensure the timeliness of the data and make the obtained Beta distribution more accurate. It can be understood that updating the initialized Beta parameters to obtain the predicted Beta distribution is continuous. For example, the Beta distribution within a preset one-hour time period is updated every day to obtain the predicted Beta distribution of the day until the preset distribution effect is achieved.
[0066] S230. Perform random sampling based on the predicted beta distribution to obtain a target parking fence.
[0067] The target parking fence is configured as a parking fence that increases the amount of vehicle dispatch. For example, if fence D is the target fence, 5 vehicles can be dispatched into fence D every day until the beta distribution of fence D meets expectations.
[0068] In this embodiment, random sampling is performed based on the predicted beta distribution to obtain the target parking fence, including: for each parking fence, a random number is generated by using the Thompson sampling method within a preset time, and N parking fences with the largest random numbers are selected as the target parking fences.
[0069] For example, each fence generates a random number according to the Beta distribution every hour, selects the n fences corresponding to the largest random number, repeats k times, and obtains a total of nk fences. It should be noted that the nk fences may be repeated. The target fence is obtained based on the nk fences, and d vehicles are dispatched to each target fence for exploration. After dispatching d vehicles to each target fence, the Beta distribution corresponding to the probability of vehicles riding out of each parking fence within a preset time period is obtained based on the vehicle flow data of the day; then the Beta parameters of the Beta distribution are updated to obtain the predicted Beta distribution of the next day; random sampling is performed based on the predicted Beta distribution to obtain the target parking fence, and this cycle is repeated to determine the target fence to assist in the dispatch of vehicles, explore more unknown orders, and increase business volume.
[0070] In addition, considering that the vehicle usage on weekdays and holidays is different, in order to cope with the different business environments on weekdays and holidays, this embodiment calculates weekdays and holidays separately and describes them with two distributions.
[0071] In this embodiment, the vehicle flow data includes weekday vehicle flow data and holiday vehicle flow data. The beta distribution corresponding to the probability of a vehicle riding out of each parking fence within a preset time period is obtained based on the vehicle flow data, and also includes: obtaining a first beta distribution based on the weekday vehicle flow data; obtaining a second beta distribution based on the holiday vehicle flow data; wherein the first beta distribution is used to obtain the target parking fence corresponding to the weekday, and the second beta distribution is used to obtain the target parking fence corresponding to the holiday.
[0072] For example, the first beta distribution is Beta1(A, B), the second beta distribution is Beta2(A, B), and the weekday and holiday parameters are separated, which can make the prediction results more accurate.
[0073] In this embodiment, when the beta distribution includes a first beta distribution and a second beta distribution, if the initialization beta parameters are updated to obtain a predicted beta distribution, the method includes: respectively updating the initialization beta parameters of the first beta distribution and the second beta distribution to obtain a first predicted beta distribution and a second predicted beta distribution, wherein when updating the parameters of one of the first beta distribution and the second beta distribution, the parameters of the other beta distribution are kept unchanged. This ensures that working days and holidays are independent of each other, and can make the prediction result more accurate.
[0074] That is, when the Beta distribution includes the first Beta distribution and the second Beta distribution, it is necessary to judge whether the previous day was a working day or a holiday respectively. For example, if the current day is a working day and the previous day was also a working day, the first Beta distribution corresponding to the previous day can be selected, and the initialization beta parameters of the first Beta distribution can be updated to obtain the first predicted Beta distribution. If the current day is a holiday and the previous day was a working day, the second Beta distribution corresponding to the previous holiday should be selected, and the initialization beta parameters of the second Beta distribution should be updated.
[0075] In one example, the implementation result of this embodiment can be: after two weeks of trial operation in two cities, M City and N City, the predicted time of most target parking fences in the two cities occurred during the morning rush hour. On weekends, there are all time periods throughout the day. In M City, whether on weekdays or holidays, the locations of the target parking fences are mostly at the subway entrance, or very close to the subway entrance. In actual implementation, an average of 6 target parking fences are obtained in M City every day, an increase of 93 in dispatch volume, and an additional increase of 1,087 turnover orders. An average of 10 target parking fences are obtained in N City every day, an increase of 121 in dispatch volume, and an additional increase of 217 turnover orders. It can be seen that this embodiment can realize the exploration of unknown orders, thereby tentatively conducting vehicle dispatch guidance and increasing vehicle riding orders.
[0076] This embodiment obtains the beta distribution of the probability of a vehicle riding out of each parking fence within a preset time period based on the vehicle flow data, and can use each parking fence as an exploration point to perform exploratory scheduling on the single-vehicle fence; then obtains the initialization beta parameters of the beta distribution, and updates the initialization beta parameters. The parameters can be updated in time according to the daily vehicle flow data to obtain a predicted beta distribution to improve the exploration accuracy, and then random sampling is performed based on the predicted beta distribution to explore possible unknown vehicle outflows, and obtain target parking fences with unknown orders. By increasing the vehicle scheduling volume of the target parking fence, unknown orders are explored, thereby achieving reasonable scheduling of vehicles in each parking fence.
[0077] <Device Example>
[0078] Figure 3 FIG. 3 is a block diagram of a scheduling device 300 for a shared vehicle according to an embodiment. Figure 3 As shown, the scheduling device for the shared vehicle may include:
[0079] The data processing module 301 is used to obtain the Beta distribution of the probability of a vehicle riding out of each parking fence within a preset time period according to the vehicle flow data.
[0080] The parameter updating module 302 is used to obtain the initialization beta parameters of the beta distribution, and update the initialization beta parameters to obtain the predicted beta distribution.
[0081] The target determination module 303 is used to perform random sampling based on the predicted beta distribution to obtain a target parking fence, wherein the target parking fence is configured to increase the vehicle scheduling amount.
[0082] In one embodiment, the data processing module 301 can be used to obtain beta parameters of the beta distribution; pre-process the beta parameters according to a preset threshold to obtain the initialized beta parameters of the beta distribution.
[0083] In one embodiment, the parameter updating module 302 can be used to obtain the outflow and supply of vehicles within the preset time period; update the initialized beta parameters according to the preset attenuation coefficient and the outflow and supply to obtain a predicted beta distribution.
[0084] In one embodiment, the parameter update module 302 can be used to update the initialized beta parameter according to a preset attenuation coefficient and the outflow and supply when the supply amount is greater than zero; and to update the initialized beta parameter according to the outflow and supply when the supply amount is equal to zero.
[0085] In one embodiment, the data processing module 301 can be used to obtain a first beta distribution based on weekday vehicle flow data; and to obtain a second beta distribution based on holiday vehicle flow data; wherein the first beta distribution is used to obtain a target parking fence corresponding to weekdays, and the second beta distribution is used to obtain a target parking fence corresponding to holidays.
[0086] In one embodiment, the parameter updating module 302 may update the initialized beta parameters of the first beta distribution and the second beta distribution, respectively, to obtain a first predicted beta distribution and a second predicted beta distribution, wherein when updating the parameters of one of the first beta distribution and the second beta distribution, the parameters of the other beta distribution are kept unchanged.
[0087] In one embodiment, the target determination module 303 may be used to generate a random number for each parking fence using the Thompson sampling method within a preset time, and select N parking fences with the largest random numbers as target parking fences.
[0088] The device of this embodiment can be Figure 1 Processor 1100 in.
[0089] This embodiment obtains the beta distribution of the probability of a vehicle riding out of each parking fence within a preset time period based on the vehicle flow data; then obtains the initialization beta parameters of the beta distribution, updates the initialization beta parameters, and can update the parameters in a timely manner to obtain the predicted beta distribution, and then performs random sampling based on the predicted beta distribution to obtain the target parking fence, and increases the vehicle dispatch volume for the target parking fence to explore possible unknown vehicle outflows, which can well guide the exploration of the next location order.
[0090] <Electronic Equipment Embodiment>
[0091] Figure 4 is a block diagram of an electronic device 400. Figure 4 As shown, the electronic device 400 includes: a processor 410, a memory 420, and a program or instruction stored in the memory 420 and executable on the processor 410. When the program or instruction is executed by the processor, the steps of the above-mentioned shared vehicle scheduling method are implemented.
[0092] <Storage Medium Embodiment>
[0093] This embodiment provides a computer-readable storage medium, in which executable commands are stored. When the executable commands are executed by a processor, the method described in any method embodiment of this specification is executed.
[0094] One or more embodiments of the present specification may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present specification.
[0095] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0096] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0097] The computer program instructions for performing the operation of the embodiments of this specification may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In certain embodiments, by utilizing the state information of a computer-readable program instruction to customize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of this specification.
[0098] Various aspects of this specification are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of this specification. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0099] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0100] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0101] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to the multiple embodiments of this specification. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and a part of a module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0102] The embodiments of the present specification have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of this application is defined by the appended claims.
Claims
1. A method for dispatching a shared vehicle, characterized in that: The method comprises: According to the vehicle flow data, a beta distribution corresponding to the probability of a vehicle riding out of each parking fence within a preset time period is obtained; Obtaining an initialization beta parameter of the beta distribution, and updating the initialization beta parameter to obtain a predicted beta distribution; Performing random sampling based on the predicted beta distribution to obtain a target parking fence, wherein the target parking fence is configured as a parking fence that increases a vehicle dispatching amount; Wherein, updating the initialized beta parameters to obtain a predicted beta distribution includes: Obtaining the vehicle outflow and supply within the preset time period; According to a preset attenuation coefficient and the outflow and supply, the initialized beta parameter is updated to obtain a predicted beta distribution; Wherein, updating the initialized beta parameter according to the preset attenuation coefficient and the outflow and supply amounts includes: When the supply amount is greater than zero, updating the initialized beta parameter according to a preset attenuation coefficient and the outflow amount and the supply amount; When the supply amount is equal to zero, the initialized beta parameter is updated according to the outflow amount and the supply amount.
2. The method according to claim 1, characterized in that: Before obtaining the initialization beta parameters of the beta distribution, the method includes: Obtaining a beta parameter of the beta distribution; The beta parameters are preprocessed according to a preset threshold to obtain the initialized beta parameters of the beta distribution.
3. The method according to claim 1, characterized in that The vehicle flow data includes weekday vehicle flow data and holiday vehicle flow data. The beta distribution of the probability of a vehicle riding out of each parking fence within a preset time period is obtained according to the vehicle flow data, including: According to the working day vehicle flow data, a first beta distribution is obtained; According to the holiday vehicle flow data, a second beta distribution is obtained; The first beta distribution is used to obtain the target parking fence corresponding to weekdays, and the second beta distribution is used to obtain the target parking fence corresponding to holidays.
4. The method according to claim 3, characterized in that In a case where the beta distribution includes a first beta distribution and a second beta distribution, updating the initialized beta parameters to obtain a predicted beta distribution includes: The initialized beta parameters of the first beta distribution and the second beta distribution are updated respectively to obtain a first predicted beta distribution and a second predicted beta distribution, wherein when the parameters of one of the first beta distribution and the second beta distribution are updated, the parameters of the other beta distribution are kept unchanged.
5. The method according to claim 1, characterized in that The random sampling based on the predicted beta distribution to obtain the target parking fence includes: For each parking fence, a random number is generated by using the Thompson sampling method within the preset time, and N parking fences with the largest random numbers are selected as target parking fences.
6. A dispatching device for a shared vehicle, characterized in that: The device comprises: A data processing module, for obtaining a beta distribution of the probability of a vehicle riding out of each parking fence within a preset time period according to the vehicle flow data; A parameter updating module, used to obtain the initialization beta parameters of the beta distribution, update the initialization beta parameters, and obtain the predicted beta distribution; a target determination module, configured to perform random sampling based on the predicted beta distribution to obtain a target parking fence, wherein the target parking fence is configured to be a parking fence that increases a vehicle dispatching amount; Wherein, updating the initialized beta parameters to obtain a predicted beta distribution includes: Obtaining the vehicle outflow and supply within the preset time period; According to a preset attenuation coefficient and the outflow and supply, the initialized beta parameter is updated to obtain a predicted beta distribution; Wherein, updating the initialized beta parameter according to the preset attenuation coefficient and the outflow and supply amounts includes: When the supply amount is greater than zero, updating the initialized beta parameter according to a preset attenuation coefficient and the outflow amount and the supply amount; When the supply amount is equal to zero, the initialized beta parameter is updated according to the outflow amount and the supply amount.
7. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the method according to any one of claims 1 to 5.
8. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 5.
