01 · The research (2023)
How efficiently do Türkiye’s airports turn resources into service?
My M.Sc. research at Istanbul Commerce University, supervised by Assoc. Prof. Dr. Berk Ayvaz, measured the efficiency of airports in Türkiye with Data Envelopment Analysis (DEA). The journal article (2023) analysed 42 airports with 2020 data; the thesis extended the analysis to 2017–2021.
Each airport is a decision-making unit with 5 inputs (employees, operating expenses, terminal area, runways, aprons) and 4 outputs (aircraft, passenger and cargo traffic, operating revenue), taken from the public annual reports of DHMİ.
- Deterministic DEA: CCR (constant returns) and BCC (variable returns), each input- and output-oriented.
- Chance-constrained DEA, where constraints hold with a chosen probability; the thesis adds fuzzy DEA.
- Reference sets and potential improvement: (target − actual) / actual for every inefficient airport.
- Result: 10 of the 42 airports were efficient in every model. All models were solved in Python (Jupyter Notebook).
02 · From research to software
From one study to a general tool
In the study, each model was written out for one dataset. The explorer turns the same ideas into a general engine: any number of units, inputs and outputs, chosen by the user from a CSV file, solved in the browser.
- Two-stage solution: the radial score first, then the largest slacks with the score fixed — so weakly efficient units are recognised.
- Honest charts: an efficiency frontier is drawn only when two dimensions can show it exactly; otherwise the app explains why and shows rankings and reference sets.
- Private by design: CSV files are read in the browser and never uploaded.
- Sample data are synthetic and labelled as such; the article’s data is used only for validation, in a private archive.
03 · Architecture
Vue 3 and strict TypeScript, with the maths kept out of the UI
The engines are plain TypeScript modules with no Vue imports: the LP solver, the DEA models, CSV handling, validation and frontier geometry. Vue components only display results and collect choices. This keeps every calculation unit-testable on its own.
- components/lab/**Vue UI: choices and results
- useDeaSolverProgress, cancel, stale-run termination
- dea.worker.tsBackground thread
- lib/deaCCR/BCC, two stages, targets, CSV, validation, frontier geometry
- lib/lp/simplex.tsTwo-phase simplex
04 · Solver
A two-phase simplex written for DEA
Each unit needs its own small linear programme, solved twice. A dense two-phase primal simplex handles this well: phase 1 finds a feasible point, phase 2 optimises. DEA problems are highly degenerate, so pricing switches from Dantzig’s rule to Bland’s anti-cycling rule after a run of degenerate pivots. Every row is scaled by its variable’s mean; scores and λ are invariant to this, and slacks are scaled back.
05 · Web Worker
Large analyses never freeze the page
All linear programmes run in a Web Worker. The page shows progress for longer analyses and can cancel them. When a setting changes during a run, the running worker is stopped immediately instead of finishing unseen work, and a fresh worker takes the new request. The first result is computed while the page is built, so it opens with real numbers.
06 · Reproducing the paper
Every published score, reproduced
The strongest test of a re-implementation is the original result. Run on the article’s data, the explorer’s engine reproduces 168 of 168 published efficiency scores (42 airports × CCR/BCC × input/output, rounded to 3 decimals, as published). The data stays in a private test archive until its redistribution terms are confirmed.
07 · Independent check
Compared with an independent solver
The same models were solved with SciPy’s HiGHS solver, a separate implementation. On the 3 synthetic sample datasets × 4 models (188 unit–model pairs, 376 linear programmes), the largest difference in efficiency scores is 1.2 × 10⁻¹⁴, and in the stage-2 slack objective 4.8 × 10⁻¹³. The tests require agreement within 1.0 × 10⁻⁶.
A published textbook example (Cooper, Seiford & Tone, 2007; 12 hospitals) is also reproduced: 12 of 12 scores. It is kept privately for the same licensing reason.
08 · Testing and tolerances
What is tested, and how precisely
The whole site has 197 passing automated tests. For DEA they cover the solver on classic textbook LPs (including a known cycling case), the independent comparisons above, analytic cases, DEA properties (CCR output η = 1/θ, BCC ≥ CCR, every target scores 1 when re-solved, results independent of units), numerical edge cases (identical units, extreme magnitudes from 1e-6 to 1e9, near-ties, weak efficiency), CSV parsing and formula-injection protection, and the user interface.
- A score counts as 1 if |score − 1| ≤ 1.0 × 10⁻⁷; a slack counts if slack / mean > 1.0 × 10⁻⁷; a unit is a peer if λ > 1.0 × 10⁻⁷.
- Solver: pivot ≥ 1.0 × 10⁻¹⁰, optimality 1.0 × 10⁻¹⁰, feasibility 1.0 × 10⁻⁸.
- Speed (measured on the build machine): 500 units, 3 inputs, 2 outputs, BCC — 570 ms.
09 · Limitations
What it does not do (yet)
- Chance-constrained and fuzzy DEA from my article and thesis are not implemented yet; they are planned as separate phases after a review of their mathematics.
- Inputs must be positive and outputs non-negative; undesirable outputs, negative data, super-efficiency and Malmquist indices are not supported.
- Scores are unique; λ values and slacks can have alternative optimal solutions — the app reports one.
- Above about 1,000 units a full analysis takes seconds (it runs in the background and can be cancelled).
Sources and the app
Numbers on this page were generated from the test suite on 2026-11-30.