scieee AI-readable full text Open interactive document viewer

Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case

Zheng, Danlin

Abstract

Nowadays, the aircraft is the most used transport to travel between two very distanced places since it is the fastest way. For these last years, the demand of flights has been increasing immensely, so the airports have been also suffering the same increase in workload. Congestion is the word for the imbalance between demand and capacity. After applying a Ground Holding Program (GHP) optimization process before departure to solve this problem in a previous work [1], in this project the Air Holding Program (AHP) is presented in order to minimize the economic costs once in the landing phase. The main goal of this final degree project is to implement a basic model of AHP to minimize the delay costs near the single destination airport, Barcelona-El Prat in this case. The model of AHP is based on a dynamic stochastic GHP. The problem is solved using Gurobi libraries. Firstly, a pre-tactical phase in [1] of GHP is applied to make flights wait on ground according to capacity constraints in the Barcelona Airport. Then, once the flights are already flying towards the destination and entering the analysed area (500 km from destination airport), these flights will perform a Free Route Airspace (FRA) route in order to make them fly a straight route trajectory to possibly shorten the flight duration, which will cause that the arrival queue be again disordered making the capacity constraint again violated. In order to minimize the air delay costs, a second optimization to assign air delay is applied called AHP. Once the flights are leaving this airspace, they will be communicated their final assigned holding. Finally when they are entering the landing phase, they should first pass through the holding procedure to hold the time needed according to the delay assigned. Some of the conclusions after this research is that if capacity is reduced in destination airport, firstly a GHP can be applied before departure [1]. Then, an AHP can be applied for a second optimization purpose. If traffic is directly taken to be applied an AHP, the capacity flexibility is very reduced, while using pre-tactical regulation the capacity could be as small as desired. This outlines the advantage of using GHP and AHP together. Furthermore, although the main objective is to minimize the delay costs, if the flights are arriving earlier than scheduled in the most optimal case, the delays could be negative values, which means that costs are saved.

Full text

Final Degree Thesis TFG TITLE: Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case DEGREE: Degree in Air Navigation Engineering AUTHOR: Zheng Danlin ADVISOR: Adeline de Villardi de Montlaur DATE: September, 2015 Title : Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case Author: Zheng Danlin Advisor: Adeline de Villardi de Montlaur Date: September, 2015 Overview Nowadays, the aircraft is the most used transport to travel between two very distanced places since it is the fastest way. For these last years, the demand of flights has been increasing immensely, so the airports have been also suffering the same increase in workload. Congestion is the word for the imbalance between demand and capacity. After applying a Ground Holding Program (GHP) optimization process before departure to solve this problem in a previous work [1], in this project the Air Holding Program (AHP) is presented in order to minimize the economic costs once in the landing phase. The main goal of this final degree project is to implement a basic model of AHP to minimize the delay costs near the single destination airport, Barcelona-El Prat in this case. The model of AHP is based on a dynamic stochastic GHP. The problem is solved using Gurobi libraries. Firstly, a pre-tactical phase in [1] of GHP is applied to make flights wait on ground according to capacity constraints in the Barcelona Airport. Then, once the flights are already flying towards the destination and entering the analysed area (500 km from destination airport), these flights will perform a Free Route Airspace (FRA) route in order to make them fly a straight route trajectory to possibly shorten the flight duration, which will cause that the arrival queue be again disordered making the capacity constraint again violated. In order to minimize the air delay costs, a second optimization to assign air delay is applied called AHP. Once the flights are leaving this airspace, they will be communicated their final assigned holding. Finally when they are entering the landing phase, they should first pass through the holding procedure to hold the time needed according to the delay assigned. Some of the conclusions after this research is that if capacity is reduced in destination airport, firstly a GHP can be applied before departure [1]. Then, an AHP can be applied for a second optimization purpose. If traffic is directly taken to be applied an AHP, the capacity flexibility is very reduced, while using pre-tactical regulation the capacity could be as small as desired. This outlines the advantage of using GHP and AHP together. Furthermore, although the main objective is to minimize the delay costs, if the flights are arriving earlier than scheduled in the most optimal case, the delays could be negative values, which means that costs are saved. T´ıtulo: Programa de Espera en Aire Din´ amico para Asignaci´ on de Retrasos aplicado al Aeropuerto de Barcelona Autor: Zheng Danlin Director: Adeline de Villardi de Montlaur Fecha: Septiembre, 2015 Resumen Hoy en d´ ıa, el avi´ on es el transporte m´ as usado para viajar entre dos sitios muy lejanos ya que es la manera m´ as r´ apida. En estos ´ ultimo a˜ nos, la demanda de vuelos ha ido incrementando inmensamente, por lo que los aeropuertos tambi´ en han sufrido este aumento de carga de trabajo. El desequilibrio entre demanda y capacidad se denomina congesti´ on. Despu´ es de aplicar un Ground Holding Program (GHP) para resolver este problema en un trabajo anterior [1], en este proyecto se presenta el Air Holding Program (AHP) para minimizar los costes econ´ omicos una vez entrando en la fase de aterrizaje. El principal objetivo de este proyecto de final de grado es implementar un modelo b´ asico de AHP para minimizar los costes econ´ omicos cerca de un ´ unico aeropuerto de destino, Barcelona-El Prat. El modelo de AHP est´ a basado en un GHP din´ amico y estoc´ astico. El problema se ha resuelto usando la librer´ ıa de Gurobi. Para empezar, se aplica un GHP en fase pret´ actica para que los aviones esperen en tierra de acuerdo con la capacidad en el aeropuerto de Barcelona. Despu´ es, una vez que los aviones est´ en volando y entrando en el ´ area de estudio (500 km desde aeropuerto de destino), volar´ an en una ruta de Espacio A´ ereo Libre (FRA) haciendo posible que puedan llegar antes que su tiempo planificado. Esto puede causar que los aviones que estaban ordenados de manera que llegaran de acuerdo con la capacidad inicial, lleguen en una secuencia desordenada, haciendo incumplir la restricci´ on de capacidad. Para minimizar los costes de espera en aire, una segunda optimizaci´ on de asignaci´ on de retrasos en aire debe ser aplicada. Una vez que el avi´ on salga del ´ area de estudio, se le comunicar´ a su ”holding”(tiempo de espera en aire) final asignado, para que cuando lleguen al procedimiento de ”holding”, esperen el tiempo suficiente de acuerdo con el retraso asignado. Algunas de las conclusiones m´ as importantes despu´ es de este estudio es que si la capacidad es reducida, se puede implementar primeramente un GHP antes de su salida [1]. Y una vez que est´ en llegando, una segunda optimizaci´ on de espera en aire. Si la optimizaci´ on de la fase t´ actica fuese aplicada directamente sin haber pasado por la fase pret´ actica, puede conllevar la reducci´ on de flexibilidad en cuanto a la consideraci´ on de la capacidad. Si se han aplicado retrasos antes de despegar, la capacidad puede ser tan peque˜ na como sea la de fase pret´ actica. Esto remarca la ventaja de trabajar conjuntamente la fase pret´ actica y la fase t´ actica. Otra ventaja es que aunque la idea principal sea reducir costes por retrasos en aire, si estamos en el ´ optimo caso de que los aviones llegan antes de su tiempo planificado, se puede llegar a ahorrar costes econ´ omicos respecto el plan de vuelo planificado. ACRONYMS AA: Absorption Areas AAR: Airport Acceptance Rate AHP: Air Holding Program AIRAC: Aeronautical Information Regulation And Control AMAN: Arrival Manager AMSTAR: Airborne Merging and Spacing for Terminal Arrivals ATC: Air Traffic Centre ATCo: Air Traffic Controller ATFM: Air Traffic Flow Management ATM: Air Traffic Management CDM: Collaborative Decision Making CTA: Controlled Time of Arrival ETA: Estimated Time of Arrival FRA: Free Route Airspace FSFS: First Scheduled First Served GDP: Ground Delay Program GHP: Ground Holding Program GHPP: Ground Holding Policy Problem ID: Identification LP: Linear Programming NATS: National Air Traffic Services OPS: Air Operations RBS: Ratio by Scheduled STAR: Standard Terminal Arrival Route TFM: Traffic Flow Management vii To those who are still amazed by the flying airplanes in the sky. CONTENTS Acronyms ...................................... vii Acknowledgement ................................ 1 Introduction .................................... 3 CHAPTER 1. Statement of the Art Review . . . . . . . . . . . . . . . . 5 CHAPTER 2. Eurocontrol Data Processing with AWK . . . . . . . . 9 CHAPTER 3. Dynamic Air Holding Program using Matlab . . . . . . 13 3.1. Problem statement ............................... 13 3.1.1. Theoretical concept of Air Holding Program and Free Route Airspace 13 3.1.2. Hypothesis with the corresponding mathematical formulations . . . . 15 3.1.3. Tactical AHP Cost Function . . . . . . . . . . . . . . . . . . . . . . 21 3.1.4. Maximum Holding Time . . . . . . . . . . . . . . . . . . . . . . . . 22 3.1.5. Capacity Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.2. Optimization process explanation with some other hypothesis . . . . . . . 24 CHAPTER 4. Results and Analysis ..................... 27 4.1. AHP Program Testing .............................. 27 4.1.1. Flight Delay Evolution to test Dynamic Model . . . . . . . . . . . . . 27 4.1.2. AHP and RBS method Comparison . . . . . . . . . . . . . . . . . . 28 4.2. Parameters Dependant Results . . . . . . . . . . . . . . . . . . . . . . . . 30 4.2.1. Decreasing Holding Time . . . . . . . . . . . . . . . . . . . . . . . 30 4.2.2. Increasing AAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.2.3. Varying Studied Airspace Radii . . . . . . . . . . . . . . . . . . . . 33 4.3. Pre-tactical and Tactical Optimization Combination . . . . . . . . . . . . . 35 Conclusions .................................... 43 Future work .................................... 45 2 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case INTRODUCTION Nowadays, the fastest, safest and therefore the best way to travel from a place to another of the world is using an aircraft. In these last decades, where the technology has been improving day by day, it is not surprising that the most used transport is in the air. For these last years, the demand of flights has been increasing immensely, so the airports have been also suffering the same increase in workload. Since the capacity, a number of aircraft during a period of time within an area, either in the air or at the airports is limited, what could be improved to benefit from the maximum capacity is how the management of these flights are done. The airspace is divided into several sectors, each one being supervised by the Air Traffic Controllers (ATCo) and they have their maximum handleable workload. The capacity of each sector comes from this workload. The same could be said for the airports, since the tower controllers have the same limitations. Therefore, what should be studied with more importance among all other possible improvements to the Air Traffic Management (ATM) is how to arrange all the demanding traffic according to the capacity of the sectors, airports, etc. Congestion is the word for the imbalance between demand and capacity. After applying a Ground Holding Program (GHP) optimization process before departure to solve this problem in a previous work [1], in this project the Air Holding Program (AHP) is presented in order to minimize the economic costs once in the landing phase. In this Final Degree Project, the studies were done for a single airport model. In this case the Airport of Barcelona (LEBL) is chosen due to its proximity to the research laboratories and a major knowledge of its infrastructure. The Ground Delay Program (GDP) is used as a solution method for congestions when destination airport has a decrement of capacity. It is a traffic management procedure where aircraft are delayed at their departure airports in order to manage demand and capacity at their arrival airport. The Ground Holding Program (GHP) is finding the most optimal way to apply the Ground Delay Program. If there is a congestion so the aircraft has to wait in the air when arriving at destination airport due to capacity constraints, why not make it wait on the ground, since it reduces costs of fuel and safety with respect to air holding. The optimal method taking into account the meaning of delays to airlines, airspace and passengers is studied in a previous work as the pre-tactical phase (before departure) of this new GHP concept [1]: the pre-tactical phase study was a static (once and for all flights of a day) model focusing its attention on the cost function of the GHP when assigning new slots of departure to flights that should be delayed due to capacity limitation. Despite this solution applied before departure, the performance of a flight during the whole trip is unpredictable. Therefore, when arriving at destination airport and the airspace and airport are still congested, then the Air Holding Program might be the most direct and simplest method to at least minimize these air delays. Unlike the pre-tactical phase model of GHP, in the present document where the tactical phase model of Air Holding Program is presented, this model is using an AHP in a dynamic concept. Once the flights have been submitted to the pre-tactical phase optimization [1] and are arriving at a certain airspace between two radii near LEBL, the aircraft are 3 4 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case supposed to manage a free-route flight with a calculated average speed. Since the regulated slots of arrival have been disordered because of flying in straight line with free-route (they will not arrive as regulated according to capacity), this new tactical model of AHP is optimizing again the delays for those flights for the same capacity. The idea of this model is a simulator that optimizes the delay according to cost function of each flight inside this airspace. Every time that a new flight enters, the simulator is supposed to assign again the delays considering this new aircraft. The aircraft is supposed to fly with the average speed until holding point according to the Standard Terminal Arrival Route (STAR) procedure of LEBL, where it should make the assigned air holding. As a summary, once the studied flights of a given day have been delayed according to the pre-tactical model of GHP [1], the main goal of this study is to delay for a second time their arrival times making air holdings if necessary, which is due to free-route concept applied. Note that since this research is merely a theoretical and strategical first approach to an AHP model, it does not suppose any environmental impact to the nature or the society. In the next chapters, the statement of the art review, the whole process of data acquisition, problem and hypothesis statements, mathematical formulation, final results, conclusions and future work will be accurately explained. CHAPTER 1. STATEMENT OF THE ART REVIEW In recent years, the research on the Air Traffic Management (ATM) has been increasing in a fearsome speed. The most studied problem is the congestion caused by the imbalance between flight demand and airspace and airport capacities. The main goal of this research is focused on minimizing the costs of air delay by applying Air Holding Program (AHP) in a tactical phase. The idea of tactical phase is different in our study: the pre-tactical phase is considered as the time window of up to 7 days before the day of departure and the tactical phase the day of operation, as explained in [2]. But in our case, the tactical phase starts when arriving at 500 km from destination airport, in an en route time window. The tactical time window for delay optimization (make the aircraft wait in the air) is not as studied as the pre-tactical time window (make them wait on ground) since it means more economic costs. But as a general review, it is recommendable to search for the previous works and studies done for the both concepts, as well as for the general congestion solutions presented. One of the studies to solve congestion problems is presented in [3], they consider reducing delays due to congestion applying a method of trade-off between the capacity rate of departure and arrival. That is, under Collaborative Optimization, arrivals and departures are considered jointly and are treated as interdependent operations. When arrival capacity can be traded for departure capacity, Collaborative Optimization provides the best allocation of capacity to arrivals and departures to maximize the airport throughput and minimize delays. The resulting solutions provide the best capacity allocation strategies that take into account user priorities (e.g., preserving integrity of banks at hub airports). This presented optimization model can be used as a decision support tool for solving Traffic Flow Management (TFM) problems at airports, which is the same as our study, providing support tool for deciding delays assignment but in a tactical window. The other study found dealing with this problem is explained in [4], where an algorithm, called compression, restores system efficiency by moving flights earlier in time (and never later) to fill arrival slots vacated by cancelled or delayed flights. This is the exposed idea of Slot Exchange Mechanism. Regarding the slot allocation process in a pre-tactical (before departure) time window, many studies are found about this method: in [2], they use a new concept of Absorption Areas (AA) to absorb flights not using their slot due to disturbances such as weather or capacity constraints, by leaving unfilled slots during slot allocation process. Their results showed that it is a interesting way to improve air traffic throughput management. Some other studies focused their interest in predicting delays, which is slightly different from what is studied in this document. Here the delays are assigned regarding capacity constraints, and in this study [5] they present a new model for predicting departure, enroute, and arrival delays before departure. What is interesting for our research is that they also used the real European flight information ALL FT+data set for modelling process. Results show that arrival time can be predicted with 70 % confidence and ±30 minute tolerance 3 hours before departure. But if the tactical (en route flights) time window is considered, studies are found such as 5 6 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case in [6]: four algorithms have been designed to reduce the amount of delay in the terminal phase of light. The main idea here is to transfer and eliminate delay. They propose a strategy for transferring data between the systems and command centres, which are taken as the strategy proposed in this study regarding data transmission, and develop a process for assigning Controlled Times of Arrivals (CTA) to flights en route. Each algorithm is designed to prioritize criteria of fuel savings, throughput and equity but assigns different weights to these criteria. Their analysis suggests that RBS-based, that is landing slots are assigned in a first scheduled, first served (FSFS) manner known as Ration by Schedule (RBS), algorithms provide strong throughput performance. This improvement in throughput is likely achieved, however, at the expense of fuel usage. This study is very similar to ours. They consider flights when arriving at 1000 nmi (500 km for us) from destination airport and start the slot assignment process when reaching 500 nmi (50 km for us). They update this information every 15-30 minutes, we do it every time that a flight enters the 500 km radius, which is much more precise and realistic. The whole simulation is an iterative process to assign dynamically new slots (delays from scheduled planning times). Another paper [7] talked about the new airborne precision spacing model at terminal arrival routes. In other words, they studied the methods to space in time or distance the aircraft from the threshold, which is almost the same as we do but from 50 km of destination airport. This study investigated Airborne Merging and Spacing for Terminal Arrivals (AMSTAR) performance in long arrival sequences composed of diverse aircraft types ranging from light jets to heavy transports. Three arrival routes with two merge points were modelled, and two different merge frequencies were evaluated. Results of the study indicated that inter-arrival spacing was achieved within 10 seconds even with a diverse fleet of aircraft types having dissimilar final approach speeds and unequal spacing assignments. Reviewing the dynamic solution to GHP, in the study [8], they commented that research on probabilistic models of the Ground Holding Policy Problem (GHPP) has been limited to static solutions, producing ”once and for all” ground-holds at the beginning of daily operations. In their thesis, they present first a dynamic solution to the probabilistic GHPP based on a dynamic programming algorithm that exercises control on individual planes by deciding whether or not flights should be allowed to depart at each time period. The algorithms allow for general ground-hold cost functions for several aircraft classes and the cost of air delays is assumed to be identical for all planes, which is not the same as our study, where each flight will have a different cost for air delay due to fuel consumption. As a result, the dynamic stochastic programming algorithm performed significantly better than the static motivating the development and implementation of a very fast dynamic heuristic that works with a deterministic forecast. With this, the consistency of our dynamic stochastic (due to randomness of parameters such as Delay Noise from pre-tactical phase, as it will be explained in the main core of the document) model is ensured. Unlike the previous research, in [9] and [10], studies about cost functions are explained. The foundational principle of all basic and fair slot allocation processes is known as Ration by Schedule (RBS). The airlines consider this method to be fair. But in our cost functions more factors are considered to assign delays since RBS method is fair enough but not the most optimal method. Therefore, the airlines would also take advantage from our cost function, since they will save economic costs. For this study, they think that the equitable treatment of passengers is a topic much less considered, even though passengers are also important stakeholders in the National Air Traffic Services (NATS). In the same way, in a chapter of [11], Hanowsky considers flight cost functions that are proportional to the CHAPTER 1. STATEMENT OF THE ART REVIEW 7 number of passengers per flight. Regarding weather limitations in [12], an optimal algorithm is presented to update ground holding decisions as time progresses and more accurate weather (hence capacity) forecasts become available. In this study it is shown that the weather factor is a crucial limitation that directly affects the capacity for all stages of the flight. For instance, this research focused on a weather variable factor environment. The same could be found in [13], where Nilim et al. addressed weather related uncertainty in airspace condition in routing individual flights. They formulated a robust Markov Decision Process problem for dynamically re-routing an aircraft across convective weather impacted region. Decisions in their problem are aircraft speed and heading. Nevertheless, in our study the convective weather is not taken into account in order to not complicate the scenario in a very basic idea of dynamic AHP. Finally, in the academic literature, ground holding in Air Traffic Flow Management (ATFM) for a single airport was first introduced by Odoni in 1987 in [14], but as all previous research on this GHP problem, it has been restricted to the single-airport case, which neglects ”down-the-road” effects due to transmission of delays between successive flights performed by the same aircraft. This study has been done in [15], which was in a more realistic environment and the multi-airport case is of a major importance. Since each of a large number of aircraft performs more than one flight on any given day, ”network”(or ”down-the-road”) effects may be important: when a specific aircraft is delayed, in many cases the next flight performed by the same aircraft will also be delayed. Moreover, at a hub airport, a late-arriving aircraft may delay the departure of several flights, given current airline scheduling practices which emphasize passenger transfers. But in this study, huge scenarios has its inconvenience, which is of being a deterministic study (they presented the capacity as deterministic to simplify the problem statement), when a simpler scenario would allow stochastic modelling such as in our case (noise factor will be used to simulate real flight performance). After this brief summary of solutions studied in recent years for congestion problems and delays optimization, it is proven that almost all the researches and works were done for the time window before departure. The tactical time window (en route) solutions were rarely found, which makes more important and interesting this thesis on this field. Once the overall situation of the research on these ideas are reviewed, in the following chapters the main content of our study should be explained in detail. CHAPTER 2. EUROCONTROL DATA PROCESSING WITH AWK Before starting with the optimization process, it is necessary to obtain the information data of the flights that will be used and analysed using Matlab program. Since the goal is to assess the air traffic in Europe, the Eurocontrol flight data information is chosen to be considered as input data in this thesis. Eurocontrol flight data information is a source available to public. The only requirement is to be a related person such as students or researches, for industrial or academic purposes. The complete process to be followed to obtain the user account, to subscribe to DDR2/3 repository data and then be able to download the flight data is explained in the appendices (see A.1.). The file format of the flight data studied is ALL FT+, since it has the most complete and detailed structure of the data.1 Once the ALL FT+flight data files are downloaded and ready to be used. The next step is to filter the huge information it contains and only save the ones needed as Matlab input data. Since these files are big size files (more than 1GB), it is recommendable to use AWK software to read line by line the huge file and filter the data needed. The AWK utility interprets a special-purpose programming language that makes it easy to handle simple data-reformatting jobs. Therefore, it is the best option when dealing with big files with many unnecessary additional data. AWK script Because of the huge data to be filtered, it is recommendable to write a script2code with all the requirements to be met to obtain the input data for Matlab. As a first approach to the optimization model pretended to be studied, the input parameters in the script should be for a single-airport case. Thus, the hypothesis considered are: •Destination Airport: ”LEBL” (single-airport case for Barcelona Airport) •Origin Airport cannot be ”LEBL”. Avoids the flights that depart and also arrive at the same airport (LEBL) because these ones shall not be considered as commercial flights. •Origin Airport cannot be less than 50 km in distance to LEBL. •Date to be analysed should be defined every time the script is executed: ”20150524”. This makes that only the flights with Estimated Time of Arrival (ETA) on this day are considered. Departure times of these flights might be from a day before (long-haul flights). 1The last update of this format is for DDR3 repository, so the days to be analysed will be always from April 2015 onwards. This is the most detailed and corrected format of ALL FT+files. 2Note that the script is compatible with the previous thesis of the pre-tactical phase, which needs the departure flight information from Barcelona. Thus, in the script it will appear code only useful for pre-tactical phase thesis. 9 10 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case •Entry Point Radius from LEBL: 500 km. From this point of the trajectory, the aircraft is considered for optimization process making a free-route, this is, to fly in straight line towards LEBL. •Exit Point Radius from LEBL: 50 km. When arriving at this point flying with free-route, the delay (negative or positive) of this flight is assigned. •These parameters shall be changed for any other single airport case, modifying for different airports, dates and tactical area of optimization. The idea is to save the flight data of the aircraft entering this studied area near Barcelona airport to be able to make a sequence of arrival flights according to capacity constraints of the destination airport. To do so, the script is coded to read line by line the ALL FT+data file, where each line is the whole information of the trajectory of one aircraft from origin to destination airport, which should be Barcelona airport. Each line contains many columns with different data. The idea is to filter the ones needed and calculate others for the next steps in Matlab programming. For each line the script will search for the first point of the flight trajectory entering the Entry Point radius and save its point information. When the Entry point is located, then the script goes for the point of the trajectory that arrives to the Exit Point radius, and again saves the point information. The coordinates of these points are given in degrees minutes and seconds, for instance ”385222N0012223E”. Firstly these units should be converted to decimal degrees and afterwards to radians. Once this is done, to convert these units to kilometres from destination airport in straight line (i.e.: ”276.456 km”) the ”haversine” formula [16] to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface – giving an ”as-the-crow-flies” distance between the points is used. The mathematical formulation is shown below: a=sin2∆ϕ 2+cos ϕ1·cos ϕ2·sin2∆λ 2(2.1) c=2·arctan √1−a √a(2.2) d=R·c(2.3) Whereϕis latitude, λis longitude, R is earth’s radius (mean radius = 6371 km), ∆ϕ is the difference between the latitudes of the point and the LEBL airport. The same with the ∆λ as difference of longitudes3. The test of this method’s feasibility is shown in figure 2.1, where it can be proved that from ”385222N0012223E” (Ibiza Airport) to Barcelona Airport is 149 NM, which is about 276 kilometres in straight line. When all these information are saved, it continues with calculating the average speed of the flight inside this area by getting the distance in scheduled trajectory between the Entry 3Note that angles need to be in radians to pass to trig functions. CHAPTER 2. EUROCONTROL DATA PROCESSING WITH AWK 11 Figure 2.1: Skyvector testing Harvesine formulae veracity [17] and Exit Point in kilometres and also the time when arriving at each point to obtain the duration to travel this distance in trajectory: AverageSpeed(km/h) = Distance(km) Duration(hours)(2.4) This speed is used as the average speed the aircraft will fly at in straight line from Entry to Exit Point. Using the Harvesine Formulas the distance from Entry Point to LEBL and the distance from Exit Point to LEBL in straight line in kilometres are calculated. And then calculate the distance between these two points in straight line as simple as: Distance(km) = DistanceEntryPointtoLEBL −DistanceExitPointtoLEBL (2.5) When this is done, the next step is to calculate the time needed to fly from Entry to Exit Point in straight line: Duration(hours) = Distance(km) AverageSpeed(km/h)(2.6) Finally, it only remains to compute the new arrival time to Exit Point flying in straight line from Entry Point. This is as easy as getting the Entry Point Time (hhmmss), convert it into hours, sum the duration of equation 2.6 to this time and later convert it again into hhmmss format. When this new arrival time to Exit Point is calculated, this should be the new time to be considered as Exit Point Time for the Matlab optimization process to assign delays according to capacity and cost function.4 Since in the Eurocontrol database they made a floor round to all trajectory distances, the flights that also fly in straight line inside this area by scheduled trajectory will have a slightly 4Note that scheduled and real trajectory data will be saved to generalize the problem, if real flight data is empty, all the data saved for real data will be −1. 18 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case Figure 3.5: Process of creating Simulated M3 Figure 3.6: Example of whole optimization process added to the flights is randomly created in each simulation. The noise distribution (M3-M2) is studied in [1] to make more realistic the scenario since the regulated time is always different from the real performed flight profile. Thus, this is an intent of imitating the randomness of the real performance adding to the regulated (M2) time an extra time. Since the distribution study has found that there is no correlation between the different days of a week, it was impossible to find any known distribution patron followed by the different weekdays. For this reason, in a deeper study, only one day of a week during a month was studied (in our case we selected Saturdays in a first intent) and found that they follow a gamma distribution. But there were two different distribution function calculated since the set of Saturdays taken to be analysed their flights’ noise distribution has either negative and positive values. Thus, two different gamma distribution function were defined: •A total of 2115 flights were considered for this study: 879 flights with negative noise values and 1236 flights with positive noise values. •The negative values are inverted to positive values and follow a gamma distribution CHAPTER 3. DYNAMIC AIR HOLDING PROGRAM USING MATLAB 19 function with parameters of shape (1.220) and scale (5.533). •The positive values follow a gamma distribution function with parameters of shape (1.195) and scale (8.408). •An randomly created (following a Uniform Distribution) value from 0 to 1 is considered to classify if a flight is assigned with the negative (when value is equal or less than 879/2115) or positive (when this value is bigger than 879/2115) distribution function. •The noise is created for each flight using a random function following a gamma distribution with the corresponding parameters. Therefore, taking into account that only Saturdays were analysed the days to be optimized by the AHP model should be also Saturdays to keep this distribution consistent. The problem is solved using Linear Programming (LP) taking advantage of Gurobi libraries. The AHP is named after GHP in a tactical window, which means Air Holding. But the mathematical formulations are supposed to be the same as GHP model. It is designed to assign flight slots to a set of aircraft during its landing phase to an airport. At the beginning of the simulation, the whole day flight data is available and the user can filter the flights by their Entry Point Times. Once filtered, the N number of flights considered are defined as In={1,2,3,...,N}, indexed by ”i”. Since this thesis is dealing with dynamic optimization, some auxiliary vectors should be defined and the size of these vectors will always change for every iteration ”i”. A new iteration is started when a new aircraft of vector ”In” enters the studied airspace. This means that for every iteration ”i”, the size of the list of flights in that iteration is always variable. This auxiliary list of the considered flights of one iteration depending on ”i” is defined as L={1,2,3,...,n}, indexed by ”l”. The ”n” number of flights in L depends on the number of flights inside the airspace at the moment of the simulation (see Entry Time (09:00) in figure 3.2). All the flights that their new Exit Point Times are later than the actual time, which is the Entry Point Time of the newest entered flight, will be in this list L. A list of slots should be created St={1,2,3,...,s+T}, indexed by ”j”. The size of ”s+T” is from the earliest New Exit Point Time till the latest Scheduled Exit Point Time plus ”T” minutes (30 minutes of maximum holding time set as default) of the aircraft on list L. The slots must be of 1 minute interval time as default. For instance, if the earliest New Exit Point Time of all aircraft in the list L is 08:00 (being this slot the first element of the list St) and the latest Scheduled Exit Point Time is 08:30 (being this the slot corresponding to size ”s”), then the list St={08:00, 08:01, 08:02, ..., 09:00}, having size s+T=60. Furthermore, all the slots that were previously assigned to the already left flights should not be considered, as well as their neighbours due to capacity separation constraint. That is to say, if only one slot 08:03 was assigned and the capacity is 1 aircraft every 2 minutes (AAR 30) then the set of slots from 08:02 to 08:04 is not assignable neither. In the same example as before, the list is St={08:00, 08:01, 08:05, 08:06, ..., 09:00}, having size s+T=57. This will be the final size of the list St in the iteration ”i”. The capacity is a fixed scalar parameter during the whole simulation, for every optimization iteration ”i”. It is defined depending on AAR and S: 20 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case Figure 3.7: Process of creating auxiliary List ”L” C=f loor(AAR 3600)·S Since the slots are of 1 minute, the capacity C has always to be 1 too. Thus, the capacity is always defined as 1 aircraft every S seconds. The S has to be always seconds that are exact minutes (e.g. 60, 120, 180, etc.). For instance, when capacity is 1 aircraft every 2 minutes, AAR and S has to be combined to make C=1. In this case, AAR should be 30 and S 120. Therefore, the real capacity here is defined depending on S, which is the minutes that the aircraft has to be separated in the landing process.3 Variables definition: xl j= 1 or 0, ∀l∈{1,...,n}and ∀j∈{1,...,s+T} •xl j: Binary variable. It is ”1” if flight ”l” is assigned to slot Stj; ”0” otherwise. •Newl: New Exit Point Time slot in which flight ”l” was calculated to arrive. •(Sch +T)l: Scheduled slot (”Sch”) in which flight ”l” was planned to arrive plus 30 minutes (”T”). •S: Capacity of the destination airport, expressed as 1 aircraft every S seconds (exact minutes). 3Note that for LEBL airport the maximum capacity is AAR 42 but since in this study only exact minutes are considered for the capacity parameter then AAR 30 is selected, which is 1 aircraft every 2 minutes. But for bigger airports where its capacity is bigger (i.e.: AAR 120, 2 aircraft every minute) this model is not applicable because C has to be always 1. CHAPTER 3. DYNAMIC AIR HOLDING PROGRAM USING MATLAB 21 Problem Equations: (Sch+T)l ∑ j=Newl xl j =1,∀l∈{1,...,n}(3.1) Equation 3.1 is for the unicity constraint, which means that every aircraft only can land once over all its possible landing slots. n ∑ l=1 xl j ≤1 S/60,∀j∈{1,...,s+T}(3.2) Equation 3.2 is for the capacity constraint, which means that every aircraft only can arrive according to capacity of the destination airport. This sum should be less or equal than 1 divided by the capacity. This is limiting the number of aircraft that can enter in a slot depending on the capacity, in order to have them properly distributed among all the slots in list St. For instance, if S=120 (2 minutes) then in every slot only 0.5 aircraft can land, which is limiting 1 aircraft every 2 minutes conceptually. These slots are virtual slots since the important parameter here is the delay. The aircraft are supposed to fly till holding procedure and then make the holding corresponding to the delay assigned. Thus, the slot concept in this thesis is merely strategical, but useful to verify if the capacity constraint is met when analysing the results. 3.1.3. Tactical AHP Cost Function The cost function in tactical phase is looking for minimizing the cost of fuel consumption at holding altitude for the aircraft. Thus, first of all the fuel consumption should be defined, in an unit of litres per hour (L/h): n ∑ l=1 [K1l·K2l·K3l] Where: •K1 is the fuel in litres (kerosene) consumed per kilometre travelled for one seat. It varies depending if the trip is a short (0.02408 L/km), medium (0.02772 L/km) or long haul (0.02948 L/km). These are average values, considered from a table of aircraft types for each trip type [20]. •K2 is the speed in km/h at holding altitude depending on different categories of the aircraft [21]. For category ”L” it is 388.92 km/h, for ”M” it is 438.92 km/h and for ”H” it is 490.78 km/h. •K3 is the average seats the aircraft should have depending on the trip type [20]. For short it is 168 seats, for medium it is 260 seats and for long haul it is 346 seats. This will give a fuel consumption function of units [L/h]. 22 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case Then, the cost of this fuel consumption function should be defined as: n ∑ l=1 [K1l·K2l·K3l·K4] Where K4 is the price in euros ( e) per litre of the kerosene for propellant purposes [22]. In this case, 0.33 eper litre of fuel consumed. This gives the cost function units of [ e/h]. And finally, the eventual cost function should be: min n ∑ l=1 (Sch+T)l ∑ j=Newl [K1l·K2l·K3l·K4]·Dl j ·xl j (3.3) Where D is: Dl j[h] = Stj−(Sch)l(1+ε)(3.4) D is a vector of delays for every slot of every aircraft to see if the slot ”j” is assigned to aircraft ”l”, what would be the delay with respect its scheduled exit point time. Here εis defining the linearity of the delay function, set as ”0” as default. The cost function is expressed in units of euros ( e) to make more understandable to users. 3.1.4. Maximum Holding Time Since the Air Holding is considered in this thesis, the fact of making flights wait in air is unavoidable. Thus, if the aircraft have to wait in air, then how much time an aircraft can hold is a very critical point. The time an aircraft can fly is directly proportional to its fuel reserve, thus here the maximum delay time of 30 minutes at holding point is considered. From the subject of Air Operations (OPS) [23], every flight must have enough fuel to travel to destination airport, then to the alternate airport and still have fuel to hold at 1500 ft as shown in figure 3.8. If the flight is not deferred to alternate airport and enters to holding procedure to land, the 30 minutes of holding fuel reserved to be used in alternate airport could be used for this purpose of AHP. Thus, for the sake of safety, only 30 minutes of delay is allowed. 3.1.5. Capacity Limitations Since the capacity is the main problem when dealing with airspace congestion, in this section the capacity flexibility is explained. Although the main purpose of this thesis is minimizing the air delay according to cost function applying the free route concept, another very important objective is to adapt the capacity considered in the simulation to the real capacity at that moment at the destination airport. CHAPTER 3. DYNAMIC AIR HOLDING PROGRAM USING MATLAB 23 Figure 3.8: Capture from Operations (OPS) subject slides of fuel reserves [23] Generally, the capacity considered in tactical phase should be equal than the same considered in pre-tactical phase since the flights at departure were delayed according to this capacity. But now that they are already entering the studied area, if the capacity increases in this moment, it is still time to change the capacity of the simulator to make aircraft arrive even earlier than expected with pre-tactical capacity. Therefore, this will save more economic costs. But this is only useful when the capacity is increased with respect the capacity considered in pre-tactical phase, because it will not find any solution to this problem with these conditions if capacity is reduced and maximum holding time is still 30 minutes. If the reduced capacity is desired to be considered in tactical model, then the maximum holding time should be increased. This is a trade off between the capacity and the maximum holding time, since they are directly related. Nevertheless, if the maximum holding time is bigger than 30 minutes, for instance 45 to 60 minutes, this is breaking the safety requirement and consuming more fuel. Moreover, this is not even the optimal method to solve this problem when capacity is reduced respect pre-tactical phase, because a better solution is to deviate the flight to the nearest available airport instead of making it hold in air more than 30 minutes. The conclusion of this analysis is that for capacities smaller than the one considered in pre-tactical phase, the flights shall better be deferred to alternate airport more than keep waiting in air at holding point more than 30 minutes. 24 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case 3.2. Optimization process explanation with some other hypothesis Coming up next, the whole process of Matlab optimization assignment is explained step by step, showing some not mentioned hypothesis: 1. First of all, the data of M1 filtered using AWK are read saving them into vectors as variables. Also, the delay table with the list of assigned delays from pre-tactical phase is read. 2. The capacity is supposed to be equal or bigger than in Pre-tactical Phase: 1 aircraft every S minutes (how many aircraft the airport can accept each minute). 3. Remove the cancelled flights because they do not exist in tactical phase: delete the flight with −1. 4. Convert all the times needed for optimization from hhmmss format into seconds. 5. Solve the problem of Scheduled Exit Point Time (in trajectory) earlier than new Scheduled Exit Point Time (straight line): if it is earlier, make them equal. The new Exit Point Time can never be later than Scheduled. This might be already solved in step 4, when converting hhmmss to seconds and round function is applied to make all times in seconds be exact minutes. 6. Create Noise values for all the flights. Use the Gamma Distribution found in the data of M3−M2to generate these values. The distribution is only analysed for days on Saturday in this research to simplify the problem, so the days available to be studied should be also on Saturdays. These values will make every simulation have different results (stochastic model) since the noises are generated randomly.4 7. Add delay and noise to all the flights. See [1] for more information. 8. If the Entry, new Exit and Exit Point Times are later than ETA, then it means that this flight is departing a day before the day studied, thus, subtract 24 hours to those flights. Here negative values may appear. 9. Make a RBS delay assignment to all the flights to know the total delay with no cost function to be able to verify if the AHP is properly programmed (when unitary cost function is applied). Here the same capacity is considered. 10. Order all the flights from earliest to latest according to Entry Point Times. The flight should be considered once entered the 500 km radius. So they are all ordered respect their Entry Point Time to know which flights enter first. 11. Optimization loop starts. Add the first flight entering the Entry Point Radius to the optimization list (L). 12. The actual time during this simulation should be the entry time of this flight. 13. Linear cost function is considered:ε=0. 4This study of noise distribution is done in the pre-tactical phase [1]. CHAPTER 3. DYNAMIC AIR HOLDING PROGRAM USING MATLAB 25 14. Create the matrices for unicity and capacity constrains as defined in the equations 3.1 and 3.2. 15. Once determined all these vectors and matrices, the next step is to pass them to Gurobi Optimizer to obtain the resulting vector with the slots allocated for the flights in the list. Also the final cost is obtained in this step. 16. According to the vector of results from Gurobi, it is possible to create the vector of holding for each flight and also the cost. 17. From the holding vector, the delay vector is created. The holding vector is the holding time the aircraft should wait in air when arriving at holding procedure point. The delay vector is the delay time the flight will have once landed after doing the holding in air. It can be a negative value, when landing before scheduled time. 18. All these vectors are saved into a structure called Results, which will be increasing in size because in each iteration it will save the results of that simulation. The size of this structure should be the same as the number of flights of the day studied, because every time that a flight enters the area and is added to the list, it simulates one result for those flights in the list. 19. When the following flight is inside the airspace considered, the whole simulation starts again. Here the new flight is added to the list but also the flights that are arriving at 50 km and leaving the airspace, that is, when their new Exit Point Time is later than the actual time, are deleted from the list saving their last holdings, delays and other parameters assigned as final holdings and delays for those flights. These holdings and delays will be the ones to be communicated to the pilots. 20. The simulation will iterate as many times as the number of flights of a day studied has, if filter is not applied. Once finished the execution of Matlab Program containing all the steps mentioned above and obtained the desired results, the results are saved in two different tables for different analysis purposes. The table called ”Results” contains important parameters such as Flight Identification (ID), Holding time (min), Total Holding (min), Delay Time(min), Total Delay (min), Cost ( e), Total Cost ( e), Real Exit Time (hhmmss) and others of each flight in each simulation. This table provides the evolution of the flights delays when proceeding with the whole simulation. The table called ”ResultsFinal” contains almost the same parameters but only the last ones assigned when leaving the studied area. This is the most important table since it provides the final results after simulation. Also together with the results using AHP, the results of the RBS method simulation is also available here, in order to be able to compare them. The Real Exit Time in hhmmss (slots assigned) is not a analysable parameter but useful to check if the capacity constraint is properly met (see figure 3.9). It simulates as the aircraft has to wait at 50 km instead of holding point and indicates the time it should continue flying towards destination airport once hold that time there. But since the real idea is to continue flying when arriving at 50 km till holding procedure and then make the holding there, this 26 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case is just a parameter to check capacity veracity. Actually, the Exit Point should have been at holding point but in order to make simpler the problem, 50 km of radius is used. Figure 3.9: Example of Capacity of 1 aircraft every 3 minutes (S=180 seconds) Verification using Real Exit Time As seen in figure 3.9, the first marked blue column is the Real Exit Time Slots in ascending order and the second one is the difference in time between two consecutive slots (rows). It is proved that the minimum capacity requirement is met since the slots minimum separation time is 3 minutes, for S=180 seconds which means 1 aircraft every 3 minutes. The complete and commented main code of Matlab and the output files format of the tables of results are available in Appendix B.1. and B.2.. In the following chapter, the different results and analysis will be presented. CHAPTER 4. RESULTS AND ANALYSIS The results obtained from the simulation must be evaluated together with others by changing some parameters to verify its veracity and feasibility. The analysis is focused on the Saturdays from April 2015 onwards, due to Eurocontrol DDR3 ALL FT+format last update and noise distribution analysis. First of all, the consistency of the AHP program has to be proven. Then the analysis of some remarkable and interesting parameters will be presented. For these two sections, the pre-tactical delays will be taken into account and always considering the standard parameters values1. Finally, the advantage of combining the Pre-tactical Optimization with the Tactical Phase shall be explained in detail. For the general results, in order to validate the veracity and consistency of the output data and also to analyse some interesting aspects of the parameters, only one day has been chosen to be analysed in detail: 11-07-2015. 4.1. AHP Program Testing 4.1.1. Flight Delay Evolution to test Dynamic Model The simulation standard parameters for this subsection are: •Interval of study: 00:00:00 – 23:59:59 of 11/07/2015 •Airport: Barcelona (LEBL) •Maximum Holding Time: 30 minutes •Tactical AAR: 20 (constant during the whole day) •Entry Point Radius: 500 km •ε= 0 •AHP Cost Function: min∑n l=1∑(Sch+T)l j=Newl[K1l·K2l·K3l·K4]·Dl j ·xl j •Pre-tactical Delay (AAR 20) and Noise applied. From the most basic results of the table ”Results” (see Appendix B.2. for format definition and examples), it is possible to analyse the evolution of the flights along all the iterations, since it enters the airspace till it leaves it. After having optimized for all the flights of a day, 5 flights are selected to be shown their delay evolution to prove the dynamic method. A peak hour has been chosen (about 2 p.m.) in order to see more clearly the delay evolution of every flight since there will be more congestion. In figure 4.1, there is a plot for the flights delays through each iteration. The general tendency of all flights are from smaller values to bigger values, since as more iterations, 1Note that all delays and costs showed are tactical delays and costs until section 4.3. (delays and costs with respect M1+Regulation+Noise). 27 34 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case (a) Delay for increasing AAR (b) Cost for increasing AAR Figure 4.6: Delay and Cost for variable AAR when Pre-tactical AAR is fixed The last parameter to be analysed is the Entry Radius. Since the Exit Radius is 50 km, which is already the most approximated distance for Holding Procedures Point for LEBL case, this value will not be changed. The idea of modifying the Entry Radius is to know how would it affect the simulation process and the final results. When the radius is increased, it means that the airspace studied is bigger, thus there will be more flights to be considered inside the area for every iteration of the simulation but also more time for every aircraft to evolve. In the same way, when this radius is reduced, the area studied will also decrease, which means that there will be less flights and less time. The situation is that the bigger the airspace, the more time the simulation has to find the optimal assignment for every flight. In this way, it is the same to CHAPTER 4. RESULTS AND ANALYSIS 35 say that if the airspace is very small, it will not let the program iterate as much as to get the optimal solution. Here the Evolution Ratio is created to be able to analyse how many times an aircraft is iterated (assigned delay) when it is inside the airspace. This number is computed simply dividing the sum of the total number of iterations for every aircraft for the whole simulation by the total number of iterations (flights) of the simulation. The output is an average value for the evolution of each aircraft. This means how many times in average an aircraft is assigned delay. Therefore, if the Evolution Ratio is high, this will mean that the program will have more time (more iterations) to find the optimal solution. In the figure 4.7, two plots are shown for this purpose. The sub-figure 4.7(a) shows that when the evolution ratio is high (800 km radius) it means that every aircraft in average is optimized more times (15.18 iterations per AC since it enters till it leaves the studied area) which means that the bigger the airspace the more time spend the flights inside the area, letting possible the computation of an optimal solution. The prove is shown in sub-figure 4.7(b) and 4.7(c), where for the 800 km Entry Radius the delays and costs are the smallest because they have been iterated (optimized) more times and for 200 km the delays and costs are the biggest. Nevertheless, if a very big airspace is taken, the flights performance is very unpredictable because they are still very far away from the destination airport, thus it is like simulating for a pre-tactical time window already. But if a very small airspace is taken, the flights will be arriving very quickly, not letting the program have enough time (small evolution ratio) to process and find a better solution. Therefore, an intermediate distance (500 km) is considered in order to have a trade off between the optimal solution and the real performance of the flights. 4.3. Pre-tactical and Tactical Optimization Combination The major advantage of this thesis is that it takes as input data the delay assigned in Pre-tactical Phase according to capacity necessities. Thus, in this section, all the possible modifications to the capacity parameter for both phases will be explained here. Variable Capacity The simulation standard parameters for this subsection are: •Interval of study: 00:00:00 – 23:59:59 of 11/07/2015 •Airport: Barcelona (LEBL) •Maximum Holding Time: 30 minutes •Tactical AAR: 30 (constant during the whole day) •Entry Point Radius: 500 km •ε= 0 36 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case •AHP non-unitary Cost Function: min∑n l=1∑(Sch+T)l j=Newl[K1l·K2l·K3l·K4]·Dl j ·xl j •Pre-tactical Delay (AAR 30) and Noise applied and not applied. If the M1 flight data is directly taken into account for tactical optimization (pre-tactical phase neglected), the minimum capacity supported is of AAR 30, which is 1 aircraft every 2 minutes. If AAR 20 is applied, the program will not converge because there is no solution with these conditions (such as 30 minutes of maximum holding time, but not allowed to be increased due to capacity limitations as explained in section 3.1.5.). But if the delay of Pre-tactical Phase (plus noise) is added to this M1 flight data, with the same capacity (AAR 30) the delay on air will be much smaller, even negative, which means that the costs are being saved. Moreover, if capacity is even smaller (less than AAR 30, for instance AAR 20 or 12), the program is not able to find any solution (not convergent) due to demand and capacity imbalance. Nevertheless, adding the pre-tactical delays and noises for those AAR, the tactical optimization would be able to get results successfully, that is assigning delays to flights under desired conditions of maximum holding time, capacity, etc. This means that without Pre-tactical optimization, the tactical model is only able to assign delays for AAR 30 for the LEBL airport (AAR 60 is not supported by LEBL because maximum capacity supported is AAR 42), but if pre-tactical delays were assigned before departure, the capacity could be as small as desired (AAR 20, 12, etc.). At the following, in order to show the advantage of the combination of these two phases, two different results will be presented. The same AAR of 30 is taken for both cases, that is 1 aircraft every 2 minutes. One is the tactical result without the pre-tactical optimization process, that is taking directly M1 flight data and apply the tactical optimization. The other one is the result using the pre-tactical optimization, that is taking M1 and adding delay and noise assigned from pre-tactical phase. The difference will be shown in figure 4.8. As seen in figure 4.8, the delays and costs are interdependent, thus when the difference in delay increases the difference in cost does the same. But the most noteworthy point is that in general the differences in delays and costs are positive values and since these are the delays and costs without pre-tactical optimization minus the ones with them, the plots is confirming that there are less delays and costs when adding pre-tactical delays and noises. In order to see this result more clearly, the table 4.2 is presented, where the main values2 to prove this idea are shown. Delay Total (min) Cost Total ( e) Delay per AC (min) Cost per AC ( e) Without Pretactical 115 167.9 0.27 0.4 With Pretactical -191 -2912.1 -0.459 -7 Table 4.2: Delay and Cost without and with Pre-tactical Delay (AAR 30) In this table 4.2 the advantage of using pre-tactical optimization is proved since the total delay and cost are much smaller than taking directly the M1 data, with the same capacity, that is AAR 30. Now that the statement ”The usage of pre-tactical optimization in tactical phase makes smaller costs than only using M1 data when the same capacity is considered” is proved, 2Note that these delays are still delays with respect the virtual M3, which is M1+ Regulated M2+ Noise. CHAPTER 4. RESULTS AND ANALYSIS 37 it is time to proceed with decreasing AARs. In figure 4.9, the delays and costs values for decreasing AARs are shown. The simulation standard parameters for this subsection are: •Interval of study: 00:00:00 – 23:59:59 of 11/07/2015 •Airport: Barcelona (LEBL) •Maximum Holding Time: 30 minutes •Tactical AAR: 30, 20 and 12 (constant during the whole day) •Entry Point Radius: 500 km •ε= 0 •AHP non-unitary Cost Function: min∑n l=1∑(Sch+T)l j=Newl[K1l·K2l·K3l·K4]·Dl j ·xl j •Pre-tactical Delay (AAR 30, 20 and 12) and Noise applied. Notice that in the figure 4.9, the tactical delays and costs are successfully computed for AAR 30, 20 and 12 when directly taking M1 data it was not even possible except for AAR 30. Furthermore, when decreasing capacity, the delay and cost are increased as expected. In this case, the combination of pre-tactical and tactical optimization is useful when there is a decrement in capacity in the destination airport. For instance, the capacity was set to be AAR 42 (maximum supported in LEBL) in scheduled flight plan, but due to other circumstances the capacity is decreased to AAR 30. Then if pre-tactical optimization is not applied, there will be congestion at landing phase (115 minutes and 167.9 ein total for tactical optimization). Nevertheless, if pre-tactical optimization is applied, then the congestion problem when arriving at destination airport will be solved (283 minutes and 1860 ein total for pre-tactical optimization). Taking this into account, having delayed all the flights before departure, when arriving at landing phase at destination airport, the delays and costs will be saved (-191 minutes and -2912 ein total for tactical optimization). Therefore, in exchange of assuming delays and costs at pre-tactical phase, delays and costs are saved in tactical phase. The final results of applying these models are a delay saving of 23 minutes and a cost saving of 1220 ewith respect the delay and cost when taking directly scheduled flight plans. In order to see this more in detail, figure 4.10 is presented. The global results of this strategic combination are shown. The sum of GHP [1] and AHP total delay and cost are shown. The delays and costs shown in figure 4.10 for each AAR is with respect the ones with capacity considered in M1 flight plan. That is to say, if capacity is reduced to AAR 30, then the global delay after processing through all the optimization simulations will be 92 minutes, which means a global cost of -1052 e. 38 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case (a) AHP Evolution Ratio (b) AHP Delay (c) AHP Cost Figure 4.7: Plots of AHP Delay, Cost and Evolution Ratio for different Entry Radii CHAPTER 4. RESULTS AND ANALYSIS 39 (a) AHP Delay Difference (b) AHP Cost Difference Figure 4.8: Plot of AHP Delay and Cost Difference with and without Pre-tactical Optimization 40 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case (a) AHP Delay (b) AHP Cost Difference Figure 4.9: Plot of AHP Delay and Cost for decreasing AAR from Pre-tactical Optimization CHAPTER 4. RESULTS AND ANALYSIS 41 (a) GHP+AHP Delay (b) GHP+AHP Cost Figure 4.10: Plot of GHP+AHP Delay and Costs (Total Delay) for variable AAR 42 Dynamic Air Holding Program for Delay Assignment applied to Barcelona Airport Case CONCLUSIONS The main goal of this research is to implement a basic model of AHP to reduce economic costs when delaying flights in the air near the single destination airport, Barcelona-El Prat in this case. Firstly, a pre-tactical phase of GHP is applied to make flights wait on ground according to capacity constraints in the Barcelona Airport. Then, once the flights are already flying towards this destination and entering the analysed area, these flights will perform a FRA route in order to make them fly in the shortest route. This will cause that the already ordered arrival queue according to capacity considered in pre-tactical phase be again disordered because some flights would arrive earlier than scheduled. If these flights could arrive in a disordered sequence, then the capacity limitation pre-considered is now again violated. For this reason, a second optimization to assign air delay is applied called Air Holding Program. This model is delaying again these flights in the air to make them land at destination according to capacity. This model looks for a dynamic optimization method, which means that not all the flights are optimized ”once and for all” as in pre-tactical phase (traditional GHP optimization model). The aircraft inside the studied airspace have been assigned delays, but if any new flight enters this area, the simulator is automatically optimizing again to take into account this newest entered flight. In this way, the possible variations of delay assignment due to this new flight are taken into account. Furthermore, this model is capable of automatically deleting the flights that are leaving the airspace to not consider them any more because they are already entering the landing phase. These deleted flights will be communicated their final assigned holdings and delays after all the simulation process during their stay inside the area. Once they are entering the landing phase, they should firstly pass through the holding procedure to hold the time needed according to the delay assigned. The main noteworthy comments and conclusions after processing the whole simulation for several times for different analysis are: •This model is just a very basic model for a first approach of the AHP research. This means that many parameters and processes are simplified. •When capacity is reduced in destination airport, firstly a GHP can be applied before departure [1]. Then, an AHP can be applied for a second optimization purpose. If traffic is directly taken to be applied an AHP, the capacity flexibility is very reduced, while using pre-tactical regulation the capacity could be as small as desired. This outlines the advantage of using GHP and AHP together. •If unitary cost function is applied, then AHP model has the same policy than a RBS model. •The application of FRA concept in this tactical model is very advantageous since it makes possible the dynamic optimization and the cost saving in most optimal cases. •The main objective is to minimize the cost function but if the flights are arriving earlier than scheduled in the most optimal case, the delays could be negative values, which means that economic costs are saved with respect scheduled. •If Maximum Holding Time is reduced, total delay is increased. 43 APPENDIX A. EUROCONTROL FLIGHT DATA DOWNLOAD, AWK SOFTWARE UTILITY AND NEST TESTING A.1. Eurocontrol ALL FT+data file download One of the first’s steps in this project is to obtain the information that will be analyzed by the code developed. The study is focused on the European territory, so the best data source for this purpose is Eurocontrol. Now, the different steps to download data files are going to be explained. A.1.1. Eurocontrol User Registration and subscription to DDR2/DDR3 To access the information desired, the registration process is completely necessary to be accomplished in order to obtain the credentials. To do so, the OneSky online extranet service offered in the main page of Eurocontrol is visited, as shown in figure A.1 and then complete the self-registration process [24]. Figure A.1: Eurocontrol main webpage Once registered and also logged in, to be able to download the historical traffic data, access to the DDR2/3 has to be requested – Demand Data Repository, which is a platform containing daily flight data from the last years. To do so, the option “subscribe for online services” must be selected and then select DDR2. Notice that the request could not be processed instantly, so some days until complete access should be waited. A.1.2. ALL FT+data file download If the access to Demand Data Repository (DDR2/3) is already available, then a page similar to the figure A.2 should be shown. As seen in the figure A.2, there are a lot of file formats available (i.e. EXP2, SO6, ALL FT+. . . ), but the only one needed in this thesis is the ALL FT+because it has the most complete flight information needed. Note that it is mandatory to download only the ALL FT+format in order to be able to run the AWK script and consequently the Matlab 51 Figure A.2: Demand Data Repository – Historical Page code to perform the simulations. The information is structured by days, so a specific day should be selected (i.e. 11/07/2015 in figure A.2). A.2. AWK output data file In this section, the AWK software utility, the script code to be executed and the final output file desired will be explained in detail. A.2.1. AWK Utility In this web page [25] a brief introduction to AWK is available. In this case, the utility of this software is to read the huge All FT+file (usually more than 1 GB), line by line. Since there are many data to be filtered, it is very recommendable to make a script code with the filtering information needed and then execute this file in the AWK command. The script input would be the All FT+file, and the output should be data files obtained by “print” function from the script, which would then be the input to Matlab Program. A.2.2. Complete Commented Script Once the ALL FT +data file of the day to be analysed is downloaded and the AWK is installed. The next step is to code the script in order to filter only the information needed as the input for the Matlab program. Here the complete script code is presented below: ################################################################################ ##########################Final Degree Thesis################################### ############## AWK SCRIPT FOR ALL_FT+ DATA FILE FILTERING####################### ##################AUTORS: GUILLEM TARIN AND DANLIN ZHENG######################## #################Technical University of Catalonia (UPC)######################## ################################################################################ #################################JULY-2015###################################### ################################################################################ ################################################################################ #########################BEGIN SCRIPT CODE###################################### function LatLonRad(LATLON) #Function for latitude and longitude conversion from degrees to radians. { LAT=LATLON[1]LATLON[2]+(LATLON[3]LATLON[4])/60+(LATLON[5]LATLON[6])/3600;#Decimal degrees if (LATLON[7]== "S") { LAT=-LAT } LON=LATLON[8]LATLON[9]LATLON[10]+(LATLON[11]LATLON[12])/60+(LATLON[13]LATLON[14])/3600; if (LATLON[15]== "W") { LON=-LON } LAT=LAT*pi/180;#Radians LON=LON*pi/180;#Radians } #Begin the main code. BEGIN { # Input variables modifiable by the user: Airport="LEBL"; Date = "20150524"; #Date of the file you are analysing. RadiusEntry=500;#KM RadiusExit=50;#KM R=6378.1; #KM pi = atan2(0, -1); FS = ";" #column separator for input file OFS = ";" #column separator for out file } { # Input parameters rM1=$86; rM2=$100; rM3=$114; OrigID=$1; DestID=$2; RegistrationMark=$58; IfpsId=$7; AircraftTypeIcaoId=$5; n=split(rM1,M1," ") #Length of the array M1 g=split(rM2,M2," ") #Length of the array M2 k=split(rM3,M3," ") #Length of the array M3 #To get the first common variables: split (M1[1], M11, ":") split (M2[1], M21, ":") split (M3[1], M31, ":") split (M1[n], M12, ":") split (M2[g], M22, ":") split (M3[k], M32, ":") split (M12[7],LATLONAirport,""); LatLonRad(LATLONAirport) LATAirport=LAT; LONAirport=LON; split (M32[7],LATLONAirportR,""); LatLonRad(LATLONAirportR) LATAirportR=LAT; LONAirportR=LON; #Getting information from the departure airport (DEPARTURE FLIGHTS): if ((OrigID == Airport) && (DestID != Airport) && M12[5]>50) #The destination and origin airports must be different and destination airport must be farer than 50km. { split (M11[1],M111,""); # Split hours Date2 = M111[1]M111[2]M111[3]M111[4]M111[5]M111[6]M111[7]M111[8]; #Date of the data file Dif = Date-Date2; #We can have a departure flight on the same day or one day after, but not one day before. # If Dif = 0; the flights are in the same day. # If Dif = -1, one flight corresponds to the day analysed and the other one to the day after. # If Dif = 1, one flight corresponds to the day analysed and the other one to the day before. if (M31[1]== "")#If empty, flight has been cancelled { if((Dif == 0) || (Dif == -1))# We filter the flights according to the date { #M31[1] = -1; Flights that have M3 point empty mean that they have been cancelled. print RegistrationMark,IfpsId,AircraftTypeIcaoId,DestID,M11[1],-1> "ALL_FT_DEP.dat" } } else { if((Dif == 0) || (Dif == -1)) # We filter the flights according to the date { print RegistrationMark,IfpsId,AircraftTypeIcaoId,DestID,M11[1],M31[1]> "ALL_FT_DEP.dat" } } } split (M12[1],M121,""); # Split hours Date3 = M121[1]M121[2]M121[3]M121[4]M121[5]M121[6]M121[7]M121[8]; #Date of the data file Dif2 = Date-Date3; #If we are in the same day, the difference will be 0 # Getting information from the arrival airport (ARRIVAL FLIGHTS) counterS=1; counterR=1; #To search for two points if ((DestID==Airport) && (OrigID != Airport) && (Dif2 == 0) && M12[5]>50)# The destination and origin airports must be different, destination airport must be farer than 50km and the day studied. { if (AircraftTypeIcaoId=="A333" || AircraftTypeIcaoId=="A332" || AircraftTypeIcaoId=="A388" || AircraftTypeIcaoId=="B77W" || AircraftTypeIcaoId=="A306" || AircraftTypeIcaoId=="C550" || AircraftTypeIcaoId=="B763" || AircraftTypeIcaoId=="B764" || AircraftTypeIcaoId˜/AN/ || AircraftTypeIcaoId=="A380" || AircraftTypeIcaoId=="B747" || AircraftTypeIcaoId=="A340" || AircraftTypeIcaoId=="B777" || AircraftTypeIcaoId=="A350" || AircraftTypeIcaoId˜/MD/ || AircraftTypeIcaoId˜/Il/ || AircraftTypeIcaoId=="B787" || AircraftTypeIcaoId˜/L/ || AircraftTypeIcaoId=="A330" || AircraftTypeIcaoId=="B767" || AircraftTypeIcaoId=="A300" || AircraftTypeIcaoId=="A310" || AircraftTypeIcaoId=="A400" ) { Cat="H"; } else if (AircraftTypeIcaoId=="E120" || AircraftTypeIcaoId=="B738" || AircraftTypeIcaoId=="F900" || AircraftTypeIcaoId=="GALX" || AircraftTypeIcaoId=="C680" || AircraftTypeIcaoId=="E135" || AircraftTypeIcaoId=="C56X" || AircraftTypeIcaoId=="GLF4" || AircraftTypeIcaoId=="B733" || AircraftTypeIcaoId=="DH8D" || AircraftTypeIcaoId=="B734" || AircraftTypeIcaoId=="C750" || AircraftTypeIcaoId=="B739" || AircraftTypeIcaoId=="B752" || AircraftTypeIcaoId˜/H/ || AircraftTypeIcaoId=="B757" || AircraftTypeIcaoId˜/TU/ || AircraftTypeIcaoId=="A321" || AircraftTypeIcaoId=="B737" || AircraftTypeIcaoId=="A319" || AircraftTypeIcaoId=="A320" || AircraftTypeIcaoId=="A318" || AircraftTypeIcaoId˜/CS/ || AircraftTypeIcaoId=="B717" || AircraftTypeIcaoId=="E190" || AircraftTypeIcaoId=="F100" || AircraftTypeIcaoId=="RJ85" || AircraftTypeIcaoId=="E175" || AircraftTypeIcaoId=="E170" || AircraftTypeIcaoId˜/CR/ || AircraftTypeIcaoId=="Q400" || AircraftTypeIcaoId=="E145" || AircraftTypeIcaoId˜/AT/ || AircraftTypeIcaoId=="V800" || AircraftTypeIcaoId˜/DC/ || AircraftTypeIcaoId=="B377" || AircraftTypeIcaoId=="B707" || AircraftTypeIcaoId=="B720" || AircraftTypeIcaoId=="B727" || AircraftTypeIcaoId=="C880") { Cat="M"; } else if(AircraftTypeIcaoId=="E55P" || AircraftTypeIcaoId=="SW4" || AircraftTypeIcaoId=="C510" || AircraftTypeIcaoId=="C25A") { Cat="L"; } else { Cat="M"; } for (i=1;i<=n;i=i+1) #First loop to look for M1 entry point and exit point { split (M1[i],subfield,":"); # Split the different data of a point split (subfield[7],LATLON,""); DistS=subfield[5]; DistRestS=M12[5]-DistS;#Remaining distance from point to Destination. LatLonRad(LATLON) deltaLAT=LAT-LATAirport; deltaLON=LON-LONAirport; a=((sin(deltaLAT/2))ˆ2)+(cos(LATAirport)*cos(LAT)*((sin(deltaLON/2))ˆ2)); c=2*atan2(sqrt(a),sqrt(1-a)); DistanceS=R*c; #Km if ((DistanceS<=RadiusEntry && counterS==1) || (DistanceS<=RadiusExit && counterS==2)) #500 Km of radius for entry point and 50km of radius for exit point { if (DistanceS<=RadiusEntry && counterS==1) { DistRestS1=DistRestS; DistanceS1=DistanceS; LATLONS1=subfield[7]; TimeS1=subfield[1]; FLS1=subfield[4]; } if (DistanceS<=RadiusExit && counterS==2) { DistRestS2=DistRestS; DistanceS2=DistanceS; LATLONS2=subfield[7]; TimeS2=subfield[1]; FLS2=subfield[4]; } if(counterS==2) { split (TimeS1,TimeSHMS,""); TimeSH=TimeSHMS[9]TimeSHMS[10]+(TimeSHMS[11]TimeSHMS[12])/60+(TimeSHMS[13]TimeSHMS[14])/3600;#Hours split (TimeS2,FTimeSHMS,""); FTimeSH=FTimeSHMS[9]FTimeSHMS[10]+(FTimeSHMS[11]FTimeSHMS[12])/60+(FTimeSHMS[13]FTimeSHMS[14])/3600; if (FTimeSHMS[9]==0 && TimeSHMS[9]==2) { FTimeSH=FTimeSH+24 } TimeS1=TimeSHMS[9]TimeSHMS[10]TimeSHMS[11]TimeSHMS[12]TimeSHMS[13]TimeSHMS[14]; TimeS2=FTimeSHMS[9]FTimeSHMS[10]FTimeSHMS[11]FTimeSHMS[12]FTimeSHMS[13]FTimeSHMS[14]; MeanSpeedS=(DistRestS1-DistRestS2)/(FTimeSH-TimeSH) #Km/h NTimeH=(DistanceS1-DistanceS2)/MeanSpeedS;#Hours sec=(NTimeH+TimeSH)*3600;#Seconds #convert sec to h:m:s hour=sec/3600; Hour=int(hour); if (Hour<10) { Hour=0Hour } if (Hour==24) { Hour=00 } if (Hour>24) { aux=Hour-24; Hour=0aux; } mins=( sec / 60 ) % 60 ; Min=int(mins); if (Min<10) { Min=0Min } secs=sec % 60; Sec=int(secs); if (Sec<10) { Sec=0Sec } NETAS=Hour Min Sec; #New Scheduled Exit Point Time in hhmmss if (M22[1]== "") #If empty, scheduled = Regulated flight plan { M22[1] = M12[1]; } if (M31[1]== "")#If empty, flight has been cancelled { LATLONR1=-1; TimeR1=-1; DistanceR1=-1; FLR1=-1; NETAR=-1; MeanSpeedR=-1; DistRestR1=-1; LATLONR2=-1; TimeR2=-1; DistanceR2=-1; FLR2=-1; DistRestR2=-1; print RegistrationMark,IfpsId,AircraftTypeIcaoId,Cat,OrigID,M11[1],-1,M12[1],M22[1],-1,M12[5],-1, LATLONS1,TimeS1,DistRestS1,DistanceS1,FLS1,LATLONS2,TimeS2,DistRestS2,DistanceS2,FLS2,MeanSpeedS,NETAS, LATLONR1,TimeR1,DistRestR1,DistanceR1,FLR1,LATLONR2,TimeR2,DistRestR2,DistanceR2,FLR2,MeanSpeedR,NETAR > "ALL_FT_ARR.dat" } else { for (i=1;i<=k;i=i+1)#Second loop to look for M3 entry point and exit point once M1 entry point and exit point are found { split (M3[i],subfield,":"); split (subfield[7],LATLON,""); DistR=subfield[5]; DistRestR=M32[5]-DistR; LatLonRad(LATLON) deltaLAT=LAT-LATAirportR; deltaLON=LON-LONAirportR; a=((sin(deltaLAT/2))ˆ2)+(cos(LATAirportR)*cos(LAT)*((sin(deltaLON/2))ˆ2)); c=2*atan2(sqrt(a),sqrt(1-a)); DistanceR=R*c; #Km if ((DistanceR<=RadiusEntry && counterR==1) || (DistanceR<=RadiusExit && counterR==2))#500 Km of radius for entry point and 50km of radius for exit point { if (DistanceR<=RadiusEntry && counterR==1) { DistRestR1=DistRestR; DistanceR1=DistanceR; LATLONR1=subfield[7]; TimeR1=subfield[1]; FLR1=subfield[4]; } if (DistanceR<=RadiusExit && counterR==2) { DistRestR2=DistRestR; DistanceR2=DistanceR; LATLONR2=subfield[7]; TimeR2=subfield[1]; FLR2=subfield[4]; } if(counterR==2) { split (TimeR1,TimeRHMS,""); TimeRH=TimeRHMS[9]TimeRHMS[10]+(TimeRHMS[11]TimeRHMS[12])/60+(TimeRHMS[13]TimeRHMS[14])/3600;#Hours split (TimeR2,FTimeRHMS,""); FTimeRH=FTimeRHMS[9]FTimeRHMS[10]+(FTimeRHMS[11]FTimeRHMS[12])/60+(FTimeRHMS[13]FTimeRHMS[14])/3600; if (FTimeRHMS[9]==0 && TimeRHMS[9]==2) { FTimeRH=FTimeRH+24 } TimeR1=TimeRHMS[9]TimeRHMS[10]TimeRHMS[11]TimeRHMS[12]TimeRHMS[13]TimeRHMS[14]; TimeR2=FTimeRHMS[9]FTimeRHMS[10]FTimeRHMS[11]FTimeRHMS[12]FTimeRHMS[13]FTimeRHMS[14]; MeanSpeedR=(DistRestR1-DistRestR2)/(FTimeRH-TimeRH) #Km/h NTimeH=(DistanceR1-DistanceR2)/MeanSpeedR;#Hours sec=(NTimeH+TimeRH)*3600;#Seconds #convert sec to h:m:s hour=sec/3600; Hour=int(hour); if (Hour<10) {Hour=0Hour} if (Hour==24) {Hour=00} if (Hour>24) { aux=Hour-24; APPENDIX B. MATLAB MAIN CODE AND OUTPUT FILES FORMAT When expecting to present a final degree thesis in an engineering career, some programming software are used frequently, in this case, the main program used to code the AHP model is Matlab. The Matlab programming software is available for all students in UPC, the only requirement is to be connected to a UPC IP Address. B.1. Complete commented Matlab main code of Tactical AHP Here the complete Matlab main code is presented below (standard parameters’ values are considered): %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%% Final Degree Thesis %%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%% Matlab Code for AHP Tactical Phase Optimization %%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%% Autor: Danlin Zheng %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%% Technical University of Catalonia (UPC) %%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%% July-2015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%% BEGIN MAIN CODE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% clc; clear all; close all; %% Load data file [DoubleFlightData,StringFlightData]= ReadData(’ALL_FT_ARR(20150711).dat’, ’Delay_table_20150711_aar_20.dat’); %% Capacity Parameters AAR = 20; %Airport Acceptance Rate (each hour) S=180;% capacity is given every S seconds (1 minute = 60 seconds) C= floor(AAR/3600*S); % capacity: C aircraft every S seconds (how many aircraft the airport can accept each minute) %% Remove cancelled flights for tactical phase z=1; while z<=length(DoubleFlightData.RealDepTime) 67 if (DoubleFlightData.RealDepTime(z)== -1) StringFlightData(z) = []; DoubleFlightData.SchDepTime(z) = []; DoubleFlightData.RealDepTime(z) = []; DoubleFlightData.SchArrTime(z) = []; DoubleFlightData.RegArrTime(z) = []; DoubleFlightData.RealArrTime(z) = []; DoubleFlightData.SchTotalDist(z) = []; DoubleFlightData.RealTotalDist(z) = []; DoubleFlightData.SchTimeEntry(z) = []; DoubleFlightData.SchRemainDistTrajEntry(z) = []; DoubleFlightData.SchDistanceStraightEntry(z) = []; DoubleFlightData.SchFLEntry(z) = []; DoubleFlightData.SchTimeExit(z) = []; DoubleFlightData.SchRemainDistTrajExit(z) = []; DoubleFlightData.SchDistanceStraightExit(z) = []; DoubleFlightData.SchFLExit(z) = []; DoubleFlightData.SchMeanspeed(z) = []; DoubleFlightData.SchNExitT(z) = []; DoubleFlightData.RealTimeEntry(z) = []; DoubleFlightData.RealRemainDistTrajEntry(z) = []; DoubleFlightData.RealDistanceStraightEntry(z) = []; DoubleFlightData.RealFLEntry(z) = []; DoubleFlightData.RealTimeExit(z) = []; DoubleFlightData.RealRemainDistTrajExit(z) = []; DoubleFlightData.RealDistanceStraightExit(z) = []; DoubleFlightData.RealFLExit(z) = []; DoubleFlightData.RealMeanspeed(z) = []; DoubleFlightData.RealNExitT(z) = []; DoubleFlightData.DelaysPre(z) = []; z=1; else z=z+1; end end %% Converting needed times to seconds for i=1:length(DoubleFlightData.SchArrTime) SchArrTime_str = num2str(DoubleFlightData.SchArrTime(i)); %Schedule Arrival Time (convert double to string) if(length(SchArrTime_str(1,:))>6) SchArrTime_str = strcat(SchArrTime_str(1,9),SchArrTime_str(1,10),SchArrTime_str(1,11), SchArrTime_str(1,12),SchArrTime_str(1,13),SchArrTime_str(1,14)); end SchArrTime_dbl = str2double(SchArrTime_str); SchETA(i) = SchArrTime_dbl; end [SchETA_seconds] = minutes2seconds(SchETA); [SchTimeEntry_seconds] = minutes2seconds(DoubleFlightData.SchTimeEntry); [SchNExitT_seconds] = minutes2seconds(DoubleFlightData.SchNExitT); [SchTimeExit_seconds] = minutes2seconds(DoubleFlightData.SchTimeExit); SchDistance=DoubleFlightData.SchTotalDist; %% Modifying Exit Point Times (Later New Scheduled Time to be as Scheduled Exit Times) for i=1:length(SchNExitT_seconds) if(SchNExitT_seconds(i)>SchTimeExit_seconds(i)) SchNExitT_seconds(i)=SchTimeExit_seconds(i); end end %% Create Noise for Pretactical Delays for p=1:length(DoubleFlightData.DelaysPre) neg=round(879/2115,4); x=rand(1,1); if (x<=neg) Z=gamrnd(1.220,5.533); NoisePre(p)=round(Z)*-1; else Z=gamrnd(1.195,8.408); NoisePre(p)=round(Z); end end %% Sum of the delay and noise from pretactical optimization for i=1:length(DoubleFlightData.DelaysPre) for n=1:length(DoubleFlightData.DelaysPre) tf=strcmp(char(StringFlightData(i).FlightIDDelay),char(StringFlightData(n).FlightID)); if (tf==true) SchETA_seconds(n)=SchETA_seconds(n)+DoubleFlightData.DelaysPre(i)*60+NoisePre(i)*60; SchTimeEntry_seconds(n) = SchTimeEntry_seconds(n)+ DoubleFlightData.DelaysPre(i)*60+NoisePre(i)*60; SchNExitT_seconds(n) = SchNExitT_seconds(n)+ DoubleFlightData.DelaysPre(i)*60+NoisePre(i)*60; SchTimeExit_seconds(n) = SchTimeExit_seconds(n)+ DoubleFlightData.DelaysPre(i)*60+NoisePre(i)*60; end end end %% Modifying Scheduled Entry Point, Exit Point and New Exit Point Times (Later times than Scheduled ETA to -24h) for w=1:length(SchETA_seconds) if (SchTimeEntry_seconds(w)>SchETA_seconds(w)) SchTimeEntry_seconds(w)= SchTimeEntry_seconds(w)-86400; end if (SchNExitT_seconds(w)>SchETA_seconds(w)) SchNExitT_seconds(w)= SchNExitT_seconds(w)-86400; end if (SchTimeExit_seconds(w)>SchETA_seconds(w)) SchTimeExit_seconds(w)= SchTimeExit_seconds(w)-86400; end end %% RBS using Scheduled Exit Time interval_RBS=60; time_arrival_RBS=(min(SchNExitT_seconds):interval_RBS:max(SchNExitT_seconds)+86400); [FlightIDRBS,RBSDelay,RBSRealExitTime,SchNExitTRBS,SchExitTRBS,CostRBS] = RBS(StringFlightData,SchNExitT_seconds,SchTimeExit_seconds, time_arrival_RBS,S,SchDistance); %% Order from earliest to latest flights respect Entry Point Time [SchTimeEntry_seconds_ordered,index] = sort(SchTimeEntry_seconds); %Order regarding Entry Point Time %Ordering FlightID, Scheduled New Exit Time, Scheduled Exit Time, Scheduled %Distance and Category. for i=1:length(index) FlightID_ordered(i) = cellstr(StringFlightData(index(i)).FlightID); SchNExitT_seconds_ordered(i) = SchNExitT_seconds(index(i)); SchTimeExit_seconds_ordered(i) = SchTimeExit_seconds(index(i)); SchDistance_ordered(i)=SchDistance(index(i)); Category_ordered(i) = cellstr(StringFlightData(index(i)).Category); end Category=Category_ordered’; FlightID=FlightID_ordered’; SchTimeEntry_seconds=SchTimeEntry_seconds_ordered; SchNExitT_seconds=SchNExitT_seconds_ordered’; SchTimeExit_seconds=SchTimeExit_seconds_ordered’; SchDistance=SchDistance_ordered’; clear Category_ordered; clear FlightID_ordered; clear SchTimeEntry_seconds_ordered; clear SchNExitT_seconds_ordered; clear SchTimeExit_seconds_ordered; clear SchDistance_ordered; clear index; %% Filtering to check the simulation %Only filter if needed, by default this filter will save all flights of the %day. [FlightID,SchTimeEntry,SchNExitT,SchTimeExit,Category,SchDistance] = filter_flights(FlightID,SchTimeEntry_seconds,SchNExitT_seconds,SchTimeExit_seconds,Category,SchDistance); %% Optimization Loop %First loop parameters Result=[]; Categorynew=[]; SchDistancenew=[]; SchNExitTnew=[]; SchTimeExitnew=[]; FlightIDnew=[]; FlightIDFinal=[]; CategoryFinal=[]; CostFinal=[]; SchDistanceFinal=[]; DelayFinal=[]; HoldingFinal=[]; RealExitTimeFinal=[]; SchEntryFinal=[]; SchNExitTimeFinal=[]; SchTimeEntrynew=[]; SchTimeExitFinal=[]; InvalidSlots=[]; count=1; for i=1:length(SchTimeEntry) %% Updating parameters actualtime=SchTimeEntry(i); if (i<=length(SchNExitT)) Categorynew=[Categorynew;Category(i)]; SchDistancenew=[SchDistancenew;SchDistance(i)]; SchNExitTnew=[SchNExitTnew;SchNExitT(i)]; SchTimeExitnew=[SchTimeExitnew;SchTimeExit(i)]; FlightIDnew=[FlightIDnew;FlightID(i)]; SchTimeEntrynew=[SchTimeEntrynew; SchTimeEntry(i)]; z=1; while z<=length(SchNExitTnew) if (actualtime>=SchNExitTnew(z)) FlightIDFinal=[FlightIDFinal;FlightIDnew(z)]; CostFinal=[CostFinal;CostF(z)]; CategoryFinal=[CategoryFinal;Categorynew(z)]; SchDistanceFinal=[SchDistanceFinal;SchDistancenew(z)]; DelayFinal=[DelayFinal; Delay(z)]; HoldingFinal=[HoldingFinal;Holding(z)]; RealExitTimeFinal=[RealExitTimeFinal;RealExitTime(z)]; SchEntryFinal=[SchEntryFinal; SchTimeEntrynew(z)]; SchNExitTimeFinal=[SchNExitTimeFinal;SchNExitTnew(z)]; SchTimeExitFinal=[SchTimeExitFinal;SchTimeExitnew(z)]; InvalidSlots(count)=Delay(z)*60+SchTimeExitnew(z);% in seconds Delay(z)=[]; Holding(z)=[]; CostF(z)=[]; RealExitTime(z)=[]; FlightIDnew(z) = []; SchNExitTnew(z) = []; SchTimeExitnew(z) = []; SchTimeEntrynew(z)=[]; Categorynew(z)=[]; SchDistancenew(z)=[]; z=1; count=count+1; else z=z+1; end end end %% Problem parameters %Seconds of the time interval (1 min in this case) interval = 60; start=min(SchNExitTnew); finish=max(SchTimeExitnew)+1800; time_arrival=(start:interval:finish); ExitHold=SchTimeExitnew+1800; cost_parameter = ones(length(SchNExitTnew)); % Non unitary cost parameter: fuel consumtion at holding speed for c=1:length(SchDistancenew) if SchDistancenew(c)<=1900 %km tfl=strcmp(char(Categorynew(c)),’L’); if (tfl==true) cost_parameter(c)=0.02408*388.92*0.33*168; %Kerosene end tfm=strcmp(char(Categorynew(c)),’M’); if (tfm==true) cost_parameter(c)=0.02408*438.92*0.33*168; end tfh=strcmp(char(Categorynew(c)),’H’); if (tfh==true) cost_parameter(c)=0.02408*490.78*0.33*168; end end if SchDistancenew(c)>1900 && SchDistancenew(c)<=5600 tfl=strcmp(char(Categorynew(c)),’L’); if (tfl==true) cost_parameter(c)=0.02772*388.92*0.33*260; end tfm=strcmp(char(Categorynew(c)),’M’); if (tfm==true) cost_parameter(c)=0.02772*438.92*0.33*260; end tfh=strcmp(char(Categorynew(c)),’H’); if (tfh==true) cost_parameter(c)=0.02772*490.78*0.33*260; end end if SchDistancenew(c)>5600 tfl=strcmp(char(Categorynew(c)),’L’); if (tfl==true) cost_parameter(c)=0.02948*388.92*0.33*346; end tfm=strcmp(char(Categorynew(c)),’M’); if (tfm==true) cost_parameter(c)=0.02948*438.92*0.33*346; end tfh=strcmp(char(Categorynew(c)),’H’); if (tfh==true) cost_parameter(c)=0.02948*490.78*0.33*346; end end end % Linearity parameter epsilon = 0; % cost factor: 0-> linear cost, 1-> cuadratic cost %% Create the constraint matrices %Initializing Parameters roweq=length(SchNExitTnew); rowineq=size(time_arrival,2)-S/60+1+length(SchNExitTnew); column=size(time_arrival,2)*length(SchNExitTnew); eqcondition=zeros(roweq,column); ineqcondition=zeros(rowineq,column); slots = 0; f=[]; Cost=[]; for n = 1:length(SchNExitTnew) for j = 1:size(time_arrival,2) eqcondition(n,j+slots) = 1; % Unicity of arrival constraint if j<=size(time_arrival,2)-S/60+1 for r=1:(S/60) ineqcondition(j,j+slots+r-1) = 1; % Capacity constraints if (time_arrival(j+r-1)-SchNExitTnew(n)<0) f1=0; else f1=time_arrival(j+r-1)-SchNExitTnew(n); end f(j+slots+r-1) = f1; %Seconds D=f1+SchNExitTnew(n)-SchTimeExitnew(n);%in seconds Cost(j+slots+r-1)=(cost_parameter(n)*(D/3600))ˆ(1+epsilon); %Euros end end if (i>1) b=1; found=false; while (b<=length(InvalidSlots) && found==false) if (time_arrival(j)<=(InvalidSlots(b)-S) || time_arrival(j)>=(InvalidSlots(b)+S)) %Nothing to do else found=true; % True if this slots is not available due to capacity constraints. end b=b+1; end if SchNExitTnew(n)<=(time_arrival(j)) && ExitHold(n)>=time_arrival(j) && found==false %Nothing to do else ineqcondition(n+size(time_arrival,2)-S/60+1,j+slots) = 1; % Avoid arriving before minimum exit time and 30 min after scheduled exit time. end else if SchNExitTnew(n)<=(time_arrival(j)) && ExitHold(n)>=time_arrival(j) %Nothing to do else ineqcondition(n+size(time_arrival,2)-S/60+1,j+slots) = 1; Figure B.1: Example of Results Table of 11th July 2015 4. Scheduled Entry Point Time [hhmmss]:”-01:50:00” 5. New Exit Point Time [hhmmss]: ”00:26:00” 6. Scheduled Exit Point Time [hhmmss]: ”00:26:00” 7. Final Holding Assigned [minutes] From AHP: ”0” 8. Final Delay Assigned [minutes] From AHP: ”0” 9. Final Cost [ e]: ”0” 10. Real Exit Time [hhmmss] From AHP: ”00:26:00” 11. Aircraft ID From RBS: ”AA43502236” 12. New Exit Point Time [hhmmss] From RBS: ”00:26:00” 13. Scheduled Exit Point Time [hhmmss] From RBS: ”00:26:00” 14. Final Delay Assigned [minutes] From RBS: ”0” 15. Final Cost Assigned [ e] From RBS: ”0” 16. Real Exit Time [hhmmss] From RBS: ”00:26:00” In the figure B.2 it shows an example of this format. With the files’ format defined, these files are ready to be analysed in the corresponding chapter. Figure B.2: Example of ResultsFinal Table of 11th July 2015