Skip to content
 
 

Repository files navigation

CVRP solver with Multi Head Attention

TensorFlow implementation of ATTENTION, LEARN TO SOLVE ROUTING PROBLEMS!(https://arxiv.org/pdf/1803.08475.pdf)

Desciption

Slide Share -- CVRP solver with Multi Head Attention --

Dependencies

  • Python > 3.5
  • TensorFlow > 2.0
  • tqdm
  • scipy
  • plotly (only for plotting)
  • matplotlib (only for plotting)

Usage

First generate the pickle file contaning hyperparameter values by running the following command.

python config.py

then, train the model.

python train.py -p './Pkl/***.pkl'

Plot prediction of the pretrained model

python plot.py -p './Weights/***.h5'

About

TensorFlow 2.x, Vehicle Routing Problem (VRP), Deep Reinforcement Learning (DRL)(Rollout baseline, REINFORCE), Transformer, Multi Head Attention (MHA) (https://arxiv.org/pdf/1803.08475.pdf)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages