简体   繁体   中英

Which OpenAI gym environment should be used for solve the shortest route problem?

I am trying to fine the shortest route between two nodes using reinforcement learning. I am not sure what environment to use. I have found this particular environment and am not sure if I am going in the right direction. Can anybody please help. Can anybody please suggest a few python OpenAI gym environments I can use.

I am trying to do the same things too. But currently, none of open-sourced OpenAI gym environments is applicable. So I suggest you create your own environment (it is not too hard). Here is what I found:

  1. https://github.com/hubbs5/or-gym They have multiple environments for combinatorial optimization, but all environments have fixed formats. So if you want to use your own graph this might not be suitable.
  2. https://github.com/Velythyl/route-gym It can use your own.network graph as an environment and the graph can be weighted. But it will take a long time to initialize the graph since they are trying to find out all possible paths to build a reward function metric. So a large graph is not able to use in this env. Also, check_env in stablebaseline3 for this environment will warn you the state / observation_space for step() and reset() are not work well.
  3. https://github.com/pmarszal/AIRouting This environment can work for most of the simple graphs. But it did not consider the weights of each edge in the graph.
  4. https://core.ac.uk/download/pdf/334949709.pdf The OpenGraphGym. It seems to be an ideal solution for our problem, but I can't find its open-source code.
  5. https://github.com/dnoursi/gym-graph-search It can only give you randomly generated graph with no weights.
  6. https://github.com/dyllanwli/GraphRouteOptimizationRL/tree/master/src/gym_graph_map Here is what I am trying to do: use a real-world map provider Osmnx (in a.network format) to generate an environment to let the agent find the best route with custom weights (not finish yet)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM