Giter Club home page Giter Club logo

ma-cetsp's Introduction

An Effective Memetic Algorithm for the Close-Enough Traveling Salesman Problem

This repository is the implementation in C++ for the paper An Effective Memetic Algorithm for the Close-Enough Traveling Salesman Problem by Zhenyu Lei, Jin-Kao Hao.

We propose an effective memetic algorithm to solve the Close-Enough Traveling Salesman Problem (CETSP) which is a variant of the well-known Traveling Salesman Problem (TSP). Experimental results on the well-known benchmark instances show that the algorithm is highly competitive with the state-of-the-art methods. We also demonstrate the usefulness of the algorithm on a real laser welding robot path planning problem.

Overview

In this repository, we have:

  • cmake/ folder contains the cmake configuration for gurobi solver.
  • datasets/ folder is for the benchmark instances and real-world instances used in the paper.
  • solutions/ folder provides the solutions for benchmark instances and real-world instances
  • include/ and src/ folders contain the source code of the algorithm.
  • CMakelists.txt is the cmake configuration file.

Requirements

Instances

We conducted experiments on the well-known benchmark instances proposed by Dr. Mennell. The instances are available at link.

And we also tested our algorithm on real-world instances provided by Prof. Béla Vizvári, one of authors of Nedjatia et al.. We provide the instances in the folder datasets/.

Solver

It is necessary to install LKH-2.0 solver which is used to optimize the visiting sequence of solutions, and Gurobi 10.0 solver which is used to obtain the optimal visiting positions for a given visiting sequence.

Run the code

Please configure Gurobi solver path in the CMakeLists.txt, and other necessary directories and parameters in include/Defs.hpp file.

And then compile the code by the following commands:

mkdir build
cd build
cmake ..
make

Then you can run directly the executable binary with default parameters set in include/Defs.hpp by the following command:

./MA-CETSP

In addition, you can run the code with your own parameters by the following command:

./MA-CETSP -i <instance> -s <seed> -r <max iteration> -p <population size> -b <fitness beta> -d <distance threshold> -n <neighbor size>

Citation

If it is helpful for your research, please cite our paper:

@article{lei2024effective,
  title={An effective memetic algorithm for the close-enough traveling salesman problem},
  author={Lei, Zhenyu and Hao, Jin-Kao},
  journal={Applied Soft Computing},
  pages={111266},
  year={2024},
  publisher={Elsevier}
}

ma-cetsp's People

Contributors

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