Skip to content

Repository files navigation

shortest-path-problem-using-rl

solve shortest path problem through reinforcement learning and A* algorithm using tree Same path finding algorithm is used in my other project

Summary

  • Find the shortest path using reinforcement learning when graph is unknown

  • Create policy by applying the A* algorithm using tree

  • Solve sparse reward problem by adjusting search difficulty

  • Apply to real world problem

Shortest path problem

  • Unlike solving general shortest path problem, the structure of the graph is unknown
  • All nodes in the graph can be initial node and target node
  • Goal is to find the shortest path from initial node to target node

container bay

  • Actual path found in this project

container bay

Apply reinforcement learning

  • Each node has information about the state
    • Each node in the graph has a different state
  • The edge connecting 2 different nodes becomes action
    • Repeat executing action for each state of nodes and reach target node
    • Selecting action(a1) from nodes state(s0) will move to another nodes state(s1) as shown below

container bay

Create policy by A* algorithm using tree

  • Create policy using A* algorithm
    • Reference to creating policy using MCTS in Alphago zero
  • Due to applying tradintional A* algorithm to unknown graph, it takes long time
    • The A* algorithm is be applied to tree instead of graph
    • Reduced time significantly

Detail explanation: create policy by A* using tree

Solve sparse reward problem

  • As the number of nodes and edges increases, it becomeS difficult to reach one target node(sparse reward)
  • Sparse reward is big problem because the reward is essential in reinforcement learning
  • Increase success episode by adjusting search difficulty according to learning progress

Detail explanation: solve sparse reward problem

Application

  • Apply proposed finding shortest path algorithm to container stockyard premarshalling

Detail explanation: application(pre-marshalling)

About

solve shortest path problem through reinforcement learning and A* algorithm using tree

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages