Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dimatura/gocup-pmed
A fast p-median solver.
https://github.com/dimatura/gocup-pmed
Last synced: about 19 hours ago
JSON representation
A fast p-median solver.
- Host: GitHub
- URL: https://github.com/dimatura/gocup-pmed
- Owner: dimatura
- License: gpl-3.0
- Created: 2010-07-18T23:22:54.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-07-19T00:36:21.000Z (over 14 years ago)
- Last Synced: 2023-03-11T04:28:11.009Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 727 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
gocup-pmed
===========author: Daniel Maturana ([email protected])
A fast implementation of the vertex substitution heuristic for the p-median
problem. Various of the optimizations suggested by M. Resende y R. Wernicke
('On the implementation of a swap based local search procedure for the p-median
problem', Proceedings of the fifth workshop on Algorithm Engineering, 2003)
were used.This implemenentation won the [GOCUP](http://www.gocup.cl) 2008 contest.
Compilation and usage
----------------------The program was developed in C++ using GNU g++ in Ubuntu Linux Hardy Heron. It was
also verified to compile and run under Windows XP using the GNU MingW toolchain.
It has no external library dependencies. To compile, simply run make.
The program is named pmedian and accepts various arguments. The simplest
usage is "pmedian " where number is the problem to solve. It
includes various more options which can are documented in the help message
which is displayed with "pmedian -h".Credits
--------The project includes Joerg Arndt's bitarray implementation, which is part of the
[FXT library](http://www.jjj.de/fxt). The library is under GPLv3 as well.TODO
-----While the algorithm is implemented for the general case, the data loading code
is specialized for the contest format, which is 2-D. During development I
tested on the classical ORLIB instances, after applying the Floyd-Warshall
algorithm. I'll eventually reincorporate the code to read the ORLIB format.