项目作者: hooolius

项目描述 :
Projekt P1 - Levering af pakker
高级语言: C
项目地址: git://github.com/hooolius/p1_pakkelevering.git
创建时间: 2018-10-09T08:09:08Z
项目社区:https://github.com/hooolius/p1_pakkelevering

开源协议:MIT License

下载


P1: Pakkelevering

p1_pakkelevering is a program written in C that can find the shortest route inbetween a series of addresses within the city of Aalborg.
As this program uses the Held-Karp algorithm, the RAM usages will grow exponentially as more addresses are used, with 27 addresses taking around 15 GB of RAM, therefore, use at own risk. We recommend using at most 25 addresses on most computers.

The program was written as part of our 1. semester project at Aalborg University.

Prerequisites

Windows

  • MinGW with CMake installed
  • Git

Linux

  • CMake
  • Git

Installation

Linux

Clone the repository:

  1. git clone https://github.com/hooolius/p1_pakkelevering.git

Navigate to the build directory:

  1. cd p1_pakkelevering/src/build

Generate makefiles:

  1. cmake -G "Unix Makefiles" ..

Install to a location:

  1. sudo make DESTDIR=/path/to/location install

Or to your bin directory:

  1. sudo make install

Windows:

Clone the repository:

  1. git clone https://github.com/hooolius/p1_pakkelevering.git

Navigate to the build directory:

  1. cd p1_pakkelevering/src/build

Open MinGW as administrator in src/build

Generate makefiles:

  1. cmake ..

Install to Program Files (x86):

  1. make install

Usage

Linux and Windows:

To use a specific input file:

  1. p1_pakkelevering <input file>

Or simply

  1. p1_pakkelevering

Then input addresses at the prompt.

Example:

  1. p1_pakkelevering test_file.txt

This will make p1_pakkelevering calculate the optimal tour from the addresses within test_file.txt

License

MIT