Giter VIP home page Giter VIP logo

wma's Introduction

Facility Location Algorithm

Algorithm for large-scale approximate capacitated facility location. Locates a set of facilities inside a road network, minimizing the sum of distances from each customer to the nearest available facility.

Codebase of the publication

A. Logins, P. Karras, C. S. Jensen, "Multicapacity Facility Selection in Networks", In Proceedings of the 35th IEEE International Conference on Data Engineering (ICDE 2019), Macao, Macao SAR, April 2019, pp. 794โ€“805. (pdf)

Dependencies

For experimental evaluation, Gurobi is used as a convex solver. Scripts folder contain a script for running Gurobi for all graphs in particular folder.

  • gurobi python solver + gurobi itself

Data formats

  • Results of optimization scripts are saved in json format to a file (one file per experiment)
  • Each experiment === one graph, names and tagged by unique string id
  • internal graph structure is saved in .ntw format, that is adjacency list and list of sources
  • Full graph information is generated by getGraphInfo.py script and saved in a separate file

Graphs are stored in internal graph representation, called .ntw

Installation

# Debug level: 0 - no checks, 1 - feasibility check, 2 - statistics output
# If Google Protobuf is installed, use -DOSM=ON
cmake -D DEBUG={0,1,2} -DOSM_LIBS={ON,OFF} ./ 

Experiment setup

  • set up environmental variables FCLA_ROOT and DATA_PATH
  • when running cmake, specify debug level by -D DEBUG=0..5, where 1 is basic checks, 2 is stats
  • set up gurobi environmental variables to point to installation dir, note that bash script can not export variable
  • generate data by script in experiments/ folder
  • create run.py script in experiments folder (//run.py)
  • create $DATA_PATH/solutions/// folder
  • check the version of script / compile binary
  • create ipynb notebook in experiments/analysis folder
  • load data by scripts/mergeResults.py script, save resulting dataframe in temporal File in experiments folder
  • plot and analyze

Links

OSM downloads: https://mapzen.com/data/metro-extracts/

wma's People

Contributors

allogn avatar

Watchers

 avatar  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.