Disclosure of Invention
The invention aims to provide a flight task ring generation method and a flight task ring generation device for scheduling of a unit, and aims to solve the problem that the efficiency and the accuracy of the existing flight task ring generation scheme are not high.
The embodiment of the invention provides the following scheme:
in a first aspect, an embodiment of the present invention provides a flight task ring generation method for scheduling a unit, including:
step 1: acquiring a flight set A generated by participating in a flight task ring;
step 2: connecting the flights in the flight set pairwise to generate a flight connection set;
and step 3: and taking the maximum efficiency values of all flight connecting lines in the flight task ring as an objective function, constructing constraint conditions according to the outgoing degree and the incoming degree of the flight connecting lines, establishing a mixed integer linear programming model, and inputting the flight connecting line set into the mixed integer linear programming model to obtain a legal flight task ring set R.
In a possible embodiment, the mixed integer linear programming model comprises a first mixed integer linear programming model and a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
step 3.1: inputting the flight connecting line set into the first mixed integer linear programming model to obtain a first flight task ring set;
step 3.2: dividing the first flight task ring set into a first legal flight task ring subset and a first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring;
step 3.3: inputting the first illegal flight task ring subset into the second mixed integer linear programming model to obtain a second flight task ring set;
the legal flight task ring set R comprises flight task rings in the first legal flight task ring subset and the second legal flight task ring set;
the accumulated time of the flight task rings in the first legal flight task ring subset does not exceed the maximum accumulated time of the flight task rings;
the accumulated time of the flight task rings in the first illegal flight task ring subset exceeds the maximum accumulated time of the flight task rings;
an objective function M of the first mixed integer linear programming model1The expression of (a) is:
the constraints of the first mixed integer linear programming model include:
wherein A is
iAnd A
jAll flights in the flight set A; when flight A
iConnecting back flight A
jWhen the temperature of the water is higher than the set temperature,
get 1, otherwise X
ijTaking 0; omega
ijFor flight A
iWith flight A
jFlight connection formed by connectionSetting an efficiency weight of the line; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mFor flights in the subset of flights B; c is a flight subset of the flight set A with the starting station as the base, C
nFor flights in the subset of flights C; d is a subset of flights in the flight set A whose arrival station is the base, D
lFor flights in the subset of flights D;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the second mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight subset A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is the maximum accumulated time of the flight mission ring; b is
mkThe flights in the flight subset B which are positioned in a flight task ring k; c
nkThe flights in the flight subset C which are positioned in a flight task ring k; d
lkThe flights in the flight subset D which are positioned in the flight task ring k are selected.
In a possible embodiment, the mixed integer linear programming model comprises a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
inputting the flight connecting line set into a second mixed integer linear programming model to obtain a legal flight task ring set R;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight set A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection; when flight A
ikConnecting back flight A
jkWhen the temperature of the water is higher than the set temperature,
get 1, otherwise
Taking 0;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is the maximum accumulated time of the flight mission ring; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mkThe flights in the flight subset B which are positioned in a flight task ring k; c is a flight subset of the flight set A with the starting station as the base, C
nkThe flights in the flight subset C which are positioned in a flight task ring k; d is the flight setIn HeA, a subset of flights whose arrival stations are bases, D
lkThe flights in the flight subset D which are positioned in the flight task ring k are selected.
In a possible embodiment, further comprising:
and 4, step 4: inputting the legal flight task ring set R into a mixed integer linear fraction planning model to obtain a final legal flight task ring set;
an objective function M of the mixed integer linear fraction programming model3The expression of (a) is:
the constraints of the mixed integer linear programming model include:
wherein R is
p、R
qAnd R
rAll flight task rings in the legal flight task ring set R;
for flight task ring R
pBackward and flight task ring R
qSetting an efficiency weight for splicing; when the ring R is matched with the flight task
pWith flight task ring R
qWhen the splicing treatment is carried out,
get 1, otherwise
Take 0.
In a possible embodiment, before step 3.3, the following steps are further included:
step 3.2.1: updating the constraint conditions of the first mixed integer linear programming model according to the flight task rings in the first legal flight task ring subset, and establishing a new first mixed integer linear programming model;
step 3.2.2: inputting the first legal flight task ring subset into the new first mixed integer linear programming model to obtain a new first flight task ring subset; dividing the new first flight task ring set into a new first legal flight task ring subset and a new first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring; and taking the first legal flight task ring subset as the first legal flight task ring subset, adding the flight task ring in the new first illegal flight task ring subset into the first illegal flight task ring subset, and updating the first illegal flight task ring subset.
In a possible embodiment, before step 3, removing the illegal flight connection from the set of flight connections;
the illegal flight connection comprises the condition that the accumulated time length of the illegal flight connection exceeds the maximum accumulated time length of a flight task ring and/or the interval time between flights at the front end and the rear end of the illegal flight connection is less than the minimum interval time of the flights.
In a possible embodiment, before step 3, the flight links used to generate the flight mission ring of the fixed itinerary are removed from the set of flight links.
In a second aspect, an embodiment of the present invention provides a flight task ring generation apparatus for scheduling a unit, including:
the flight connecting line generating module is used for connecting the flights in the flight set A pairwise to generate a flight connecting line set;
the fixed route flight task ring generation module is used for generating a fixed route flight task ring according to the flight connection set;
the flight connecting line filtering module is used for removing illegal flight connecting lines and flight connecting lines of a flight task ring used for generating a fixed route from the flight connecting line set;
the flight task ring generating module is used for obtaining a legal flight task ring R by using a mixed integer linear programming model;
the mixed integer linear programming model comprises a first mixed integer linear programming model and a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
inputting the flight connecting line set into the first mixed integer linear programming model to obtain a first flight task ring set;
dividing the first flight task ring set into a first legal flight task ring subset and a first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring;
inputting the first illegal flight task ring subset into the second mixed integer linear programming model to obtain a second flight task ring set;
the legal flight task ring set R comprises flight task rings in the first legal flight task ring subset and the second legal flight task ring set;
the accumulated time of the flight task rings in the first legal flight task ring subset does not exceed the maximum accumulated time of the flight task rings;
the accumulated time of the flight task rings in the first illegal flight task ring subset exceeds the maximum accumulated time of the flight task rings;
an objective function M of the first mixed integer linear programming model1The expression of (a) is:
the constraints of the first mixed integer linear programming model include:
wherein A is
iAnd A
jAll flights in the flight set A; when flight A
iConnecting back flight A
jWhen the temperature of the water is higher than the set temperature,
get 1, otherwise X
ijTaking 0; omega
ijFor flight A
iWith flight A
jSetting an efficiency weight value of a flight line formed by connection; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mFor flights in the subset of flights B; c is a flight subset of the flight set A with the starting station as the base, C
nFor flights in the subset of flights C; d is a subset of flights in the flight set A whose arrival station is the base, D
lFor flights in the subset of flights D;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the second mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight subset A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is the maximum accumulated time of the flight mission ring; b is
mkThe flights in the flight subset B which are positioned in a flight task ring k; c
nkThe flights in the flight subset C which are positioned in a flight task ring k; d
lkFor the flight task located in the flight subset DFlights in ring k.
In a third aspect, an embodiment of the present invention provides an intelligent whiteboard screenshot file management apparatus, including:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the flight mission ring generation method for crew scheduling according to any one of the above first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the flight task ring generation method for crew shift according to any one of the above first aspects.
Compared with the prior art, the invention has the following advantages and beneficial effects:
according to the invention, according to the flight set generated by participating in the flight task ring, the flights are connected in pairs to form the flight connection set, then the maximum efficiency values of all flight connections in the flight task ring are used as the target function to form a mixed integer linear programming model, and finally the mixed integer linear programming model is used for efficiently and accurately obtaining the legal flight task ring set.
Further, the invention provides a flight mission ring generation algorithm comprising two mixed integer linear programming models. The first mixed integer linear programming model only has two dimensions (namely flights at the front end and the rear end of a flight connecting line), so that the selection of the constraint condition is relatively simple, and the first flight task ring set of the optimal solution is conveniently and quickly calculated. However, because the objective function is set simply, the first flight task ring set inevitably includes longer flight task rings exceeding the maximum accumulated time of the flight task rings, and the invention also uses a second mixed integer linear programming model of three dimensions (namely, flights at the front end and the rear end of a flight connecting line and flight task rings to which the flights belong) to split the longer flight task rings, thereby further improving the overall calculation speed while ensuring the accuracy of the construction of the flight task rings.
Further, the invention provides a flight mission ring generation algorithm comprising a mixed integer linear programming model. The second mixed integer linear programming model has three dimensions, namely flights at the front end and the rear end of a flight connecting line and flight task rings to which the flights belong, and by using the three dimensions, stricter constraint conditions can be constructed, so that the finally output optimal solution does not contain longer aviation task rings exceeding the maximum accumulated time of the flight task rings, and the accuracy of constructing the flight task rings is further improved.
Furthermore, the invention also comprises a post-processing step, wherein the shorter flight task rings in the flight task ring set R are spliced two by two to form a longer aviation task ring with higher efficiency and without exceeding the maximum accumulated time of the flight task rings, so that the accuracy and the rationality of the construction of the flight task rings are further improved.
Furthermore, the iterative process is added between the two mixed integer linear programming models, the constraint conditions of the first mixed integer linear programming model are updated through the analysis of the first legal flight task ring subset, the first legal flight task ring subset is optimized again through the updated first mixed integer linear programming model, and the originally generated first legal flight task ring subset and the first illegal flight task ring subset are replaced according to the output optimal solution, so that the rationality and the quality of the first legal flight task ring subset are improved, the number of the first illegal flight task rings is increased, and the accuracy and the rationality of the flight task ring construction are finally improved.
Furthermore, before flight connection data are input into the mixed integer linear programming model, the flight connection data are screened and analyzed, some non-compliant flight connections are filtered, the calculation amount of the model is reduced, and the accuracy and the speed of flight task ring building are further improved.
Furthermore, the invention considers that some fixed lines exist in the current international flight task ring, and the flight lines of the lines are known and fixed in a certain time, so that the invention removes the flight connecting lines of the flight task ring for establishing the fixed lines before inputting the flight connecting line data into the mixed integer linear programming model, reduces the computation of the model and further improves the accuracy and the speed of establishing the flight task ring.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments, and all other embodiments obtained by those skilled in the art based on the embodiments of the present invention belong to the scope of protection of the embodiments of the present invention.
The embodiment of the invention provides a flight task ring generation method for scheduling a unit, which comprises the following steps:
step 1: acquiring a flight set A generated by participating in a flight task ring;
step 2: connecting the flights in the flight set pairwise to generate a flight connection set;
and step 3: and taking the maximum efficiency values of all flight connecting lines in the flight task ring as an objective function, constructing constraint conditions according to the outgoing degree and the incoming degree of the flight connecting lines, establishing a mixed integer linear programming model, and inputting the flight connecting line set into the mixed integer linear programming model to obtain a legal flight task ring set R.
Specifically, in the embodiment of the present invention, by calling flight data of an airline company, a flight set a may be obtained, and information such as a departure/landing airport, a departure/landing time, and a flight time of an initial data flight included in flights in the flight set a may be obtained, so that data such as a start station, an arrival station, and an overall duration of the flights may be obtained from the flights.
Specifically, the flight connection in the embodiment of the present invention is a connection between two flights, and a flight connection set is generated by traversing all flights in the flight set a.
Specifically, in the embodiment of the present invention, the maximum efficiency values of all flight links in a flight task ring are used as the objective function of the mixed integer linear programming model, the efficiency of the flight links needs to be preset by comprehensively considering the conditions of the distance between the two flight departure and landing airports, the interval duration, the setting of the connected set, and the like, for example, the landing airport of flight a is the same as the departure airport of flight B, and the set does not need to be set, so the efficiency of the flight link between flight a and flight B is higher, if the arrival time of flight a is shorter or longer than the departure time of flight B, the efficiency of the flight link between flight a and flight B is lower, in practical applications, the efficiency value of the flight link can be set according to needs, and certainly, in order to take the efficiency value as a negative value, the behavior of the flight link is excited in a reverse direction, so when the sum of the efficiency values of the flight links in a certain flight task, then the flight mission ring would also be the optimal flight mission ring.
According to the flight set generated by participating in the flight task ring, the flights are connected pairwise to form the flight connection set, then the maximum efficiency values of all flight connections in the flight task ring are used as target functions to form a mixed integer linear programming model, and finally the mixed integer linear programming model is used for efficiently and accurately obtaining the legal flight task ring set.
In a possible embodiment, the mixed integer linear programming model comprises a first mixed integer linear programming model and a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
step 3.1: inputting the flight connecting line set into the first mixed integer linear programming model to obtain a first flight task ring set;
step 3.2: dividing the first flight task ring set into a first legal flight task ring subset and a first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring;
step 3.3: inputting the first illegal flight task ring subset into the second mixed integer linear programming model to obtain a second flight task ring set;
the legal flight task ring set R comprises flight task rings in the first legal flight task ring subset and the second legal flight task ring set;
the accumulated time of the flight task rings in the first legal flight task ring subset does not exceed the maximum accumulated time of the flight task rings;
specifically, the accumulated time of the flight task ring comprises the accumulated flight time of the flight task ring and the accumulated duty time of the flight task ring; the maximum accumulated time of the flight task ring comprises the maximum accumulated flight time and the maximum accumulated duty time; the fact that the accumulated time of the flight task ring does not exceed the maximum accumulated time of the flight task ring means that the accumulated flight time of the flight task ring does not exceed the maximum accumulated flight time and the accumulated on-duty time of the flight task ring does not exceed the maximum accumulated on-duty time.
The accumulated time of the flight task rings in the first illegal flight task ring subset exceeds the maximum accumulated time of the flight task rings;
an objective function M of the first mixed integer linear programming model1The expression of (a) is:
the constraints of the first mixed integer linear programming model include:
wherein A is
iAnd A
jAll flights in the flight set A; when flight A
iConnecting back flight A
jWhen the temperature of the water is higher than the set temperature,
get 1, otherwise X
ijTaking 0; omega
ijFor flight A
iWith flight A
jSetting an efficiency weight value of a flight line formed by connection; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mFor flights in the subset of flights B; c is a flight subset of the flight set A with the starting station as the base, C
nFor flights in the subset of flights C; d is a subset of flights in the flight set A whose arrival station is the base, D
lFor flights in the subset of flights D;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the second mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight subset A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is the maximum accumulated time of the flight mission ring; b is
mkThe flights in the flight subset B which are positioned in a flight task ring k; c
nkThe flights in the flight subset C which are positioned in a flight task ring k; d
lkThe flights in the flight subset D which are positioned in the flight task ring k are selected.
Specifically, in the embodiment of the present invention, the flight connection line is regarded as a directed graph with a connection direction, and the constraint condition of the mixed integer linear programming model is constructed by using the entrance and exit degrees of the flight.
In particular, constraints
Meaning that the sum of the outgoing of any flight in the subset of flights a relative to other flights equals the sum of the incoming of that flight relative to other flights, i.e., the incoming and outgoing of any flight in the subset of flights a is balanced.
In particular, constraints
The meaning of (1) is that the sum of the outgoing degree of any flight whose departure station and arrival station are not bases in the flight set A relative to other flights is 1, namely the flight can only be connected with one other flight backwards.
In particular, constraints
The meaning of (1) is that the sum of the incomes of the flights of which the departure station and the arrival station are not bases in the flight set A relative to other flights is 1, namely the flight is only connected with one other flight forwards.
In particular, constraints
The meaning of (1) is that the sum of the outbound of the flight whose departure station is the base in the flight set A relative to other flights is 1, i.e. the flight can only connect one other flight backwards.
In particular, constraints
The meaning of (1) is that the sum of the incomes of any flight with the arrival station as the base in the flight set A relative to other flights is 1, i.e. the flight can only be connected with one other flight forward.
In particular, constraints
The meaning of (1) is that the sum of the incomes of any flight with the arrival station as the base in the flight set A relative to other flights is 1, i.e. the flight can only be connected with one other flight forward.
In particular, constraints
Meaning that the sum of the outgoing of any flight relative to other flights in the flight mission ring k is equal to the sum of the incoming of that flight relative to other flights, i.e., the incoming and outgoing of any flight in the flight mission ring k are balanced.
In particular, constraints
The meaning of (1) is that the summation of the duration time of all flight connecting lines in the flight task ring k does not exceed the maximum accumulated time length of the flight task ring, and the maximum accumulated time length of the flight task ring is manually set and generally does not exceed 4 days.
In particular, constraints
The meaning of (1) is that the sum of the outgoing degree of any flight whose departure station and arrival station are not bases in the flight task ring k relative to other flights is 1, namely the flight can only be connected with one other flight backwards.
In particular toOf (2) constraint conditions
The meaning of (1) is that the sum of the incoming degree of the flight of which any departure station and arrival station in the flight task ring k are not bases relative to other flights is 1, namely the flight is only connected with one other flight forwards.
In particular, constraints
The meaning of (1) is that the sum of the outgoing degree of the flight with the base as any starting station in the flight task ring k relative to other flights is 1, namely the flight can only be connected with one other flight backwards.
In particular, constraints
The meaning of (1) is that the sum of the incomes of the flight with the base as any starting station in the flight task ring k relative to other flights is 0, namely the flight is not connected with other flights forwards.
In particular, constraints
The meaning of (1) is that the sum of the incomes of any flight with the arrival station as the base in the flight task ring k relative to other flights is 1, namely the flight is connected with only one other flight forwards.
In particular, constraints
The meaning of (1) is that the sum of the outgoing degree of any flight with the arrival station as the base in the flight task ring k relative to other flights is 0, namely the flight is not connected with other flights backwards.
The embodiment of the invention provides a flight task ring generation algorithm comprising two mixed integer linear programming models. The first mixed integer linear programming model only has two dimensions (namely flights at the front end and the rear end of a flight connecting line), so that the selection of the constraint condition is relatively simple, and the first flight task ring set of the optimal solution is conveniently and quickly calculated. However, because the objective function is set simply, the first flight task ring set inevitably includes longer flight task rings exceeding the maximum accumulated time of the flight task rings, and the invention also uses a second mixed integer linear programming model of three dimensions (namely, flights at the front end and the rear end of a flight connecting line and flight task rings to which the flights belong) to split the longer flight task rings, thereby further improving the overall calculation speed while ensuring the accuracy of the construction of the flight task rings.
In a possible embodiment, the mixed integer linear programming model comprises a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
inputting the flight connecting line set into a second mixed integer linear programming model to obtain a legal flight task ring set R;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight set A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection; when flight A
ikConnecting back flight A
jkWhen the temperature of the water is higher than the set temperature,
get 1, otherwise
Taking 0;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is the maximum accumulated time of the flight mission ring; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mkThe flights in the flight subset B which are positioned in a flight task ring k; c is a flight subset of the flight set A with the starting station as the base, C
nkThe flights in the flight subset C which are positioned in a flight task ring k; d is a subset of flights in the flight set A whose arrival station is the base, D
lkThe flights in the flight subset D which are positioned in the flight task ring k are selected.
The embodiment of the invention provides a flight task ring generation algorithm comprising a mixed integer linear programming model. The second mixed integer linear programming model has three dimensions, namely flights at the front end and the rear end of a flight connecting line and flight task rings to which the flights belong, and by using the three dimensions, stricter constraint conditions can be constructed, so that the finally output optimal solution does not contain longer aviation task rings exceeding the maximum accumulated time of the flight task rings, and the accuracy of constructing the flight task rings is further improved.
In a possible embodiment, further comprising:
and 4, step 4: inputting the legal flight task ring set R into a mixed integer linear fraction planning model to obtain a final legal flight task ring set;
an objective function M of the mixed integer linear fraction programming model3The expression of (a) is:
the constraints of the mixed integer linear programming model include:
wherein R is
p、R
qAnd R
rAll flight task rings in the legal flight task ring set R;
for flight task ring R
pWith flight task ring R
qSetting an efficiency weight for splicing; when the ring R is matched with the flight task
pBackward and flight task ring R
qWhen the splicing treatment is carried out,
get 1, otherwise
Take 0.
Specifically, in the embodiment of the present invention, it is considered that the generated legal flight task ring set R includes some too short airline task rings, for example, an airline task ring having a total accumulated time length of only one day or less, and the efficiency of the task ring in actual operation is very low, which will consume a large amount of operation cost, and the embodiment of the present invention picks up and splices the shorter airline task ring with other airline task rings.
In particular, the flight mission ring RpWith flight task ring RqThe splicing process of (2) generally comprises the steps of splitting two flight task rings, and reforming a new flight task ring according to the take-off and landing time and the take-off and landing place of the flight.
In particular, the method comprises the following steps of,
may be negative to negatively excite the effect of certain splicing behaviors.
In particular, constraints
The meaning of (1) is that one airline task ring can only participate in one splicing processing at most, and simultaneously, only two airline task rings can be targeted in the splicing processing process.
In particular, constraints
The meaning of (1) is that one airline task ring can only participate in splicing processing once at most forward.
In particular, constraints
The meaning of (1) is that one airline task ring can only participate in splicing processing at most once backwards.
The embodiment of the invention also comprises a post-processing step, wherein the shorter flight task rings in the flight task ring set R are spliced two by two to form a longer aviation task ring with higher efficiency and without exceeding the maximum accumulated time of the flight task rings, so that the accuracy and the rationality of the construction of the flight task rings are further improved.
In a possible embodiment, before step 3.3, the following steps are further included:
step 3.2.1: updating the constraint conditions of the first mixed integer linear programming model according to the flight task rings in the first legal flight task ring subset, and establishing a new first mixed integer linear programming model;
step 3.2.2: inputting the first legal flight task ring subset into the new first mixed integer linear programming model to obtain a new first flight task ring subset; dividing the new first flight task ring set into a new first legal flight task ring subset and a new first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring; and taking the first legal flight task ring subset as the first legal flight task ring subset, adding the flight task ring in the new first illegal flight task ring subset into the first illegal flight task ring subset, and updating the first illegal flight task ring subset.
Specifically, by analyzing whether the flight task rings in the first legal subset of flight task rings meet civil aviation management requirements, the defect of the constraint condition of the current first mixed integer linear programming model can be determined, for example, if the influence of a set flight on the overall efficiency is not considered, a new condition is added to the constraint condition again, so that the constraint condition of the first mixed integer linear programming model is updated, and a new first mixed integer linear programming model is established.
The embodiment of the invention adds an iterative process between two mixed integer linear programming models, updates the constraint condition of the first mixed integer linear programming model through the analysis of the first legal flight task ring subset, optimizes the first legal flight task ring subset by using the updated first mixed integer linear programming model, and replaces the originally generated first legal flight task ring subset and first illegal flight task ring subset according to the output optimal solution so as to improve the rationality and quality of the first legal flight task ring subset, increase the number of the first illegal flight task rings and finally improve the accuracy and rationality of the flight task ring construction.
In a possible embodiment, before step 3, removing the illegal flight connection from the set of flight connections;
the illegal flight connection comprises the condition that the accumulated time length of the illegal flight connection exceeds the maximum accumulated time length of a flight task ring and/or the interval time between flights at the front end and the rear end of the illegal flight connection is less than the minimum interval time of the flights.
According to the embodiment of the invention, before flight connection data is input into the mixed integer linear programming model, the flight connection data is screened and analyzed, some non-compliant flight connections are filtered, the calculation amount of the model is reduced, and the accuracy and the speed of flight task ring building are further improved.
In a possible embodiment, before step 3, the flight links used to generate the flight mission ring of the fixed itinerary are removed from the set of flight links.
The embodiment of the invention considers that some fixed lines exist in the current international flight task ring, and the flight lines of the lines are known and fixed in a certain time, so that the flight connecting lines of the flight task ring for establishing the fixed lines are removed before the flight connecting line data is input into the mixed integer linear programming model, the calculation amount of the model is reduced, and the accuracy and the speed of establishing the flight task ring are further improved.
Based on the same inventive concept as the method, the embodiment of the invention also provides a flight task ring generation device for scheduling the unit, which comprises the following steps:
the flight connecting line generating module is used for connecting the flights in the flight set A pairwise to generate a flight connecting line set;
the fixed route flight task ring generation module is used for generating a fixed route flight task ring according to the flight connection set;
the flight connecting line filtering module is used for removing illegal flight connecting lines and flight connecting lines of a flight task ring used for generating a fixed route from the flight connecting line set;
the flight task ring generating module is used for obtaining a legal flight task ring R by using a mixed integer linear programming model;
the mixed integer linear programming model comprises a first mixed integer linear programming model and a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
inputting the flight connecting line set into the first mixed integer linear programming model to obtain a first flight task ring set;
dividing the first flight task ring set into a first legal flight task ring subset and a first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring;
inputting the first illegal flight task ring subset into the second mixed integer linear programming model to obtain a second flight task ring set;
the legal flight task ring set R comprises flight task rings in the first legal flight task ring subset and the second legal flight task ring set;
the accumulated time of the flight task rings in the first legal flight task ring subset does not exceed the maximum accumulated time of the flight task rings;
the accumulated time of the flight task rings in the first illegal flight task ring subset exceeds the maximum accumulated time of the flight task rings;
an objective function M of the first mixed integer linear programming model1The expression of (a) is:
the constraints of the first mixed integer linear programming model include:
wherein A is
iAnd A
jAll flights in the flight set A; when flight A
iConnecting back flight A
jWhen the temperature of the water is higher than the set temperature,
get 1, otherwise X
ijTaking 0; omega
ijFor flight A
iWith flight A
jSetting an efficiency weight value of a flight line formed by connection; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mFor flights in the subset of flights B; c is a flight subset of the flight set A with the starting station as the base, C
nFor flights in the subset of flights C; d is a subset of flights in the flight set A whose arrival station is the base, D
lFor flights in the subset of flights D;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the second mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight subset A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is the maximum accumulated time of the flight mission ring; b is
mkThe flights in the flight subset B which are positioned in a flight task ring k; c
nkThe flights in the flight subset C which are positioned in a flight task ring k; d
lkThe flights in the flight subset D which are positioned in the flight task ring k are selected.
Referring to fig. 2, fig. 2 is a schematic diagram of an embodiment of a computer apparatus according to the present invention, including a memory 110, a processor 120, and a computer program 111 stored in the memory 120 and running on the processor 120, where the processor 120 executes the computer program 111 to implement the following steps:
step 1: acquiring a flight set A generated by participating in a flight task ring;
step 2: connecting the flights in the flight set pairwise to generate a flight connection set;
and step 3: and taking the maximum efficiency values of all flight connecting lines in the flight task ring as an objective function, constructing constraint conditions according to the outgoing degree and the incoming degree of the flight connecting lines, establishing a mixed integer linear programming model, and inputting the flight connecting line set into the mixed integer linear programming model to obtain a legal flight task ring set R.
In a possible embodiment, the mixed integer linear programming model comprises a first mixed integer linear programming model and a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
step 3.1: inputting the flight connecting line set into the first mixed integer linear programming model to obtain a first flight task ring set;
step 3.2: dividing the first flight task ring set into a first legal flight task ring subset and a first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring;
step 3.3: inputting the first illegal flight task ring subset into the second mixed integer linear programming model to obtain a second flight task ring set;
the legal flight task ring set R comprises flight task rings in the first legal flight task ring subset and the second legal flight task ring set;
the accumulated time of the flight task rings in the first legal flight task ring subset does not exceed the maximum accumulated time of the flight task rings;
the accumulated time of the flight task rings in the first illegal flight task ring subset exceeds the maximum accumulated time of the flight task rings;
an objective function M of the first mixed integer linear programming model1The expression of (a) is:
the constraints of the first mixed integer linear programming model include:
wherein A is
iAnd A
jAre all said flightFlights in set A; when flight A
iConnecting back flight A
jWhen the temperature of the water is higher than the set temperature,
get 1, otherwise X
ijTaking 0; omega
ijFor flight A
iWith flight A
jSetting an efficiency weight value of a flight line formed by connection; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mFor flights in the subset of flights B; c is a flight subset of the flight set A with the starting station as the base, C
nFor flights in the subset of flights C; d is a subset of flights in the flight set A whose arrival station is the base, D
lFor flights in the subset of flights D;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the second mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight subset A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is the maximum accumulated time of the flight mission ring; b is
mkThe flights in the flight subset B which are positioned in a flight task ring k; c
nkFor flights located in the subset of flights CFlights in task ring k; d
lkThe flights in the flight subset D which are positioned in the flight task ring k are selected.
In a possible embodiment, the mixed integer linear programming model comprises a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
inputting the flight connecting line set into a second mixed integer linear programming model to obtain a legal flight task ring set R;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight set A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection; when flight A
ikConnecting back flight A
jkWhen the temperature of the water is higher than the set temperature,
get 1, otherwise
Taking 0;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is maximum flight mission ringAccumulating the time length; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mkThe flights in the flight subset B which are positioned in a flight task ring k; c is a flight subset of the flight set A with the starting station as the base, C
nkThe flights in the flight subset C which are positioned in a flight task ring k; d is a subset of flights in the flight set A whose arrival station is the base, D
lkThe flights in the flight subset D which are positioned in the flight task ring k are selected.
In a possible embodiment, further comprising:
and 4, step 4: inputting the legal flight task ring set R into a mixed integer linear fraction planning model to obtain a final legal flight task ring set;
an objective function M of the mixed integer linear fraction programming model3The expression of (a) is:
the constraints of the mixed integer linear programming model include:
wherein R is
p、R
qAnd R
rAll flight task rings in the legal flight task ring set R;
for flight task ring R
pWith flight task ring R
qSetting an efficiency weight for splicing; when the ring R is matched with the flight task
pBackward and flight task ring R
qWhen the splicing treatment is carried out,
get 1, otherwise
Take 0.
In a possible embodiment, before step 3.3, the following steps are further included:
step 3.2.1: updating the constraint conditions of the first mixed integer linear programming model according to the flight task rings in the first legal flight task ring subset, and establishing a new first mixed integer linear programming model;
step 3.2.2: inputting the first legal flight task ring subset into the new first mixed integer linear programming model to obtain a new first flight task ring subset; dividing the new first flight task ring set into a new first legal flight task ring subset and a new first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring; and taking the first legal flight task ring subset as the first legal flight task ring subset, adding the flight task ring in the new first illegal flight task ring subset into the first illegal flight task ring subset, and updating the first illegal flight task ring subset.
In a possible embodiment, before step 3, removing the illegal flight connection from the set of flight connections;
the illegal flight connection comprises the condition that the accumulated time length of the illegal flight connection exceeds the maximum accumulated time length of a flight task ring and/or the interval time between flights at the front end and the rear end of the illegal flight connection is less than the minimum interval time of the flights.
In a possible embodiment, before step 3, the flight links used to generate the flight mission ring of the fixed itinerary are removed from the set of flight links.
Referring to fig. 3, fig. 3 is a schematic diagram of an embodiment of a computer-readable storage medium according to the present invention, wherein a computer program 211 is stored on the computer-readable storage medium, and when the computer program 211 is executed by a processor, the following steps are implemented:
step 1: acquiring a flight set A generated by participating in a flight task ring;
step 2: connecting the flights in the flight set pairwise to generate a flight connection set;
and step 3: and taking the maximum efficiency values of all flight connecting lines in the flight task ring as an objective function, constructing constraint conditions according to the outgoing degree and the incoming degree of the flight connecting lines, establishing a mixed integer linear programming model, and inputting the flight connecting line set into the mixed integer linear programming model to obtain a legal flight task ring set R.
In a possible embodiment, the mixed integer linear programming model comprises a first mixed integer linear programming model and a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
step 3.1: inputting the flight connecting line set into the first mixed integer linear programming model to obtain a first flight task ring set;
step 3.2: dividing the first flight task ring set into a first legal flight task ring subset and a first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring;
step 3.3: inputting the first illegal flight task ring subset into the second mixed integer linear programming model to obtain a second flight task ring set;
the legal flight task ring set R comprises flight task rings in the first legal flight task ring subset and the second legal flight task ring set;
the accumulated time of the flight task rings in the first legal flight task ring subset does not exceed the maximum accumulated time of the flight task rings;
the accumulated time of the flight task rings in the first illegal flight task ring subset exceeds the maximum accumulated time of the flight task rings;
an objective function M of the first mixed integer linear programming model1The expression of (a) is:
the constraints of the first mixed integer linear programming model include:
wherein A is
iAnd A
jAll flights in the flight set A; when flight A
iConnecting back flight A
jWhen the temperature of the water is higher than the set temperature,
get 1, otherwise X
ijTaking 0; omega
ijFor flight A
iWith flight A
jSetting an efficiency weight value of a flight line formed by connection; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mFor flights in the subset of flights B; c is a flight subset of the flight set A with the starting station as the base, C
nFor flights in the subset of flights C; d is a subset of flights in the flight set A whose arrival station is the base, D
lFor flights in the subset of flights D;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the second mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight subset A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is the maximum accumulated time of the flight mission ring; b is
mkThe flights in the flight subset B which are positioned in a flight task ring k; c
nkThe flights in the flight subset C which are positioned in a flight task ring k; d
lkThe flights in the flight subset D which are positioned in the flight task ring k are selected.
In a possible embodiment, the mixed integer linear programming model comprises a second mixed integer linear programming model;
the method for obtaining the legal flight task ring set R comprises the following steps:
inputting the flight connecting line set into a second mixed integer linear programming model to obtain a legal flight task ring set R;
an objective function M of the second mixed integer linear programming model2The expression of (a) is:
the constraints of the mixed integer linear programming model include:
wherein A is
ikAnd A
jkAll flights in the flight set A located in a flight task ring k;
for flight A
ikWith flight A
jkSetting an efficiency weight value of a flight line formed by connection; when flight A
ikConnecting back flight A
jkWhen the temperature of the water is higher than the set temperature,
get 1, otherwise
Taking 0;
for flight A
ikBeginning to flight A
jkThe duration of the end; t is the maximum accumulated time of the flight mission ring; b is a flight subset of the flight set A, wherein the departure station and the arrival station are not bases, and B
mkThe flights in the flight subset B which are positioned in a flight task ring k; c is a flight subset of the flight set A with the starting station as the base, C
nkThe flights in the flight subset C which are positioned in a flight task ring k; d is a subset of flights in the flight set A whose arrival station is the base, D
lkThe flights in the flight subset D which are positioned in the flight task ring k are selected.
In a possible embodiment, further comprising:
and 4, step 4: inputting the legal flight task ring set R into a mixed integer linear fraction planning model to obtain a final legal flight task ring set;
an objective function M of the mixed integer linear fraction programming model3The expression of (a) is:
the constraints of the mixed integer linear programming model include:
wherein R is
p、R
qAnd R
rAll flight task rings in the legal flight task ring set R;
for flight task ring R
pWith flight task ring R
qSetting effect of performing splicing processingA rate value; when the ring R is matched with the flight task
pBackward and flight task ring R
qWhen the splicing treatment is carried out,
get 1, otherwise
Take 0.
In a possible embodiment, before step 3.3, the following steps are further included:
step 3.2.1: updating the constraint conditions of the first mixed integer linear programming model according to the flight task rings in the first legal flight task ring subset, and establishing a new first mixed integer linear programming model;
step 3.2.2: inputting the first legal flight task ring subset into the new first mixed integer linear programming model to obtain a new first flight task ring subset; dividing the new first flight task ring set into a new first legal flight task ring subset and a new first illegal flight task ring subset according to the maximum accumulated duration of the flight task ring; and taking the first legal flight task ring subset as the first legal flight task ring subset, adding the flight task ring in the new first illegal flight task ring subset into the first illegal flight task ring subset, and updating the first illegal flight task ring subset.
In a possible embodiment, before step 3, removing the illegal flight connection from the set of flight connections;
the illegal flight connection comprises the condition that the accumulated time length of the illegal flight connection exceeds the maximum accumulated time length of a flight task ring and/or the interval time between flights at the front end and the rear end of the illegal flight connection is less than the minimum interval time of the flights.
In a possible embodiment, before step 3, the flight links used to generate the flight mission ring of the fixed itinerary are removed from the set of flight links.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (modules, systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.