This application is a U.S. National Stage Application filed under 35 U.S.C. § 371 claiming priority to International Patent Application No. PCT/JP2019/045220, filed on 19 Nov. 2019, the disclosure of which is hereby incorporated herein by reference in its entirety.
The present invention relates to a calculation method, a calculation apparatus, and a program.
In recent years, in the mobile service by taxi, IT has been promoted such that vehicle dispatch applications become widespread, and so on. As a result, people's movement history can be obtained, so that a price setting of a mobile service is made for each region, and prediction of mobile demand and the like are made.
There are many researches on techniques involved in the vehicle dispatch techniques and price determination techniques to maximize the profits of taxi. Examples include a price determination technique in accordance with the mobile demand in each region (NPL 2), minimization of the travel distance of taxi in an idle state (NPL 1), and the like.
In order to make a simultaneous determination of a price and time taking into account the probability of acceptance of an individual, it is necessary to solve a two-step optimization problem including uncertainties. Solutions to such an optimization problem include the L-shaped method, a technique combining an implicit enumeration method and the L-shaped method, and the like.
However, vehicle dispatch has not yet been carried out in consideration of the characteristics of each orderer. For example, nearby taxis are preferentially dispatched for busy people, and distant taxis are cheaply dispatched for less busy people, and so on. In order to carry out such a vehicle dispatch method, it is necessary to model and consider the acceptance or rejection of orderers according to the taxi price and the required time of each orderer when formulating the vehicle dispatch plan.
The present invention has been made in view of the circumstances described above, and an object of the present invention is to enable vehicle dispatch in consideration of individual differences of each orderer for the price and the required time.
In order to solve the above problem, a computer executes: an input procedure to input parameters for a distance matrix relating to a distance between a taxi and an orderer giving a taxi dispatch order, a travel distance for an order, an opportunity cost parameter for a taxi driver, and an acceptance probability function of the orderer; and a calculation procedure to calculate a price and a required time to be presented to the orderer by solving an optimization problem formulated using the parameters.
The present invention enables vehicle dispatch in consideration of individual differences of each orderer for the price and the required time.
Existing techniques have not been able to take account of the taxi acceptance probability of individuals for the price and the required time. For example, the problem formulated in NPL 2 can be written as follows.
First, suppose that orderers of vehicle dispatch of taxis ri (i=1, 2, . . . , n) and drivers of taxis wj (j=1, 2, . . . , m) are present in the space. Each driver can only dispatch to an orderer within a radius aw from its position, and E is a set of combinations of orderers and drivers that can be dispatched. It is assumed that each orderer i has a distance di from the getting-in place of the order to the getting-off place. It is also assumed that the space is divided into grids g=1, 2, . . . , 1, and the orderers present in each grid g accept the proposal with a probability of Sg (pg) and reject the proposal with a probability of 1−Sg (pg) for the price pg per unit of taxi distance presented to each. The acceptance probability determines acceptance or rejection, and by using the result, it is possible to construct a bipartite graph regarding the orderers and the drivers that can be matched. If a∈{0, 1}n represents the acceptance result of each orderer, ai=1 represents acceptance and ai=0 represents rejection for each orderer i. For each acceptance result a, a matching problem between taxis and orderers to maximize the corporate profits can be written as follows.
where, gi is a subscript representing the grid in which the orderer i exists. zij represents the matching of the orderer i and the taxi j, and if zij=1, the taxi j is dispatched to the orderer i. pgidi in the objective function represents the profit when matching is established. If zij=1 and ai=1, matching is established, resulting in the profit of pgidi. However, if zij=0 or ai=0, matching is not established, so the profit is 0. The first constraint is to limit the number of taxis that can be dispatched to an orderer to one, and the second constraint is to limit the number of orderers undertaken by a taxi to one. The fourth constraint is a constraint that only taxis that can be dispatched within the time presented to the orderer can be dispatched to the orderer.
Thus, the problem of maximizing the expected value of the profit obtained by presenting the price vector p of all grids to the customer can be written as follows when the optimal value of the above problem is h (a, p).
However, in this approach, the acceptance probability for the price is defined for each region, and the difference in the acceptance probability of each orderer is not taken into consideration. Changes in the acceptance probability according to the required time is also not captured. Thus, in the present embodiment, the optimization problem is formulated in consideration of the acceptance probability of individuals for the price and the required time.
However, the problem formulated according to the present embodiment is difficult to solve with conventional techniques. Conventional techniques such as the L-shaped method, which is a conventional technique for optimization problems including uncertainties, and a technique combining an implicit enumeration method and the L-shaped method cannot be applied to the problem of the present embodiment, and the optimization problem including the probability model with time and price as elements as described above is very difficult to solve with the following two points.
It is possible to obtain a local optimal solution by using a gradient method or the like by solving the second-stage problem for all cases caused by the probability, but it requires a huge amount of calculation time. Thus, in the present embodiment, an approximate solution (approximate algorithm) with a small amount of calculation that takes advantage of the unique characteristics of the problem is proposed for the formulated problem.
Formulation of Optimization Problem Including Acceptance Probability Model of Orderer for Price and Time
The problem of the present embodiment is formulated. First, as a premise, each orderer i has an acceptance probability Si (p, t) for a case where a taxi of a price p and a required time t (the time from ordering to the arrival of the taxi at the getting-in place+the time to fulfill the order of the orderer (i.e., travel time to the getting-off place)) is presented. The orderer determines whether to take a taxi according to this acceptance probability. Examples of such an acceptance probability model include a discrete choice model using a generalized cost function. Additionally, various probability models can be utilized, such as logistic regression models and deep learning models. The acceptance probability model also includes acceptance probability models according to each region of conventional techniques, so it can be adopted.
A case where a discrete choice model using a generalized cost function is used as an acceptance probability model will be described. First, the generalized cost is the total cost of travel converted into monetary value. For example, the generalized cost Cik when the individual i selects the means of transportation k can be defined as follows using the price pk of the means of transportation k, the time tk required for the traveling, and the time value Wi, which is the monetary value per unit time.
Cik=pk+Witk
At this time, the probability that the orderer i selects the means of transportation k′ can be defined as follows using a generalized cost function, where K is the set of options for the means of transportation.
Pik′=Pr(Cik +εk′<Cik+εk|∀k∈K/{k′})
where, ε is a random variable representing an error, and represents the influence of other factors that cannot be grasped by the monetary cost and the time cost or the influence of the estimation error of the time value W. Assuming that each E is independent of each other and follows a Gumbel distribution having the same distribution, the probability that the individual i selects the option k′ is derived as follows.
Thus, the probability that the individual i selects a taxi with a price p and a required time t is derived as follows.
where, K represents a set of options for the means of transportation other than taxis. Here, because public transportation (trains, buses, etc.) has published prices and required times, the prices and required times of other means of transportation, pk, tk, can be input from external information. The time value parameter Wi of each orderer i can be estimated from acceptance history data of taxis or the like, so it is possible to set the acceptance probability model.
The problem is formulated using the above assumptions. Suppose that orderers ri (i=1, 2, . . . , n) and drivers wj (j=1, 2, . . . , m) are present in the space as illustrated on the left side of
In this way, the acceptance probability determines acceptance or rejection, and as a result, it is possible to construct a bipartite graph regarding the orderers and the drivers that can be matched. The right side of
Here, a∈{0, 1}n represents the acceptance result of each orderer. ai=1 represents acceptance and ai=0 represents rejection for each orderer i. When the price p and the time t are presented to n orderers and the result of acceptance or rejection is represented by a, the matching problem between taxis and orderers to maximize the corporate profits can be written as follows.
zij represents the matching of the orderer i and the taxi j, and if zij=1, the taxi j is dispatched to the orderer i. α represents the opportunity cost per unit time of the taxi driver, cij represents the time required for the taxi j to arrive at the departure place of the orderer i, and di represents the time from the departure place (getting-in place) of the orderer i to the destination place (getting-off place), and (pi-α(cij+di)) in the objective function represents the profit when matching is established. If zij=1 and ai=1, matching is established, resulting in the profit of (pi−α(cij+di)). However, if zij=0 or ai=0, matching is not established, so the profit is 0.
The first constraint is to limit the number of taxis that can be dispatched to an orderer to one, and the second constraint is to limit the number of orderers undertaken by a taxi to one. The fourth constraint is a constraint that only taxis that can fulfill the order within the time presented to the orderer can be dispatched to the orderer. When the optimal value of the problem (2) is f (a, p, t), the expected value of the profit obtained by presenting p, t to the customer is
Thus, it is sufficient to find p, t to maximize this, but there are also the following constraints for p, t.
[Math. 9]
Si(pi,ti)≥C(i=1,2, . . . ,n) (4)
C is a constant that satisfies C∈[0, 1]. This is a constraint condition not to present an exorbitant amount to each orderer. Without this constraint, if the number of orderers is extremely large for the number of drivers, for example, in the event of terrorism or a disaster, the phenomenon of raising the price will occur. Raising the price in the event of an incident such as terrorism or a disaster can be a major bashing target, so it is necessary to incorporate such a constraint. By setting C=0, this constraint can be removed.
The problem to be solved can be formulated as the following optimization problem.
The formulation in the present embodiment is consistent with the formulation in conventional techniques by providing the following settings and constraints. By adopting the acceptance probability model according to each region of conventional techniques as the acceptance probability model, and defining α=0, C=0, and the presented required time ti as the sum of the time required for the driver to travel the distance aw and the time required to fulfill the order, the problem (5) is consistent with the problem setting of the conventional techniques. Thus, the formulation in the present embodiment has increased the degree of freedom of formulation according to the conventional techniques.
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
A program that realizes processing in the calculation apparatus 10 is provided on a recording medium 101 such as a CD-ROM. When the recording medium 101 having the program stored therein is set in the drive device 100, the program is installed in the auxiliary storage device 102 from the recording medium 101 via the drive device 100. However, the program does not necessarily have to be installed from the recording medium 101, and may be downloaded from another computer via a network. The auxiliary storage device 102 stores the installed program and also stores necessary files, data, and the like.
The memory device 103 reads and stores the program from the auxiliary storage device 102 when the program is instructed to start. The CPU 104 realizes a function relevant to the calculation apparatus 10 in accordance with the program stored in the memory device 103. The interface device 105 is used as an interface for connection to a network. The display device 106 displays a graphical user interface (GUI) or the like based on the program. The input device 107 is configured with a keyboard, a mouse, and the like and is used for inputting various operation instructions.
Hereinafter, a processing procedure that is executed by the calculation apparatus 10 will be described.
In step S101, the input unit 11 inputs each parameter of the problem (the distance matrix relating to distances between the taxis and orderers, the travel distance in each order, the opportunity cost parameter of the taxi drivers, and the acceptance probability function for each orderer).
Subsequently, the formulation unit 12 makes a formulation to an optimization problem based on the parameters input by the input unit 11 (substituting the parameters into the optimization problem) (S102). Subsequently, the optimization unit 13 calculates the approximate solutions p and tin the problem (5) based on the parameters of the problem formulated by the formulation unit 12 (S103). Subsequently, the output unit 14 outputs the approximate solutions p and t calculated by the optimization unit 13 (S104).
Subsequently, details of Step S103 will be described.
By solving the optimization problem (5), it is possible to determine the optimal presented price and the required time. Any optimization technique may be used as long as it is possible to derive an approximate solution that achieves the optimal solution of the above-described problem or a good objective function value. For example, the solution may be determined by genetic algorithm, Bayesian optimization, or the like, or an algorithm proposed in the future may be used.
However, the following approximate solution is proposed in the present embodiment because there is no existing conventional technique that can solve the optimization problem described above at high speed.
Approximate Solution
Consider the following problem as an approximation problem of the optimization problem (5).
is external to the function f, whereas in the above problem,
Σa∈{0,1}
is internal to the function f. By performing this operation, it is possible to transform a problem in which a plurality of bipartite graph matching exists into a problem dealing with one typical bipartite graph matching problem.
In this case, assuming that the optimal value in the problem (5) is v and the optimal value in the problem (6) is v′, v and v′ have the following feature.
Thus, by solving the problem (6), an approximate solution of the problem (5) can be obtained.
The optimization unit 13 executes an algorithm utilizing this in step S103.
In step S201, the optimization unit 13 calculates
{circumflex over (p)}ij=argmax{(pij−α(cij+di))Si(pij,cij)|Si(pij,cij)≥C} [Math. 15]
for each edge (i, j) of the bipartite graph. The optimization unit 13 also defines rj:=1 for each j. The optimization unit 13 also defines E:={(i, j)|i=1, 2, . . . , n, j=1, 2, . . . , m}. The optimization unit 13 further determines the maximum number of iterations. The maximum number of iterations may be input by a user.
Subsequently, the optimization unit 13 solves the following optimization problem (S202).
Subsequently, the optimization unit 13 determines the presented price and the presented time based on the solution to the problem described above. The optimization unit 13 also updates the edge set E with the update rule (S203). Specifically, when the solution to the problem described above is
{circumflex over (z)}, [Math. 17]
the optimization unit 13 defines
pi={{circumflex over (p)}ij|{circumflex over (z)}ij=1},ti={cij|{circumflex over (z)}ij=1}, [Math. 18]
and updates the edge set E excluding the corresponding branch (i, j) from the edge set E to
E=E\{(i,j)|{circumflex over (z)}ij=1}. [Math. 19]
Subsequently, the optimization unit 13 determines conditions if
{circumflex over (z)}ij=0, [Math. 20]
for all (i, j), or if E=φ (empty set), or whether or not the number of iterations (number of iterations after step S202) has reached the maximum number of iterations (S204).
If the condition is satisfied (Yes at S204), the optimization unit 13 terminates the process in
On the other hand, in a case that the condition is not satisfied (No in S204), for
For each {(i,j)|{circumflex over (z)}ij=1}, [Math. 21]
the optimization unit 13 updates rj as
rj:=1−Si({circumflex over (p)}ij,cij), [Math. 22]
and returns to step S202.
As described above, according to the present embodiment, by solving the problem of determining the price and the time of the taxi in consideration of the acceptance probability model that represents the acceptance or rejection of the orderer for the price and the required time of the taxi for each orderer as a probability model, it is possible to dispatch a vehicle in consideration of individual differences of each orderer for the price and the required time. As a result, it is possible to dispatch a vehicle according to the characteristics of each individual, and it is possible to improve corporate profits and the overall social welfare of the orderers.
Note that, in the present embodiment, the optimization unit 13 is an example of a calculation unit.
Although the embodiments of the present invention have been described in detail above, the present invention is not limited to such specific embodiments, and various modifications and changes can be made without departing from the gist of the present invention described in the aspects.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2019/045220 | 11/19/2019 | WO |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2021/100108 | 5/27/2021 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
10026506 | LaBorde | Jul 2018 | B1 |
20140214459 | Ryder | Jul 2014 | A1 |
20170364968 | Gopalakrishnan | Dec 2017 | A1 |
20180101877 | Song | Apr 2018 | A1 |
20180364062 | Wang | Dec 2018 | A1 |
20190236742 | Tomskii | Aug 2019 | A1 |
20190244318 | Rajcok | Aug 2019 | A1 |
20220284792 | Gerrese | Sep 2022 | A1 |
Entry |
---|
“Taxi Dispatch System Based on Current Demands and Real-Time Traffic Conditions” Published by Transportation research record (Year: 2004). |
Garg et al. (2018) “Route Recommendations for Idle Taxi Drivers: Find Me the Shortest Route to a Customer!” KDD, Aug. 19, 2018, London, United Kingdom. |
Tong et al. (2018) “Dynamic Pricing in Spatial Crowdsourcing: A Matching-Based Approach” SIGMOD Conference, Jun. 10, 2018, Houston, Texas, U.S. |
Ikeda et al. (2014) “Mobility on Demand for Improving Business Profits and User Satisfaction” Fujitsu, vol. 65, No. 4. |
Number | Date | Country | |
---|---|---|---|
20220414554 A1 | Dec 2022 | US |