Giter Site home page Giter Site logo

tsp-bgnn's Introduction

TSP-BGNN

Implementation of "A bidirectional graph neural network for traveling salesman problems on arbitrary symmetric graphs", which is accepted at "Engineering Applications of Artificial Intelligence". If this code is useful for your work, please cite our paper:

@article{hu97bidirectional,
  title={A bidirectional graph neural network for traveling salesman problems on arbitrary symmetric graphs},
  author={Hu, Yujiao and Zhang, Zhen and Yao, Yuan and Huyan, Xingpeng and Zhou, Xingshe and Lee, Wee Sun},
  journal={Engineering Applications of Artificial Intelligence},
  volume={97},
  pages={104061},
  publisher={Elsevier}
}

Dependencies

  • Python >= 3.6
  • Numpy
  • PyTorch
  • tqdm
  • TensorboardX

Usage

Before training the model, please first use gurobi/cplex or other tools that can compute optimal solution for traveling salesman problems on arbitrary symmetric graphs, and then generate training dataset, validation dataset, testing dataset.

Change the path of dataset in the codes.

Run the run.py and set the parameters.

tsp-bgnn's People

Contributors

yujiaohu avatar

Stargazers

 avatar

Watchers

 avatar

tsp-bgnn's Issues

no module named ‘layers’

from .layers import node_cnn_module, node_cnn_lstm_module, node_fc_layer, stack_model
error: no module named ‘layers’.
Could you help me fix this mistake?

error

from .layers import node_cnn_module, node_cnn_lstm_module, node_fc_layer, stack_model
error: no module named ‘layers’.
Could you help me fix this mistake?

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.