Flight scheduling method and device, equipment and storage medium
Through the multivariate logistic regression model and virtual flight merging technology, it solves the problem that airlines have difficulty in assessing the importance of flights and performing optimal scheduling under severe weather or emergencies. It realizes automatic assessment and automatic scheduling of flight importance, and improves efficiency. Flight scheduling efficiency and decision quality.
Patent Information
- Application Number
- CN202410509741.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Under the influence of bad weather or emergencies, it is difficult for airline operation and dispatch personnel to scientifically assess the importance of flights and make overall optimal decisions. The existing technology lacks standards and judgment basis, resulting in low flight dispatch efficiency.
A multivariate logistic regression model is used to construct flight importance characteristics by obtaining historical flight data, generate virtual merged flights, and construct an objective optimization function based on flight importance scores to achieve automatic evaluation and optimal scheduling of flight importance.
It realizes automatic assessment and automatic scheduling of flight importance, reduces manual intervention, improves flight scheduling efficiency, and reduces flight time usage while ensuring passenger travel needs, achieving optimal decision-making.
Smart Images

Figure CN118569533A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of aviation technology, and in particular to a flight scheduling method, device, equipment and storage medium. Background Art
[0002] Under the influence of bad weather or emergencies, airline operation dispatchers need to adjust the departure time of the next day's flights and the number of flights arriving and departing from the airport in batches according to the information provided by the air traffic control department, so that the number of flights arriving and departing in each period meets the requirements of the air traffic control department. For this business scenario, airline operation dispatchers currently use manual processing, but due to the lack of standards and judgment basis, it is difficult to evaluate and compare the importance of flights when manually adjusting flights; on the other hand, because the flight merger decision and other flight adjustment decisions are currently made in steps when making flight adjustment decisions, flight scheduling decisions cannot achieve the overall optimality. Summary of the invention
[0003] In order to solve the above technical problems, the present invention provides a flight scheduling method, device, equipment and storage medium. By considering both the flights to be executed and the virtual merged flights in the model and establishing a multivariate logistic regression model to automatically evaluate the importance of flights, the importance of flights can be evaluated scientifically and efficiently to achieve the optimal decision.
[0004] An embodiment of the present invention provides a flight scheduling method, including:
[0005] Obtain historical flight data and construct a multivariate logistic regression model based on flight importance;
[0006] Acquire the to-be-executed flights, and generate a virtual merged flight according to a preset merged flight condition, and use the to-be-executed flights and the virtual merged flight as the flights to be analyzed;
[0007] Inputting the flight to be analyzed into the multivariate logistic regression model to obtain the importance classification result corresponding to each flight;
[0008] Calculate the flight importance score according to the type and probability corresponding to each flight in the classification result;
[0009] Based on the flights to be analyzed, a target optimization function is constructed according to the flight importance scores and preset optimization goals, and an optimal flight scheduling plan is calculated.
[0010] As an improvement to the above solution, the acquisition of historical flight data and the construction of a multivariate logistic regression model based on flight importance specifically include:
[0011] Acquire the historical flight data, and perform feature extraction according to preset screening rules to obtain secondary features of flight importance;
[0012] Performing data cleaning on the data corresponding to the secondary features, and summarizing and analyzing the secondary features to obtain corresponding primary features;
[0013] Using the hierarchical analysis method, an importance judgment matrix of the secondary features under the same primary feature is established, and a feature vector corresponding to each flight is calculated according to the importance judgment matrix;
[0014] According to a preset marking rule, a type label corresponding to each flight in the historical flight data is obtained;
[0015] The feature vector and the type label corresponding to each flight are used as training samples and input into the multivariate logistic regression model for training to obtain the multivariate logistic regression model based on flight importance.
[0016] As an improvement of the above solution, the step of calculating the feature vector corresponding to each flight according to the importance judgment matrix specifically includes:
[0017] According to the importance judgment matrix, the weight of each of the second-level features under the same first-level feature is calculated by using the arithmetic mean method;
[0018] The feature vector corresponding to each flight is calculated based on the weight and value of the secondary feature corresponding to each flight.
[0019] As an improvement of the above solution, the type label corresponding to each flight in the historical flight data is obtained according to the preset marking rule, specifically including:
[0020] According to the historical operations in the historical flight data, the flights in the historical flight data that are delayed for more than 2 hours or cancelled, and the reasons for the delay or cancellation are not due to weather, maintenance, or passengers, are marked as unimportant;
[0021] According to the preset flight strong rules, the flights in the historical flight data are marked to obtain flights of very important type and important type;
[0022] The type labels of the flights in the historical flight data that are not marked as very important, important, or unimportant are marked as general.
[0023] As an improvement of the above solution, generating a virtual merged flight according to a preset merged flight condition specifically includes:
[0024] Among the pending flights, for each flight, select flights that meet the corresponding transfer conditions as the flights that can be merged with the corresponding flight; wherein the transfer conditions include: the take-off time is within the transfer time limit of the corresponding flight, the take-off and landing places are the same as those of the corresponding flight, and there are vacancies on the flight;
[0025] If the mergeable flight corresponding to the first flight among the pending flights is the second flight, it is determined whether the overflow passenger condition is met when the first flight and the second flight are merged into one flight, and if so, a corresponding virtual merged flight is generated; wherein the overflow passenger condition is that the total number of passengers on the merged flights is not greater than the set overflow passenger upper limit;
[0026] If the combinable flights corresponding to the first flight include a third flight and a fourth flight, the flight merging methods are divided into merging the first flight and the third flight into one flight, merging three flights into one flight, and merging three flights into two flights, and whether the three flight merging methods meet the overflow number condition is judged respectively, and a corresponding virtual merged flight is generated according to the flight merging methods that meet the overflow number condition; wherein the departure time of the third flight is earlier than that of the fourth flight; and the departure time of the virtual merged flight is the departure time of the flight with the latest departure time among the merged flights.
[0027] As an improvement to the above solution, the flight importance score The calculation formula is:
[0028]
[0029] Among them, x i is the feature vector, y i is the type tag, Indicates type is y i The value with the smallest probability among the flights mentioned, Indicates type is y i The value with the highest probability among the flights, Y max is the maximum score, Y min is the minimum score, specifically:
[0030]
[0031] Among them, when y i =1, 2, 3, 4, representing unimportant, general, important, and very important label types respectively.
[0032] As an improvement of the above solution, the constraint conditions of the objective optimization function include: flight status constraint, single route constraint, inbound flow constraint, outbound flow constraint and variable value constraint.
[0033] The embodiment of the present invention further provides a flight scheduling device, comprising:
[0034] Model building module, used to obtain historical flight data and build a multivariate logistic regression model based on flight importance;
[0035] A flight merging module, used to obtain pending flights, generate virtual merged flights according to preset merged flight conditions, and use the pending flights and the virtual merged flights as flights to be analyzed;
[0036] A flight classification module, used for inputting the flights to be analyzed into the multivariate logistic regression model to obtain the importance classification result corresponding to each flight;
[0037] An importance calculation module, used to calculate the flight importance score according to the type and probability corresponding to each flight in the classification result;
[0038] The flight scheduling module is used to construct a target optimization function based on the flight to be analyzed, according to the flight importance score and the preset optimization target, and calculate the optimal flight scheduling plan.
[0039] An embodiment of the present invention further provides a terminal device, including a processor and a memory, wherein a computer program is stored in the memory, and the computer program is configured to be executed by the processor, and when the processor executes the computer program, the flight scheduling method described in any one of the above items is implemented.
[0040] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the flight scheduling methods described above.
[0041] Compared with the prior art, the beneficial effects of a flight scheduling method, device, equipment and storage medium provided by the embodiment of the present invention are: by using a multivariate logistic regression model for machine learning to obtain flight importance, flight scheduling is performed according to flight importance, automatic evaluation of flight importance and automatic scheduling of flights are achieved, labor is reduced, and work efficiency is improved; by extracting the secondary and primary features of flight importance to construct the feature vector corresponding to the flight, flight importance is quantified, which is conducive to the evaluation and comparison of flight importance; by considering merging flights when performing flight scheduling, it is conducive to achieving the best decision, and can occupy less flight time while ensuring the travel needs of passengers. The embodiment of the present invention can automatically evaluate the importance of flights, realize flight scheduling based on flight importance, improve the efficiency of flight scheduling, and also consider the situation of merging flights, so as to achieve the best flight scheduling decision. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flowchart of a flight scheduling method provided by an embodiment of the present invention;
[0043] Figure 2 It is a structural schematic diagram of a flight scheduling device provided by an embodiment of the present invention;
[0044] Figure 3 It is a structural diagram of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] See also Figure 1 , Figure 1 1 is a flow chart of a flight scheduling method provided by an embodiment of the present invention. The flight scheduling method comprises:
[0047] S1: Obtain historical flight data and construct a multivariate logistic regression model based on flight importance;
[0048] S2: Obtain the flights to be executed, and generate a virtual merged flight according to the preset merged flight conditions, and use the flights to be executed and the virtual merged flight as the flights to be analyzed;
[0049] S3: inputting the flight to be analyzed into the multivariate logistic regression model to obtain the importance classification result corresponding to each flight;
[0050] S4: Calculate the flight importance score of each flight according to the type and probability corresponding to each flight in the classification result;
[0051] S5: Based on the flight to be analyzed, a target optimization function is constructed according to the flight importance score and a preset optimization target, and an optimal flight scheduling plan is calculated.
[0052] Specifically, the embodiment of the present invention uses historical flight data to extract flight importance features, and performs model training to obtain a multivariate logistic regression model for flight importance classification to provide a basis for subsequent flight scheduling; obtain the flight to be executed, which is the flight of the next day that needs to be scheduled, first determine whether there is a flight that can be merged, and if there is a flight that meets the flight merging conditions, generate a corresponding virtual merged flight; then input the flight to be executed and the virtual merged flight into the trained multivariate logistic regression model to obtain the flight type output by the model and the probability of belonging to the type, and the output result represents the importance of the flight, wherein the flight type includes unimportant, general, important, and very important; then convert the output result of the model into a specific score, that is, calculate the flight importance score according to the type and probability corresponding to the flight, wherein the greater the flight importance score, the greater the impact caused by the corresponding flight being adjusted or cancelled, and the flight scheduling plan will try to ensure the normal execution of important flights; finally, construct an objective function and its corresponding constraint conditions according to the preset optimization goal, and calculate the next day flight to be adjusted, so as to obtain the optimal flight scheduling plan based on flight importance. Among them, the flight scheduling plan includes the take-off time of the scheduled flight to be executed and the cancelled flight.
[0053] As one of the optional embodiments, the step S1: obtaining historical flight data and constructing a multivariate logistic regression model based on flight importance specifically includes:
[0054] S11: Acquire the historical flight data, and perform feature extraction according to a preset screening rule to obtain secondary features of flight importance;
[0055] S12: performing data cleaning on the data corresponding to the secondary features, and summarizing and analyzing the secondary features to obtain corresponding primary features;
[0056] S13: using the hierarchical analysis method to establish an importance judgment matrix of the secondary features under the same primary feature, and calculating the feature vector corresponding to each flight according to the importance judgment matrix;
[0057] S14: Obtaining a type label corresponding to each flight in the historical flight data according to a preset marking rule;
[0058] S15: The feature vector and the type label corresponding to each flight are used as training samples, and input into the multivariate logistic regression model for training to obtain the multivariate logistic regression model based on flight importance.
[0059] Specifically, in S11, historical flight data related to flight scheduling is obtained and used as initial data. Since some data in the initial data may be irrelevant, relevant features are screened and extracted from all the initial data according to the preset screening rules to obtain secondary features of flight importance. Among them, the secondary features include but are not limited to important passenger flights, special governance flights, airport attributes, route attributes, flight revenue, independent routes, competitive routes, flight attributes, flight nature, flight delay time, passenger processing difficulty coefficient, number of transfer passengers, passenger attributes, etc. Among them, the screening rules can be set according to the business meaning in Table 1.
[0060] In S12, in order to ensure good machine learning results, the data corresponding to the selected secondary features are cleaned, including missing value processing and outlier processing. Furthermore, in order to better measure the importance of each secondary feature, the secondary features are summarized and analyzed, and the primary features of flight importance are obtained based on the secondary features. Among them, the primary features include but are not limited to operational factors, benefit factors, passenger services, etc.
[0061] Illustratively, the primary features, secondary features and their business meanings are shown in Table 1.
[0062] Table 1
[0063]
[0064] In S13, the hierarchical analysis method is first used to establish an importance judgment matrix of the second-level features under the same first-level feature, which is used to represent the importance between the second-level features under the same first-level feature.
[0065] For example, taking the four secondary features under the primary feature “operation factor” as an example, the corresponding importance judgment matrix is shown in Table 2.
[0066] Table 2
[0067]
[0068] Among them, the values in the importance judgment matrix are scales, which are used to judge the importance of features. Their meanings are shown in the scale table in Table 3.
[0069] Table 3
[0070] Scale meaning 1 Equally important 3 Slightly important 5 Obviously important 7 Strongly important 9 Extremely important 2、4、6、8 The median of the two adjacent judgments above reciprocal If the scale of A compared to B is 3, then B is 1 / 3 of A.
[0071] As one of the optional embodiments, in S13, the step of calculating the feature vector corresponding to each flight according to the importance judgment matrix specifically includes:
[0072] According to the importance judgment matrix, the weight of each of the second-level features under the same first-level feature is calculated by using the arithmetic mean method;
[0073] The feature vector corresponding to each flight is calculated based on the weight and value of the secondary feature corresponding to each flight.
[0074] Specifically, the importance judgment matrix is normalized by column, that is, each element is divided by the sum of the column, to obtain a normalized judgment matrix, as shown in Table 4 for example.
[0075] Table 4
[0076]
[0077] Furthermore, the normalized matrix is summed row by row, and then the arithmetic mean is calculated to obtain the weights of each secondary feature under the same primary feature. Exemplarily, the process of calculating the weights of each secondary feature according to Table 4 is as follows:
[0078] Important passenger flights: (3 / 7+3 / 8+4 / 11+1 / 2) / 4=0.42;
[0079] Special treatment flights: (1 / 7+1 / 8+1 / 11+1 / 8) / 4=0.12;
[0080] Airport attributes: (3 / 14+1 / 4+2 / 11+1 / 8) / 4=0.19;
[0081] Route attributes: (3 / 14+1 / 4+4 / 11+1 / 4) / 4=0.27;
[0082] Furthermore, after obtaining the weights of each secondary feature, the corresponding primary feature value, i.e., the feature vector, is calculated according to the weights of the secondary features and the values of the secondary features:
[0083]
[0084] Among them, P i is the i-th first-level eigenvalue, is the weight of the jth secondary feature of the ith primary feature, P i j is the value of the jth secondary feature of the ith primary feature.
[0085] Furthermore, after obtaining the feature vectors in the model training data set, it is also necessary to obtain the label corresponding to each feature vector.
[0086] As one of the optional embodiments, the step S14: obtaining a type label corresponding to each flight in the historical flight data according to a preset labeling rule, specifically includes:
[0087] According to the historical operations in the historical flight data, the flights in the historical flight data that are delayed for more than 2 hours or cancelled, and the reasons for the delay or cancellation are not due to weather, maintenance, or passengers, are marked as unimportant;
[0088] According to the preset flight strong rules, the flights in the historical flight data are marked to obtain flights of very important type and important type;
[0089] The type labels of the flights in the historical flight data that are not marked as very important, important, or unimportant are marked as general.
[0090] Specifically, in the embodiment of the present invention, the tags include four types: unimportant, general, important, and very important, indicating the importance of the flight.
[0091] In the process of sample labeling, in order to avoid a large amount of manual labeling, the corresponding type label is obtained according to the set labeling rules. Specifically, the unimportant type label is obtained by filtering based on historical operations. In the historical flight data, the flights that are actually delayed and canceled in business operations are screened, that is, the delay time exceeds 2 hours or the flight is canceled, and the delay / cancellation reason is not due to weather, maintenance, or passengers. The corresponding type label is marked as unimportant; the very important type and the important type are obtained according to the preset flight strong rules, among which the strong rules are some rules that can directly mark the importance, for example: the important passenger flight is directly marked as very important; finally, the flights that have not been marked are marked as general types, and the labels corresponding to all sample data are obtained to form a training sample set.
[0092] Further, in S15, the training sample set D = {x i ,y i}(i=1,2,...,M) Input the multinomial logistic regression model for training, where M is the number of training samples, y i ∈{1,2,...,K}, where K=4, corresponding to the four types of unimportant, general, important, and very important.
[0093] The multivariate logistic regression model is shown below:
[0094]
[0095] Among them, P represents the output probability of the model, θ represents the parameter vector of the model, and h(x i ) has the highest probability type y i The value of .
[0096] Furthermore, step S2 specifically includes obtaining relevant data of pending flights that need to be scheduled, and based on the pending flights, merging flights according to preset merging flight conditions to generate virtual merged flights. In order to simultaneously consider the situation of merging flights, the obtained virtual merged flights are used together with the obtained pending flights as flights to be analyzed.
[0097] As one of the optional embodiments, generating a virtual merged flight according to a preset merged flight condition specifically includes:
[0098] Among the pending flights, for each flight, select flights that meet the corresponding transfer conditions as the flights that can be merged with the corresponding flight; wherein the transfer conditions include: the take-off time is within the transfer time limit of the corresponding flight, the take-off and landing places are the same as those of the corresponding flight, and there are vacancies on the flight;
[0099] If the mergeable flight corresponding to the first flight among the pending flights is the second flight, it is determined whether the overflow passenger condition is met when the first flight and the second flight are merged into one flight, and if so, a corresponding virtual merged flight is generated; wherein the overflow passenger condition is that the total number of passengers on the merged flights is not greater than the set overflow passenger upper limit;
[0100] If the combinable flights corresponding to the first flight include a third flight and a fourth flight, the flight merging methods are divided into merging the first flight and the third flight into one flight, merging three flights into one flight, and merging three flights into two flights, and whether the three flight merging methods meet the overflow number condition is judged respectively, and a corresponding virtual merged flight is generated according to the flight merging methods that meet the overflow number condition; wherein the departure time of the third flight is earlier than that of the fourth flight; and the departure time of the virtual merged flight is the departure time of the flight with the latest departure time among the merged flights.
[0101] Specifically, when generating a virtual merged flight, taking flight f1 among the flights to be executed as an example, check from the departure time of flight f1 backwards to see whether there is a flight with vacancies at the same departure airport and landing airport as flight f1 within the transfer time limit of f1; the default value of the transfer time limit is 3 hours.
[0102] It should be noted that the flight may be a single flight or a series of flights.
[0103] If there is a flight f2 that meets the transfer conditions of flight f1, then determine whether the total number of passengers after the combination of flights f1 and f2 is not greater than the set overflow passenger limit. If so, it is considered that f1 can be canceled and then combined with f2, and a virtual combined flight f2 is generated. 12 Among them, the virtual merged flight f 12The planned departure time of is the planned departure time of f2.
[0104] If there are two flights that meet the transfer conditions of flight f1, and they are f3 and f4 in order of departure time from earliest to latest, then consider the following three situations: merging f1 and f3, merging three flights into one flight, and merging three flights into two flights. It should be noted that since there are vacancies on f3 and its departure time is earlier, the situation where f1 is directly merged with f4 is not considered. Determine whether the total number of passengers on each flight is not greater than the upper limit of overflow passengers after the three merging methods are used. If so, the corresponding merging method is considered feasible, and the corresponding virtual merged flight is generated. Among them, when f1 and f3 are merged, a virtual merged flight f3 is generated. 13 ; When three flights are merged into one flight, a virtual merged flight f is generated 134 ; When three flights are merged into two flights, two virtual merged flights are generated: f 13 With f 14 Among them, the departure time of the merged flight is the departure time of the flight with the latest departure time among the flights.
[0105] In the embodiment of the present invention, after merging several flights with the same take-off and landing place, multiple flights can be merged while meeting the upper limit of overflow passengers, thereby occupying less flight time while ensuring that passengers can reach their destinations.
[0106] Further, in steps S3 and S4, after obtaining the virtual merged flights, the flights to be executed and the corresponding virtual merged flights are used as the flights to be analyzed, and the trained multivariate logistic regression model is input to obtain the flight type output by the model and the probability of belonging to the type. Further, the classification results output by the model are converted into scores in the range of [1,100), that is, the flight importance scores are calculated.
[0107] Specifically, the embodiment of the present invention maps unimportant types to [1, 25), general types to [25, 50), important types to [50, 75), and very important types to [75, 100).
[0108] As an optional embodiment, the flight importance score The calculation formula is:
[0109]
[0110] Among them, x i is the feature vector, y i is the type tag, Indicates type is y i The value with the smallest probability among the flights mentioned, Indicates type is y iThe value with the highest probability among the flights, Y max is the maximum score, Y min is the minimum score, specifically:
[0111]
[0112] Among them, when y i =1, 2, 3, 4, representing unimportant, general, important, and very important label types respectively.
[0113] Furthermore, in step S5, based on the flights to be analyzed, a target optimization function is constructed according to the flight importance scores and a preset optimization goal, and an optimal flight scheduling plan is calculated.
[0114] Specifically, the preset optimization goals are set according to actual needs, such as a combination of one or more goals such as minimizing the number of delayed flights, maximizing aircraft resource utilization, maximizing key flight efficiency, minimizing total flight costs, minimizing flight time, or maximizing customer satisfaction.
[0115] For example, taking the preset optimization goal of minimizing the total cost of flights as an example, the greater the importance score of a flight, the greater the corresponding cost of being rescheduled or cancelled. Therefore, according to the relevant information of the flights to be executed and the flight importance score corresponding to each flight, the cost c of the flight being executed can be obtained. r , and the cost of flight cancellation c f . Then the objective optimization function is:
[0116] Minimize[∑ r∈R c r ·x r +∑ f∈F (c f ·y f )];
[0117] Among them, x r and f is a variable. If the aircraft route r is selected, then x r =1, if not selected, x r =0; if flight f is cancelled then y f =1, if not cancelled, y f =0; R is the set of all aircraft routes corresponding to all aircraft; F is the set of all flights to be executed. r is the execution cost of flight route r, including flight time adjustment, fast transit, overflow passengers, etc., c f is the cost of flight f being cancelled.
[0118] Specifically, the first term in the objective optimization function is the total cost of the executed flights, and the second term is the total cost of the canceled flights. It should be noted that the costs of flight time adjustment, fast stopover, and flight cancellation are all positively correlated with the flight importance score. Therefore, the model will try to ensure the normal execution of important flights.
[0119] As one of the optional embodiments, the constraint conditions of the objective optimization function include: flight status constraint, single route constraint, inbound flow constraint, outbound flow constraint and variable value constraint.
[0120] Specifically, the constraint formula is as follows:
[0121] (1) Flight status constraints:
[0122]
[0123] in, Indicates whether the flight route r contains flight f, To include, To not include; Indicates whether the flight route r contains the virtual merged flight corresponding to flight f, To include, is not included. F′ is the set of all virtual merged flights. The flight status constraint ensures that a flight is either executed, merged, or cancelled.
[0124] (2) Single route constraints:
[0125]
[0126] in, It means that the flight route r belongs to the aircraft a, and A is the set of all aircraft. The single route constraint ensures that an aircraft can only execute one flight route at most.
[0127] (3) Inbound traffic constraints:
[0128]
[0129] in, It means that the landing airport of flight f on route r is airport p and the estimated landing time is within time period t. represents the upper limit of the inbound flow of airport p in time period t, TA is the set of all inbound time periods, and P is the set of all airports. The inbound flow constraint ensures that the number of inbound flights in each time period does not exceed the flow limit of that time period.
[0130] (4) Outbound traffic constraints:
[0131]
[0132] in, It means that the departure airport of flight f on route r is airport p and the estimated departure time is within time period t. represents the upper limit of the outbound flow of airport p in time period t, and TD is the set of all outbound time periods. The outbound flow constraint ensures that the number of outbound flights in each time period does not exceed the flow limit of that time period.
[0133] (5) Variable value constraints:
[0134]
[0135] Variable value constraints ensure that the variable value is 0 or 1.
[0136] Furthermore, by calculating the objective function and constraints, the optimal scheduling plan corresponding to the flights to be executed is finally obtained, so that the airlines can quickly merge, adjust or cancel the flights to be executed.
[0137] The embodiment of the present invention uses a multivariate logistic regression model for machine learning to obtain flight importance, thereby scheduling flights according to flight importance, achieving automatic evaluation of flight importance and automatic scheduling of flights, reducing manpower and improving work efficiency; by extracting secondary and primary features of flight importance to construct feature vectors corresponding to flights, flight importance is quantified, which is beneficial to the evaluation and comparison of flight importance; by considering merging flights when scheduling flights, it is beneficial to achieve optimal decision-making, and can occupy less flight time while ensuring passenger travel needs. The embodiment of the present invention can automatically evaluate the importance of flights, realize flight scheduling based on flight importance, improve the efficiency of flight scheduling, and also consider the situation of merging flights, so as to achieve the optimal flight scheduling decision.
[0138] Correspondingly, the present invention also provides a flight scheduling device, which can implement all the processes of the flight scheduling method in the above embodiment.
[0139] See also Figure 2 , Figure 2 1 is a schematic diagram of the structure of a flight scheduling device provided by an embodiment of the present invention. The flight scheduling device comprises:
[0140] Model building module 201, used to obtain historical flight data and build a multivariate logistic regression model based on flight importance;
[0141] The flight merging module 202 is used to obtain the flights to be executed, and generate a virtual merged flight according to a preset merged flight condition, and use the flights to be executed and the virtual merged flight as the flights to be analyzed;
[0142] The flight classification module 203 is used to input the flight to be analyzed into the multivariate logistic regression model to obtain the importance classification result corresponding to each flight;
[0143] The importance calculation module 204 is used to calculate the flight importance score according to the type and probability corresponding to each flight in the classification result;
[0144] The flight scheduling module 205 is used to construct a target optimization function based on the flight to be analyzed, according to the flight importance score and the preset optimization target, and calculate the optimal flight scheduling plan.
[0145] Preferably, the model building module 201 specifically includes:
[0146] A secondary feature unit 211 is used to obtain the historical flight data and perform feature extraction according to a preset screening rule to obtain secondary features of flight importance;
[0147] The primary feature unit 212 is used to clean the data corresponding to the secondary features, and summarize and analyze the secondary features to obtain corresponding primary features;
[0148] The feature vector unit 213 is used to establish an importance judgment matrix of the second-level features under the same first-level feature by using a hierarchical analysis method, and calculate a feature vector corresponding to each flight according to the importance judgment matrix;
[0149] A type label unit 214, used to obtain a type label corresponding to each flight in the historical flight data according to a preset labeling rule;
[0150] The model training unit 215 is used to use the feature vector and the type label corresponding to each flight as training samples, input them into the multivariate logistic regression model for training, and obtain the multivariate logistic regression model based on flight importance.
[0151] Preferably, in the feature vector unit 213, the feature vector corresponding to each flight is calculated according to the importance judgment matrix, specifically including:
[0152] According to the importance judgment matrix, the weight of each of the second-level features under the same first-level feature is calculated by using the arithmetic mean method;
[0153] The feature vector corresponding to each flight is calculated based on the weight and value of the secondary feature corresponding to each flight.
[0154] Preferably, in the type label unit 214, obtaining the type label corresponding to each flight in the historical flight data according to a preset labeling rule specifically includes:
[0155] According to the historical operations in the historical flight data, the flights in the historical flight data that are delayed for more than 2 hours or cancelled, and the reasons for the delay or cancellation are not due to weather, maintenance, or passengers, are marked as unimportant;
[0156] According to the preset flight strong rules, the flights in the historical flight data are marked to obtain flights of very important type and important type;
[0157] The type labels of the flights in the historical flight data that are not marked as very important, important, or unimportant are marked as general.
[0158] Preferably, in the flight merging module 202, generating a virtual merged flight according to a preset merged flight condition specifically includes:
[0159] Among the pending flights, for each flight, select flights that meet the corresponding transfer conditions as the flights that can be merged with the corresponding flight; wherein the transfer conditions include: the take-off time is within the transfer time limit of the corresponding flight, the take-off and landing places are the same as those of the corresponding flight, and there are vacancies on the flight;
[0160] If the mergeable flight corresponding to the first flight among the pending flights is the second flight, it is determined whether the overflow passenger condition is met when the first flight and the second flight are merged into one flight, and if so, a corresponding virtual merged flight is generated; wherein the overflow passenger condition is that the total number of passengers on the merged flights is not greater than the set overflow passenger upper limit;
[0161] If the combinable flights corresponding to the first flight include a third flight and a fourth flight, the flight merging methods are divided into merging the first flight and the third flight into one flight, merging three flights into one flight, and merging three flights into two flights, and whether the three flight merging methods meet the overflow number condition is judged respectively, and a corresponding virtual merged flight is generated according to the flight merging methods that meet the overflow number condition; wherein the departure time of the third flight is earlier than that of the fourth flight; and the departure time of the virtual merged flight is the departure time of the flight with the latest departure time among the merged flights.
[0162] Preferably, the flight importance score The calculation formula is:
[0163]
[0164] Among them, x i is the feature vector, yi is the type tag, Indicates type is y i The value with the smallest probability among the flights mentioned, Indicates type is y i The value with the highest probability among the flights, Y max is the maximum score, Y min is the minimum score, specifically:
[0165]
[0166] Among them, when y i =1, 2, 3, 4, representing unimportant, general, important, and very important label types respectively.
[0167] Preferably, the constraints of the objective optimization function include: flight status constraints, single route constraints, inbound flow constraints, outbound flow constraints and variable value constraints.
[0168] In specific implementation, the working principle, control process and technical effect achieved by the flight scheduling device provided in the embodiment of the present invention are the same as those of the flight scheduling method in the above embodiment, and will not be repeated here.
[0169] See also Figure 3 , Figure 3 30 is a schematic diagram of a terminal device provided in an embodiment of the present invention. The terminal device includes a processor 301, a memory 302, and a computer program stored in the memory 302 and configured to be executed by the processor 301. When the processor 301 executes the computer program, the flight scheduling method described in any of the above embodiments is implemented.
[0170] Preferably, the computer program can be divided into one or more modules / units (such as computer program 1, computer program 2, ...), and the one or more modules / units are stored in the memory 302 and executed by the processor 301 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0171] The processor 301 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor, or the processor 301 can be any conventional processor. The processor 301 is the control center of the terminal device, and various parts of the terminal device are connected using various interfaces and lines.
[0172] The memory 302 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory 302 can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory 302 can also be other volatile solid-state storage devices.
[0173] It should be noted that the above terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 3 The structural diagram is only an example of the above-mentioned terminal device and does not constitute a limitation of the above-mentioned terminal device. It may include more or less components than shown in the figure, or combine certain components, or different components.
[0174] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the flight scheduling method described in any of the above embodiments.
[0175] The beneficial effects of a flight scheduling method, device, equipment and storage medium provided by an embodiment of the present invention are: by using a multivariate logistic regression model for machine learning to obtain flight importance, flight scheduling is performed according to flight importance, automatic evaluation of flight importance and automatic scheduling of flights are achieved, labor is reduced and work efficiency is improved; by extracting secondary and primary features of flight importance to construct feature vectors corresponding to flights, flight importance is quantified, which is conducive to the evaluation and comparison of flight importance; by considering merging flights when performing flight scheduling, it is conducive to achieving optimal decisions, and less flight time can be occupied while ensuring passenger travel needs. The embodiment of the present invention can automatically evaluate the importance of flights, realize flight scheduling based on flight importance, improve the efficiency of flight scheduling, and also consider the situation of merging flights, so as to achieve the optimal flight scheduling decision.
[0176] It should be noted that the system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the system embodiment provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0177] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A flight scheduling method, characterized in that: include: Obtain historical flight data and construct a multivariate logistic regression model based on flight importance; Acquire the to-be-executed flights, and generate a virtual merged flight according to a preset merged flight condition, and use the to-be-executed flights and the virtual merged flight as the flights to be analyzed; Inputting the flight to be analyzed into the multivariate logistic regression model to obtain the importance classification result corresponding to each flight; Calculate the flight importance score of each flight according to the type and probability corresponding to each flight in the classification result; Based on the flights to be analyzed, a target optimization function is constructed according to the flight importance scores and preset optimization goals, and an optimal flight scheduling plan is calculated.
2. The flight scheduling method according to claim 1, characterized in that: The acquisition of historical flight data and construction of a multivariate logistic regression model based on flight importance specifically includes: Acquire the historical flight data, and perform feature extraction according to preset screening rules to obtain secondary features of flight importance; Performing data cleaning on the data corresponding to the secondary features, and summarizing and analyzing the secondary features to obtain corresponding primary features; Using the hierarchical analysis method, an importance judgment matrix of the secondary features under the same primary feature is established, and a feature vector corresponding to each flight is calculated according to the importance judgment matrix; According to a preset marking rule, a type label corresponding to each flight in the historical flight data is obtained; The feature vector and the type label corresponding to each flight are used as training samples and input into the multivariate logistic regression model for training to obtain the multivariate logistic regression model based on flight importance.
3. The flight scheduling method according to claim 2, characterized in that: The step of calculating the feature vector corresponding to each flight according to the importance judgment matrix specifically includes: According to the importance judgment matrix, the weight of each of the second-level features under the same first-level feature is calculated by using the arithmetic mean method; The feature vector corresponding to each flight is calculated based on the weight and value of the secondary feature corresponding to each flight.
4. The flight scheduling method according to claim 2, characterized in that: The step of obtaining the type label corresponding to each flight in the historical flight data according to the preset marking rule specifically includes: According to the historical operations in the historical flight data, the flights in the historical flight data that are delayed for more than 2 hours or cancelled, and the reasons for the delay or cancellation are not due to weather, maintenance, or passengers, are marked as unimportant; According to the preset flight strong rules, the flights in the historical flight data are marked to obtain flights of very important type and important type; The type labels of the flights in the historical flight data that are not marked as very important, important, or unimportant are marked as general.
5. The flight scheduling method according to claim 1, characterized in that: The generating of a virtual merged flight according to the preset merged flight conditions specifically includes: Among the pending flights, for each flight, select flights that meet the corresponding transfer conditions as the flights that can be merged with the corresponding flight; wherein the transfer conditions include: the take-off time is within the transfer time limit of the corresponding flight, the take-off and landing places are the same as those of the corresponding flight, and there are vacancies on the flight; If the mergeable flight corresponding to the first flight among the pending flights is the second flight, it is determined whether the overflow passenger condition is met when the first flight and the second flight are merged into one flight, and if so, a corresponding virtual merged flight is generated; wherein the overflow passenger condition is that the total number of passengers on the merged flights is not greater than the set overflow passenger upper limit; If the combinable flights corresponding to the first flight include a third flight and a fourth flight, the flight merging methods are divided into merging the first flight and the third flight into one flight, merging three flights into one flight, and merging three flights into two flights, and whether the three flight merging methods meet the overflow number condition is judged respectively, and a corresponding virtual merged flight is generated according to the flight merging methods that meet the overflow number condition; wherein the departure time of the third flight is earlier than that of the fourth flight; and the departure time of the virtual merged flight is the departure time of the flight with the latest departure time among the merged flights.
6. The flight scheduling method according to claim 1, characterized in that: The importance score of the flight The calculation formula is: Among them, x i is the feature vector, y i is the type tag, Indicates type is y i The value with the smallest probability among the flights mentioned, Indicates type is y i The value with the highest probability among the flights, Y max is the maximum score, Y min is the minimum score, specifically: Among them, when y i =1, 2, 3, 4, representing unimportant, general, important, and very important label types respectively.
7. The flight scheduling method according to claim 1, characterized in that: The constraint conditions of the objective optimization function include: flight status constraint, single route constraint, inbound flow constraint, outbound flow constraint and variable value constraint.
8. A flight scheduling device, characterized in that: include: Model building module, used to obtain historical flight data and build a multivariate logistic regression model based on flight importance; A flight merging module, used to obtain pending flights, generate virtual merged flights according to preset merged flight conditions, and use the pending flights and the virtual merged flights as flights to be analyzed; A flight classification module, used for inputting the flights to be analyzed into the multivariate logistic regression model to obtain the importance classification result corresponding to each flight; An importance calculation module, used to calculate the flight importance score of each flight according to the type and probability corresponding to each flight in the classification result; The flight scheduling module is used to construct a target optimization function based on the flight to be analyzed, according to the flight importance score and the preset optimization target, and calculate the optimal flight scheduling plan.
9. A terminal device, characterized in that: The system comprises a processor and a memory, wherein a computer program is stored in the memory and the computer program is configured to be executed by the processor, and when the processor executes the computer program, the flight scheduling method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the device where the computer-readable storage medium is located executes the computer program, the flight scheduling method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Flight adjustment method and device, electronic equipment and storage medium
CN111798079A
Flight value evaluation method and device, computer equipment and storage medium
CN115049271A
Flight Schedule Constraints for Optional Flights
US20100082394A1
