CN119863003A - Airplane flight link planning method, system, equipment and medium - Google Patents

Airplane flight link planning method, system, equipment and medium Download PDF

Info

Publication number
CN119863003A
CN119863003A CN202411882209.5A CN202411882209A CN119863003A CN 119863003 A CN119863003 A CN 119863003A CN 202411882209 A CN202411882209 A CN 202411882209A CN 119863003 A CN119863003 A CN 119863003A
Authority
CN
China
Prior art keywords
city
flight
node
flights
planning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411882209.5A
Other languages
Chinese (zh)
Other versions
CN119863003B (en
Inventor
朱红林
田松
彭明田
田丰
胡变香
许翠
韩禹锋
马淑燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN202411882209.5A priority Critical patent/CN119863003B/en
Publication of CN119863003A publication Critical patent/CN119863003A/en
Application granted granted Critical
Publication of CN119863003B publication Critical patent/CN119863003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/01Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Primary Health Care (AREA)
  • Computational Linguistics (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Traffic Control Systems (AREA)

Abstract

本公开涉及航程规划技术领域,提供了一种飞机航班联程规划方法、系统、设备及介质,所述方法包括利用多个城市的航班信息构建航班信息图,航班信息图中每个城市a的航班信息包括:城市a、城市a的坐标、与城市a之间存在直达航班的城市b,从城市a直接到城市b的航班的平均时长;基于航班信息图中的信息,构建A*路径规划算法的启发式函数、损失函数以及期望损失函数,并利用A*路径规划算法进行路径规划,输出规划好的从起始节点到目标节点的路径;基于规划好的路径,匹配航班,得到匹配结果并输出。本发明能够充分利用航班时刻表中的数据使得规划的航班联程更加科学。

The present disclosure relates to the technical field of flight planning, and provides a method, system, device and medium for planning flight connections. The method includes constructing a flight information graph using flight information of multiple cities, wherein the flight information of each city a in the flight information graph includes: city a, coordinates of city a, city b with direct flights to city a, and average duration of flights from city a directly to city b; based on the information in the flight information graph, constructing a heuristic function, a loss function and an expected loss function of an A* path planning algorithm, and using the A* path planning algorithm to perform path planning, outputting a planned path from a starting node to a target node; matching flights based on the planned path, obtaining matching results and outputting them. The present invention can make full use of the data in the flight schedule to make the planned flight connections more scientific.

Description

Airplane flight link planning method, system, equipment and medium
Technical Field
The disclosure belongs to the technical field of voyage planning, and particularly relates to an aircraft flight voyage planning method, system, equipment and medium.
Background
In the aviation industry, recommending proper linkage according to departure and destination cities input by a user is a core business scene. In general, a common solution to this problem is to first generate a city sequence (i.e., perform a path planning) through which the aircraft can reach, according to whether there is a directly-reach aircraft between cities (or airports, hereinafter collectively referred to as cities), and then match appropriate flights for each section of city sequence. The invention is mainly aimed at optimizing the first step of the problem. The problem is generally modeled as the shortest-path problem on the graph, and can be solved by a path search algorithm in graph theory, and the following is a classical method and a solution idea in the field:
The input of the problem is a query request of the user, wherein the query request comprises the departure city and the destination city of the user, and the query request is finally output as a directly-reached city sequence for a recommendation system to carry out specific flight matching recommendation and return to the user.
The generated directly-reaching city sequence needs to be transferred as little as possible, and the expected duration of the total journey is reduced as much as possible. To learn the aircraft availability between cities and estimate the aircraft flight time between cities, the system needs to be fed with the current flight schedule.
Generally, the flight schedule is first converted into a form of a graph. In this graph, each city is a node, and the direct flight between two cities is an edge, and adjacency matrices or adjacency tables can be used to store the graph's data. The adjacency matrix is a two-dimensional array that indicates whether there is a direct flight between any two cities. The adjacency list is an array and each element is a list listing other cities that have direct flights with that city. A graph search algorithm is then used to find the direct path from one city to another. Common algorithms include 1, depth first search, recursively traversing the graph until a target node is found, 2, breadth first search, traversing the graph layer by layer using a queue until a target node is found, 3, dijkstra algorithm, which is applicable to weighted graphs, can find the shortest path, but in the present problem, can be used to find the direct sequence if the weights of the direct flights are the same, 4, a search algorithm, which combines Dijkstra algorithm and heuristic search, can find the target faster. Because of the possible variability in flight schedules, the system needs to be able to process real-time data and update the data structure of the graph in time. After the path planning is completed, each section can be matched with a specific flight by using various recommendation algorithms, and a batch of routes with highest recommendation scores are returned to the user.
In the classical solution, only the situation that the aircraft can reach directly between cities is generally considered when the map is built, so that the weights of all sides in the map are consistent when the map is built, and therefore the flight time of the aircraft between cities cannot be considered when a path is planned, the upper limit of the effect of subsequently matching flights of the system can be influenced, and the recommendation effect of the overall link generation system is influenced. This problem can be alleviated if the distance between cities is taken as the side weight in the graph when the graph is built, but the distance between cities is not simply proportional to the flight time of the flight, which can lead to certain deviation.
The above method does not extract and efficiently use the data in the flight schedule, resulting in poor planned flight links.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides a method, a system, a device and a medium for planning an aircraft flight procedure, which perform path planning by adopting an a-x algorithm based on various flight factors, so as to obtain a better flight procedure.
The following is the content of the invention:
an aircraft flight trip planning method, comprising:
Constructing a flight information diagram by utilizing the flight information of a plurality of cities, wherein the flight information of each city a in the flight information diagram comprises a city a, coordinates of the city a, a city b with a direct flight between the city a and the city a, and the average duration of flights from the city a to the city b directly;
Acquiring a departure city and a target city, wherein the departure city is taken as a starting node, and the target city is taken as a target node;
Calculating the distance between the city a node and the target node based on the coordinates of the city a node and the target node and dividing the distance by the flight speed of the aircraft as a heuristic function h (a), constructing a loss function g (b), wherein g1 is the loss of one basis added per passing through one city, g2 (b) is the average duration of flights from the city a directly to the city b, and constructing a desired loss function f (n), f (n) =h (a) +g (b);
Based on the heuristic function h (a), the loss function g (b) and the expected loss function f (n), carrying out path planning by using an A-path planning algorithm, and outputting a planned path from the initial node to the target node;
And matching flights based on the planned paths to obtain and output matching results.
Further, the method comprises the steps of,
The flight information of city a further includes:
the number of flights from city a, and the number of flights from city a directly to city b.
Further, the method comprises the steps of,
Recording flight information of the city a by using a data dictionary;
the flight information of the city a in the data dictionary comprises keys and key values corresponding to the keys, wherein the keys are names of the city a, the key values are a first tuple, the first position of the first tuple records the flight number of the city a, the second position records the coordinates of the city a, and the third position is a first data dictionary of a sub-level;
The key of the first data dictionary is the name of a city b which is directly reached by a city a, the key value of the first data dictionary is a second tuple, the first bit of the second tuple records the number of flights from the city a to the city b, and the second bit records the average duration of flights from the city a to the city b.
Further, the method comprises the steps of,
The method for updating the data in the flight information graph by using the data of the aviation schedule comprises the following steps:
initializing a data dictionary of the flight information graph;
Reading flight record data of an aviation schedule, extracting a departure city a and a destination city b related to an aviation, and calculating the flight time t of the aircraft between cities;
Searching in the data dictionary by taking the city a as a key to find the city a;
searching a city b in a first data dictionary in the key value corresponding to the city a;
After finding city b, adding 1 to the number of flights of city a in the record of city a, adding 1 to the number of flights from city a directly to city b in the first data dictionary of city a, and modifying the average duration of flights from city a directly to city b.
Further, the method comprises the steps of,
The method for planning the aircraft flight procedure by using the A-path planning algorithm and outputting the planned path comprises the following steps:
Taking the initial node as a current node n1, and calculating a heuristic function h (n 1) of the current node n 1;
Calculating a loss function g (n 2) and a heuristic function h (n 1) of all neighbor cities by taking a city with a direct flight between the departure city as a neighbor city of the departure city, and calculating an expected loss function f (n) of all neighbor cities based on the loss function g (n 2) and the heuristic function h (n 1);
selecting a neighbor city n2 with the lowest value of the expected loss function f (n), and recording that the current node n1 is a father node of the neighbor city n 2;
taking the neighbor city n2 as a new current node, and repeatedly selecting neighbor nodes of the new current node until a target node is selected;
Starting from the target node, tracing back to the starting node through the parent node link, and constructing and outputting the shortest path from the starting node to the target node.
Further, the method comprises the steps of,
The matching of flights based on the planned path comprises:
retrieving flight information which accords with time constraint and has redundant tickets from a flight schedule for each path;
Scoring and sorting each flight using a recommendation algorithm;
And selecting flights according to the scoring sequence result, and generating a plurality of passes conforming to the personalized characteristics of the user.
Further, the method comprises the steps of,
The recommendation algorithm is a collaborative filtering algorithm or a recommendation algorithm based on a deep neural network.
An aircraft flight trip planning system, comprising:
The information construction module is used for constructing a flight information diagram by utilizing the flight information of a plurality of cities, wherein the flight information of each city a in the flight information diagram comprises a city a, coordinates of the city a, a city b with direct flights between the city a and the city a, and average duration of flights from the city a to the city b;
the data updating module is used for updating the data in the flight information graph by utilizing the data of the aviation timetable, acquiring a departure city and a target city, taking the departure city as a starting node and taking the target city as a target node;
The path planning module is used for calculating the distance between the city a node and the target node based on the coordinates of the city a node and the target node and dividing the distance by the flight speed of the airplane to obtain a heuristic function h (a), constructing a loss function g (b), wherein g1 is the loss of one basis added every time one city passes, g2 (b) is the average duration of flights from the city a to the city b, and constructing a desired loss function f (n), wherein f (n) =h (a) +g (b);
Based on the heuristic function h (a), the loss function g (b) and the expected loss function f (n), carrying out path planning by using an A-path planning algorithm, and outputting a planned path from the initial node to the target node;
And the flight matching module is used for matching flights based on the planned path, obtaining a matching result and outputting the matching result.
Compared with the prior art, the method has the following advantages:
According to the invention, the flight information graph comprising the information of cities, coordinates, direct flights, average duration and the like is constructed, so that the flight data can be comprehensively integrated, and the problem that the upper limit of the matching effect cannot be influenced by the flight time in consideration of the traditional graph construction is solved;
Calculating the distance by city coordinates and constructing a heuristic function h (a) by combining the aircraft speed, so that cost estimation from the current node to the target node can be provided for an A-algorithm to guide the searching direction, and blindness is reduced;
The construction of the loss function g (b) is aimed at comprehensively measuring the path cost in the flight path planning and guiding the algorithm to plan a better scheme. From the aspect of transfer times, basic loss is increased every time one city is passed, because the more the transfer times are, the greater uncertainty and inconvenience the passengers face are, and the algorithm is caused to preferentially select routes with less transfer through the arrangement, so that the link quality and the passenger experience are improved. In the aspect of flight time, the average duration of flights from city to city is included, the flight time is a key factor of the link planning, the total duration of the passenger journey is directly related, the average duration difference of flights among different cities is obvious, the algorithm is more focused on selecting a flight combination with short flight time by the inclusion of the flight time, and the total travel time is reduced, so that the route planning achieves better balance on the transfer times and the flight duration, and the scientificity and rationality of the whole flight link planning are improved;
The function of constructing the expected loss function f (n) is to comprehensively evaluate the path quality;
The algorithm A can efficiently optimize under the guidance of the functions, improves the path planning efficiency and quality, and finally accurately matches flights based on the planned paths, meets the time and individuation requirements of users, and improves the user experience, thereby solving the problems in the background technology.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the disclosure. The objectives and other advantages of the disclosure may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 shows a schematic diagram of the process of the present invention;
FIG. 2 illustrates a flight information diagram maintenance process flow diagram;
FIG. 3 shows a flowchart of a procedure recommendation process.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person of ordinary skill in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
The technology extracts and sorts valuable data of the route planning in the flight schedule in advance, and constructs a flight information diagram for the route planning. According to the scheme, the route planning process and the flight schedule are decoupled while the flight schedule data are utilized, so that the route planning effect can be improved under the condition that the time consumption of an algorithm is increased acceptably, and the overall flight schedule recommending effect is improved.
In general, the present invention requires maintenance of a flight information map, in which the number of flights from each city to other cities and the average flight duration are recorded.
The flight information graph is recorded by using a data dictionary, wherein a key is a city a list, a corresponding key value is a tuple, wherein the first bit records the number of flights related to the city, the second bit records the longitude and latitude coordinates of the city, the third bit is a sub-level data dictionary, the key of the sub-level data dictionary is a city b list which can be reached by the city a, the corresponding key value is a tuple, and the number and average duration of flights from the city a to the city b are recorded. These data will be used to calculate heuristic and loss functions in the a-trip planning algorithm.
The method is divided into two large stages, namely a flight information diagram maintenance stage and a link generation stage;
the first stage is to extract information in the flight schedule to the flight information graph, and when the flight schedule changes, the flight information graph needs to be adjusted;
The second stage is a stage of actually performing link recommendation with user interaction, and needs to make an a-path planning on the flight information diagram and match a proper flight for each path.
As shown in fig. 1, which shows a schematic diagram of a method according to the invention, the specific implementation details of the invention include:
1. step one, preparing and initializing a system:
Step 101, preparing aviation schedule data, and ensuring validity of a city corresponding to each record in the aviation schedule and time data of an airplane in the city;
Step 102, initializing a flight information graph data dictionary, establishing a record for a city related to an aviation schedule, wherein a key is a name or a number a of the city, a key value is a tuple, wherein a first bit records the number of related flights of the city and is initialized to 0, a second bit records a longitude and latitude coordinate pair of the city, a third bit is a sub-level data dictionary, a list of cities b directly reaching the city a is recorded in the dictionary, and the data dictionary is initialized to be empty.
2. Initializing a flight information diagram according to a flight schedule:
step 201, reading an unprocessed flight record, extracting a departure city a and a destination city b related to the flight, and calculating the flight time t of the aircraft between the cities;
step 202, searching and initializing in the flight information graph. If the record in the city b is contained in the data dictionary of the sub-level in the key value corresponding to the city a, if yes, turning to step 203, otherwise, initializing the record in the city b in the sub-level data dictionary, wherein the key is the city b, the corresponding key value is a tuple, the first record can directly reach the number of flights, and the second record a can directly reach the average duration of the flights of b;
Step 203, updating records from city a to city b in the flight information diagram, specifically, the related flight number +1 of the first-order record in the record of city a, and the average duration of the second-order record is modified by the directly available flight number +1 of the first-order record of city b in the sub-level data dictionary of city a.
3. Step three, modifying the flight information diagram according to the change of the flight schedule:
step 301, reading a historical flight information diagram from a memory file;
Step 302, reading an unprocessed flight record, extracting a departure city a and a destination city b related to the flight, calculating the flight time t of the aircraft between the cities, and marking whether the flight is an added flight or a deleted flight;
Step 303, modifying the flight information diagram in a manner of referring to steps 202 to 203;
And 304, deleting the record in the data dictionary when the number of flights related to one city is 0, and deleting the record of the city b in the sub-primary data dictionary under the city a when the number of flights which can be directly reached after deleting a certain flight from the city a to the city b is 0.
4. And step four, storing the real-time flight information graph into a memory file for standby, and marking the updating time.
5. And fifthly, receiving a user request from a user interface, extracting a departure city and a destination city of the user request, and recording the departure time of the user.
6. Step six, defining heuristic function, loss function and expected loss function:
Step 601, defining a heuristic function h (n 1) for estimating the shortest path cost from the current node n1 to the target node, wherein the input of the function is coordinates of a departure city and a destination city, and then calculating the actual distance between the two coordinates, dividing the actual distance by the general speed of the aircraft and outputting the calculated distance;
Step 602, defining a loss function g (n 2) for calculating current path loss (hereinafter referred to as g value), wherein n2 is a history city, wherein a basic loss g1 is added to reduce the number of times of transfer of the result every time one city passes, and an average flight duration between cities is queried in an aviation information graph as loss g2 (n 2), and g (n 2) =g1+g2 (n 2);
Step 603, defining a desired loss function f (n) =h (n 1) +g (n 2), where n is a union of n1 and n2, to estimate a desired loss function (hereinafter referred to as f-value) of the current path, representing a desired union Cheng Shichang.
7. Initializing a path planning part:
step 701, reading a flight information diagram from a memory file, and verifying whether the flight information diagram is the latest flight information diagram according to the update time;
Step 702, initializing an algorithm open list for storing nodes to be expanded. At the initial moment, adding the initial node into an open list, and setting the f value of the initial node;
step 703, initializing an algorithm closing list for storing the nodes which have been completely processed, avoiding repeated processing, and initializing to be empty.
8. Step eight, path search cyclic expansion current node:
Step 801, when the open list is empty, it indicates that no path exists between the departure city and the destination city to meet the condition that all adjacent cities can directly reach the aircraft, and the algorithm ends to return to the link planning failure;
step 802, selecting a node with the minimum f value from the open list as a current node when the open list is not empty, ending the algorithm if the current node is a target node, and returning a path;
Step 803, expanding the current node, for each neighbor m of the current node n, skipping this neighbor if neighbor m is in the closed list, otherwise calculating the cost from the starting node to neighbor m, i.e. the cost g (m) of reaching neighbor m through the current node, if neighbor m is not in the open list, or the new cost of reaching neighbor m through the current node is less than the previous cost, updating the g value of neighbor m and adding it to the open list. Meanwhile, recording that the current node n is a father node of the neighbor m;
Step 804, for each updated neighbor m, recalculate its f-value, and adjust its position in the open list according to the f-value.
9. And step nine, outputting a planned path, namely if the planning is successful, starting from a target node, backtracking to the starting node through a parent node link, constructing and returning a shortest path from the starting node to the target node, and outputting the shortest path to a recommendation algorithm for flight matching.
10. Step ten, matching flights for each path:
Step 1001, for each path, retrieving flight information which accords with time constraint and has redundant tickets from a flight schedule;
Step 1002, scoring and sorting each flight by using a recommendation algorithm, wherein the recommendation algorithm used in the step can be various types, can be a traditional collaborative filtering-based method or a latest recommendation algorithm based on a deep neural network, is easy to realize, and can provide personalized services, and the two recommendation algorithms are widely applied to various industries;
step 1003, selecting flights according to the scoring sequence result, and generating a plurality of passes conforming to the personalized characteristics of the user.
11. And step eleven, outputting the link planning result to the user, namely outputting the link result to a user interface for the user to check and purchase after receiving the link planning recommendation of the rear end.
The following is a specific embodiment of a flight information map maintenance process:
fig. 2 is a flow chart of a flight information map maintenance process, which functions to initialize or change a flight information map to be consistent with the latest flight schedule when the system is initialized or the flight schedule is changed. Specifically, if the system is initialized, first, the flight information is initialized, and if the module is called due to the flight schedule change, the historical flight information diagram should be read from the external memory file.
And then reading a flight to be processed, extracting the related city pairs, and calculating the estimated time of the airplane sailing between the city pairs according to the time marked in the schedule, wherein the time loss involved in the step is that the flight information is read and preprocessed, and the time complexity is O (1).
After obtaining the city pairs and the time, searching the corresponding city pairs in the data dictionary, if not, creating a new city pair, wherein the number of flights is initialized to 0, and the average duration is 0 (the data is immediately covered). The average length of time and number of flights are then updated and if the data dictionary is implemented with a hash table, the time complexity used for this step can be considered as O (1).
After the piece-by-piece processing, a city can be deleted if there is a flight number of 0 between the city pair (this is not always the case in a real scenario). And after all the processing is finished, storing the new flight information graph into an external memory file. In general, if the number of flights is n, the time complexity of the method is O (n), since this operation is only invoked when the flight schedule is changed, i.e., each flight record will only be processed once at the time of change, rather than every user inquiry, and the time required by the system is negligible except for the time necessary to read the flight schedule.
FIG. 3 is a flowchart of a procedure recommendation process:
The algorithm generally uses an a-algorithm framework, relying on the flight information map mentioned above. Specifically, after receiving the departure destination city pair input by the user, only the situation of transfer is processed, so if the departure destination city pair can be directly reached, and the situation that a side exists between the departure city and the destination city in the flight information diagram is corresponding, the side is shielded (the directly-available flights are recommended separately).
And then based on the information such as the distance between cities and the data recorded in the flight information graph, respectively calculating heuristic estimation functions of the losses between the current visited cities and the destination, calculating the loss functions of the distance travelled by the current visited cities, selecting the next-hop cities based on the heuristic estimation functions and the destination, outputting city strings if the destination is reached, otherwise continuing searching, and selecting proper flights for matching by using various recommendation algorithms after path planning.
In summary, the present invention provides an efficient path planning method, which performs dynamic preprocessing on a flight schedule, extracts a valuable part of the path plan from a large table of the flight schedule in advance in an efficient manner, and stores the extracted valuable part in a flight information graph, so that the large table of the original flight schedule is prevented from being searched and processed each time a user query is processed, and the search is performed in the flight information graph by using an a-frame, so that the query process is more efficient, the path planning speed can be effectively improved, the query cost of the flight schedule is reduced, the response time of a system is reduced, the use experience of the user is improved, and meanwhile, the system can respond to the dynamic change of the flight schedule.
Based on the method of the present invention, the embodiments of the present disclosure also provide a system corresponding to the method, which includes:
The information construction module is used for constructing a flight information diagram by utilizing the flight information of a plurality of cities, wherein the flight information of each city a in the flight information diagram comprises a city a, coordinates of the city a, a city b with direct flights between the city a and the city a, and average duration of flights from the city a to the city b;
the data updating module is used for updating the data in the flight information graph by utilizing the data of the aviation timetable, acquiring a departure city and a target city, taking the departure city as a starting node and taking the target city as a target node;
A path planning module for calculating the distance between the city a node and the target node based on the coordinates of the city a node and the target node and dividing the distance by the flight speed of the aircraft as a heuristic function h (a), constructing a loss function g (b) based on the average duration of flights from the city a directly to the city b, wherein g1 is the loss of one basis per increment through one city, g2 (b) is the average duration of flights from the city a directly to the city b, and constructing a desired loss function f (n) based on the heuristic function h (a) and the loss function g (b), f (n) =h (a) +g (b);
Based on the heuristic function h (a), the loss function g (b) and the expected loss function f (n), carrying out path planning by using an A-path planning algorithm, and outputting a planned path from the initial node to the target node;
And the flight matching module is used for matching flights based on the planned path, obtaining a matching result and outputting the matching result.
Based on the same inventive concepts as those disclosed above, the disclosed embodiments also provide an apparatus corresponding to the above method, comprising at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above method.
It should be noted that, the electrical connection between the above units does not necessarily represent connection between lines, and an indirect connection manner may be applied to the embodiments of the present disclosure as long as the purpose of the present disclosure is achieved.
Based on the same inventive concept, the present disclosure also provides a computer storage medium having stored thereon executable instructions that are executed by a processor to perform the above-described method.
Although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that modifications may be made to the technical solutions described in the foregoing embodiments or equivalents may be substituted for some of the technical features thereof, and these modifications or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present disclosure in essence.

Claims (10)

1.一种飞机航班联程规划方法,其特征在于,包括:1. A method for planning an aircraft flight connection, characterized by comprising: 利用多个城市的航班信息构建航班信息图,所述航班信息图中每个城市a的航班信息包括:城市a、城市a的坐标、与城市a之间存在直达航班的城市b,从城市a直接到城市b的航班的平均时长;Constructing a flight information graph using flight information of multiple cities, wherein the flight information of each city a in the flight information graph includes: city a, coordinates of city a, city b with direct flights to city a, and average flight duration from city a to city b; 利用航空时刻表的数据更新航班信息图中的数据;获取出发城市和目标城市,以出发城市为起始节点,以目标城市为目标节点;Use the data of the airline schedule to update the data in the flight information map; obtain the departure city and the target city, with the departure city as the starting node and the target city as the target node; 基于城市a节点和目标节点的坐标,计算城市a节点和目标节点之间的距离并除以飞机的飞行速度,作为启发式函数h(a);构建损失函数g(b),所述损失函数g(b)=g1+g2(b),其中,g1为每经过一个城市增加的一个基础的损失;g2(b)为从城市a直接到城市b的航班的平均时长;构建期望损失函数f(n),f(n)=h(a)+g(b);Based on the coordinates of the city a node and the target node, the distance between the city a node and the target node is calculated and divided by the flight speed of the aircraft as the heuristic function h(a); a loss function g(b) is constructed, wherein the loss function g(b)=g1+g2(b), wherein g1 is a basic loss added for each city passed; g2(b) is the average duration of a flight directly from city a to city b; an expected loss function f(n) is constructed, wherein f(n)=h(a)+g(b); 基于所述启发式函数h(a)、损失函数g(b)与期望损失函数f(n),利用A*路径规划算法进行路径规划,输出规划好的从起始节点到目标节点的路径;Based on the heuristic function h(a), the loss function g(b) and the expected loss function f(n), the A* path planning algorithm is used to perform path planning, and the planned path from the starting node to the target node is output; 基于规划好的路径,匹配航班,得到匹配结果并输出。Based on the planned path, flights are matched, matching results are obtained and output. 2.根据权利要求1所述的一种飞机航班联程规划方法,其特征在于,所述市a的航班信息还包括:2. The method for planning an airplane flight connection according to claim 1, wherein the flight information of city a further includes: 城市a的航班数、从城市a直接到城市b的航班的数量。The number of flights to city a and the number of flights directly from city a to city b. 3.根据权利要求2所述的一种飞机航班联程规划方法,其特征在于,利用数据字典记录城市a的航班信息;3. The method for planning an airplane flight connection according to claim 2, characterized in that the flight information of city a is recorded using a data dictionary; 所述数据字典中的城市a的航班信息包括键以及与之对应的键值;其中,键为城市a的名称;键值为一个第一元组;所述第一元组的第一位记录城市a的航班数,第二位记录城市a的坐标,第三位是一个子一级的第一数据字典;The flight information of city a in the data dictionary includes a key and a corresponding key value; wherein the key is the name of city a; the key value is a first tuple; the first digit of the first tuple records the number of flights to city a, the second digit records the coordinates of city a, and the third digit is a first data dictionary of a sub-level; 所述第一数据字典的键为城市a直接到达的城市b的名称,第一数据字典的键值为一个第二元组;所述第二元组的第一位记录从城市a直接到城市b的航班的数量,第二位记录从城市a直接到城市b的航班的平均时长。The key of the first data dictionary is the name of city b that city a can reach directly, and the key value of the first data dictionary is a second tuple; the first bit of the second tuple records the number of flights directly from city a to city b, and the second bit records the average duration of flights directly from city a to city b. 4.根据权利要求3所述的一种飞机航班联程规划方法,其特征在于,所述利用航空时刻表的数据更新航班信息图中的数据;包括:4. The method for planning an airplane flight connection according to claim 3, wherein the step of updating the data in the flight information graph using the data of the airline schedule comprises: 初始化航班信息图的数据字典;Initialize the data dictionary of the flight information graph; 读取航空时刻表的航班记录数据,并提取出航班涉及的出发城市a和终点城市b,计算城市间的飞机飞行时长t;Read the flight record data of the airline timetable, extract the departure city a and the destination city b involved in the flight, and calculate the flight time t between the cities; 在数据字典中以城市a为键进行搜索,找到城市a;Search the data dictionary with city a as the key to find city a; 在城市a对应的键值中的第一数据字典中查找城市b;Search for city b in the first data dictionary in the key value corresponding to city a; 找到城市b后,将城市a记录中的城市a的航班数加1;将城市a中的第一数据字典中的从城市a直接到城市b的航班的数量加1,并修改从城市a直接到城市b的航班的平均时长。After finding city b, add 1 to the number of flights to city a in the record of city a; add 1 to the number of flights directly from city a to city b in the first data dictionary of city a, and modify the average duration of flights directly from city a to city b. 5.根据权利要求1所述的一种飞机航班联程规划方法,其特征在于,所述利用A*路径规划算法进行飞机航班联程规划,并输出规划好的路径;包括:5. The method for planning an aircraft flight connection according to claim 1, characterized in that the method uses an A* path planning algorithm to plan an aircraft flight connection and outputs the planned path; comprising: 将起始节点作为当前节点n1,计算当前节点n1的启发式函数h(n1);Take the starting node as the current node n1 and calculate the heuristic function h(n1) of the current node n1; 将与出发城市之间有直达航班的城市作为出发城市的邻居城市,计算所有邻居城市的损失函数g(n2)以及启发式函数h(n1);基于损失函数g(n2)和启发式函数h(n1)计算所有邻居城市的期望损失函数f(n);Cities with direct flights to the departure city are considered as neighboring cities of the departure city, and the loss function g(n2) and heuristic function h(n1) of all neighboring cities are calculated; based on the loss function g(n2) and heuristic function h(n1), the expected loss function f(n) of all neighboring cities is calculated; 选取期望损失函数f(n)的值最低的邻居城市n2,并记录当前节点n1为邻居城市n2的父节点;Select the neighbor city n2 with the lowest expected loss function f(n), and record the current node n1 as the parent node of the neighbor city n2; 将邻居城市n2作为新的当前节点,重复选取新的当前节点的邻居节点直到选取到目标节点;Take the neighbor city n2 as the new current node, and repeatedly select neighbor nodes of the new current node until the target node is selected; 从目标节点开始,通过父节点链接回溯到起始节点,构建并输出从起始节点到目标节点的最短路径。Starting from the target node, trace back to the start node through the parent node link, and construct and output the shortest path from the start node to the target node. 6.根据权利要求1所述的一种飞机航班联程规划方法,其特征在于,所述基于规划好的路径,匹配航班;包括:6. The method for planning an airplane flight connection according to claim 1, wherein the step of matching flights based on the planned path comprises: 针对每段路径,从航班时刻表中检索出符合时间约束并有余票的航班信息;For each route, retrieve the flight information that meets the time constraints and has remaining tickets from the flight schedule; 使用推荐算法,为每个航班进行打分并排序;Use the recommendation algorithm to score and sort each flight; 针对打分排序结果选择航班,生成多个符合用户个性化特征的联程。Select flights based on the scoring and sorting results to generate multiple connections that meet the user's personalized characteristics. 7.根据权利要求6所述的一种飞机航班联程规划方法,其特征在于,所述推荐算法为协同过滤算法或基于深度神经网络的推荐算法。7. The method for planning an airplane flight connection according to claim 6, wherein the recommendation algorithm is a collaborative filtering algorithm or a recommendation algorithm based on a deep neural network. 8.一种飞机航班联程规划系统,其特征在于,包括:8. An aircraft flight connection planning system, characterized by comprising: 信息构建模块,用于利用多个城市的航班信息构建航班信息图,所述航班信息图中每个城市a的航班信息包括:城市a、城市a的坐标、与城市a之间存在直达航班的城市b,从城市a直接到城市b的航班的平均时长;An information construction module is used to construct a flight information graph using flight information of multiple cities, wherein the flight information of each city a in the flight information graph includes: city a, coordinates of city a, city b with direct flights to city a, and average flight duration from city a to city b; 数据更新模块,用于利用航空时刻表的数据更新航班信息图中的数据;获取出发城市和目标城市,以出发城市为起始节点,以目标城市为目标节点;The data update module is used to update the data in the flight information map using the data of the aviation schedule; obtain the departure city and the target city, with the departure city as the starting node and the target city as the target node; 路径规划模块,用于基于城市a节点和目标节点的坐标,计算城市a节点和目标节点之间的距离并除以飞机的飞行速度,作为启发式函数h(a);构建损失函数g(b),所述损失函数g(b)=g1+g2(b),其中,g1为每经过一个城市增加的一个基础的损失;g2(b)为从城市a直接到城市b的航班的平均时长;构建期望损失函数f(n),f(n)=h(a)+g(b);The path planning module is used to calculate the distance between the city a node and the target node based on the coordinates of the city a node and the target node and divide it by the flight speed of the aircraft as the heuristic function h(a); construct a loss function g(b), wherein the loss function g(b)=g1+g2(b), wherein g1 is a basic loss added for each city passed; g2(b) is the average duration of a flight directly from city a to city b; construct an expected loss function f(n), wherein f(n)=h(a)+g(b); 基于所述启发式函数h(a)、损失函数g(b)与期望损失函数f(n),利用A*路径规划算法进行路径规划,输出规划好的从起始节点到目标节点的路径;Based on the heuristic function h(a), the loss function g(b) and the expected loss function f(n), the A* path planning algorithm is used to perform path planning, and the planned path from the starting node to the target node is output; 航班匹配模块,用于基于规划好的路径,匹配航班,得到匹配结果并输出。The flight matching module is used to match flights based on the planned routes, obtain matching results and output them. 9.一种飞机航班联程规划设备,其包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行以使所述至少一个处理器能够执行权利要求1至7中任一所述的飞机航班联程规划方法。9. An aircraft flight connection planning device, comprising: at least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the aircraft flight connection planning method described in any one of claims 1 to 7. 10.一种计算机存储介质,其上存储有可执行指令,所述指令被处理器执行时使处理器实现权利要求1至7中任一项所述的方法。10. A computer storage medium having executable instructions stored thereon, wherein when the instructions are executed by a processor, the processor is enabled to implement the method according to any one of claims 1 to 7.
CN202411882209.5A 2024-12-19 2024-12-19 A method, system, equipment, and medium for inter-flight planning of aircraft flights. Active CN119863003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411882209.5A CN119863003B (en) 2024-12-19 2024-12-19 A method, system, equipment, and medium for inter-flight planning of aircraft flights.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411882209.5A CN119863003B (en) 2024-12-19 2024-12-19 A method, system, equipment, and medium for inter-flight planning of aircraft flights.

Publications (2)

Publication Number Publication Date
CN119863003A true CN119863003A (en) 2025-04-22
CN119863003B CN119863003B (en) 2026-04-24

Family

ID=95393484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411882209.5A Active CN119863003B (en) 2024-12-19 2024-12-19 A method, system, equipment, and medium for inter-flight planning of aircraft flights.

Country Status (1)

Country Link
CN (1) CN119863003B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010023390A1 (en) * 1999-06-28 2001-09-20 Min-Chung Gia Path planning, terrain avoidance and situation awareness system for general aviation
US20070143012A1 (en) * 2005-12-20 2007-06-21 Trapeze Software Inc. System and method of optimizing a fixed-route transit network
DE102008050951A1 (en) * 2008-10-10 2010-04-22 Eads Deutschland Gmbh Computer time optimized route planning for aircraft
US20140200807A1 (en) * 2013-01-17 2014-07-17 Google Inc. Route Planning
CN105956695A (en) * 2016-04-27 2016-09-21 苏州市伏泰信息科技股份有限公司 Circular and optimized planning method and system for garbage collection and transportation
CN110307851A (en) * 2019-08-20 2019-10-08 中航材导航技术(北京)有限公司 One kind is based on A* algorithm and the navigation limitation efficient flight course planning method of data iteration
CN112184030A (en) * 2020-09-30 2021-01-05 中国民航信息网络股份有限公司 Method, device and equipment for scoring online flights and computer storage medium
CN115685982A (en) * 2021-07-27 2023-02-03 珠海一微半导体股份有限公司 Navigation path planning method based on connected graph and iterative search
US20230125533A1 (en) * 2021-10-19 2023-04-27 Datalex (Ireland) Ltd System and method for dynamically enhancing a pricing database based on external information
CN116307441A (en) * 2022-11-28 2023-06-23 北京交通大学 Optimal configuration method of urban rail transit hub transfer facilities considering emergencies
CN117419738A (en) * 2023-10-30 2024-01-19 山东大学 Path planning method and system based on visual graph and D*Lite algorithm
CN119918849A (en) * 2024-12-19 2025-05-02 东南大学 A method, computing device and storage medium for calculating accessibility of integrated transportation multi-mode network
CN120562664A (en) * 2025-05-20 2025-08-29 南京航空航天大学 An air-rail intermodal transport route optimization method based on XGBoost and spatiotemporal attention network

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010023390A1 (en) * 1999-06-28 2001-09-20 Min-Chung Gia Path planning, terrain avoidance and situation awareness system for general aviation
US20070143012A1 (en) * 2005-12-20 2007-06-21 Trapeze Software Inc. System and method of optimizing a fixed-route transit network
DE102008050951A1 (en) * 2008-10-10 2010-04-22 Eads Deutschland Gmbh Computer time optimized route planning for aircraft
US20140200807A1 (en) * 2013-01-17 2014-07-17 Google Inc. Route Planning
CN105956695A (en) * 2016-04-27 2016-09-21 苏州市伏泰信息科技股份有限公司 Circular and optimized planning method and system for garbage collection and transportation
CN110307851A (en) * 2019-08-20 2019-10-08 中航材导航技术(北京)有限公司 One kind is based on A* algorithm and the navigation limitation efficient flight course planning method of data iteration
CN112184030A (en) * 2020-09-30 2021-01-05 中国民航信息网络股份有限公司 Method, device and equipment for scoring online flights and computer storage medium
CN115685982A (en) * 2021-07-27 2023-02-03 珠海一微半导体股份有限公司 Navigation path planning method based on connected graph and iterative search
US20230125533A1 (en) * 2021-10-19 2023-04-27 Datalex (Ireland) Ltd System and method for dynamically enhancing a pricing database based on external information
CN116307441A (en) * 2022-11-28 2023-06-23 北京交通大学 Optimal configuration method of urban rail transit hub transfer facilities considering emergencies
CN117419738A (en) * 2023-10-30 2024-01-19 山东大学 Path planning method and system based on visual graph and D*Lite algorithm
CN119918849A (en) * 2024-12-19 2025-05-02 东南大学 A method, computing device and storage medium for calculating accessibility of integrated transportation multi-mode network
CN120562664A (en) * 2025-05-20 2025-08-29 南京航空航天大学 An air-rail intermodal transport route optimization method based on XGBoost and spatiotemporal attention network

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
周丽霞: "基于时序推理的航空旅行最优中转换乘规划系统研究", 中国优秀硕士学位论文全文数据库信息科技辑, 15 July 2012 (2012-07-15) *
徐涛;丁晓璐;李建伏;: "国际航线网络联程路径搜索的KMCSP问题研究", 西南交通大学学报, no. 01, 15 February 2014 (2014-02-15) *
王国良: "基于旅客出行爱好的联程路径搜索算法研究", 现代信息科技, 3 December 2019 (2019-12-03) *
算法: "航班无缝衔接:揭秘高效飞机换乘算法,助你轻松规划完美旅程", Retrieved from the Internet <URL:https://www.oryoy.com/news/hang-ban-wu-feng-xian-jie-jie-mi-gao-xiao-fei-ji-huan-cheng-suan-fa-zhu-ni-qing-song-gui-hua-wan-mei.html> *

Also Published As

Publication number Publication date
CN119863003B (en) 2026-04-24

Similar Documents

Publication Publication Date Title
CN111143680B (en) Route recommendation method, system, electronic equipment and computer storage medium
Bertsekas Network optimization: continuous and discrete models
CN112733040B (en) A travel itinerary recommendation method
CN110287336B (en) Tourist map construction method for tourist attraction recommendation
WO2020199524A1 (en) Method for matching ride-sharing travellers based on network representation learning
CN114254837A (en) Travel route customizing method and system based on deep reinforcement learning
CN111783895A (en) Neural network-based travel plan recommendation method, device, computer equipment and storage medium
CN117407606B (en) A travel route recommendation method based on large language model and knowledge graph
Wang et al. Constrained route planning over large multi-modal time-dependent networks
CN115481319A (en) Recommendation method and device for mobile chart and storage medium
CN119808966B (en) Intelligent decision method, computer device and computer readable storage medium
US20230196215A1 (en) Method for computing a set of itineraries from a departure location to an arrival location using cluster-based searching
CN118427356A (en) Patent technology route generation method and device and computer equipment
CN110532464A (en) A travel recommendation method based on multi-tourism context modeling
Hylton et al. A survey of mathematical structures for lunar networks
CN106203646A (en) Customize stroke commending system and method
He et al. Exploring public transport transfer opportunities for pareto search of multicriteria journeys
Wang et al. An efficient hybrid graph network model for traveling salesman problem with drone
CN119863003B (en) A method, system, equipment, and medium for inter-flight planning of aircraft flights.
Almech et al. A new approach to shortest route finding in a railway network with two track gauges and gauge changeovers
JP2019133565A (en) News material classification apparatus, program and learning model
CN115688803B (en) Word element consistency frame recommendation method for constructing frame semantic knowledge base
CN114817772B (en) A segmented parallel expansion method for keyword optimal path query
US12123725B2 (en) Method for computing a personalized itinerary from a departure location to an arrival location
CN112883195A (en) Method and system for constructing traffic knowledge map of individual trip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant