A method for generating an aviation crew scheduling task loop and a computer-readable storage medium
Through the combination of Monte Carlo tree search algorithm and business logic, a task loop generation model is constructed, which solves the problem of efficiency and quality of crew scheduling task loop generation in the large-scale aviation industry, achieves fast and efficient task loop generation, and improves scheduling. Decision aid effect.
Patent Information
- Application Number
- CN202210469391.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-28
AI Technical Summary
In the large-scale aviation industry, it is difficult for existing technologies to quickly and efficiently generate high-quality crew scheduling task loops, resulting in manual methods that are time-consuming and cannot guarantee quality, and exhaustive methods cannot complete task loop generation in a short time.
Use Monte Carlo tree search algorithm combined with business logic to build a task loop generation model. The model structure is adjusted through the search algorithm and feedback to generate a feasible task loop set. UCB values are used to optimize flight connections to prevent repeated coverage and achieve fast and efficient task loops. generate.
It achieves fast, efficient and high-quality generation of unit scheduling task loops, reduces generation time, improves the quality of task loops, and can provide effective decision-making assistance to schedulers.
Smart Images

Figure CN115062896B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of transportation engineering, and in particular to a method for generating a large-scale aviation crew scheduling task ring and a computer-readable storage medium. Background Art
[0002] With the rapid development of the civil aviation industry, the number of aircraft and flights of airlines is increasing, which will lead to an increase in the demand for flight and cabin crew. The crew scheduling requires connecting flight tasks into task loops spanning multiple days, and then assigning them to specific crews to execute. The connection of task loops involves many business constraints, and also corresponds to certain costs and crew workload. Therefore, generating high-quality task loops under large-scale flight volume is of great significance to airlines and crews.
[0003] The generation of task loops involves a lot of rule checks, including connection conditions, flight duration conditions, and rest conditions, which need to be completed by scheduling business experts. However, under large-scale flight volume, the number of task loop combinations increases dramatically. This manual method takes a lot of time and the quality of the task loop cannot be guaranteed. Although the exhaustive method reduces the number of rule checks, it cannot be completed in a short time due to the scale of generation. Therefore, an efficient task loop generation method is urgently needed to assist. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a fast, efficient and high-quality aviation crew scheduling task ring generation method and computer-readable storage medium.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] A method for generating a task ring for scheduling an aviation crew, the task ring generating method comprising:
[0007] Step 1: Get the flight collection and business logic, connect to the flight network, and set the model parameters;
[0008] Step 2: Use the search algorithm and business logic to enumerate and generate all daily tasks, build a task ring generation model based on the Monte Carlo tree search algorithm, and input the daily task set into the task ring generation model;
[0009] Step 3: Use the set model parameters to execute the task ring generation model, and obtain a feasible task ring set based on the model calculation results;
[0010] Step 4: Use feedback to adjust the model structure based on the coverage of daily tasks;
[0011] Step 5: Stop generation or continue generation based on the user's choice to obtain the final task ring set.
[0012] Preferably, the step 1 is specifically:
[0013] Obtain flight collection and business logic, process flight information in the form of data structure, establish flight network, and reflect business logic as judgment conditions for flight connection.
[0014] Preferably, the step 2 is specifically:
[0015] A simple search algorithm is used to complete the complete enumeration generation of daily tasks. The daily tasks meet the stopover time limit, total duration limit, flight duration limit and flight quantity limit of flight connections.
[0016] Preferably, the step 2 further comprises:
[0017] When generating daily tasks, flights of different aircraft types are classified and processed, and daily tasks are generated according to the aircraft's passenger capacity, flight distance and special flights.
[0018] Preferably, the method for obtaining the model parameters in step 3 is:
[0019] The initialization parameters of the Monte Carlo tree search method are determined by experimental comparison, and the task ring is generated using these parameters.
[0020] Preferably, the task loop generation model is specifically:
[0021] The actions of the Monte Carlo tree search are defined as the connections between daily tasks, and the nodes are defined as the airports where each daily task starts and ends. The empty task loop finds the actions that meet the connection from the initial node, and selects actions based on the flight coverage status until the current task loop time limit or the number of flights meets the standard. The definition of UCB in the Monte Carlo tree search used is as follows:
[0022]
[0023] Among them, v is the parent node of v', and each pair of parent node and child node corresponds to an action in Monte Carlo tree search; Q i (v') represents the number of flights that the current flight connection can cover or other heuristic characteristics, and m represents the number of such heuristic operators; N(v') represents the number of times the current flight connection appears in the search process; c represents the number of uncovered flights contained in the current day's task connection;
[0024] represents the value of the current flight connection, Represents the historical occurrences of the current flight connections.
[0025] Preferably, the step 3 further comprises:
[0026] Each task ring is marked with a dictionary using the flight number and date string to prevent duplicate generated task rings. A task ring dictionary query is performed before each task ring is generated.
[0027] Preferably, the condition for stopping iteration of the task loop generation model in step 3 is:
[0028] After each Monte Carlo tree search iteration, the coverage of the updated flights is checked until the generated task ring can complete the coverage of all flights and then the iteration is stopped.
[0029] Preferably, the step 4 is specifically:
[0030] After each iteration of the Monte Carlo tree search method, a task ring connection is completed, and the nodes and edges in each connected task ring are updated after each iteration. This process is completed in the form of feedback, and the coverage of each flight and the daily task connection status are updated each time to prevent too many flights from being covered repeatedly.
[0031] A computer-readable storage medium stores a computer program, and the computer program is executed by a processor to execute any of the methods described above.
[0032] Compared with the prior art, the present invention has the following beneficial effects:
[0033] Fast, efficient and high-quality: The present invention provides a method for generating task loops for large-scale aviation crew scheduling. The intelligent characteristics of the Monte Carlo tree search method are used to model the task loop generation process for crew scheduling. Individual parameters during task loop generation can be flexibly adjusted, and expert experience can be incorporated. The time-consuming disadvantage of the task loop enumeration generation method is effectively improved, and the quality of some enumerated task loops is improved, thereby assisting the decision-making of schedulers and achieving better crew scheduling. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a flowchart of the method for generating a task loop for scheduling an aviation crew in the present invention;
[0035] Figure 2 Schematic diagram of the effect of the method for generating an aviation crew scheduling task loop in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] 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 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 should fall within the scope of protection of the present invention.
[0037] A large-scale aviation crew scheduling task loop generation method, the process is as follows Figure 1 As shown, including:
[0038] Step 1: Get the flight collection and business logic, connect to the flight network, and set the model parameters;
[0039] Step 2: Use the search algorithm and business logic to enumerate and generate all daily tasks, build a task ring generation model based on the Monte Carlo tree search algorithm, and input the daily task set into the task ring generation model;
[0040] Step 3: Use the set model parameters to execute the task ring generation model, and obtain a feasible task ring set based on the model calculation results;
[0041] Step 4: Use feedback to adjust the model structure based on the coverage of daily tasks;
[0042] Step 5: Stop generation or continue generation based on the user's choice to obtain the final task ring set.
[0043] The following is a detailed description of each step:
[0044] In step 1, the flight set F and business logic are input, the flight information is processed in the form of data structure, and the flights are connected into a flight network. The business logic is reflected as the judgment conditions for flight connection. When building a flight network, the business logic is used to screen the flights that can be connected in advance, which helps to reduce the complexity of the algorithm.
[0045] In step 2, the flights of different aircraft types are classified when generating daily tasks. Different types of flights require different types of pilots. It is necessary to complete the daily task generation according to the passenger capacity, flight distance and special flights of the aircraft. The simple search algorithm used in this embodiment is a depth-first search algorithm. On the basis of the flight network, the daily tasks D of all aircraft types are completely enumerated and generated. The daily tasks need to meet the flight connection stop time T f,f' Limitation of total duration of daily tasks T d (1) Limitation of daily mission flight time T d (2) and the number of flights per day.
[0046] In step 3, multiple experiments are conducted through small-scale flight data, and the initialization parameters of the Monte Carlo tree search method are determined by comparing the convergence effect of the algorithm. The parameters are used to complete the generation of the task ring. The actions of the Monte Carlo tree search are defined as the connection between daily tasks, and the nodes are defined as the airports where each daily task starts and ends. The empty task ring finds the action that meets the connection from the initial node, selects the action according to the flight coverage status, and quantifies the benefit generated by each action on the task ring as a UCB value to complete the comparison until the current task ring time limit or the number of flights meets the standard. The definition of UCB in the Monte Carlo tree search used is as follows:
[0047]
[0048] Among them, v is the parent node of v', and each pair of parent node and child node corresponds to an action in Monte Carlo tree search; Q i (v') represents the number of flights that the current flight connection can cover or other heuristic characteristics, and m represents the number of such heuristic operators; N(v') represents the number of times the current flight connection appears in the search process; c represents the number of uncovered flights contained in the current day's task connection;
[0049] represents the value of the current flight connection, Represents the historical occurrence of the current flight connection, thereby quantifying the benefits of each action and achieving intelligent generation.
[0050] After each iteration of the Monte Carlo tree search method, a task ring is connected. The nodes and actions in each task ring need to be updated after each iteration. This process is completed in the form of feedback. Each time the coverage of each flight is updated, S F and daily mission connection situation N(v) to prevent excessive flight duplication.
[0051] Each task ring is marked with a dictionary using the flight number and date string to prevent duplicate generated task rings. A task ring dictionary query is performed before each task ring is generated.
[0052] In step 4, the task loop generation stops when all flights are fully covered. After each Monte Carlo tree search iteration, the coverage of the updated flights needs to be checked. F If all flights are covered, stop; if not, continue generating, and finally get the task ring set P.
[0053] This embodiment also relates to a computer-readable storage medium, on which a computer program is stored. The computer program is executed by a processor as in any of the above methods.
[0054] Combination Figure 2 As shown, this embodiment takes 5 groups of flight data as an example to illustrate the effect of task ring generation within 10 hours. The left and right sides are the number of task rings obtained by the depth-first search and Monte Carlo tree search methods in 10 hours and the optimal target value based on the number of crew members ("-" represents that the solution cannot be completed). As the scale of flights increases, the depth-first search method can no longer complete the generation of task rings within a reasonable time.
[0055] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for generating a task loop for scheduling an aviation crew, characterized in that: The task ring generation method comprises: Step 1: Get the flight collection and business logic, connect to the flight network, and set the model parameters; Step 2: Use the search algorithm and business logic to enumerate and generate all daily tasks, build a task ring generation model based on the Monte Carlo tree search algorithm, and input the daily task set into the task ring generation model; Step 3: Use the set model parameters to execute the task ring generation model, and obtain a feasible task ring set based on the model calculation results; Step 4: Use feedback to adjust the model structure based on the coverage of daily tasks; Step 5: Stop generation or continue generation according to the user's choice to obtain the final task ring set; The step 2 is specifically as follows: A simple search algorithm is used to complete the complete enumeration generation of daily tasks, and the daily tasks meet the stopover time limit, total duration limit, flight duration limit and flight quantity limit of flight connections; The step 2 further comprises: Classify flights of different aircraft types when generating daily tasks, and generate daily tasks according to the aircraft's passenger capacity, flight distance and special flights; The task loop generation model is specifically as follows: the action of the Monte Carlo tree search is defined as the connection between the daily tasks, the node is defined as the airport where each daily task starts and ends, the empty task loop finds the action that meets the connection from the initial node, and selects the action according to the flight coverage status until the current task loop time limit or the number of flights meets the standard. The definition of UCB in the Monte Carlo tree search used is as follows: Among them, v is the parent node of v', and each pair of parent node and child node corresponds to an action in Monte Carlo tree search; Q i (v') represents the number of flights that the current flight connection can cover or other heuristic characteristics, and m represents the number of such heuristic operators; N(v') represents the number of times the current flight connection appears in the search process; c represents the number of uncovered flights contained in the current day's task connection; represents the value of the current flight connection, Represents the historical occurrences of the current flight connections; The step 3 also includes: using the flight number and date character string to perform a dictionary tag on each task loop to prevent the generated task loop from being repeated, and performing a task loop dictionary query before generating a task loop each time.
2. The method for generating an aviation crew scheduling task ring according to claim 1, characterized in that: The step 1 is specifically as follows: Obtain flight collection and business logic, process flight information in the form of data structure, establish flight network, and reflect business logic as judgment conditions for flight connection.
3. The method for generating an aviation crew scheduling task ring according to claim 1, characterized in that: The method for obtaining the model parameters in step 3 is: The initialization parameters of the Monte Carlo tree search method are determined by experimental comparison, and the task ring is generated using these parameters.
4. The method for generating a task ring for scheduling an aviation crew according to claim 1, characterized in that: The condition for stopping iteration of the task loop generation model in step 3 is: After each Monte Carlo tree search iteration, the coverage of the updated flights is checked until the generated task ring can complete the coverage of all flights and then the iteration is stopped.
5. The method for generating an aviation crew scheduling task ring according to claim 1, characterized in that: The step 4 is specifically as follows: After each iteration of the Monte Carlo tree search method, a task ring connection is completed, and the nodes and edges in each connected task ring are updated after each iteration. This process is completed in the form of feedback, and the coverage of each flight and the daily task connection status are updated each time to prevent too many flights from being covered repeatedly.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to perform the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Flight task ring generation method and device for unit scheduling
CN111047144A
Aircraft unit operation management method and system and terminal equipment
CN111915194A
Intelligent flight crew scheduling method and equipment
CN114004541A
Intelligent flight unit group ring generation method and equipment
CN114037346A
