pytorch-drl4vrp
pytorch-drl4vrp copied to clipboard
Problem with the results plotting...
So I ran your code without making any modifications for vrp and 10 nodes (as well as 20)...and the graph looks as if there is only two nodes: depot and one more node...what is wrong?
I leave below the image of how the plotting looks like... https://ibb.co/hWJLjZB
May I ask if you have solved this problem? I have also encountered this problem
@Jessi5177 I think i was never able to fix it. I believe i just ran it with more nodes but I can't say for sure. Sorry but it was a while ago and i don't have the code in my computer anymore.
hello can you please tell some initial steps to run the code , means i have imported it in my vs code setup but how should i enter the nodes etc for VRP ; pls help if you know
in the vrp task , you can change locations = toch.random() by locations = torch.tensor( [[[0.1, 0.2, 0.3, 0.3, 0.4, 0.4, 0.5, 0.5, 0.6, 0.7], [0.5, 0.3, 0.2, 0.7, 0.3, 0.5, 0.2, 0.7, 0.4, 0.6]]]) here, i have chosen an example of 10 nodes.
hi, i'm getting this error when i run the code for vrp task: max_load = LOAD_DICT[args.num_nodes]
KeyError: 5
can you please tell me how to fix it