An optimization method for empty car migration in multi-task crowdsourcing car-sharing based on improved GAVNS
Through the multi-task crowdsourcing shared car empty car migration optimization method that combines an improved genetic algorithm and a variable domain search algorithm, it solves the problems of insufficient pricing flexibility and inaccurate calculation in the existing technology, and achieves a flexible and intelligent pricing strategy and efficient The calculation process meets the needs of real-time solution.
Patent Information
- Application Number
- CN202410947057.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing shared car migration task pricing strategies and scheduling models fail to fully consider user demand fluctuations, road segment congestion characteristics, regional density changes, and real-time calculations, resulting in inflexible pricing, inaccurate calculation results, and inability to meet real-time solutions under large-scale data Require.
A multi-task crowdsourcing shared car empty car migration optimization method based on an improved genetic algorithm mutation strategy (GA) and a variable domain search algorithm (VNS) is adopted. Through the dynamic pricing strategy and multi-task crowdsourcing model, the migration distance and road section congestion are considered. Exponential and time factors, construct a minimum operating cost objective function, and use a radial search algorithm to obtain the initial solution to speed up the solution process.
It implements a flexible and intelligent pricing strategy, improves the accuracy and computing efficiency of migration tasks, meets real-time computing requirements under large-scale data, reduces operating costs, and improves dispatcher density adaptability.
Smart Images

