Giter VIP home page Giter VIP logo

drlsolver4dtsp's Introduction

Solving Dynamic Traveling Salesman Problems With Deep Reinforcement Learning

This code solves dynamic trvaeling saleman problem with deep reinforcement learning. For more details, please see our paper Solving Dynamic Traveling Salesman Problems With Deep Reinforcement Learning which has been accepted at IEEE-TNNLS. If this code is useful for your work, please cite our paper:

@article{zhang2021solving,
  title={Solving Dynamic Traveling Salesman Problems With Deep Reinforcement Learning},
  author={Zhang, Zizhen and Liu, Hong and Zhou, MengChu and Wang, Jiahai},
  journal={IEEE Transactions on Neural Networks and Learning Systems},
  year={2021},
  publisher={IEEE}
}

Dependencies

  • python = 3.6.3
  • NumPy
  • Scipy
  • PyTorch = 1.7
  • tensorboard_logger

Quick Start

For training DTSP instances with 19 customers and using rollout as REINFORCE baseline with model M1:

python m1/train.py --baseline rollout --graph_size 19

For training DTSP instances with 19 customers and using rollout as REINFORCE baseline with model M2:

python m2/train.py --baseline rollout --graph_size 19

For testing DTSP instances with 19 customers with a trained model M1:

python m1/test.py --baseline rollout --graph_size 19 --resume trained_models/m1/normal_19.pt

For testing DTSP instances with 19 customers with a trained model M2:

python m2/test.py --baseline rollout --graph_size 19 --resume trained_models/m2/normal_19.pt

Acknowledgements

Our code is adpated from https://github.com/wouterkool/attention-learn-to-route.

drlsolver4dtsp's People

Contributors

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