Skip to content

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)

License

Notifications You must be signed in to change notification settings

tingyingwu2010/VRP_MHA

 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%