Figure CN118504780B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of traffic control systems and relates to an optimization method for empty car migration of multi-task crowdsourcing shared cars based on improved GAVNS. Background Art
[0002] According to the 2021 China Statistical Yearbook, the number of registered vehicles exceeds 302 million. However, compared with the number of vehicles, there is a huge gap of 142 million drivers who "have a license but no car". The one-way, floating station vehicle sharing system is considered to be a useful supplement to the growing travel demand and the supply gap of public service vehicles due to its high vehicle utilization rate, fast parking turnover rate and low use cost.
[0003] In this car-sharing system, the operator deploys a certain number of vehicles at a service station every day, and when the user picks up the car from the service station, it is allowed to return to any place (called a floating station). At this service point or many other service points, there is a wide regional imbalance between vehicle supply and user demand. Task migration is the rebalancing of empty vehicles by full-time employees (full-time dispatchers). However, this migration strategy has limitations such as high operating costs and concentrated work for dispatchers. With the rapid development of 5G, Internet technology, and the sharing economy model, crowdsourcing platforms have successfully made up for the imbalance between travel service providers and public travel. On this crowdsourcing platform, an emerging vehicle migration scheduling technology replaces the current scheduling model with the goal of attracting social resources and reducing operating labor costs.
[0004] Previous studies on shared car migration have some shortcomings in terms of migration task pricing strategy and migration task crowdsourcing scheduling model. First, the migration task pricing strategy directly affects the economic benefits of operators and the user's selection behavior. However, most of the existing pricing strategies fail to take into account the fluctuations in user demand and the congestion characteristics of road sections, resulting in pricing strategies that are not flexible and intelligent enough and unable to cope with the impact of pricing strategies on migration tasks, such as the patent "A mobile platform crowdsourcing task pricing method and system", patent application number: CN201711405763.4. Secondly, the previous crowdsourcing scheduling model for relocation tasks is still not accurate enough, such as not considering factors such as charging costs, regional density changes, the dynamics of task scheduling in different time periods, and the real-time nature of calculations, resulting in inaccurate calculation results, such as the patent "An intelligent scheduling system and method for fuel-sharing cars", patent application number: CN202110318712.8. Finally, the algorithm performance used in existing research cannot meet the time window requirements in large-scale data chains, and cannot be solved quickly and accurately within the update time, such as the article patent "Multi-objective optimization method for shared car pricing planning model based on genetic algorithm", CN202010987510.8. Summary of the invention
[0005] In view of the above problems, the purpose of the present invention is to provide a multi-task crowdsourcing shared car empty car migration optimization method, through considering the migration distance, road congestion index, time and other factors of the dynamic pricing strategy; in order to reveal the randomness of the empty car return position and the floating site position, by constructing a shared car empty car migration model based on multi-task crowdsourcing to adapt to the changing characteristics of regional dispatcher density; in order to solve the problem that the solution speed cannot meet the real-time performance, by adding a solution method based on the improved GAVNS, the solution time is greatly shortened to meet the requirements of real-time computing.
[0006] To achieve the above object, the present invention adopts the following technical solution:
[0007] A multi-task crowdsourcing shared car empty car migration optimization method based on improved GAVNS specifically includes the following steps:
[0008] Step A: Obtain migration information as input for solving crowdsourcing task service pricing and shared car empty car migration models;
[0009] Step B: Design a crowdsourcing task service pricing strategy to serve as a reference for the remuneration paid to crowdsourcing dispatchers and as an input for building a shared car empty car migration model;
[0010] Step C: Construct a multi-task crowdsourcing shared car empty car migration model to adjust the scheduling and migration of shared cars and improve the relocation rate of shared cars by minimizing the overall migration cost;
[0011] Step D: Use the radial search algorithm to obtain the initial solution, which is used to quickly obtain a solution that satisfies the constraints, improve the convergence speed of the optimal solution, and serve as the input of the GAVNS algorithm to solve the scheduling strategy;
[0012] Step E: Use the improved GAVNS algorithm to solve the scheduling strategy for model solving, where the GA algorithm is used for population evolution and the VNS algorithm is used to jump out of the local optimum;
[0013] Step F: Draw a migration route and issue instructions to serve as a reference for the dispatcher's task destination and driving path.
[0014] As the preferred embodiment of the present invention, step A also includes the following steps:
[0015] A1: Get the status of all shared cars within the jurisdiction at the current moment, including the fuel / power status of the vehicle, whether the vehicle is at the station, and the location of the vehicle;
[0016] A2: Obtain the status of crowdsourced dispatchers, including the number of dispatchers within the jurisdiction, the number of dispatchers in each community, and the location of the dispatchers;
[0017] A3: Get station information, including station location, number of stations, and available parking spaces at each station.
[0018] As the preferred embodiment of the present invention, step B also includes the following steps:
[0019] B1: Determine the factors affecting task pricing,
[0020] The distance d1 from the dispatcher to the empty vehicle, the distance d2 from the empty vehicle to the station, the time t, and the road congestion index c are selected as factors affecting task pricing;
[0021] The distance d1 from the dispatcher to the empty vehicle is the distance the dispatcher travels to the task point by himself, and d1 is positively correlated with the price;
[0022] The distance d2 from the empty car to the station is the distance that the dispatcher drives the empty car to migrate to the shared car network point, and d2 is positively correlated with the price;
[0023] According to the time difference and regularity of dispatcher density and vehicle usage, the whole day is divided into several intervals. The price is reduced accordingly during the time periods with high dispatcher density and low vehicle usage; the price is increased accordingly during the time periods with low dispatcher density and high vehicle usage.
[0024] The road congestion index c will greatly affect the completion time of the migration task, and c is positively correlated with the price;
[0025] B2: Determine the task pricing formula;
[0026] According to the analysis of B1 pricing influencing factors, the formula for determining crowdsourcing task prices is:
[0027] M=ct(αd1+βd2)
[0028] Among them, M is the crowdsourcing task price; c is the road congestion index, which is based on the real-time road congestion index of Amap. In a smooth state, c=1, and in a congested state, c>1; t is a parameter related to the time period. According to the historical task situation, the time period is divided into four levels according to the time difference of the dispatcher density and the vehicle usage. 0-3 t=1.5, 3-7 t=1.8, 7-22 t=1.0; 22-24 t=1.3, α and β are parameters to be determined;
[0029] B3: Pricing strategy model parameter calibration,
[0030] Obtain historical crowdsourcing task information and use the historical information to calibrate parameters α and β in formula B2, where each historical information chain includes M, d1, d2, c, and t corresponding to the crowdsourcing task.
[0031] As the preferred embodiment of the present invention, step C also includes the following steps:
[0032] C1: Design the empty car migration objective function,
[0033] The objective function is designed to minimize the operating cost, which is composed of three parts: total mission pricing cost, total vehicle energy consumption cost, and total operating loss cost;
[0034] The total task cost is the operating cost incurred by the service provider for assigning tasks, that is, the total cost paid to the dispatcher; the total vehicle energy consumption cost is the total cost associated with the vehicle, also known as the energy consumption cost of the vehicle relocation process; the total operating loss cost is the cost of the potential loss of income of the unassigned shared car the next day. The objective function of the empty car migration task is as follows:
[0035]
[0036] Where P e is the operating cost of the vehicle per unit distance; N is the number of dispatchers; K is the number of empty vehicles; is a decision variable, which is 1 when dispatcher n performs the dispatch task to assign vehicle k to station i, otherwise, it is 0; are the distance traveled by the vehicle k and the pricing of the task when dispatcher n assigns the vehicle k to station i; P c The potential operating loss costs for the next day if the empty vehicle is not moved;
[0037] C2: Design empty car migration constraints,
[0038] Constraints are designed based on their type, from four aspects: dynamic pricing constraints, assignment rule constraints, service capacity constraints, and spatial location constraints;
[0039] C2.1: Dynamic pricing constraints,
[0040] When the sum of the vehicle energy consumption cost and the task pricing cost exceeds the next day's business loss cost of the unfinished task, the task will not be executed, that is:
[0041]
[0042] C2.2: Assignment rule constraints,
[0043] The same dispatcher can accept multiple tasks within a given time. However, when accepting multiple tasks, the two tasks must meet the requirement that the station corresponding to the first empty vehicle task should be less than Q meters away from the second empty vehicle task.
[0044]
[0045] In the formula, is the Euclidean distance between the empty vehicle of the next task and the station of the previous task when the crowdsourcing dispatcher receives more than one task at the same time;
[0046] However, the same task can only be assigned to one dispatcher at a time, that is:
[0047]
[0048] C2.3: Service capacity constraints,
[0049] The vehicle’s remaining battery capacity or fuel volume must be sufficient to complete the dispatch mission, i.e.:
[0050]
[0051] In the formula, m k is the remaining power or fuel of vehicle k, calculated as a percentage; L is the range of vehicle k when fully charged or fully fueled;
[0052] When there are no parking spaces at a station, empty vehicles are no longer assigned to the station, that is:
[0053]
[0054] In the formula, c i is the number of parking spaces at site i;
[0055] The number of vehicles in each area should be sufficient to meet the number of vehicles used the next day, namely:
[0056]
[0057] Where D a is the number of sites in area a; e a The least used vehicles in area a on the second day;
[0058] C2.4: Spatial geographic location constraints,
[0059] The platform will select dispatchers and stations that are closer to the vehicle. Beyond this distance, no migration will be performed. This constraint requires that the dispatch distance and the distance from the dispatcher to the vehicle should be within 10 kilometers, that is:
[0060] d ki ≤10
[0061] d nk ≤10.
[0062] As the preferred embodiment of the present invention, step D also includes the following steps:
[0063] D1: Matrix coding scheme,
[0064] Binary matrix encoding is used for stations and dispatchers, where the encoding and decoding process of the solution involves the encoding and decoding matrix of the dispatcher, the encoding and decoding matrix of the station, and the number vector of the vehicle. A complete task chain is: dispatcher number to empty vehicle number, empty vehicle number to station number,
[0065] D2: Divide into small areas,
[0066] Divide the dispatch area into 25×25 grids to refine the area granularity and prepare for radial search matching of dispatchers, vehicles and stations;
[0067] D3: Calculate spatial adjacency,
[0068] The spatial adjacency is negatively correlated with the Euclidean distance. The larger the Euclidean distance, the smaller the spatial adjacency. The following formula is obtained:
[0069]
[0070] In the formula, G ij ,d ij Respectively represent the spatial adjacency and Euclidean distance between object i and object j;
[0071] D4: Match the initial solution of dispatcher-vehicle-station.
[0072] The spatial positions of vehicles, stations and dispatchers are analyzed and superimposed. According to the spatial adjacency order and combined with partitioning, a radial search method is used, with empty vehicles as the center, to match empty vehicles with dispatchers and stations layer by layer.
[0073] As a preferred embodiment of the present invention, step E also includes the following steps:
[0074] E1: Set the basic parameters of GAVNS;
[0075] E2: Design an improved genetic algorithm (GA). The improved genetic algorithm steps mainly include replication, crossover, and mutation. E2.1: Replication,
[0076] The roulette wheel selection method is adopted, and the elite retention strategy is integrated. The individuals with the best fitness in the parent generation are directly copied to the offspring, and the remaining individuals are selected by probability according to the roulette wheel method.
[0077] E2.2: Crossover,
[0078] In each generation, individuals randomly exchange some genes with each other, and the selection of paternal and maternal parents adopts 1-2, 3-4 exchanges;
[0079] E2.3: Use adaptive probability to participate in mutation operation,
[0080] The variable mutation probability method is used in the mutation operation. The adaptive genetic probability is set according to the quality of the previous generation solution. When the quality fitness of a solution in the previous generation is high, a smaller mutation probability is set. On the contrary, a larger mutation probability is applied. The mutation probability setting interval is 0.01~0.1.
[0081] E2.4: Determine whether the new solution should be retained.
[0082] Compare the fitness of the parent and child solutions, and retain the solution with the larger fitness as the new solution;
[0083] E3: Improved by the variable neighborhood search algorithm (VNS),
[0084] Variable neighborhood search is the repeated and sequential application of a set of neighbors to move to a local optimum, with solution movement occurring only when improvements are made.
[0085] E3.1: Apply oscillation operation to improve the solution,
[0086] Perform oscillation operation on the solution obtained by genetic algorithm;
[0087] E3.2: Improve the solution using the exchange neighborhood operator,
[0088] Apply the probability of p1 to the solution generated in step E3.1, and perform exchange neighborhood perturbation on the solution, that is, exchange the genes at two random positions on the selected chromosome, compare the generated new solution with the solution generated by the genetic algorithm, and retain the solution with large fitness. If the new solution generated by the exchange neighborhood operator is retained, determine whether the maximum number of iterations has been reached. If so, output the solution, otherwise enter the next generation cycle. If the new solution generated by the exchange neighborhood operator is not retained, directly enter step E3.3;
[0089] E3.3: Using regression neighborhood operators to improve the solution,
[0090] Apply the probability of p2 to the solution generated in step E3.1, perform exchange neighborhood perturbation on the solution, that is, invert the gene fragment on the selected chromosome, compare the generated new solution with the solution generated by the genetic algorithm, and retain the solution with large fitness. If the new solution generated by the regression neighborhood operator is retained, determine whether the maximum number of iterations has been reached. If so, output the solution, otherwise enter the next generation cycle. If the new solution generated by the regression neighborhood operator is not retained, directly enter step E3.4;
[0091] E3.4: Improve the solution using the insertion neighborhood operator,
[0092] Apply the probability of p3 to the solution generated in step E3.1, insert the neighborhood disturbance to the solution, that is, extract a gene on the selected chromosome and insert it between the other two genes of the chromosome. Compare the new solution generated with the solution generated by the genetic algorithm, retain the solution with large fitness, and determine whether the maximum number of iterations has been reached. If yes, output the solution, otherwise enter the next generation cycle;
[0093] Among them, the above p1, p2, and p3 are the probabilities of performing the exchange neighborhood operator, the regression neighborhood operator, and the insertion neighborhood operator operations respectively;
[0094] E4: Output the final migration strategy.
[0095] The decoded data after the final iteration is output to clearly show the dispatcher and station corresponding to each empty vehicle.
[0096] As the preferred embodiment of the present invention, step F also includes the following steps:
[0097] F1: Draw the migration route,
[0098] Output the migration strategy generated in step E and draw a migration roadmap using MATLAB software;
[0099] F2: Generate feasible trajectory path,
[0100] Since the scheduling strategy generated in step E1 is only the starting and ending points of the task, the specific driving trajectory is still unclear. Amap is called to generate a specific trajectory based on the starting and ending points.
[0101] F3: Issue mission instructions.
[0102] The central controller issues task instructions and displays the task status in real time on the crowdsourcing dispatcher's mobile phone APP.
[0103] The advantages and positive effects of the present invention are:
[0104] 1. In view of the fact that most of the migration task pricing strategies in the prior art fail to take into account the fluctuations in user demand and the congestion characteristics of road sections, resulting in the pricing strategies being inflexible and insensitive, and unable to cope with the defects of the pricing strategies for migration tasks, this invention designs a dynamic pricing strategy that takes into account factors such as migration distance, road section congestion index, and time.
[0105] 2. The present invention aims to solve the problem that the previous crowdsourcing scheduling model for relocation tasks is still not accurate enough, such as not considering factors such as charging costs, regional density changes, the dynamics of task scheduling in different time periods, and the real-time nature of calculations. This solution constructs a shared car empty car migration model based on multi-task crowdsourcing to adapt to the changing characteristics of regional dispatcher density.
[0106] 3. In view of the fact that the performance of the algorithms used in existing research cannot meet the time window requirements in large-scale data chains, this invention designs a solution method based on the improved GAVNS and generates an initial solution through a radial search algorithm, which speeds up the search efficiency. Compared with GA, this hybrid algorithm greatly shortens the solution time and meets the requirements of real-time computing. BRIEF DESCRIPTION OF THE DRAWINGS
[0107] Figure 1 It is the technical roadmap of the present invention.
[0108] Figure 2 It is a schematic diagram of multi-task packaging of the present invention.
[0109] Figure 3 It is a schematic diagram of matrix coding of the present invention.
[0110] Figure 4 It is a schematic diagram of the radial search of the present invention.
[0111] Figure 5 It is a flow chart of the improved GAVNS algorithm of the present invention.
[0112] Figure 6 It is a schematic diagram of the crossover variation of the present invention.
[0113] Figure 7 Schematic diagram of three VNS operators of the present invention.
[0114] Figure 8 This is the empty vehicle migration task scheduling scenario of the present invention.
[0115] Fig. 9 4 is a schematic diagram for comparing the performance of the four algorithms of the present invention.
[0116] Fig.10 It is a schematic diagram comparing the improvements of the four algorithms of the present invention. DETAILED DESCRIPTION
[0117] See also Figure 1-10 This embodiment provides a multi-task crowdsourcing shared car empty car migration optimization method, including the following steps:
[0118] Step A: Get migration information;
[0119] A1: Get the status of all shared cars within the jurisdiction at the current moment, including the fuel / power status of the vehicle, whether the vehicle is at the station, and the location of the vehicle;
[0120] A2: Obtain the status of crowdsourced dispatchers, including the number of dispatchers within the jurisdiction, the number of dispatchers in each community, and the location of the dispatchers;
[0121] A3: Get station information, including station location, number of stations, and available parking spaces at each station;
[0122] Step B: Design a pricing strategy for crowdsourcing task services.
[0123] B1: Determine the factors affecting task pricing,
[0124] The distance d1 from the dispatcher to the empty vehicle, the distance d2 from the empty vehicle to the station, the time t, and the road congestion index c are selected as factors affecting task pricing;
[0125] The distance d1 from the dispatcher to the empty vehicle is the distance the dispatcher travels to the task point (empty vehicle location) by himself. Generally speaking, d1 is positively correlated with the price;
[0126] The distance d2 from the empty car to the station is the distance that the dispatcher drives the empty car to migrate to the shared car network. Generally speaking, d2 is positively correlated with the price;
[0127] According to the time difference and regularity of dispatcher density and vehicle usage, the whole day is divided into several intervals. The price is reduced accordingly during the time periods with high dispatcher density and low vehicle usage; the price is increased accordingly during the time periods with low dispatcher density and high vehicle usage.
[0128] The road congestion index c will greatly affect the completion time of the migration task, and c is positively correlated with the price;
[0129] B2: Determine the task pricing formula;
[0130] According to the analysis of B1 pricing influencing factors, the formula for determining crowdsourcing task prices is:
[0131] M=ct(αd1+βd2)
[0132] Among them, M is the crowdsourcing task price; c is the road congestion index, which is based on the real-time road congestion index of Amap. In a smooth state, c=1, and in a congested state, c>1; t is a parameter related to the time period. According to the historical task situation, the time period is divided into four levels according to the time difference of the dispatcher density and the vehicle usage. 0-3 t=1.5, 3-7 t=1.8, 7-22 t=1.0; 22-24 t=1.3, α and β are parameters to be determined;
[0133] B3: Pricing strategy model parameter calibration,
[0134] Obtain historical crowdsourcing task information and use the historical information to calibrate parameters α and β in formula B2, where each historical information chain includes M, d1, d2, c, and t corresponding to the crowdsourcing task;
[0135] Step C: Construct a multi-task crowdsourcing shared car empty car migration model;
[0136] C1: Design the empty car migration objective function,
[0137] The objective function is designed to minimize the operating cost, which is composed of three parts: total mission pricing cost, total vehicle energy consumption cost, and total operating loss cost;
[0138] The total task cost is the operating cost incurred by the service provider for assigning tasks, that is, the total cost paid to the dispatcher; the total vehicle energy consumption cost is the total cost associated with the vehicle, also known as the energy consumption cost of the vehicle relocation process; the total operating loss cost is the cost of the potential loss of income of the unassigned shared car the next day. Therefore, the objective function of the empty car migration task is as follows:
[0139]
[0140] Where P e is the operating cost of the vehicle per unit distance; N is the number of dispatchers; K is the number of empty vehicles; is a decision variable, which is 1 when dispatcher n performs the dispatch task to assign vehicle k to station i, otherwise, it is 0; are the distance traveled by the vehicle k and the pricing of the task when dispatcher n assigns the vehicle k to station i; P c The potential operating loss costs for the next day if the empty vehicle is not moved;
[0141] C2: Design empty car migration constraints,
[0142] Constraints are designed based on their type, from four aspects: dynamic pricing constraints, assignment rule constraints, service capacity constraints, and spatial location constraints;
[0143] C2.1: Dynamic pricing constraints,
[0144] When the sum of the vehicle energy consumption cost and the task pricing cost exceeds the next day's business loss cost of the unfinished task, the task will not be executed, that is:
[0145]
[0146] C2.2: Assignment rule constraints,
[0147] The same dispatcher can accept multiple tasks within a given time, but when accepting multiple tasks, the requirements that the two tasks need to meet are, such as Figure 2 As shown in the multi-task packaging diagram, the station corresponding to the first empty vehicle task should be less than Q meters away from the second empty vehicle task;
[0148]
[0149] In the formula is the Euclidean distance between the empty vehicle of the next task and the station of the previous task when the crowdsourcing dispatcher receives more than one task at the same time;
[0150] However, the same task can only be assigned to one dispatcher at a time, that is:
[0151]
[0152] C2.3: Service capacity constraints,
[0153] The vehicle’s remaining battery capacity or fuel volume must be sufficient to complete the dispatch mission, i.e.:
[0154]
[0155] In the formula, m k is the remaining power or fuel of vehicle k, calculated as a percentage; L is the range of vehicle k when fully charged or fully fueled;
[0156] When there are no parking spaces at a station, empty vehicles are no longer assigned to the station, that is:
[0157]
[0158] In the formula, c i is the number of parking spaces at site i;
[0159] The number of vehicles in each area should be sufficient to meet the number of vehicles used the next day, namely:
[0160]
[0161] Where D a is the number of sites in area a; e a The least used vehicles in area a on the second day;
[0162] C2.4: Spatial geographic location constraints,
[0163] Usually, the platform will select dispatchers and stations that are closer to the vehicle. Beyond this distance, migration is generally not performed. This constraint requires that the dispatch distance and the distance from the dispatcher to the vehicle should be within 10 kilometers, that is:
[0164] d ki ≤10
[0165] d nk ≤10;
[0166] Step D: Use the radial search algorithm to obtain the initial solution.
[0167] D1: Matrix coding scheme,
[0168] Binary matrix coding is used for stations and dispatchers, where the encoding and decoding process of the solution involves the encoding and decoding matrix of the dispatcher, the encoding and decoding matrix of the station, and the number vector of the vehicle. Matrix coding has the advantages of flexibility, universality, and dimensional consistency, which helps to simplify crossover and mutation operations and make the algorithm more universal. A complete task chain is: dispatcher number to empty vehicle number, empty vehicle number to station number, that is, dispatcher number → empty vehicle number → station number. The specific encoding method is as follows: Figure 3 Take the last line as an example. The code in this line means that the dispatcher No. 75 is going to find an empty car No. 50 and drive the car to the station No. 17. 75→50→17 is a complete task chain.
[0169] D2: Divide into small areas,
[0170] Divide the dispatch area into 25×25 grids to refine the area granularity and prepare for radial search matching of dispatchers, vehicles and stations;
[0171] D3: Calculate spatial adjacency,
[0172] The spatial adjacency is negatively correlated with the Euclidean distance. The larger the Euclidean distance, the smaller the spatial adjacency. Therefore, the following formula is obtained:
[0173]
[0174] In the formula, G ij ,d ij Respectively represent the spatial adjacency and Euclidean distance between object (dispatcher, empty vehicle or station) i and object j;
[0175] D4: Match the initial solution of dispatcher-vehicle-station.
[0176] The spatial positions of vehicles, stations and dispatchers are analyzed and superimposed, and the empty vehicles are matched with dispatchers and stations layer by layer in the order of spatial adjacency and combined with partitions, using a radial search method with empty vehicles as the center. This ensures that the quality of the initial solution is relatively high and avoids a high initial total cost, which greatly helps iterative convergence. The specific method for generating the initial solution is as follows: Figure 4 shown.
[0177] Step E: Use the improved GAVNS algorithm to solve the scheduling strategy;
[0178] Step D introduces the process of generating the initial solution. The next steps include designing an improved genetic algorithm (GA) to update the solution and adding an improved variable neighborhood search algorithm (VNS) to improve the solution after each GA solution. The flowchart of the improved GAVNS algorithm is shown in Figure 5 shown.
[0179] E1: Set the basic parameters of GAVNS, which are the number of genetic algorithm cycles, the number of populations, the mutation probability, the crossover probability, and the neighborhood operator probability;
[0180] E2: Design an improved genetic algorithm. The improved genetic algorithm steps mainly include replication, crossover, and mutation.
[0181] E2.1: Copy,
[0182] The roulette wheel selection method is adopted, and the elite retention strategy is integrated to directly copy the individuals with the best fitness in the parent generation to the offspring, and the remaining individuals are selected by probability in the roulette wheel method;
[0183] E2.2: Crossover,
[0184] As shown in the figure, individuals randomly exchange some genes with each other in each generation, and the selection of paternal and maternal parents adopts the exchange method of 1-2 and 3-4;
[0185] E2.3: Use adaptive probability to participate in mutation operation,
[0186] The method of using variable mutation probability in mutation operation can improve algorithm performance and break through local optimum. Therefore, the adaptive genetic probability is set according to the quality of the previous generation solution. When the quality fitness of a solution in the previous generation is high, a smaller mutation probability is set. On the contrary, a larger mutation probability is applied. The mutation probability setting interval is 0.01 to 0.1, which helps to speed up the iterative convergence. The specific operation is as follows Figure 6 shown.
[0187] E2.4: Determine whether the new solution should be retained.
[0188] Compare the fitness of the parent and child solutions, and retain the solution with the larger fitness as the new solution;
[0189] E3: Improved by variable neighborhood search algorithm,
[0190] Variable Neighborhood Search (VNS) is the repeated and sequential application of a set of neighbors to move to a local optimum. Solution movement occurs only when improvements are made. VNS combined with other algorithms has been shown to produce good results in optimization, faster convergence, and improved solution quality.
[0191] E3.1: Apply oscillation operation to improve the solution,
[0192] Perform oscillation operation on the solution obtained by genetic algorithm;
[0193] E3.2: Improve the solution using the exchange neighborhood operator,
[0194] Apply the probability of p1 to the solution generated in step E3.1 to perform an exchange neighborhood perturbation on the solution, such as Figure 7 As shown, the genes at two random positions on the selected chromosome are exchanged, and the generated new solution is compared with the solution generated by the genetic algorithm, and the solution with large fitness is retained. If the new solution generated by the exchange neighborhood operator is retained, it is determined whether the maximum number of iterations has been reached. If so, the solution is output, otherwise it enters the next generation cycle. If the new solution generated by the exchange neighborhood operator is not retained, it directly enters step E3.3;
[0195] E3.3: Using regression neighborhood operators to improve the solution,
[0196] Apply the probability of p2 to the solution generated in step E3.1 and perform the exchange neighborhood perturbation on the solution, such as Figure 7 As shown, the gene fragment on the selected chromosome is inverted, and the resulting new solution is compared with the solution generated by the genetic algorithm, and the solution with the largest fitness is retained. If the new solution generated by the regression neighborhood operator is retained, it is determined whether the maximum number of iterations has been reached. If so, the solution is output, otherwise it enters the next generation cycle. If the new solution generated by the regression neighborhood operator is not retained, it directly enters step E3.4;
[0197] E3.4: Improve the solution using the insertion neighborhood operator,
[0198] Apply the probability of p3 to the solution generated in step E3.1 to insert the neighborhood perturbation into the solution, such as Figure 7 As shown in the figure, a gene on the selected chromosome is removed and inserted between the other two genes of the chromosome. The generated new solution is compared with the solution generated by the genetic algorithm, the solution with large fitness is retained, and it is judged whether the maximum number of iterations has been reached. If so, the solution is output, otherwise it enters the next generation cycle;
[0199] Among them, the above p1, p2, and p3 are the probabilities of performing the exchange neighborhood operator, the regression neighborhood operator, and the insertion neighborhood operator operations respectively;
[0200] E4: Output the final migration strategy.
[0201] The decoded data after the final iteration is output to clearly show the dispatcher and station corresponding to each empty vehicle;
[0202] Step F: Draw migration routes and issue instructions,
[0203] F1: Draw the migration route,
[0204] Output the migration strategy generated in step E and use MATLAB software to draw a migration roadmap, as shown in the figure.
[0205] F2: Generate feasible trajectory path,
[0206] Since the scheduling strategy generated in step E1 is only the starting and ending points (OD points) of the task, the specific driving trajectory is still unclear. Amap is called to generate a specific trajectory based on the starting and ending points.
[0207] F3: Issue mission instructions.
[0208] The central controller issues task instructions and displays the task status (task starting and ending points, task price, driving route, etc.) in real time on the crowdsourcing dispatcher's mobile phone APP.
[0209] like Figure 8 and Fig.10 As shown, in order to check the algorithm performance based on the improved GAVNS, the basic situations of four algorithms are given in this embodiment, and accordingly, a scenario of a dispatcher, an empty vehicle, and a station is generated according to the actual situation.
[0210] Depend on Fig. 9 It can be seen that the total costs of VMP-GA, RS-GA, VMP-RS-GA and GAVNS are RMB 712.29, RMB 361.3, RMB 354.36 and RMB 336.33 respectively. From the total cost of the four algorithms, GAVNS has the lowest total cost, which is only 47.22% of VMP-GA, meeting the economic requirements of crowdsourcing scheduling mode for shared vehicle vacancy. Compared with VMP-GA, VMP-RS-GA reduces the total cost by RMB 357.93 and improves the solution quality by 50.25%. It can be seen that the proposed pre-optimization scheme based on radial search to generate the initial solution helps to improve the quality of the solution. When comparing RS-GA with VMP-RS-GA, VMP-RS-GA reduces the total cost by RMB 6.94 and improves the solution quality by 1.92%. Although the final total cost reduction is not significant, the total cost of VMP-RS-GA when the convergence number is 200 is roughly equivalent to the total cost of RS-GA when the convergence number is 500. It can be seen that the application of adaptive mutation probability helps to improve the convergence speed. Comparing VMP-RS-GA with GAVNS, GAVNS reduces the total cost by 18.03 yuan and improves the solution quality by 5.09%. At the same time, when the convergence number of GAVNS is 100, the total cost is roughly equivalent to the total cost when the convergence number of VMP-RS-GA is 500. It can be seen that the VNS scheme that improves the solution obtained by GA helps to improve the convergence speed and solution quality.
[0211] The above description is only a preferred example of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various changes and variations. Any modification, equivalent substitution, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-task crowdsourcing shared car empty car migration optimization method based on improved GAVNS, characterized by: The following steps are involved: Step A: Obtain migration information as input for solving crowdsourcing task service pricing and shared car empty car migration models; A1: Get the status of all shared cars within the jurisdiction at the current moment, including the fuel / power status of the vehicle, whether the vehicle is at the station, and the location of the vehicle; A2: Obtain the status of crowdsourced dispatchers, including the number of dispatchers within the jurisdiction, the number of dispatchers in each community, and the location of the dispatchers; A3: Get station information, including station location, number of stations, and available parking spaces at each station; Step B: Design a crowdsourcing task service pricing strategy to serve as a reference for the remuneration paid to crowdsourcing dispatchers and as an input for constructing a shared car empty car migration model; select the distance d1 from the dispatcher to the empty car, the distance d2 from the empty car to the station, time t, and the road congestion index c as factors affecting task pricing; Step C: Construct a multi-task crowdsourcing shared car empty car migration model to adjust the scheduling and migration of shared cars, and improve the shared car empty car relocation rate by minimizing the overall migration cost; the objective function is designed to minimize the operating cost, which is composed of three parts: total task pricing cost, total vehicle energy consumption cost, and total operating loss cost; the constraints are designed from four aspects: dynamic pricing constraints, assignment rule constraints, service capacity constraints, and spatial location constraints according to different types; Step D: Use the radial search algorithm to obtain the initial solution, which is used to quickly obtain a solution that satisfies the constraints, improve the convergence speed of the optimal solution, and serve as the input of the GAVNS algorithm to solve the scheduling strategy; D1: Matrix coding scheme, Binary matrix encoding is used for stations and dispatchers, where the encoding and decoding process of the solution involves the encoding and decoding matrix of the dispatcher, the encoding and decoding matrix of the station, and the number vector of the vehicle. A complete task chain is: dispatcher number to empty vehicle number, empty vehicle number to station number, D2: Divide into small areas, Divide the dispatch area into 25×25 grids to refine the area granularity and prepare for radial search matching of dispatchers, vehicles and stations; D3: Calculate spatial adjacency, The spatial adjacency is negatively correlated with the Euclidean distance. The larger the Euclidean distance, the smaller the spatial adjacency. The following formula is obtained: In the formula, G ij d ij Respectively represent the spatial adjacency and Euclidean distance between object i and object j; D4: Match the initial solution of dispatcher-vehicle-station. The spatial positions of vehicles, stations and dispatchers are analyzed and superimposed. According to the spatial adjacency order and combined with the partition, a radial search method is used, with empty vehicles as the center, to match empty vehicles with dispatchers and stations layer by layer; Step E: Use the improved GAVNS algorithm to solve the scheduling strategy for model solving, where the GA algorithm is used for population evolution and the VNS algorithm is used to jump out of the local optimum; E1: Set the basic parameters of GAVNS; E2: Design an improved genetic algorithm. The improved genetic algorithm steps mainly include replication, crossover, and mutation. E2.1: Copy, The roulette wheel selection method is adopted, and the elite retention strategy is integrated. The individuals with the best fitness in the parent generation are directly copied to the offspring, and the remaining individuals are selected by probability according to the roulette wheel method. E2.2: Crossover, In each generation, individuals randomly exchange some genes with each other, and the selection of paternal and maternal parents adopts 1-2, 3-4 exchanges; E2.3: Use adaptive probability to participate in mutation operation, The variable mutation probability method is used in the mutation operation. The adaptive genetic probability is set according to the quality of the previous generation solution. When the quality fitness of a solution in the previous generation is high, a smaller mutation probability is set. On the contrary, a larger mutation probability is applied. The mutation probability setting interval is 0.01~0.
1. E2.4: Determine whether the new solution should be retained. Compare the fitness of the parent and child solutions, and retain the solution with the larger fitness as the new solution; E3: Improved by variable neighborhood search algorithm, Variable neighborhood search is the repeated and sequential application of a set of neighbors to move to a local optimum, with solution movement occurring only when improvements are made. E3.1: Apply oscillation operation to improve the solution, Perform oscillation operation on the solution obtained by genetic algorithm; E3.2: Improve the solution using the exchange neighborhood operator, Apply the probability of p1 to the solution generated in step E3.1, and perform exchange neighborhood perturbation on the solution, that is, exchange the genes at two random positions on the selected chromosome, compare the generated new solution with the solution generated by the genetic algorithm, and retain the solution with large fitness. If the new solution generated by the exchange neighborhood operator is retained, determine whether the maximum number of iterations has been reached. If so, output the solution, otherwise enter the next generation cycle. If the new solution generated by the exchange neighborhood operator is not retained, directly enter step E3.3; E3.3: Using regression neighborhood operators to improve the solution, Apply the probability of p2 to the solution generated in step E3.1, perform exchange neighborhood perturbation on the solution, that is, invert the gene fragment on the selected chromosome, compare the generated new solution with the solution generated by the genetic algorithm, and retain the solution with large fitness. If the new solution generated by the regression neighborhood operator is retained, determine whether the maximum number of iterations has been reached. If so, output the solution, otherwise enter the next generation cycle. If the new solution generated by the regression neighborhood operator is not retained, directly enter step E3.4; E3.4: Improve the solution using the insertion neighborhood operator, Apply the probability of p3 to the solution generated in step E3.1, insert the neighborhood disturbance to the solution, that is, extract a gene on the selected chromosome and insert it between the other two genes of the chromosome. Compare the new solution generated with the solution generated by the genetic algorithm, retain the solution with large fitness, and determine whether the maximum number of iterations has been reached. If yes, output the solution, otherwise enter the next generation cycle; Among them, the above p1, p2, and p3 are the probabilities of performing the exchange neighborhood operator, the regression neighborhood operator, and the insertion neighborhood operator operations respectively; E4: Output the final migration strategy. The decoded data after the final iteration is output to clearly show the dispatcher and station corresponding to each empty vehicle; Step F: Draw a migration route and issue instructions to serve as a reference for the dispatcher's task destination and driving path.
2. According to claim 1, a multi-task crowdsourcing shared car empty car migration optimization method based on improved GAVNS is characterized in that: Step B also includes the following steps: B1: Determine the factors affecting task pricing, The distance d1 from the dispatcher to the empty vehicle is the distance the dispatcher travels to the task point by himself, and d1 is positively correlated with the price; The distance d2 from the empty car to the station is the distance that the dispatcher drives the empty car to migrate to the shared car network point, and d2 is positively correlated with the price; According to the time difference and regularity of dispatcher density and vehicle usage, the whole day is divided into several intervals. The price is reduced accordingly during the time period with high dispatcher density and low vehicle usage; the price is increased accordingly during the time period with low dispatcher density and high vehicle usage. The road section congestion index c is positively correlated with the price; B2: Determine the task pricing formula; According to the analysis of B1 pricing influencing factors, the formula for determining crowdsourcing task prices is: M = ct (αd1 + βd2); Among them, M is the crowdsourcing task price; c is the road congestion index, which is based on the real-time road congestion index of Amap. In a smooth state, c=1, and in a congested state, c>1; t is a parameter related to the time period. According to the historical task situation, the time period is divided into four levels according to the time difference of the dispatcher density and the vehicle usage. 0-3 t=1.5, 3-7 t=1.8, 7-22 t=1.0; 22-24 t=1.3, α and β are parameters to be determined; B3: Pricing strategy model parameter calibration, Obtain historical crowdsourcing task information and use the historical information to calibrate parameters α and β in formula B2, where each historical information chain includes M, d1, d2, c, and t corresponding to the crowdsourcing task.
3. According to claim 1, a multi-task crowdsourcing shared car empty car migration optimization method based on improved GAVNS is characterized in that: Step C also includes the following steps: C1: Design the empty car migration objective function, The total task cost is the operating cost incurred by the service provider for assigning tasks, that is, the total cost paid to the dispatcher; the total vehicle energy consumption cost is the total cost associated with the vehicle, also known as the energy consumption cost of the vehicle relocation process; the total operating loss cost is the cost of the potential loss of income of the unassigned shared car the next day. The objective function of the empty car migration task is as follows: Where P e is the operating cost of the vehicle per unit distance; N is the number of dispatchers; K is the number of empty vehicles; is a decision variable, which is 1 when dispatcher n performs the dispatch task to assign vehicle k to station i, otherwise, it is 0; are the distance traveled by the vehicle k and the pricing of the task when dispatcher n assigns the vehicle k to station i; P c The potential operating loss costs for the next day if the empty vehicle is not moved; C2: Design empty car migration constraints, C2.1: Dynamic pricing constraints, When the sum of the vehicle energy consumption cost and the task pricing cost exceeds the next day's business loss cost of the unfinished task, the task will not be executed, that is: C2.2: Assignment rule constraints, The same dispatcher can accept multiple tasks within a given time. However, when accepting multiple tasks, the two tasks must meet the requirement that the station corresponding to the first empty vehicle task should be less than Q meters away from the second empty vehicle task. In the formula, is the Euclidean distance between the empty vehicle of the next task and the station of the previous task when the crowdsourcing dispatcher receives more than one task at the same time; However, the same task can only be assigned to one dispatcher at a time, that is: C2.3: Service capacity constraints, The vehicle’s remaining battery capacity or fuel volume must be sufficient to complete the dispatch mission, i.e.: In the formula, m k The remaining power or fuel of vehicle k, calculated as a percentage; L k is the full charge or full fuel range of vehicle k; When there are no parking spaces at a station, empty vehicles are no longer assigned to the station, that is: In the formula, c i is the number of parking spaces at site i; The number of vehicles in each area should be sufficient to meet the number of vehicles used the next day, namely: Where D a is the number of sites in area a; e a The least used vehicles in area a on the second day; C2.4: Spatial geographic location constraints, The platform will select dispatchers and stations that are closer to the vehicle. Beyond this distance, no migration will be performed. This constraint requires that the dispatch distance and the distance from the dispatcher to the vehicle should be within 10 kilometers, that is: d ki ≤10 d nk ≤10。 4. According to claim 1, a multi-task crowdsourcing shared car empty car migration optimization method based on improved GAVNS is characterized in that: Step F also includes the following steps: F1: Draw the migration route, Output the migration strategy generated in step E and draw a migration roadmap using MATLAB software; F2: Generate feasible trajectory path, Since the scheduling strategy generated in step E1 is only the starting and ending points of the task, the specific driving trajectory is still unclear. Amap is called to generate a specific trajectory based on the starting and ending points. F3: Issue mission instructions. The central controller issues task instructions and displays the task status in real time on the crowdsourcing dispatcher's mobile phone APP.
Citation Information
Patent Citations
Mobile platform crowdsourcing task pricing method and system
CN108205515A
Intelligent scheduling system and method for fuel oil shared automobile
CN113095636A
Multi-objective optimization method for shared vehicle pricing planning model based on genetic algorithm
CN112507506A
Crowdsourcing scheduling method and system based on hybrid genetic algorithm and position allocation algorithm
CN116629736A
