Git Product home page Git Product logo

rl_tsp_4static's Introduction

Using Deep Reinforcement Learning method and Attention model to solve the Multiobjectve TSP.

This code is the model with four-dimension input (Euclidean-type).

The model with three-dimension input (Mixed-type) is in the RL_3static_MOTSP.zip.

Matlab code for visualzing and comparisons in the paper is in the MOTSP_compare_EMO.zip.

  • Trained model is available in the tsp_transfer_... dirs.

  • To test the model, use the load_all_rewards in Post_process dir.

  • To train the model, run train_motsp_transfer.py

  • To visualize the obtained Pareto Front, the result should be visulaized using Matlab.

  • matlab code is in the .zip file. It is in the " MOTSP_compare_EMO/Problems/Combinatorial MOPs/compare.m ". It is used to produce the figures in batch.

    First you need to run the train_motsp_transfer.py to train the model.

    Run the load_all_rewards.py to load and test the model. It also converts the obtained Pareto Front to the .mat file

    Run the Matlab code to visualize the Pareto Front and compare with NSGA-II and MOEA/D

A lot codes are inherited from https://github.com/mveres01/pytorch-drl4vrp

rl_tsp_4static's People

Contributors

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