CN115186049B - Intelligent bus alternative station site selection method, electronic equipment and storage medium - Google Patents
Intelligent bus alternative station site selection method, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115186049B CN115186049B CN202211082338.7A CN202211082338A CN115186049B CN 115186049 B CN115186049 B CN 115186049B CN 202211082338 A CN202211082338 A CN 202211082338A CN 115186049 B CN115186049 B CN 115186049B
- Authority
- CN
- China
- Prior art keywords
- station
- bus
- affected
- site
- passenger
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000010187 selection method Methods 0.000 title claims abstract description 22
- 238000003860 storage Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 30
- 238000013178 mathematical model Methods 0.000 claims abstract description 14
- 238000012216 screening Methods 0.000 claims abstract description 8
- 238000004590 computer program Methods 0.000 claims description 17
- 238000011144 upstream manufacturing Methods 0.000 claims description 15
- 230000006870 function Effects 0.000 claims description 9
- 230000006399 behavior Effects 0.000 claims description 7
- 230000011664 signaling Effects 0.000 claims description 7
- 239000000126 substance Substances 0.000 claims description 7
- 102000002423 Octamer Transcription Factor-6 Human genes 0.000 claims description 3
- 108010068113 Octamer Transcription Factor-6 Proteins 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 7
- 230000009191 jumping Effects 0.000 abstract description 4
- 238000010276 construction Methods 0.000 abstract description 3
- 238000012423 maintenance Methods 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 5
- 238000004220 aggregation Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000002776 aggregation Effects 0.000 description 2
- 238000001035 drying Methods 0.000 description 2
- 239000004744 fabric Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/26—Government or public services
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Tourism & Hospitality (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- General Business, Economics & Management (AREA)
- General Health & Medical Sciences (AREA)
- Marketing (AREA)
- Educational Administration (AREA)
- Development Economics (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Traffic Control Systems (AREA)
Abstract
An intelligent bus alternative station site selection method, electronic equipment and a storage medium belong to the technical field of bus data processing and analysis. The bus stop can not provide getting-on and getting-off services due to bus stop construction, pavement maintenance and the like. The method comprises the steps of collecting data of affected stations of a bus route, data of other bus stations in a certain range of the bus route and passenger travel chain data of the affected stations, screening a feasible station set based on the data of the affected stations of the bus route and the data of the other bus stations in the bus route region, and then clustering to obtain an alternative station set; clustering the collected passenger trip chain data to obtain a passenger position clustering set of the affected station; and establishing a mathematical model, setting constraint conditions, and solving to obtain the intelligent bus alternative stop. When the station is influenced, the bus company selects a proper alternative station instead of directly jumping the station, so that the influence on the travel of passengers on the original route can be effectively reduced.
Description
Technical Field
The invention belongs to the technical field of bus data processing and analysis, and particularly relates to an intelligent bus alternative station site selection method, electronic equipment and a storage medium.
Background
Due to the reasons of bus stop construction, road surface maintenance and the like, the original bus stop of the bus line cannot provide boarding and disembarking services, and the bus company usually adopts a bus jumping process for the situations, directly ignores the affected bus stop and drives to a downstream bus stop. If the station can not be served, if the station can be directly jumped to process, the passengers in the original line can be lost, the service rate of the line is reduced, and the profit situation is correspondingly reduced.
The invention has the publication number of CN113053156A and the invention name of the invention is an intelligent bus station addressing method by a bus radius method, and discloses the following technical scheme: a circular area is defined according to a first radius by taking the passenger starting point position as the center of a circle to serve as a station addressing range, and the bus station falling into the range is taken as a starting station; the passenger terminal arrival point position is taken as a circle center, a circular area is defined according to a second radius to serve as a station addressing range, and stations falling into the range are taken as terminal arrival stations; inquiring all bus routes communicating the starting station with the final station to obtain a plurality of to-be-determined bus routes; acquiring the riding heat of each to-be-determined bus route; determining the undetermined bus route with the highest riding heat as an alternative bus route, and grading the alternative bus route; and acquiring congestion information of the road where the alternative bus route passes. However, the following technical problems exist: firstly, the passenger trip data acquisition mode mainly includes questionnaire survey and the like, and the data obtained is less accurate than mobile phone signaling data and trip chain data due to the influence of the sampling mode. In addition, automatic and intelligent processing of scheduling cannot be realized. The patent does not take into account the distribution of the positions of the passengers and the result of the siting is too coarse. Secondly, the patent only aims at the problem of address selection of transfer, and is not suitable for the address selection of bus stop alternative schemes.
Disclosure of Invention
The invention aims to provide an intelligent bus alternative station site selection method, electronic equipment and a storage medium, aiming at the condition that bus stations cannot provide boarding and disembarking services due to bus station construction, road surface maintenance and the like.
In order to realize the purpose, the invention is realized by the following technical scheme:
an intelligent bus alternative station site selection method comprises the following steps:
s1, collecting data of affected stations of a bus line, and extracting data of other bus stations and data of passenger trip chains of the affected stations in a certain range of the bus line according to mobile phone signaling data;
s2, screening a feasible station set based on the bus route affected station data acquired in the step S1 and other bus station data in the bus route area;
s3, clustering the feasible station set screened in the step S2 to obtain an alternative station set;
s4, clustering the passenger trip chain data of the affected station acquired in the step S1 to obtain a passenger position clustering set of the affected station;
s5, establishing a mathematical model and setting constraint conditions;
and S6, substituting the candidate station set obtained in the step S3 and the passenger position cluster set obtained in the step S4 into a mathematical model to solve to obtain the intelligent bus candidate station.
Further, the specific implementation method of step S2 includes the following steps:
s2.2, based on the data of the bus route affected stations and the data of other bus stations in the bus route area acquired in the step S1, range is defined by using the linear distance, and the geographic position of the affected stations is taken as the center of a circle and the data of other bus stations in the bus route area are taken as the center of a circleA round range is defined by taking the radius of the meter as the radius, and a feasible site set is screened;
wherein: r represents the earth radius and takes the value of 6378.137,representing sitesAnd siteThe difference in the latitude of the vehicle,representing sitesAnd siteThe difference in the longitude of (a) to (b),representing affected sitesThe latitude of (a) is determined,representing other sitesThe latitude of (c).
Further, the specific implementation method of step S3 includes the following steps:
s3.1, clustering the feasible site set screened in the step S2 by adopting a DBSCAN algorithm,firstly, initialization is carried out, and cluster labels are setSet of feasible sites,Is an empty set;
s3.2, randomly selecting sites in a feasible site setExtracting the sum in the site setDistance is less than or equal toIf the site is aggregatedThe number of the intermediate stations is less than that of the intermediate stationsThen, markIs a noise point; otherwise, markThe core sample point is marked with the cluster labelUpdating a setWherein, in the step (A),is the inter-site distance threshold within a cluster,minimum number of cluster samples;
s3.3, forRepeating the step S3.2 until the number of the stations is less than or equal toIn-range site aggregationIs empty;
s3.4, updateSelecting a station which is not marked yet, and repeating the step S3.2-3.3 to obtain a final station cluster label ofThe DBSCAN algorithm cluster set;
s3.5, performing secondary clustering on the longitude and latitude coordinates of the bus stops of the set obtained in the step S3.4 by using a KMeans clustering algorithm, and outputting a KMeans clustering result;
s3.6 KMeans clustering result based on step S3.5Site aggregation for clustersAnd sequentially calculating the line straight line coefficient and the line length of a sub-path formed by the upstream station and the downstream station, and selecting a representative station of each cluster according to the straight degree and the line length to obtain a candidate station set.
Further, the specific implementation method of step S4 includes the following steps:
s4.1, identifying passengers getting off from the passenger travel chain data: if the initial position is matched with the affected station and the travel mode is walking, the travel chain path is the behavior of the get-off passenger;
s4.2, identifying passengers getting on the bus according to the passenger trip chain data: the matching of the terminal position is the affected station and the travel mode is walking, and the travel chain path is the behavior of the passengers getting on the bus;
s4.3, screening the data of the passenger getting on and off the bus at the affected station;
s4.4, clustering the boarding starting position and the alighting end position set of the passengers at the affected station by using a KMeans clustering algorithm to form clustersAnd clustering to obtain a passenger position cluster set of the affected station, wherein,the value is 5-8.
Further, the specific implementation method of step S5 includes the following steps:
s5.1, the objective function that the walking distance from the passenger to the replacement station is recommended to be shortest is as follows:
Sas a set of alternative stations, the station may,,in order to select the number of stations,sis any one of a set of candidate stations;Bcluster sets are clustered for passenger locations of affected sites,,to be composed ofThe number of passenger position clusters in a circular range is defined by the radius of the meter,bany one of a set of passenger position cluster clusters for the affected site,u b clustering passenger locationsbThe number of people getting on the vehicle,d b clustering passenger locationsbThe number of people getting off the vehicle,x s a variable that is either 0 or 1, and,x s representing sitesWhether the selected site is the final site or not is judged, 0 is not selected, 1 is selected, and min is a minimum function;
s5.2, setting a constraint condition 1 to select at most one station as a station replacement constraint:
s5.3, setting a constraint condition 2 as an inter-station distance constraint:
wherein the content of the first and second substances,representing nodesThe actual navigation distance to the upstream station,representing nodesThe actual navigation distance to the downstream station,the maximum value of the upstream station spacing is,is the minimum value of the distance between the downstream stations;
s5.4, setting a constraint condition 3 as a linear coefficient constraint:
wherein the content of the first and second substances,in order to allow the minimum straight-line coefficient,in order to allow the maximum linear coefficient,representing the spherical linear distance from the upstream station to the downstream station;
s5.5, setting a constraint condition 4 as a bypass coefficient constraint:
wherein the content of the first and second substances,is a nodeAnd nodeThe time of the navigation travel in between,is a nodeAnd nodeThe time of the navigation travel in between,is a nodeAnd nodeThe time of the navigation travel in between,in order to allow the minimum bypass factor,is the maximum allowed bypass factor.
Further, in the step S6, a linear programming solver of the GUROBI, CPLEX and SCIP is used for solving, if the mathematical model has an optimal solution, the model is output to select the site as the candidate point of the current affected site for selection by the user, otherwise, the jump is output.
The electronic equipment comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the intelligent bus alternative station address selection method when executing the computer program.
The computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the intelligent bus alternative site selection method.
The invention has the beneficial effects that:
the invention relates to an intelligent bus alternative station site selection method, which is designed to select a certain station as a line alternative station within a certain range of an original station, and carry out station jumping processing if no suitable station exists.
The intelligent bus alternative station site selection method can sense the travel behavior of the passenger based on travel chain data obtained by processing the passenger travel big data and the mobile phone signaling data, so that the departure place and the get-off destination of the passenger are obtained. According to the departure position of a passenger, the destination position data of the passenger, the feasible station data in the range and the travel network data, a mathematical model is established to select the address of the alternative station of the bus station, so that the total travel distance of the passenger after the route is changed is the minimum, and the following constraint conditions are met:
(1) Selecting at most one station from all selectable stations as an alternative station;
(2) The distance between the alternative station and the upstream and downstream stations can not exceed a certain distance;
(3) The nonlinear coefficient with the upstream and downstream stations cannot be too large;
(4) The detour coefficient of the passenger's upstream and downstream outgoing lines OD cannot exceed a certain range.
In order to improve the solving speed of the model, the following two effective measures are taken:
(1) Clustering feasible sites in the area by adopting a DBSCAN algorithm, and selecting a representative site as an alternative site for each site cluster, thereby reducing the number of the feasible sites;
(2) The positions of passengers are clustered, and a bus station generally serves a range covering 5-8 cells, so that the number of variables can be reduced after clustering. The parameter is freely configurable by the user.
According to the intelligent bus alternative station site selection method, when a station is influenced, a bus company selects a proper alternative station instead of directly jumping the station, and the influence on the travel of passengers on the original line can be effectively reduced.
According to the intelligent bus alternative station site selection method, the travel position of the passenger can be more accurately obtained through the passenger travel chain data acquisition compared with other methods such as a manual survey method and the like, and data guarantee is provided for a site selection model.
According to the intelligent bus alternative station site selection method, the feasible stations are clustered, and the passenger positions are clustered, so that the solution space can be reduced and the mathematical model can be rapidly solved on the premise of ensuring the solution quality.
Drawings
Fig. 1 is a flowchart of an intelligent bus alternative station site selection method according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and the detailed description. It is to be understood that the embodiments described herein are illustrative only and are not limiting, i.e., that the embodiments described are only a few embodiments, rather than all, of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations, and the present invention may have other embodiments.
Thus, the following detailed description of specific embodiments of the present invention, presented in the accompanying drawings, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the detailed description of the invention without inventive step, are within the scope of protection of the invention.
In order to further understand the contents, features and effects of the present invention, the following embodiments are illustrated and described in detail with reference to fig. 1:
the first embodiment is as follows:
an intelligent bus alternative station site selection method comprises the following steps:
s1, acquiring data of affected stations of a bus line, and extracting data of other bus stations and data of passenger travel chains of the affected stations in a certain range of the bus line according to mobile phone signaling data;
s2, screening a feasible station set based on the bus route affected station data acquired in the step S1 and other bus station data in the bus route area;
further, the specific implementation method of step S2 includes the following steps:
s2.2, based on the data of the bus route affected stations and the data of other bus stations in the bus route area acquired in the step S1, range is defined by using the linear distance, and the geographic position of the affected stations is taken as the center of a circle and the data of other bus stations in the bus route area are taken as the center of a circleA round range is defined by taking the radius of the meter as the radius, and a feasible site set is screened;
wherein: r represents the earth radius and takes the value of 6378.137,representing sitesAnd siteThe difference in the latitude of (a) is,representing sitesAnd siteThe difference in the longitude of (a) to (b),representing affected sitesThe latitude of (a) is determined,representing other sitesThe latitude of (d);
sample data of the screened feasible sites are shown in table 1:
TABLE 1 sample data for feasible sites
Site ID | Station longitude | Station latitude | Site name | Distance from affected site |
… | … | … | … | … |
a7677c6dc | 114.117562 | 22.551927 | Drying cloth | 161.32 |
… | … | … | … | … |
S3, clustering the feasible station set screened in the step S2 to obtain an alternative station set;
and based on the screened feasible site set, clustering the feasible site set in order to reduce the number of alternative schemes and improve the solving efficiency of the mathematical model. Because the number of the site clusters is unknown in advance, the DBSCAN algorithm is adopted for clustering to obtain the appropriate number of the site clusters. And then, performing secondary clustering on the sites by using a KMeans clustering algorithm to serve as a final result. Finally, selecting a site from each cluster as an alternative site;
further, the specific implementation method of step S3 includes the following steps:
s3.1, clustering the feasible site set screened in the step S2 by adopting a DBSCAN algorithm, firstly initializing, and setting cluster labelsSet of feasible sites,Is an empty set;
s3.2, randomly selecting sites in a feasible site setExtracting site-specific sumsDistance is less than or equal toIf the site is aggregatedThe number of the intermediate stations is less than that of the intermediate stationsThen, markIs a noise point; otherwise, markThe core sample point is marked with the cluster labelUpdating a setWherein, in the step (A),is the inter-site distance threshold within a cluster,minimum number of cluster samples;
s3.3, forRepeating the step S3.2 until the number of the stations is less than or equal toIn-range site aggregationIs empty;
s3.4, updateSelecting a station which is not marked yet, repeating the step S3.2-3.3 to obtain a final station cluster label ofThe DBSCAN algorithm cluster set;
s3.5, performing secondary clustering on the longitude and latitude coordinates of the bus stops of the set obtained in the step S3.4 by using a KMeans clustering algorithm, and outputting a KMeans clustering result;
s3.6, based on the KMeans clustering result of the step S3.5, for the secondSite aggregation for clustersCalculating the linear coefficient and the length of the line of the sub-path formed by the upstream station and the downstream station in turn, selecting the representative station of each cluster according to the degree of straightness and the length of the line,obtaining a set of alternative stations;
sample data of the clustered alternative sites are shown in table 2:
TABLE 2 example data for alternative sites
Site ID | Station longitude | Station latitude | Site name | Site cluster marking |
… | … | … | … | … |
a7677c6dc | 114.117562 | 22.551927 | Drying cloth | 2 |
… | … | … | … | … |
S4, clustering the passenger trip chain data of the affected station acquired in the step S1 to obtain a passenger position clustering set of the affected station;
the trip chain data is processed based on mobile phone signaling data, and characteristic data of passenger trip can be obtained, wherein the characteristic data comprises passenger trip ID, shift matching, departure time, departure starting position, trip end point position and the like. Based on travel data of passengers, the positions of the passengers served by the affected stations can be obtained;
sample data for the trip chain is shown in table 3:
table 3 sample data for the trip chain
Travel chain ID | Line ID | Travel chain index | Starting position | End point position | Travel mode |
… | … | … | … | … | … |
1 | a4d11 | 0 | a7677c6ef | a7677c6dc | Walking device |
… | … | … | … | … | … |
The travel chain ID represents the unique ID of the whole complete travel record of a certain passenger mobile phone signaling, the line ID is the ID bound with a bus line and a shift identification, the travel chain index refers to the sequence of the whole complete travel record of the section of the path, the starting point position is the starting longitude and latitude coordinate of the passenger on the section of the path, the end point position is the end point longitude and latitude coordinate of the passenger on the section of the path, and the travel mode comprises walking, buses and subways;
further, the specific implementation method of step S4 includes the following steps:
s4.1, identifying passengers getting off from the passenger travel chain data: if the initial position is matched with the affected station and the travel mode is walking, the travel chain path is the behavior of the get-off passenger;
s4.2, identifying passengers getting on the bus according to the passenger trip chain data: the matching of the terminal position is the affected station and the travel mode is walking, and the travel chain path is the behavior of the passengers getting on the bus;
s4.3, screening the data of the passenger getting on and off the bus at the affected station;
s4.4, clustering the boarding starting position and the alighting end position set of the passengers at the affected station by using a KMeans clustering algorithm to form clustersClustering to obtain a passenger position cluster set of the affected station,wherein the content of the first and second substances,the value is 5-8;
sample data for passenger location clustering results for affected sites is shown in table 4:
TABLE 4 example data for passenger location clustering results for affected sites
Passenger location ID | Location longitude | Location latitude | Passenger position cluster marker |
… | … | … | … |
a7677c6dc | 114.117562 | 22.551927 | 2 |
… | … | … | … |
S5, establishing a mathematical model and setting constraint conditions;
further, the specific implementation method of step S5 includes the following steps:
s5.1, the objective function that the walking distance from the passenger to the replacement station is recommended to be shortest is as follows:
Sfor the set of alternative stations to be used,,in order to select the number of stations,sis any one of a set of candidate stations;Bcluster sets are clustered for passenger locations of affected stations,,to be composed ofThe number of passenger position clusters in a circular range is defined by taking the radius of meter as the center,bany one of the set of passenger position clusters for the affected site,u b clustering passenger locationsbThe number of the passengers getting on the vehicle,d b clustering passenger locationsbThe number of people getting off the vehicle,x s a variable that is either 0 or 1, and,x s representing sitesWhether the selected site is the final site or not is judged, 0 is not selected, 1 is selected, and min is a minimum function;
s5.2, setting a constraint condition 1 to select at most one station as a constraint of replacing the station:
s5.3, setting a constraint condition 2 as an inter-station distance constraint:
wherein the content of the first and second substances,representing nodesThe actual navigation distance to the upstream station,representing nodesThe actual navigation distance to the downstream station,the maximum value of the upstream station spacing is,is the minimum value of the distance between the downstream stations;
s5.4, setting a constraint condition 3 as a linear coefficient constraint:
wherein the content of the first and second substances,in order to allow the minimum straight-line coefficient,in order to allow the maximum linear coefficient,representing the spherical linear distance from the upstream station to the downstream station;
s5.5, setting a constraint condition 4 as a detour coefficient constraint:
wherein, the first and the second end of the pipe are connected with each other,is a nodeAnd nodeThe time of the navigation travel in between,is a nodeAnd nodeThe time of the navigation travel in between,is a nodeAnd nodeNavigation travel time therebetween,In order to allow the minimum bypass factor,the maximum allowable detour coefficient;
s6, substituting the candidate station set obtained in the step S3 and the passenger position cluster set obtained in the step S4 into a mathematical model to solve to obtain an intelligent bus candidate station;
further, in the step S6, a linear programming solver of the GUROBI, CPLEX and SCIP is used for solving, if the mathematical model has an optimal solution, the model is output to select the site as the candidate point of the current affected site for selection by the user, otherwise, the jump is output.
The second embodiment is as follows:
the electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the intelligent bus alternative station address selection method described in the first embodiment when executing the computer program.
The computer device of the present invention may be a device including a processor, a memory, and the like, for example, a single chip microcomputer including a central processing unit and the like. And the processor is used for implementing the steps of the recommendation method capable of modifying the relationship-driven recommendation data based on the CREO software when executing the computer program stored in the memory. The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The third concrete implementation mode:
the computer-readable storage medium, on which a computer program is stored, is characterized in that the computer program, when being executed by a processor, implements an intelligent bus alternative station addressing method according to one of the specific embodiments.
The computer readable storage medium of the present invention may be any form of storage medium that can be read by a processor of a computer device, including but not limited to non-volatile memory, ferroelectric memory, etc., and the computer readable storage medium has stored thereon a computer program that, when the computer program stored in the memory is read and executed by the processor of the computer device, can implement the above-mentioned steps of the CREO-based software that can modify the modeling method of the relationship-driven modeling data. The computer program comprises computer program code which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The key points and points to be protected of the technology of the invention are as follows:
(1) The patent provides a technical route for selecting the address of the alternative station of the affected station;
(2) The mathematical optimization model proposed by the patent;
(3) The mathematical model proposed in this patent can be solved by other precise numerical solution or heuristic, and it should belong to the scope of patent protection no matter how the solving algorithm is.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
While the application has been described above with reference to specific embodiments, various modifications may be made and equivalents may be substituted for elements thereof without departing from the scope of the application. In particular, the various features of the embodiments disclosed herein may be used in any combination that is not inconsistent with the structure, and the failure to exhaustively describe such combinations in this specification is merely for brevity and resource conservation. Therefore, it is intended that the application not be limited to the particular embodiments disclosed, but that the application will include all embodiments falling within the scope of the appended claims.
Claims (7)
1. An intelligent bus alternative station site selection method is characterized by comprising the following steps: the method comprises the following steps:
s1, acquiring data of affected stations of a bus line, and extracting data of other bus stations and data of passenger travel chains of the affected stations in a certain range of the bus line according to mobile phone signaling data;
s2, screening a feasible station set based on the bus route affected station data acquired in the step S1 and other bus station data in the bus route area;
s3, clustering the feasible station set screened in the step S2 to obtain an alternative station set;
s4, clustering the passenger trip chain data of the affected station acquired in the step S1 to obtain a passenger position clustering set of the affected station;
s5, establishing a mathematical model and setting constraint conditions;
the specific implementation method of the step S5 comprises the following steps:
s5.1, the objective function that the walking distance from the passenger to the replacement station is recommended to be shortest is as follows:
s is an alternative station set, S = {1,2, …, m }, m is the number of alternative stations, and S is any one of the alternative station set; b is a passenger position cluster set of the affected station, B = { m +2, …, m + n +1}, n is the number of passenger position clusters in a circular range defined by taking alpha meters as a radius, B is any one of the passenger position cluster sets of the affected station, u is the number of the passenger position clusters of the affected station, and u is the number of the passenger position clusters of the affected station b Number of persons getting on the bus, clustering cluster b for passenger position, d b Number of people alighting, x, clustering cluster b for passenger position s A variable of 0 or 1, x s Whether the station s is selected as a final station or not is represented, 0 is not selected, 1 is selected, and min is a minimum function;
s5.2, setting a constraint condition 1 to select at most one station as a station replacement constraint:
s5.3, setting a constraint condition 2 as an interstation distance constraint:
wherein l s,0 Represents the actual navigation distance, l, from node s to the upstream site s,m+1 Representing the actual navigation distance of node s to the downstream site,the maximum value of the upstream station spacing is,lis the minimum value of the distance between the downstream stations;
s5.4, setting a constraint condition 3 as a linear coefficient constraint:
wherein the content of the first and second substances,αin order to allow the minimum straight-line coefficient,to the maximum linear coefficient allowed, e 0,m+1 Representing the spherical linear distance from the upstream station to the downstream station;
s5.5, setting a constraint condition 4 as a detour coefficient constraint:
wherein, t s,0 Is the navigation travel time, t, between node s and node 0 s,m+1 Is the navigation travel time, t, between node s and node m +1 0,m+1 For the navigation travel time between node 0 and node m +1,βin order to allow for the minimum bypass factor,the maximum allowable detour coefficient;
and S6, substituting the candidate station set obtained in the step S3 and the passenger position cluster set obtained in the step S4 into a mathematical model to solve to obtain the intelligent bus candidate station.
2. The intelligent bus alternative station site selection method according to claim 1, characterized in that: the specific implementation method of the step S2 comprises the following steps:
s2.1, setting the walking limit distance of the passenger for selecting to sit on the bus as alpha meters;
s2.2, based on the data of the affected stations of the bus route and the data of other bus stations in the bus route area acquired in the step S1, carrying out range division by using a straight line distance, dividing a circular range by using the geographical position of the affected stations as the center of a circle and alpha meter as the radius, and screening a feasible station set;
affected site s 1 With other sites s 2 Is a distance ofCalculated according to the following formula:
wherein: r represents the earth radius and takes 6378.137, and theta represents a site s 1 And site s 2 The difference in latitude of (a), gamma, the site s 1 And site s 2 Difference in longitude of (a), y 1 Representing affected sites s 1 Latitude, y of 2 Representing other sites s 2 The latitude of (c).
3. The intelligent bus alternative station site selection method according to claim 1 or 2, characterized in that: the specific implementation method of the step S3 comprises the following steps:
s3.1, clustering the feasible site set screened in the step S2 by adopting a DBSCAN algorithm, firstly initializing, setting a cluster label k =0, and setting a feasible site set N k Phi, phi is an empty set;
s3.2, randomly selecting site S in a feasible site set k Extracting the sum s in the site set k Site set E with distance less than or equal to epsilon k If E is k If the number of the medium stations is less than lambda, marking s k Is a noise point; otherwise, mark s k Updating the set N for the core sample point and marking the cluster label k thereof k =N k ∪E k Wherein epsilon is a distance threshold value between stations in the cluster, and lambda is a minimum cluster sample number;
s3.3 for N k Repeating the step S3.2 until the station set E in the range of epsilon is less than or equal to k Is empty;
s3.4, updating k = k +1, selecting a station which is not marked, and repeating the step S3.2-3.3 to obtain a DBSCAN algorithm cluster set with a final station cluster label of k;
s3.5, performing secondary clustering on the longitude and latitude coordinates of the bus stops of the set obtained in the step S3.4 by using a KMeans clustering algorithm, and outputting a KMeans clustering result;
s3.6, based on the KMeans clustering result of the step S3.5, for the site set S of the kth cluster k And sequentially calculating the line straight line coefficient and the line length of the sub-path formed by the upstream station and the downstream station, and selecting the representative station of each cluster according to the straight degree and the line length to obtain a candidate station set.
4. The intelligent bus alternative stop site selection method according to claim 3, characterized in that: the specific implementation method of the step S4 comprises the following steps:
s4.1, identifying passengers getting off from the passenger travel chain data: if the initial position is matched with the affected station and the travel mode is walking, the travel chain path is the behavior of the get-off passenger;
s4.2, identifying passengers getting on the bus according to the passenger trip chain data: the matching of the terminal position is the affected station and the travel mode is walking, and the travel chain path is the behavior of the passengers getting on the bus;
s4.3, screening the data of the passenger getting on and off the bus at the affected station;
and S4.4, clustering the getting-on initial position and the getting-off final position of the passengers on the affected station by using a KMeans clustering algorithm to obtain h clusters, and obtaining a passenger position clustering cluster set of the affected station, wherein the value of h is 5-8.
5. The intelligent bus alternative station site selection method according to claim 4, characterized in that: and S6, solving by adopting a linear programming solver in GUROBI, CPLEX and SCIP, if the mathematical model has an optimal solution, outputting a model selection site as an alternative point of the current affected site for selection by a user, and otherwise, outputting a station jump.
6. Electronic equipment, characterized by comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the intelligent bus alternative station site selection method according to any one of claims 1-5 when executing the computer program.
7. Computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for intelligent bus alternative site selection according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211082338.7A CN115186049B (en) | 2022-09-06 | 2022-09-06 | Intelligent bus alternative station site selection method, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211082338.7A CN115186049B (en) | 2022-09-06 | 2022-09-06 | Intelligent bus alternative station site selection method, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115186049A CN115186049A (en) | 2022-10-14 |
CN115186049B true CN115186049B (en) | 2023-02-03 |
Family
ID=83522315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211082338.7A Active CN115186049B (en) | 2022-09-06 | 2022-09-06 | Intelligent bus alternative station site selection method, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115186049B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115587657A (en) * | 2022-10-19 | 2023-01-10 | 华中科技大学 | Station determining and route optimizing method for night customized bus |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107609677A (en) * | 2017-08-17 | 2018-01-19 | 华侨大学 | A kind of customization public bus network planing method based on taxi GPS big datas |
CN108734337A (en) * | 2018-04-18 | 2018-11-02 | 北京交通大学 | Based on the modified customization public transport rideshare website generation method of cluster centre |
CN109035770A (en) * | 2018-07-31 | 2018-12-18 | 上海世脉信息科技有限公司 | The real-time analyzing and predicting method of public transport passenger capacity under a kind of big data environment |
CN109359682A (en) * | 2018-10-11 | 2019-02-19 | 北京市交通信息中心 | A kind of Shuttle Bus candidate's website screening technique based on F-DBSCAN iteration cluster |
CN109657843A (en) * | 2018-11-28 | 2019-04-19 | 深圳市综合交通设计研究院有限公司 | A kind of integrated programmed decision-making support system of city feeder bus sytem system |
WO2022041262A1 (en) * | 2020-08-31 | 2022-03-03 | 苏州大成电子科技有限公司 | Big data-based method for calculating anchor point of urban rail transit user |
CN114358386A (en) * | 2021-12-07 | 2022-04-15 | 江苏大学 | Double-trip-mode ride-sharing site generation method based on reserved trip demand |
CN114897445A (en) * | 2022-07-12 | 2022-08-12 | 深圳市城市交通规划设计研究中心股份有限公司 | Method and device for adjusting and optimizing stop points of public transport network and readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
BRPI0514794A (en) * | 2004-08-30 | 2008-06-24 | Hills Pet Nutrition Inc | methods for providing animal nutrition, for promoting animal welfare, for prescribing an animal welfare diet, and for building an array of feed compositions for an animal species, animal feed, computer aided system , kit, and means for communicating information about or instructions for mixing and administering a feed |
CN110598942B (en) * | 2019-09-18 | 2023-10-20 | 北京工业大学 | Method for synchronously optimizing community public transportation network and departure frequency of connection subways in consideration of full coverage of area |
CN111581325B (en) * | 2020-07-13 | 2021-02-02 | 重庆大学 | K-means station area division method based on space-time influence distance |
CN112132236B (en) * | 2020-11-20 | 2021-03-26 | 深圳市城市交通规划设计研究中心股份有限公司 | Demand subarea dividing and line planning method and device based on clustering algorithm |
-
2022
- 2022-09-06 CN CN202211082338.7A patent/CN115186049B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107609677A (en) * | 2017-08-17 | 2018-01-19 | 华侨大学 | A kind of customization public bus network planing method based on taxi GPS big datas |
CN108734337A (en) * | 2018-04-18 | 2018-11-02 | 北京交通大学 | Based on the modified customization public transport rideshare website generation method of cluster centre |
CN109035770A (en) * | 2018-07-31 | 2018-12-18 | 上海世脉信息科技有限公司 | The real-time analyzing and predicting method of public transport passenger capacity under a kind of big data environment |
CN109359682A (en) * | 2018-10-11 | 2019-02-19 | 北京市交通信息中心 | A kind of Shuttle Bus candidate's website screening technique based on F-DBSCAN iteration cluster |
CN109657843A (en) * | 2018-11-28 | 2019-04-19 | 深圳市综合交通设计研究院有限公司 | A kind of integrated programmed decision-making support system of city feeder bus sytem system |
WO2022041262A1 (en) * | 2020-08-31 | 2022-03-03 | 苏州大成电子科技有限公司 | Big data-based method for calculating anchor point of urban rail transit user |
CN114358386A (en) * | 2021-12-07 | 2022-04-15 | 江苏大学 | Double-trip-mode ride-sharing site generation method based on reserved trip demand |
CN114897445A (en) * | 2022-07-12 | 2022-08-12 | 深圳市城市交通规划设计研究中心股份有限公司 | Method and device for adjusting and optimizing stop points of public transport network and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115186049A (en) | 2022-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Caceres et al. | Deriving origin–destination data from a mobile phone network | |
Zhao et al. | Using truck probe GPS data to identify and rank roadway bottlenecks | |
CN112133090A (en) | Multi-mode traffic distribution model construction method based on mobile phone signaling data | |
CN109299438B (en) | Public transport facility supply level evaluation method based on network appointment data | |
Chen et al. | Long-term travel time prediction using gradient boosting | |
CN105674994A (en) | Driving route acquisition method and device and navigation equipment | |
Jiang et al. | The impact of the transportation network companies on the taxi industry: Evidence from Beijing’s GPS taxi trajectory data | |
CN111191816B (en) | System for identifying travel time chain of urban rail transit passengers | |
EP2325606A2 (en) | Method for identifying a candidate part of a map to be updated | |
CN110969861B (en) | Vehicle identification method, device, equipment and computer storage medium | |
CN115186049B (en) | Intelligent bus alternative station site selection method, electronic equipment and storage medium | |
CN112579718B (en) | Urban land function identification method and device and terminal equipment | |
CN114363842B (en) | Bus passenger departure station prediction method and device based on mobile phone signaling data | |
CN112363999B (en) | Public traffic passenger flow analysis method, device, equipment and storage medium | |
CN111738484B (en) | Method and device for selecting address of bus stop and computer readable storage medium | |
CN112118548A (en) | Method and storage device for identifying regular population and floating population by big data | |
CN104636457B (en) | A kind of method and device of location finding cognition | |
CN112651546A (en) | Bus route optimization method and system | |
CN111191817B (en) | Bus network topology division method based on transfer passenger flow | |
CN112800348A (en) | Tourism behavior identification method based on mobile phone signaling big data | |
CN111414878A (en) | Method and device for social attribute analysis and image processing of land parcel | |
CN114841428A (en) | Bus route planning method and system | |
CN111341135A (en) | Mobile phone signaling data travel mode identification method based on interest points and navigation data | |
Wang et al. | Road network design in a developing country using mobile phone data: An application to Senegal | |
CN115599878B (en) | Subway dominant abdominal ground travel chain generation method based on mobile phone positioning data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |