Urban motor vehicle travel service efficiency evaluation method based on multi-agent simulation
Through multi-agent simulation technology, a multi-mode travel simulation road network is constructed to simulate the interactive behavior and travel plan adjustment of travel agents, solving the shortcomings of multi-mode transfer and interaction effects in the existing technology, and realizing the control of motor vehicle travel. In-depth assessment and detailed simulation of service performance.
Patent Information
- Application Number
- CN202411120410.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-15
AI Technical Summary
Existing technologies fail to fully consider the complexity of multi-modal transfers and the interaction between travelers when evaluating urban motor vehicle travel behavior, resulting in insufficient evaluation of service effectiveness in complex traffic environments.
Using a method based on multi-agent simulation, a multi-mode simulation road network is built through the BEAM platform, and a travel chain of travel agents is constructed. The AgentSim and PhysSim modules are used for travel simulation and vehicle movement simulation, and the collaborative evolution algorithm is used for iterative optimization and travel adjustment. Plan to evaluate service effectiveness.
Effectively evaluate the travel service performance of motor vehicles in complex traffic environments, simulate the interactive effects of multiple transportation modes, improve the simulation speed and data processing capabilities, and output detailed simulation results to facilitate data analysis.
Smart Images

Figure CN118643752B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent transportation and traffic engineering simulation, and specifically relates to a method for evaluating the travel service efficiency of urban motor vehicles based on multi-agent simulation. Background Art
[0002] As a core component of the urban transportation system, the service efficiency of motor vehicles directly affects the overall operation efficiency of urban transportation and residents' travel satisfaction. Therefore, it is of great significance to conduct in-depth research on the behavioral characteristics of urban motor vehicle travel and its impact on the transportation system.
[0003] Traditional research methods usually rely on aggregate data based on travel, but they are insufficient in terms of in-depth understanding and efficient simulation of individual travel decisions at the micro level, resulting in certain limitations in predicting the evolution of complex traffic flows. These limitations are particularly significant when considering the diversity of urban residents' travel needs, the complexity of travel mode choices, and the interactions between multimodal transportation networks. In recent years, activity-based disaggregate methods have gradually become an important research method for travel behavior simulation modeling.
[0004] In existing research, such as the Chinese patent application number CN201210256877.8, a simulation method for urban traffic planning based on a multi-agent activity model is proposed. Based on the activity model, traffic demand is generated and traffic allocation is performed. Traffic paths and selections are optimized through genetic algorithms to achieve the maximum utilization efficiency of transportation tools and urban road networks. However, this method still has the following shortcomings when dealing with the complex decision-making process of individual actual travel: it fails to fully consider the complexity of multi-mode transfers. For example, a traveler may need to ride a bicycle first, then transfer to a bus, and finally walk to the destination; it fails to fully consider the interaction between travelers. For example, during peak hours, multiple travelers may choose the shortest travel route at the same time, which will cause traffic congestion or delays. In order to better evaluate the travel behavior characteristics of motor vehicles in complex traffic environments, it is necessary to propose a method for evaluating the travel service efficiency of urban motor vehicles based on multi-agent simulation, construct a multi-mode urban resident travel simulation model, and simulate resident travel behavior from the perspective of travel chains. Summary of the invention
[0005] The purpose of this invention is to simulate the travel activity selection of intelligent agents based on the modeling method of intelligent agents, by simulating the interactive behaviors between travel intelligent agents and the dynamic adjustment of travel plans, so as to deeply evaluate the travel service efficiency of motor vehicles in complex traffic environments.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is:
[0007] The urban motor vehicle travel service efficiency evaluation method based on multi-agent simulation includes the following steps:
[0008] Step S1: Using BEAM as a platform, build a multi-agent based multi-mode simulation road network;
[0009] Step S2: Extract detailed travel chains of all travel agents;
[0010] Step S3: Build the .conf configuration file and import the relevant configurations of Akka, Metrics and MATSim;
[0011] Step S4: In the configuration file of step S3, an AgentSim module is constructed according to the simulation scenario, and AgentSim is used to perform travel simulation of the intelligent agent;
[0012] Step S5: In the configuration file of step S3, a PhysSim module is constructed according to the simulation scenario, and PhysSim is used to perform vehicle movement simulation;
[0013] AgentSim consists of two key components, namely the scheduler and the router. PhysSim is a vehicle mobility simulator, and the underlying simulation engine of PhysSim is JDEQSim.
[0014] Step S6: Construct a lookup table named skim to store the actual travel mode, departure and arrival time information generated in step S4, and use the table to estimate the utility of different travel modes of the travel agent for use in subsequent travel plan adjustments;
[0015] According to the preset configuration files in the simulation and the above calculation results, the travel agent executes the travel activity plan in the multi-modal simulation road network, simulates the real traffic flow, forms actual travel modes such as private cars, bicycles, buses, walking, etc., and the departure and arrival time of each trip, etc., and stores them in a lookup table called skim.
[0016] Step S7: adopting the co-evolution algorithm to iteratively implement the travel simulation of the travel agent. When the system reaches a balanced state or reaches a preset maximum number of iterations, the iteration ends and step 9 is executed; otherwise, step 8 is executed until the iteration end condition is reached;
[0017] Step S8: The travel agent adjusts its travel plan according to changes in the external environment and the influence of other agents on itself;
[0018] Step S9: Output simulation results and select evaluation indicators to evaluate the motor vehicle service performance.
[0019] Furthermore, in step S1, in addition to building a basic road network, building a multi-agent based travel simulation framework requires building a public transportation network as the main external transportation environment, including:
[0020] Step S11: Build a basic road network and use the open source website OpenStreetMap to obtain urban road network data covering the simulation area of the target city;
[0021] Step S12: Build a public transportation network and obtain public transportation data covering the simulation area of the target city based on the AutoNavi open platform.
[0022] Furthermore, obtaining the travel chain of the travel agent in step S2 includes the following steps:
[0023] Step S21: Design a questionnaire that covers the traveler's personal information (such as age, gender, occupation, whether or not he has a driver's license), family information (such as family structure, home address, family transportation, average monthly family income, number of family members over six years old, etc.), and daily travel behavior (such as travel time, travel purpose, travel mode, start and end addresses of each trip on weekdays, location attributes, parking type, activity chain, etc.);
[0024] Step S22: extracting sample populations from the research cities, distributing questionnaires online or offline, collecting data, and performing data cleaning;
[0025] Step S23: extract the personal attributes, family attributes and daily activity travel chain of each travel agent based on the questionnaire survey results, and generate the household.xml, people.xml and plan.xml files required by BEAM;
[0026] Step S24: Store the verified file in the beam\test\input\beamville\csvInput directory.
[0027] Furthermore, in step S4, an AgentSim module is constructed, specifically:
[0028] Step S41: Set basic parameters, including simulation name simulationName, agent sample size as a fraction of the total population agentSampleSizeAsFractionOfPopulation, initial iteration number firstIteration and last iteration number lastIteration, end time endTime, time period timeBinSize, etc.;
[0029] Step S42: The travel agent selects a travel mode based on a multinomial logit model. In the multinomial logit model, the cost of selecting different travel modes for each available trip is calculated. Cost m ,time Time m and number of transfers Transfer m , calculate the utility value of each travel agent choosing each travel mode, the specific calculation formula is:
[0030]
[0031] in, V m,j Indicates j The travel agent selects m The utility of this mode of travel, ASC m To replace the constant term, it is used to explain the impact of unobservable attributes on the selection results. is the cost-utility coefficient, is the travel time value coefficient, is the utility coefficient of a single transfer.
[0032] The probability of each travel agent choosing each travel mode is:
[0033]
[0034] in, P m,j Indicates j The travel agent selects m The probability of a travel mode, V m,j Indicates j The travel agent selects m The utility of this mode of travel, V n,j Indicates j The travel agent selects n The utility of this mode of travel, is the error term and specifies the input parameters to determine the magnitude of the error term.
[0035] Step S43: Set the specific parameters of the multinomial Logit model by continuously adjusting the replacement constant term ASC m , cost-effectiveness coefficient , travel time value coefficient and the single transfer utility coefficient , adjust the probability of the travel agent choosing each travel mode, so that the travel mode share of residents allocated in the simulation is close to the travel mode share of residents in the actual survey data;
[0036] Step S44: Setting vehicle-related parameters in the AgentSim module, including road link to grade percentage linkToGradePercentFilePath, vehicle fuel type fuelTypesFilePath information, vehicle type vehicleTypesFilePath and other information.
[0037] Furthermore, in step S5, a PhysSim module is constructed, specifically:
[0038] Step S51: setting physical simulation parameters, including adjusting the maximum capacity flowCapacityFactor of each road section in the network, setting the storage capacity storageCapacityFactor of the network node, specifying the proportion of the public transportation sample size ptSampleSize, whether to enable the vehicle adaptive cruise control CACC, setting the minimum road capacity minRoadCapacity of the vehicle adaptive cruise control, the minimum speed minSpeedMetersPerSec, the speed adjustment factor speedAdjustmentFactor, etc.;
[0039] Step S52: setting router parameters, including specifying the number of latest trip data to be retained keepKLatestSkims, the time interval for writing trip data writeSkimsInterval and the time interval for aggregating trip data writeAggregatedSkimsInterval, and defining different trip data recorders, etc.
[0040] Furthermore, in step S8, the travel agent adjusts its own travel plan based on the simulation of the travel of the travel agent in steps S3, S4 and S5. After step S6 scores the travel plan, the travel agents interact with each other and adjust their travel plans according to changes in the external environment and the influence of other agents on themselves.
[0041] The initial demand of travelers is usually generated based on the travel survey data of residents, which means that each individual traveler decides on the travel plan according to his or her own characteristics, preferences and situations. The travel plans of each other are relatively independent, and the interaction and influence between travelers are not considered, which may cause the generated initial plan to be not close to the actual travel status. Therefore, after the initial travel demand is input into BEAM, after the traffic flow simulation module and the travel plan scoring module, the travel agents interact with each other, and the travel agents adjust and optimize their own travel plans according to the changes in the external environment and the influence of other agents on themselves, that is, the travel plan is re-planned. During the simulation operation, the travel plan of each agent will be iterated in each cycle. The adjustment is based on the travel agent's activity time, travel path, travel mode, activity location and other adjustment strategies. Through multiple iterations of optimization, the simulation environment is constantly close to the actual situation.
[0042] Furthermore, in order to reduce the risk of the system oscillating between non-optimal solutions, the weight of each travel agent in adjusting the travel plan is restricted in step S8, where the probability of adjusting the travel route, changing the departure time and travel mode is set to 10%, and the probability of selecting a travel activity plan with a higher score is 70%.
[0043] Furthermore, in step S9, the output simulation results include but are not limited to key indicators such as intelligent agent travel trajectory, travel mode distribution, traffic flow changes, as well as the OD point, departure time, travel distance, driving time and speed under free flow conditions, actual driving time and speed of each motor vehicle trip, and the travel service efficiency of motor vehicles in the simulation area is evaluated based on this.
[0044] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0045] 1. The present invention uses a non-aggregate activity model to track individual daily travel in the form of a travel chain, emphasizing the intrinsic connection between personal activities and travel. It can simulate the interaction and impact of various modes of transportation including motor vehicles, buses, bicycles, walking, etc., and can effectively evaluate the travel service efficiency of motor vehicles in complex traffic environments, making up for the lack of research on the micro-traffic behavior of activities in the traditional "four-stage method".
[0046] 2. The present invention utilizes the Akka framework and distributed computing technology to effectively improve the simulation speed and the ability to process large-scale data.
[0047] 3. The present invention builds a simulation environment based on real urban road network data, public transportation data and detailed residents' travel survey data, and supports real-time integration with multiple data sources. At the same time, the time, distance and actual speed of each trip of each intelligent agent in the simulation are directly output in the form of an Excel table, which is convenient for further data analysis and result application.
[0048] 4. The present invention adopts a complex behavioral adaptation model, which can simulate the changes in individual travel choices in different situations, and uses a co-evolutionary algorithm for iterative cycles to achieve the adaptation, feedback and update of the intelligent body, making the simulation closer to real travel behavior. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a flow chart of the method;
[0050] Figure 2 is a statistical diagram of the share of different traffic modes in the iteration of Example 1;
[0051] Figure 3 is the travel distribution diagram of the agents in departure, arrival and itinerary of all travel modes in one day in the 55th iteration of Example 1;
[0052] Figure 4 is a travel distribution diagram of the agents in the departure, arrival and itinerary of using a car in one day in the 55th iteration of Example 1;
[0053] Figure 5 is a histogram of the travel distance of small cars in the 55th iteration of Example 1;
[0054] Figure 6 is a histogram of the speed of cars in the free flow state in Example 1;
[0055] Figure 7 is the actual driving speed histogram of the car in Example 1;
[0056] Figure 8 is a histogram of car travel time in a free flow state in Example 1;
[0057] Fig. 9 1 is a histogram of the actual driving time of the car in Example 1. DETAILED DESCRIPTION
[0058] The present invention will be further described below in conjunction with the accompanying drawings and examples. It should be understood that these examples are only illustrative and are not intended to limit the scope of the present invention. Various simple modifications, equivalent changes or modifications by those skilled in the art in accordance with the present invention should be included in the scope of protection defined by the claims attached to this application.
[0059] The core architecture of the present invention is mainly composed of three interrelated parts, namely data collection and preparation, multi-agent modeling and simulation, and travel service performance evaluation. The model generates agents based on survey data, simulates agent travel, and uses a co-evolutionary algorithm to achieve agent adaptation, feedback, and update. After completing multiple rounds of iterations, the simulation system outputs detailed simulation results, including but not limited to key indicators such as agent travel trajectory, travel mode distribution, and traffic flow changes.
[0060] like Figure 1 As shown, the urban motor vehicle travel service efficiency evaluation method based on multi-agent simulation of the present invention comprises the following steps:
[0061] Step S1: Using BEAM (Behavior, Energy, Autonomy and Mobility) developed by the Lawrence Berkeley National Laboratory in the United States as a platform, build a multi-agent-based multi-mode simulation road network;
[0062] Step S2: Extract detailed travel chains of all travel agents;
[0063] Step S3: Build a configuration file named beam.conf and import the relevant configurations of Akka, Metrics and MATSim;
[0064] Step S4: In the beam.conf configuration file, build the AgentSim module according to the simulation scenario, and use AgentSim to perform intelligent agent travel simulation;
[0065] AgentSim consists of two key components, Scheduler and Router.
[0066] Step S5: In the beam.conf configuration file, build a PhysSim module according to the simulation scenario, and perform vehicle movement simulation through PhysSim;
[0067] The underlying simulation engine of PhysSim is JDEQSim.
[0068] Step S6: Construct a lookup table named skim to store the actual travel mode, departure and arrival time information generated in step S4, and use the table to estimate the utility value of different travel modes of the agent for use in subsequent travel plan adjustments;
[0069] Step S7: adopting the co-evolution algorithm to iteratively implement the travel simulation of the travel agent. When the system reaches a balanced state or reaches a preset maximum number of iterations, the iteration ends and step 9 is executed; otherwise, step 8 is executed until the iteration end condition is reached;
[0070] Step S8: The travel agent adjusts its travel plan according to changes in the external environment and the influence of other agents on itself; the weight of each travel agent in adjusting the travel plan is limited, where the probability of adjusting the travel route, changing the departure time and travel mode is set to 10%, and the probability of choosing a travel plan with a higher score is 70%.
[0071] Step S9: Output the simulation results and select evaluation indicators to evaluate the motor vehicle service efficiency. The evaluation indicators include but are not limited to key indicators such as the intelligent agent's travel trajectory, travel mode distribution, traffic flow changes, and the OD point, departure time, travel distance, travel time and speed in the free flow state, and actual travel time and speed of each motor vehicle trip.
[0072] Among them, steps S1 to S2 belong to the data collection and preparation part, steps S3 to S8 belong to the multi-agent modeling and simulation part, and step S9 belongs to the travel service efficiency evaluation part. The following is a detailed explanation of each step in three parts.
[0073] The data collection and preparation step S1 specifically includes:
[0074] Step S11: Build a basic road network. Use the open source website OpenStreetMap to obtain the urban road network data of the target city covering the simulation area. The data format is selected as PBF file. The specific area range is:
[0075] Longitude range: [118.38359080000032,118.87323910000173],
[0076] Latitude range: [24.467484399999844, 25.0083254999994];
[0077] Based on the acquired data, an XML file containing multiple nodes and links required for simulation is generated. All nodes and links have unique ID identifiers, where the node contains longitude and latitude information, and the link contains the two node IDs connecting each road section, length, free flow speed, capacity, number of lanes, and available traffic modes.
[0078] Step S12: Build a public transportation network, obtain a developer key based on the AutoNavi open platform, and use the key to call the public transportation data interface of the AutoNavi open platform to obtain 58 bus routes covering the simulated city;
[0079] Public transportation data is organized in the format of the Global Transit File System (GTFS) to generate the following files: agency.txt stores relevant information about public transportation operators, such as identifiers, names, time zones, contact information, official languages, official websites, etc.; stops.txt lists the identification, names, and longitude and latitude locations of bus stops; routes.txt records the identification, names, and transportation types of bus routes; trips.txt defines the specific information of each bus service, including route identification, service identification, destination, and direction of travel; stop_times.txt records the arrival and departure times, station sequence, and boarding and alighting types of each bus service at each station; calendar.txt specifies the effective date range of bus services.
[0080] Import the road network file into the multi-agent simulation platform BEAM, generate a simulated road network, import public transportation data, and the router in the simulation platform automatically matches the road network with the bus network to generate the urban multi-mode simulation road network required for the simulation.
[0081] The data collection and preparation step S2 specifically includes:
[0082] Step S21: Design a questionnaire, the content of which includes the traveler's age, gender, occupation, whether he has a driver's license, family structure, home address, family transportation ownership, average monthly family income, number of family members over six years old, travel time, travel purpose, travel mode, starting and ending addresses of each trip on weekdays, location attributes, parking type and activity chain, etc.
[0083] Step S22: Draw a sample of the population in the study city, distribute questionnaires online or offline, conduct a questionnaire survey on their daily travel behavior, and obtain resident travel survey data.
[0084] Data cleaning is performed to delete travel data outside the city, remove duplicate data and abnormal data, fill or delete missing values, and standardize the data format. In this embodiment, the total survey population is 8154, and valid travel data of 7750 residents are extracted, and the proportion of the travel population to the total survey population is 95%.
[0085] Step S23: 7750 residents generated a total of 20416 trips. Based on the questionnaire survey results, the personal attributes, family attributes and daily activity trip chains of each travel agent were extracted to generate the household.xml, people.xml and plan.xml files required by BEAM.
[0086] Step S24: Store the verified file in the beam\test\input\beamville\csvInput directory.
[0087] Step S4 of multi-agent modeling and simulation specifically includes:
[0088] Step S41: setting basic parameters, including the simulation name is beamsimulation, the ratio of agent sample size to total population is 0.003, the initial number of iterations is 0 and the maximum number of iterations is 100, the end time is 24:00:00, the time period is 3600 seconds, etc.;
[0089] Step S42: The travel agent selects a travel mode based on a multinomial logit model. In the multinomial logit model, the cost of selecting different travel modes for each available trip is calculated. Cost m ,time Time m and number of transfers Transfer m , calculate the utility value of each travel agent choosing each travel mode, the specific calculation formula is:
[0090]
[0091] in, V m,j Indicates j The travel agent selects m The utility of this mode of travel, ASC m To replace the constant term, it is used to explain the impact of unobservable attributes on the selection results. is the cost-utility coefficient, is the travel time value coefficient, is the utility coefficient of a single transfer.
[0092] The probability of each travel agent choosing each travel mode is:
[0093]
[0094] in, P m,j Indicates j The travel agent selects m The probability of a travel mode, V m,j Indicates j The travel agent selects m The utility of this mode of travel, V n,j Indicates j The travel agent selects n The utility of this mode of travel, is the error term, and specifies the input parameters to determine the magnitude of the error term;
[0095] Step S43: Set the specific parameters of the multinomial Logit model and adjust the replacement constant term by continuous trial and error ASC m , cost-effectiveness coefficient , travel time value coefficient and the single transfer utility coefficient , adjust the probability of the travel agent choosing each travel mode, so that the travel mode share rate of residents allocated in the simulation is close to the travel mode share rate of residents in the actual survey data, so as to improve the authenticity and accuracy of the simulation.
[0096] Finally, the cost-effectiveness coefficient in this embodiment is , travel time value coefficient and the single transfer utility coefficient Set them to -1.0, -0.0047, and -1.4 respectively.
[0097] Step S44: Setting vehicle-related parameters in the AgentSim module, including road link to slope percentage, vehicle fuel type information, vehicle type and other information.
[0098] Step S5 of multi-agent modeling and simulation specifically includes:
[0099] Step S51: setting physical simulation parameters, including adjusting the maximum capacity of each road section in the network to 0.003, setting the storage capacity of the network node to 1.0, specifying the proportion of the public transportation sample size to 0.1, setting the minimum road capacity of the vehicle adaptive cruise control to 1999, the minimum speed to 7, the speed adjustment factor to 1.0, etc.
[0100] Step S52: setting router parameters, including specifying the number of latest trip data to be retained keepKLatestSkims to 1, the time interval for writing trip data writeSkimsInterval to 1, the time interval for aggregated trip data writeAggregatedSkimsInterval to 1, and defining different trip data recorders, including for recording information related to driving time, for recording trip data between the starting point and the end point, and for recording trip data related to the traffic analysis area.
[0101] In this embodiment, the co-evolution algorithm is used to make the system reach a balanced state. The update process is to set 30% of the travel agents to optimize the travel activity plan in each iteration, instead of updating all the travel agents. When the number of iterations reaches the 55th time, the utility value of each travel agent tends to be stable and no longer changes significantly, and the iteration ends.
[0102] Travel service performance evaluation:
[0103] Step S9: Output simulation results, select evaluation indicators, and evaluate the service efficiency of motor vehicles. In this embodiment, indicators such as travel mode distribution, travel distance, driving time and speed in free flow state, actual driving time and speed are selected. Figure 2-9 exhibit.
[0104] Free flow means that vehicles travel at a free speed on the road without being affected by congestion or other traffic restrictions.
[0105] Figure 2 The distribution diagram of travel modes shows the share of different traffic modes in the iteration process, which can reflect the utilization rate of different traffic modes. In the 55th iteration, the share of walking, bicycle, car, bus and bicycle-bus combination travel is 22.70%, 38.03%, 14.23%, 24.81% and 0.23% respectively.
[0106] Figure 3 The travel distribution diagram of the agents in all travel modes of departure, arrival and itinerary in one day in the 55th iteration, from Figure 3 It can be seen that there are three peak hours for travel in the entire city, among which the morning peak hour has the largest number of travelers. The large amount of travel demand during the peak period increases the pressure on roads and transportation systems, which may lead to traffic congestion problems.
[0107] Figure 4 The distribution diagram of the departure, arrival and trip of agents using cars in one day in the 55th iteration can reveal the travel pressure during peak hours. There are three peak hours for travel, among which the morning peak hour has the largest number of travelers. The large number of travel demands during the peak hours increases the pressure on roads and transportation systems, which may lead to traffic congestion problems.
[0108] Figure 5 This is the histogram of car travel distance in the 55th iteration, which can show the distance that cars tend to travel. The travel distance of cars is mainly concentrated in the range of 10 kilometers, but a small number of cars travel more than 30 kilometers.
[0109] Figure 6 and Figure 7 The histograms of the car speeds in the free flow state and the actual state can reveal the impact of traffic congestion during peak hours on the driving speed. In the free flow state, the driving speeds of most cars are concentrated in the range of 70 to 95 kilometers per hour, but in actual driving, due to traffic congestion during peak hours and other reasons, the driving speed of vehicles is much lower than the free flow speed.
[0110] Figure 8 and Fig. 9The driving time histograms of cars in free flow state and actual state can reveal the impact of traffic congestion during peak hours on driving time. In free flow state, the driving time of most cars is concentrated within 30 minutes, but in actual driving, due to traffic congestion during peak hours and other reasons, the actual driving time of some vehicles exceeds 30 minutes.
[0111] Through the above embodiments, it can be shown that the method of using the BEAM platform to evaluate the efficiency of motor vehicle travel services has the following effects:
[0112] Flexible multi-modal travel simulation: The present invention demonstrates a high degree of flexibility in multi-modal travel simulation and can effectively simulate travel behaviors under various transportation modes such as walking, bicycles, cars, buses, etc., and effectively simulate the interactions and impacts between different modes. This is fully reflected in Example 1, indicating that the present invention can perform detailed travel behavior simulation and analysis under various transportation modes.
[0113] Behavioral adaptability: In the simulation of Example 1, a complex behavioral adaptation model is used to dynamically adjust the travel decisions of 7,750 residents, including travel mode, departure time, and route selection. Through multiple rounds of iterations, the system can accurately simulate the share of different traffic modes ( Figure 2 ), as well as the changes in the agent's travel distribution and travel behavior ( Figures 3 to 9 ), making the simulation closer to the real travel behavior.
[0114] High scalability and modularity: BEAM adopts a highly modular design, which can expand and integrate new travel modes, behavior models and policy simulations to adapt to different research and application scenarios. For example, in Example 1, by modifying the relevant parameters in the configuration file, the simulation scenario can be flexibly adjusted to adapt to the actual situation and needs of a specific city, realizing the localization of the simulation case.
[0115] Real data integration and output: Example 1 builds a simulation environment based on real urban road network data, public transportation data, and detailed resident travel survey data. In addition, the simulation results are directly output in Excel form for each agent's travel time, distance, actual speed, etc., which is convenient for further data analysis and result application.
[0116] Simulation processing capacity and simulation speed: In Example 1, BEAM uses distributed computing technology to process the travel simulation tasks of 7750 residents in parallel through multiple computing nodes, including travel path calculation, traffic mode selection and travel time analysis, and uses the Akka framework to coordinate the computing tasks of each node and summarize the simulation results, such as Figures 2 to 9As shown, the simulation process takes 45 minutes, which can complete large-scale and complex simulation calculations within a reasonable time, ensuring the timeliness and accuracy of the results.
Claims
1. A method for evaluating the efficiency of urban motor vehicle travel services based on multi-agent simulation, characterized in that: The steps include: Step S1: Using BEAM as a platform, build a multi-agent based multi-mode simulation road network; Step S2: Extract detailed travel chains of all travel agents; Step S3: Build the .conf configuration file and import the relevant configurations of Akka, Metrics and MATSim; Step S4: In the configuration file of step S3, an AgentSim module is constructed according to the simulation scenario, and AgentSim is used to perform travel simulation of the intelligent agent; the construction of the AgentSim module specifically includes the following steps: Step S41: setting basic parameters, including simulation name, ratio of agent sample size to total population, number of iterations and last iteration, iteration end time and time period; Step S42: The travel agent selects a travel mode based on a multinomial logit model. In the multinomial logit model, the cost of selecting different travel modes for each available trip is calculated. m Time m and number of transfers m , calculate the utility value of each travel agent choosing each travel mode, the specific calculation formula is: V m,j =ASC m +b cost Cost m +b time Time m +b transfer Transfer m Among them, V m,j represents the utility of the jth travel agent choosing the mth travel mode, ASC m is used to replace the constant term to explain the impact of unobservable attributes on the selection results, β cost is the cost-utility coefficient, β time is the travel time value coefficient, β transfer is the single transfer utility coefficient; The probability of each travel agent choosing each travel mode is: Among them, P m,j represents the probability that the jth travel agent chooses the mth travel mode, V m,j represents the utility of the jth travel agent choosing the mth travel mode, V n,j represents the utility of the jth travel agent choosing the nth travel mode, ∈ is the error term, and the input parameters are specified to determine the magnitude of the error term; Step S43: Set the specific parameters of the multinomial Logit model by continuously adjusting the alternative constant term ASC m , cost-effectiveness coefficient β cost , travel time value coefficient β time and the single transfer utility coefficient β transfer , adjust the probability of the travel agent choosing each travel mode, so that the travel mode share of residents allocated in the simulation is close to the travel mode share of residents in the actual survey data; Step S44: setting vehicle-related parameters in the AgentSim module, including road link to slope percentage, vehicle fuel type information, and vehicle type information; Step S5: In the configuration file of step S3, a PhysSim module is constructed according to the simulation scenario, and PhysSim is used to perform vehicle movement simulation; Step S6: Construct a lookup table named skim to store the actual travel mode, departure and arrival time information generated in step S4, and use this table to estimate the utility of the agent choosing different travel modes for use in subsequent travel plan adjustments; Step S7: adopting the co-evolution algorithm to iteratively implement the travel simulation of the travel agent. When the system reaches a balanced state or reaches a preset maximum number of iterations, the iteration ends and step 9 is executed; otherwise, step 8 is executed until the iteration end condition is reached; Step S8: The travel agent adjusts its travel plan according to changes in the external environment and the influence of other agents on itself; Step S9: Output simulation results and select evaluation indicators to evaluate the motor vehicle service performance.
2. The method for evaluating the service efficiency of urban motor vehicles based on multi-agent simulation according to claim 1 is characterized in that: Step S1 specifically includes the following steps: Step S11: Build a basic road network and use the open source website OpenStreetMap to obtain urban road network data covering the simulation area of the target city; Step S12: Build a public transportation network and obtain public transportation data covering the simulation area of the target city based on the AutoNavi open platform.
3. The method for evaluating the service efficiency of urban motor vehicle travel based on multi-agent simulation according to claim 1 is characterized in that: The travel chain of the travel agent is obtained in step S2, including the following steps: Step S21: designing a questionnaire covering the traveler's personal information, family information, and daily travel behavior; Step S22: extracting sample populations from the research cities, distributing questionnaires online or offline, collecting data, and performing data cleaning; Step S23: extracting personal attributes, family attributes and daily activity travel chains of each travel agent based on the questionnaire survey results, and generating files required by BEAM; Step S24: storing the verified file.
4. The method for evaluating the service efficiency of urban motor vehicle travel based on multi-agent simulation according to claim 1 is characterized in that: The PhysSim module is constructed in step S5, comprising the following steps: Step S51: setting physical simulation parameters, including adjusting the maximum capacity of each road section in the network, setting the storage capacity of the network nodes, specifying the proportion of the public transportation sample size, whether to enable the vehicle adaptive cruise control CACC, and setting the minimum road capacity, minimum speed and speed adjustment factor of the vehicle adaptive cruise control; Step S52: setting router parameters, including specifying the number of latest trip data to be retained, the time interval for writing trip data and the time interval for aggregating trip data, and defining different trip data recorders.
5. The method for evaluating the service efficiency of urban motor vehicle travel based on multi-agent simulation according to claim 1 is characterized in that: In step S8, the travel agent adjusts its travel plan based on the simulation of the travel of the travel agent in steps S3, S4 and S5. After step S6 scores the travel plan, the travel agents interact with each other and adjust their travel plans according to changes in the external environment and the influence of other agents on themselves.
6. The method for evaluating the service efficiency of urban motor vehicles based on multi-agent simulation according to claim 1 is characterized in that: In step S8, the weight of each travel agent to adjust the travel plan is restricted, wherein the probability of adjusting the travel route, changing the departure time and travel mode is set to 10%, and the probability of selecting a travel plan with a higher score is 70%.
7. The method for evaluating the service efficiency of urban motor vehicles based on multi-agent simulation according to claim 1 is characterized in that: In step S9, the output simulation results include but are not limited to the intelligent agent travel trajectory, travel mode distribution, traffic flow changes, OD points of each motor vehicle trip, departure time, travel distance, driving time and speed in free flow state, and actual driving time and speed.
