Git Product home page Git Product logo

bq-nco's Introduction

BQ-NCO: Bisimulation Quotienting for Efficient Neural Combinatorial Optimization

We provide the code to learn to solve four standard combinatorial optimization problems:

  • the (Euclidian and Asymetric) Traveling Salesman Problems (TSPs)
  • the Capacitated Vehicle Routing Problem (CVRP)
  • the Orienteering Problem (OP)
  • the Knapsack Problem (KP)

For BQ-Perceiver code, please check bq-perceiver branch.

Paper

See BQ-NCO: Bisimulation Quotienting for Efficient Neural Combinatorial Optimization for the paper associated with this codebase. If you find this code useful, please cite our paper as:

@inproceedings{
   drakulic2023bqnco,
   title={BQ-NCO: Bisimulation Quotienting for Efficient Neural Combinatorial Optimization},
   author={Darko Drakulic and Sofia Michel and Florian Mai and Arnaud Sors and Jean-Marc Andreoli},
   booktitle={Advances in Neural Information Processing Systems},
   year={2023},
   url={https://arxiv.org/abs/2301.03313},
}

Quickstart

For data preparation, check data directory.

Training

Using (near-) optimal trajectories

python train_[tsp,cvrp,op,kp].py
  --train_dataset TRAIN_DATASET
  --val_datasets VAL_DATASET
   --test_datasets TEST_DATASET
   --output_dir OUTPUT_DIR

Test

To test our pretrained models:

python test_[tsp,cvrp,op,kp].py
  --path_to_model_to_test ./pretrained_models/[tsp,cvrp,op,kp].best
  --test_datasets TEST_DATASET
  --output_dir OUTPUT_DIR
  --test_only

bq-nco's People

Contributors

ddrakulic avatar jmandreoli 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.