Giter Club home page Giter Club logo

parallel_aco_tsp's Introduction

Parallel Ant Colony Optimization Using High Performance Computing with CUDA and MPI (2021)

Metaheuristics approximate solutions of NP-hard combinatorial optimization problems (COP) that require significant computing resources due to the exponential growth of the search space. A parallel algorithm provides an efficient approach to solve large COPs and leverage parallel high-performance computing (HPC) environments. The Ant Colony Optimization (ACO) is a population-based metaheuristic with an inherently parallel nature with outstanding time and performance results.

Running the code (MPI)

  • Prerequisites

    • MPI library (OpenMPI)
  • Install

conda install -c conda-forge openmpi gxx_linux-64 gcc_linux-64 
  • Compile
mpicc -lstdc++ -lm -lpthread mpi_aco.cpp -o aco-mpi
  • Run
mpirun -n 4 ./aco-mpi rl1889

Running the code (CUDA)

  • Prerequisites

    • CUDA-capable GPU.
    • NVIDIA CUDA Toolkit.
  • Compile

nvcc -arch=sm_80 aco-tsp.cu -o aco-cuda
  • Run
./aco-cuda

Data

The instances folder contain several TSP benchmark instances from the TSPLIB benchmark library:

  • rat575
  • rat783
  • pr1002
  • rl1889
  • fl3795

If you find this code useful, please consider citing:

@article{ 
author  = {Jorge Banda-Almeida, Israel Pineda},
title   = {Parallel Ant Colony Optimization Using High Performance Computing with CUDA and MPI},
year    = {2021},
}

parallel_aco_tsp's People

Contributors

and27 avatar

Stargazers

 avatar

Watchers

 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.