mengchengTang / DRL-Energy-optimal-Routing-for-Electric-Vehicles

Energy-optimal Routing for Electric Vehicles using Deep Reinforcement Learning with Transformer
14 stars 1 forks source link

something wrog in EVPR.py #1

Open SONGSONG729 opened 10 months ago

SONGSONG729 commented 10 months ago

Dear author, I'm trying to run your code, but find someting wrong in it. in line 71 locations = torch.cat((depot, depot_charging, stations, locations),2) Maybe the ‘depot_charging’ cant not be added? because depot_charging = depot. If add it , there is a RunTimeError when training the network.

mengchengTang commented 10 months ago

Sorry, this is an early rough version that may require some modifications to run. I will make modifications to it recently and upload a version that can run.

SONGSONG729 commented 10 months ago

Thank you for your reply!