Giter Site home page Giter Site logo

multi-step-q-learning-and-sarsa's Introduction

objective: To solve the problem of finding an optimal path

There is an employee who lives in Azadi (point 1) in the Path and wants to go to the office in Tajrish (point 11) in the path. Based on the traffic and some restrictions the number of routes that he can decide is limited and also has been shown in the link. The amount of fuel consumed and the time spent on a route depend on a number of factors, including the length of the path, the slope of the route, the traffic volume.

The employee wants to know which path is the lowest one in term of time and also the path with least fuel consumed. Furthermore the employee tries to minimize the function which is shown bellow:

C = Fuel + Time^2

With SARSA and Q-learning algorithm an employee can find the best path based on fuel consumption and time. The networkx library is used in this project. Also here is a MapBuilder class to build the map which can use in this project. E-greedy in this work can not be used because it is hard to converge to a way at the end of the episode but boltzmann policy with high temperature will converge to the best path.

multi-step-q-learning-and-sarsa's People

Contributors

rabieifk avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.