A method for optimizing bus safety operation scheduling based on genetic algorithm
Through the bus safety operation scheduling optimization method based on genetic algorithm, combined with the entropy weight method and TOPSIS model, the attributes and weather conditions of bus drivers are quantitatively evaluated, which solves the problems of complexity and low efficiency in traditional scheduling methods and improves the efficiency of public transportation. Operational safety and scheduling efficiency.
Patent Information
- Application Number
- CN202111623569.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-12-28
AI Technical Summary
The traditional bus scheduling method has problems such as cumbersome scheduling process, unbalanced driver configuration, poor real-time dispatching effect, and difficult to quantify the scheduling results, which makes it difficult to improve the safety of bus operations, requires a large amount of calculation, and is low in efficiency.
A method based on genetic algorithms is used, combined with the entropy weight method and the TOPSIS model, to quantitatively evaluate the impact of the driver's own attributes, working periods and weather conditions, build a bus driver scheduling optimization model, and use crossover and mutation operations to obtain the optimal schedule plan.
It significantly improves the safety of bus operations, reduces the complexity and calculation amount of the scheduling process, improves scheduling efficiency, avoids manual subjectivity, and improves the safety of individual drivers and the overall operation.
Smart Images

Figure CN114331353B
Abstract
Description
Technical Field
[0001] The invention relates to the field of scheduling methods, and in particular to a public transportation safety operation scheduling optimization method based on genetic algorithm. Background Art
[0002] Bus drivers are an important factor in ensuring the safe operation of vehicles, so it is particularly important to schedule drivers reasonably. The scheduling problem is essentially a combinatorial optimization problem, but as the number of shifts and drivers increases, the complexity and amount of calculation required to obtain the optimal solution will increase exponentially. Traditional bus scheduling mainly uses manual scheduling, which has the disadvantages of cumbersome scheduling process, unbalanced driver configuration, poor real-time scheduling effect, and difficulty in quantifying scheduling results.
[0003] In order to avoid the above shortcomings of manual scheduling, the TOPSIS model based on the entropy weight method is introduced to quantitatively evaluate the operational safety of the driver's own attributes. The entropy weight method is an objective weighting method. The TOPSIS model avoids the subjectivity of the data and can well characterize the comprehensive impact of multiple influencing indicators. A bus driver scheduling optimization model is constructed and solved using a genetic algorithm. Compared with the traditional manual scheduling method, this technology can quantitatively evaluate the impact of bus drivers' own attributes, working hours and weather conditions, greatly improve the safety of bus operations, reduce the complexity and calculation amount of the scheduling process, and improve scheduling efficiency. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to propose a method for optimizing bus safe operation scheduling based on genetic algorithm, which can quantitatively evaluate the influence of bus drivers' own attributes, working hours and weather conditions, improve the safety of bus operations, reduce the complexity and calculation amount of the scheduling process, and improve scheduling efficiency.
[0005] Technical solution: The method for optimizing bus safety operation scheduling based on genetic algorithm described in the present invention specifically includes the following steps:
[0006] (1) pre-acquire basic data sets including driver demographic data, driver scheduling information data, vehicle warning information data, and weather data;
[0007] (2) A safety evaluation method based on the driver's own attributes is proposed. The driver's own attribute characteristics are used as evaluation indicators, and the TOPSIS method based on the entropy weight method is used to score and evaluate the operational safety of the driver's own attributes;
[0008] (3) Quantitatively analyze the safety of drivers’ working hours and weather conditions based on the relationship between warning frequency, working hours and weather conditions;
[0009] (4) Based on the safety score normalization data of the driver's own attributes, working hours, and weather conditions, a bus driver scheduling optimization model is constructed;
[0010] (5) Use genetic algorithms to obtain the optimal scheduling solution through crossover and mutation operations.
[0011] Furthermore, the driver demographic data in step (1) includes driver number, ID number, gender, age, driving experience, and education level; the driver scheduling information data includes driver number, date, route number, vehicle number, actual start time of the trip, and actual end time of the trip; the vehicle warning information data includes driver number, vehicle number, warning type, warning type number, date and time, speed, longitude, latitude, and route number; and the weather data includes date and time, temperature, weather, wind level, wind speed, humidity, rainfall, and visible light.
[0012] Furthermore, the step (2) comprises the following steps:
[0013] (21) The data of each driver indicator are standardized and the evaluation indicator X i ={x1,x2,...,x n} represents the evaluation index of the safety driving performance of n selected drivers, Y1,Y2,......,Y n is the standardized value of each indicator data, and its standardized formula is:
[0014]
[0015] (22) Calculate the information entropy E of each indicator j , its information entropy E j The specific processing process is as follows:
[0016]
[0017] Among them, p ij represents the probability of indicator j appearing, if p ij =0, then define
[0018] (23) Calculate the index weight W of the driver’s own attribute characteristics such as gender, driving experience, and warning type i , the weight of its n indicators is W i for:
[0019]
[0020] (25) After determining the weights of each driver's own attributes based on the entropy weight method, a TOPSIS model is constructed to analyze the safety scores of multiple indicators and multiple drivers' own attributes.
[0021] Furthermore, the step (24) comprises the following steps:
[0022] (241) Construct an initial matrix based on i target drivers and j evaluation indicators Where a represents the jth indicator of the i-th driver; and the original data is normalized to obtain
[0023]
[0024] (242) According to the weights of various indicators of the driver's own attributes calculated by the entropy weight method, a weighted normalized matrix is constructed The specific processing process is:
[0025]
[0026] Among them, w n is the weight of the nth indicator;
[0027] (243) According to the weighted matrix Z, the positive and negative ideal solutions Z+, Z- are determined:
[0028]
[0029] Among them, z ij is the weighted normalized value of the i-th target driver and the j-th evaluation index, J * is a set of benefit indicators, J′ is a set of cost indicators;
[0030] (244) Calculate the distance S from each driver's own attribute to the positive ideal point i + and negative distance S from the ideal point i -:
[0031]
[0032] (245) Calculate the relative closeness C of each driver's own attributes i :
[0033]
[0034] Sort the relative closeness of each driver's own attributes by size, the larger the value, the better.
[0035] Furthermore, the implementation process of step (3) is as follows:
[0036] Divide a day into five time periods: "early morning", "morning", "noon", "afternoon" and "evening", and obtain the number of warnings for drivers in each time period through statistics; secondly, analyze the relationship between the driver's warning data and the shift period, and determine the relationship between the number of warnings and the five divided time periods; then subdivide the time period into 24-hour time periods, calculate the number of warnings in each unit departure time period, and divide it by the total number to obtain the frequency of warnings; finally, assign points to each time period based on the warning frequency;
[0037] Select the driver's warning data and corresponding weather type data within a period of time; count the number of warnings issued by the driver in different weather conditions; then count the number of times the driver started the vehicle in each weather condition during the period, and divide the number by the total number to get the frequency of weather warnings for each driver; assign points to each driver based on the warning frequency for each weather condition.
[0038] Furthermore, the constraint conditions of the bus driver scheduling optimization model in step (4) are:
[0039]
[0040] The objective function to establish the highest safety level is:
[0041]
[0042] Among them, i is the driver number; j is the shift combination number; X ij The task arrangement for the i-th driver to complete the j-th shift combination is a 0-1 variable; when X ij =1, it means that the i-th driver completes the j-th shift combination; when X ij = 0, it means that the jth shift combination is not completed by the i-th driver; S ij The attribute score of driver i when completing the task of shift combination j; T ij Score the time period when driver i completes the task of shift combination j; W ij is the weather score when driver i completes the task of shift combination j; q1, q2, q3 represent the weight proportion of the driver's own attributes, working hours, and weather condition scores determined by the entropy weight method.
[0043] Furthermore, the step (5) comprises the following steps:
[0044] (51) Initial population coding, the coding method adopts binary coding method, generates an initial binary coding population InitPopBinary with a population size of POP and a chromosome coding length of PRECI*M; converts the binary coding population InitPopBinary into a real number array InitPop, whose size is POP*M, and the specific conversion formula is:
[0045]
[0046] (52) The fitness function is constructed by comprehensively weighting the driver's own attribute score, working time score, and weather condition score, and the working time score and weather condition score are positively converted:
[0047]
[0048] Among them, U ij Score the jth driver’s working period, V ij is the weather condition score for the jth driver, Max1 is U ij (j=1,2,…,n), Max2 is the maximum value of V ij The maximum value among (j=1,2,…,n);
[0049] MinMaxScaler is used to normalize the data so that the driver's attribute score, working time score and weather condition score are on the same latitude and the value range is within [0,1];
[0050] (53) Calculate the selection probability of the coding sequence. First, retain the driver with the strongest adaptability in the previous generation population. Then, use the roulette method to select the remaining drivers with the selection probability as the weight. The specific processing process for calculating the selection probability of each driver (si) is as follows:
[0051]
[0052] Among them, p(s i ) is the probability of selecting driver si, f(s i ) is the fitness of the si driver;
[0053] (54) The probability of crossover by selecting the remaining driver is P sel , randomly select a node and exchange the parts after the node of both parties;
[0054] (55) Using a smaller mutation probability P mig Perform mutation operation on the offspring population, randomly select two nodes of drivers, and reverse the order of drivers in the nodes;
[0055] (56) Check whether the maximum genetic generation number Gen of the algorithm termination condition is reached. If it is reached, execute the next step, otherwise return to (53);
[0056] (57) Obtain the chromosome code with the highest fitness and convert it into a real number;
[0057] (58) Restore the optimal scheduling order according to the ordered sequence of the optimal scheduling, and end.
[0058] Beneficial effects: Compared with the prior art, the present invention has the following beneficial effects: the present invention does not rely on the experience of manual scheduling, thus avoiding manual subjectivity; the present invention can quantitatively evaluate the impact of bus drivers' own attributes, working hours and weather conditions on safe driving; the present invention can significantly improve the safety of individual drivers and the overall operation, and reduce the risk of bus operation; when facing adjustments to the bus operation plan, the present invention can quickly, efficiently, reasonably and safely re-compile the scheduling plan, greatly reducing manpower investment. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a flow chart of the present invention.
[0060] Figure 2 It is a flow chart of solving the genetic algorithm solution of the bus driver scheduling optimization model of the present invention;
[0061] Figure 3 It is a graph of the solution result of the genetic algorithm of the present invention;
[0062] Figure 4 This is a comparison chart of the safety scores of each shift before and after optimization;
[0063] Figure 5 This is a comparison chart of the safety scores of each driver before and after optimization. DETAILED DESCRIPTION
[0064] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0065] like Figure 1 As shown, this embodiment provides a method for optimizing bus safety operation scheduling based on genetic algorithm, comprising the following steps:
[0066] Step 1: Collect basic data sets through the "Vehicle Intelligent Video Surveillance Alarm System", including driver demographic data, driver scheduling information data, vehicle warning information data, and weather data.
[0067] Driver demographic data includes basic data such as driver number, ID number, gender, age, driving experience, and education level; driver scheduling information data includes basic data such as driver number, date, route number, vehicle number, actual start time of the trip, and actual end time of the trip; vehicle warning information data includes basic data such as driver number, vehicle number, warning type, warning type number, date and time, speed, longitude, latitude, and route number; weather data includes basic data such as date and time, temperature, weather, wind level, wind speed, humidity, rainfall, and visible light.
[0068] Step 2: Propose a safety evaluation method based on the driver's own attributes, using the driver's own attribute characteristics such as gender, driving experience, and warning type as evaluation indicators, and use the TOPSIS method based on the entropy weight method to score and evaluate the operational safety of the driver's own attributes.
[0069] First, the data of each indicator of the driver is standardized, and the evaluation index X i ={x1,x2,…,x n} represents the evaluation index of the safety driving performance of n selected drivers, Y1,Y2,......,Y n is the standardized value of each indicator data, and its standardized formula is:
[0070]
[0071] Then find the information entropy E of each indicator j , if the information entropy E of a certain indicator j The smaller the information entropy, the more information the indicator value provides, the greater the role it can play in the comprehensive evaluation, and the greater its weight. On the contrary, the larger the information entropy of an indicator, the less information the indicator value provides, the smaller the role it plays in the comprehensive evaluation, and the smaller its weight. j for:
[0072]
[0073] Among them, p ij represents the probability of indicator j appearing, if p ij =0, then define
[0074] Then calculate the index weight W of the driver's own attribute characteristics such as gender, driving experience, and warning type i , the weight of its n indicators is W i for:
[0075]
[0076] The standardized weights are shown in Table 1:
[0077] Table 1 Standardized weights of driver's own attributes
[0078]
[0079] After determining the index weights of the driver's own attributes based on the entropy weight method, a TOPSIS model is constructed to analyze multiple indicators and the safety scores of multiple drivers' own attributes. The specific construction process of the TOPSIS model is as follows:
[0080] First, an initial matrix is constructed based on i target drivers and j evaluation indicators Among them, a ij represents the jth indicator of the i-th driver. Then the original data is normalized. The normalized data The processing process is:
[0081]
[0082] According to the weights of various indicators of the driver's own attributes calculated by the entropy weight method, a weighted normalized matrix is constructed The specific processing process is:
[0083]
[0084] Among them, w n is the weight of the nth indicator.
[0085] Determine the positive and negative ideal solutions Z+, Z-, the specific process is:
[0086]
[0087] Among them, z ij is the weighted normalized value of the i-th target driver and the j-th evaluation index, J * is a set of efficiency indicators (the larger the indicator value, the better); J′ is a set of cost indicators (the smaller the indicator value, the better).
[0088] According to the obtained positive and negative ideal solutions Z+, Z-, calculate the distance S from each driver's own attribute to the positive ideal point i + and negative ideal point distance S i -, the specific processing process is:
[0089]
[0090] According to the distance S from each driver's own attribute to the positive ideal point i + and negative distance S from the ideal point i - Calculate the relative closeness C of each driver's own attributes i ,
[0091]
[0092] Sort the relative closeness of each driver's own attributes by size, the larger the value, the better.
[0093] Step 3: Quantitatively analyze the safety of drivers’ working hours and weather conditions based on the relationship between warning frequency, working hours and weather conditions.
[0094] Based on the correlation analysis of historical time period data, the safety of drivers' working hours is quantitatively analyzed. The specific processing process is: first, a day is divided into five time periods: "early morning", "morning", "noon", "afternoon" and "evening", and the number of warnings of drivers in each time period is obtained by statistics; secondly, the relationship between the driver's warning data and the scheduling period is analyzed, and the relationship between the number of warnings and the five divided time periods is determined; then the time period is subdivided into 24-hour time periods, and the number of warnings in each unit departure time is calculated, and the frequency of warnings is obtained after dividing it by the total number; finally, each time period is scored according to the warning frequency of the time period.
[0095] Based on the warning frequency under each weather condition over a period of time, each driver is assigned a score for driving safety under each weather condition. The specific processing process is: first, the warning data of the driver and the corresponding weather type data over a period of time are selected; secondly, the number of warnings of the driver under different weather conditions is counted; then the number of times the driver starts in each weather condition during the time is counted, and the frequency of weather warnings for each driver is obtained after dividing by the total number; finally, each driver is assigned a score based on the warning frequency for each weather condition.
[0096] Step 4: Based on the safety score normalization data of the driver’s own attributes, working hours, and weather conditions, a bus driver scheduling optimization model is constructed.
[0097] M is the total number of departures on a route, that is, the number of scheduled time periods, which are completed by N drivers. According to the route operation time, M departure shifts are combined into N shift combinations, which are completed by N drivers. The constraints of the bus driver scheduling optimization model are:
[0098]
[0099] Finally, the objective function with the highest safety level as the goal is established, which is as follows:
[0100]
[0101] Among them, i is the driver number; j is the shift combination number; X ijThe task arrangement for the i-th driver to complete the j-th shift combination is a 0-1 variable; when X ij =1, it means that the i-th driver completes the j-th shift combination; when X ij = 0, it means that the jth shift combination is not completed by the i-th driver; S ij The attribute score of driver i when completing the task of shift combination j; T ij Score the time period when driver i completes the task of shift combination j; W ij is the weather score when driver i completes the task of shift combination j; q1, q2, q3 represent the weight proportion of the own attributes, working hours, and weather condition scores determined by the entropy weight method. The normalized data of the driver's operational safety score is shown in Table 2:
[0102] Table 2 Normalized data of driver operation safety score
[0103]
[0104] Step 5: Use genetic algorithm to obtain the optimal scheduling solution through crossover and mutation operations.
[0105] like Figure 2 As shown in the figure, the specific solution steps of the genetic algorithm are designed using the obtained bus driver scheduling optimization model. The algorithm termination condition is when the genetic algebra Gen reaches the maximum genetic algebra:
[0106] S1: Initial population coding, the coding method adopts binary coding, the population size POP is selected as 350, and the genetic generation number Gen is selected as 300. The specific processing process is:
[0107] 1) Generate an initial binary coded population InitPopBinary with a population size of POP and a chromosome coding length of PRECI*M.
[0108] 2) Convert the binary coded population InitPopBinary into a real number array InitPop, whose size is POP*M. The specific conversion formula is:
[0109]
[0110] S2: The fitness function is constructed by comprehensive weighting based on the driver's own attribute score, working time score, and weather condition score. The specific processing process is as follows:
[0111] 1) Make the working hours score and weather conditions score positive. The specific process is as follows:
[0112]
[0113] Among them, Uij Score the jth driver’s working period, V ij is the weather condition score for the jth driver, Max1 is U ij (j=1,2,…,n), Max2 is the maximum value of V ij The maximum value among (j=1,2,…,n).
[0114] 2) Use MinMaxScaler to normalize the data so that the driver's own attribute score, working time score and weather condition score are on the same latitude and the value range is within [0,1]. The specific processing process is as follows:
[0115]
[0116] X scaled =X std *(max-min)+min (15)
[0117] Among them, X is the data to be normalized, usually a two-dimensional matrix; X·min (axis = 0) is a row vector composed of the minimum value in each column; X·max (axis = 0) is a row vector composed of the maximum value in each column. max is the maximum value of the interval to be mapped, the default is 1; min is the minimum value of the interval to be mapped, the default is 0; X std is the standardized result; X scaled is the normalized result.
[0118] 3) Calculate the selection probability of the coding sequence. First, keep the 20% drivers with the strongest adaptability in the previous generation population, and then use the roulette method to select the remaining 80% drivers with the selection probability as the weight. The specific process of calculating the selection probability for each driver (si) is as follows:
[0119]
[0120] Among them, p(s i ) is the probability of selecting driver si, f(s i ) is the fitness of the si driver.
[0121] 4) The probability of crossover by selecting the remaining driver is P sel =70%, randomly select a node and exchange the parts after the node on both sides of the cross.
[0122] 5) Using a smaller mutation probability P mig =20% Perform mutation operation on the offspring population, randomly select two nodes of the driver, and reverse the order of the drivers in the nodes.
[0123] 6) Check whether the maximum genetic generation number Gen=300, which is the termination condition of the algorithm, is reached. If so, execute the next step, otherwise return to 3).
[0124] 7) Obtain the chromosome code with the highest fitness and convert it into a real number. The specific processing process is shown in formula (12).
[0125] 8) Restore the optimal scheduling order according to the obtained ordered sequence of the optimal scheduling, and end.
[0126] The score comparison between the original sequence and the optimal scheduling sequence is shown in Table 3.
[0127] Table 3 The comparison of the original order and the optimal scheduling order is shown in the following table:
[0128]
[0129] like Figure 3 , Figure 4 , Figure 5 As shown in the figure, it is the result verified by Python programming. After optimization, the safety scores of each scheduling time period are greatly improved, and the safety scores of drivers in the optimal scheduling are significantly improved, that is, the scheduling safety is greatly improved, which verifies the rationality and effectiveness of this method.
[0130] Although the embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principle of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention. Contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.
Claims
1. A method for optimizing bus safety operation scheduling based on genetic algorithm, characterized in that: The following steps are involved: (1) pre-acquire basic data sets including driver demographic data, driver scheduling information data, vehicle warning information data, and weather data; (2) A safety evaluation method based on the driver's own attributes is proposed. The driver's own attribute characteristics are used as evaluation indicators, and the TOPSIS method based on the entropy weight method is used to score and evaluate the operational safety of the driver's own attributes; (3) Quantitatively analyze the safety of drivers’ working hours and weather conditions based on the relationship between warning frequency, working hours and weather conditions; (4) Based on the safety score normalization data of the driver's own attributes, working hours, and weather conditions, a bus driver scheduling optimization model is constructed; (5) Using genetic algorithms to obtain the optimal scheduling solution through crossover and mutation operations; The step (2) comprises the following steps: (21) The data of each driver indicator are standardized and the evaluation indicator X i ={x1,x2,...,x n } represents the evaluation index of the safety driving performance of n selected drivers, Y1, Y2, ..., Y n is the standardized value of each indicator data, and its standardized formula is: (22) Calculate the information entropy E of each indicator j , its information entropy E j The specific processing process is as follows: Among them, p ij represents the probability of indicator j appearing, if p ij =0, then define (23) Calculate the indicator weight W of the driver’s gender, driving experience, and warning type i , the weight of its n indicators is W i for: (24) After determining the index weights of each driver's own attributes based on the entropy weight method, a TOPSIS model is constructed to analyze the safety scores of multiple indicators and multiple drivers' own attributes; The step (24) comprises the following steps: (241) Construct an initial matrix based on i target drivers and j evaluation indicators Where a represents the jth indicator of the i-th driver; and the original data is normalized, the normalized data The processing process is: (242) According to the weights of various indicators of the driver's own attributes calculated by the entropy weight method, a weighted normalized matrix is constructed The specific processing process is: Among them, w n is the weight of the nth indicator; (243) According to the weighted matrix Z, the positive and negative ideal solutions Z+, Z- are determined: Among them, z ij is the weighted normalized value of the i-th target driver and the j-th evaluation index, J * is a set of benefit indicators, J′ is a set of cost indicators; (244) Calculate the distance S from each driver's own attribute to the positive ideal point i + and negative ideal point distance S i -: (245) Calculate the relative closeness C of each driver's own attributes i : Sort the relative closeness of each driver's own attributes by size, the larger the value, the better; The implementation process of step (3) is as follows: Divide a day into five time periods: "early morning", "morning", "noon", "afternoon" and "evening", and obtain the number of warnings issued by drivers in each time period through statistics; secondly, analyze the relationship between the warning data of drivers and the shift time period, and determine the relationship between the number of warnings and the five time periods that have been divided; then subdivide the time period into 24-hour time periods, calculate the number of warnings in each unit departure time period, and divide it by the total number to obtain the frequency of warnings; finally, assign points to each time period based on the warning frequency; Select the driver's warning data and corresponding weather type data within a period of time; count the number of warnings issued by the driver in different weather conditions; then count the number of departures of the driver in each weather condition during the period, and divide the total number by the number to get the frequency of weather warnings for each driver; assign points to each driver according to the warning frequency for each weather condition; The constraint conditions of the bus driver scheduling optimization model in step (4) are: The objective function to establish the highest safety level is: Among them, i is the driver number; j is the shift combination number; X ij The task arrangement for the i-th driver to complete the j-th shift combination is a 0-1 variable; when X ij =1, it means that the i-th driver completes the j-th shift combination; when X ij = 0, it means that the jth shift combination is not completed by the i-th driver; S ij The attribute score of driver i when completing the task of shift combination j; T ij Score the time period when driver i completes the task of shift combination j; W ij is the weather score when driver i completes the task of shift combination j; q1, q2, q3 represent the weight proportion of the driver's own attributes, working hours, and weather condition scores determined by the entropy weight method respectively; The step (5) comprises the following steps: (51) Initial population coding, the coding method adopts binary coding method, generates an initial binary coding population InitPopBinary with a population size of POP and a chromosome coding length of PRECI*M; converts the binary coding population InitPopBinary into a real number array InitPop, whose size is POP*M, and the specific conversion formula is: (52) The fitness function is constructed by comprehensively weighting the driver's own attribute score, working time score, and weather condition score, and the working time score and weather condition score are positively converted: Among them, U ij Score the jth driver’s working period, V ij is the weather condition score for the jth driver, Max1 is U ij (j=1,2,…,n), Max2 is the maximum value of V ij The maximum value among (j=1,2,…,n); MinMaxScaler is used to normalize the data so that the driver's attribute score, working time score and weather condition score are on the same latitude and the value range is within [0,1]. The specific processing process is as follows: X scaled =X std *(max-min)+min Where X is the data to be normalized, usually a two-dimensional matrix; X·min(axis=0) is a row vector composed of the minimum value in each column; X·max(axis=0) is a row vector composed of the maximum value in each column; max is the maximum value of the interval to be mapped, the default is 1; min is the minimum value of the interval to be mapped, the default is 0; X std is the standardized result; X scaled is the normalized result; (53) Calculate the selection probability of the coding sequence. First, retain the driver with the strongest adaptability in the previous generation population. Then, use the roulette method to select the remaining drivers with the selection probability as the weight. The specific processing process for calculating the selection probability of each driver (si) is as follows: Among them, p(s i ) is the probability of selecting driver si, f(s i ) is the fitness of the si driver; (54) The probability of crossover by selecting the remaining driver is P sel , randomly select a node and exchange the parts after the node of both parties; (55) Using a smaller mutation probability P mig Perform mutation operation on the offspring population, randomly select two nodes of drivers, and reverse the order of drivers in the nodes; (56) Check whether the maximum genetic generation number Gen of the algorithm termination condition is reached. If it is reached, execute the next step, otherwise return to (53); (57) Obtain the chromosome code with the highest fitness and convert it into a real number; (58) Restore the optimal scheduling order according to the ordered sequence of the optimal scheduling, and end.
2. The method for optimizing bus safety operation scheduling based on genetic algorithm according to claim 1 is characterized in that: The driver demographic data of step (1) includes driver number, ID number, gender, age, driving experience, and education level; the driver scheduling information data includes driver number, date, route number, vehicle number, actual start time of the trip, and actual end time of the trip; the vehicle warning information data includes driver number, vehicle number, warning type, warning type number, date and time, speed, longitude, latitude, and route number; the weather data includes date and time, temperature, weather, wind level, wind speed, humidity, rainfall, and visible light.
Citation Information
Patent Citations
Public transport intelligent vehicle planning and scheduling system and public transport intelligent vehicle planning and scheduling method under cloud platform environment
CN105913653A
Urban road greening safety evaluation method based on entropy weight TOPSIS method
CN108335253A
Multivariate analysis driving risk assessment system based on people, vehicles, roads and environment
CN109740840A
Electric public transportation system planning method
CN111915150A
Bus driver intelligent scheduling method based on segmentation combination optimization
CN112241871A
