Giter Site home page Giter Site logo

lroyland / airline-hubs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dwave-examples/airline-hubs

0.0 1.0 0.0 36.17 MB

Determine which airports should be hub locations for an airline. Solved using the LeapHybridDQMSampler.

License: Apache License 2.0

Python 100.00%

airline-hubs's Introduction

Linux/Mac/Windows build status

Airline Hub Locations

A challenging optimization problem in the airline industry is determining which airports should be hub locations for an airline. In this demo, we show how to formulate this problem as a discrete quadratic model and use a hybrid solver to optimize and find feasible solutions.

The goal for this problem is to minimize costs for the airline, while providing transportation for all city pairs in demand by passengers.

Running the Demo

To run the demo, type

python demo.py

The program will select 3 hubs out of a list of 25 different airports. The information in the files flow.csv and cost.csv is used to determine the optimal selection of hub airports, based on passenger flow and airline costs found in these files.

A GIF will be produced that illustrates the feasible results found by the hybrid solver, as shown below.

output

Formulating the Problem

In order to minimize costs, the airlines must consider several factors.

  1. The cost to operate a non-stop route (sometimes referred to as a leg). Note that costs between hub airports are discounted.
  2. The passenger demand for each leg (called the flow).

The demo reads in both of these factors from provided data files (cost.csv and flow.csv, respectively).

We have several additional constraints that must be satisfied in order for a route map to be feasible.

  1. Every leg must connect to a hub.
  2. Passengers only connect at hub airports.
  3. Only p hubs total.

The first two constraints ensure that any connecting airports are hubs.

References

O'Kelly, Morton E. "A quadratic integer program for the location of interacting hub facilities." European journal of operational research 32.3 (1987): 393-404.

airline-hubs's People

Contributors

vgoliber avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.