GithubHelp home page GithubHelp logo

sensormultiobjectiveopt's Introduction

This repository contains code to simulate and solve the following problem: Phones have multiple sensors which provide information at the expense of depleting the phones battery. We intend to frame whether to activate a sensor as a multi-objective reinforcement problem.

Currently this code contains a toy example just to show proof of concept. In this 5x5 grid world with walls in the middle of each quadrant, a hand crafted agent which simulates a person walking through various locations in the day. The agent tries to visit the four corners of the grid world and stay there for some period of time before moving onto the next corner in clockwise fashion. However, at the midpoint of this transition between corners, the agent has 50% chance to instead travel towards the opposite side of the world, passing through the middle.

A tabular Q-agent was created to determine whether to activate a gps sensor, which reveals the positions of the agent. The Q-agent recieves as input, the previous {trajectory_length} positions of the agent. If the gps was not activated, the position is recorded as (-1,-1) The reward for the agent is a simple linear combination as follows: reward = w1 * (number of unique positions sensed / number of unique positions visited) - self.w2 * (1 if sensor was activated, else 0)

Directory Structure: main.py is the entry point for the program args.py contains all the configurable parameters model_loader.py contains code to initialize the models env.py contains code for simulating the environment agent.py defines various agent models user.py defines various user models train.py defines how the models are trained utils.py contains various helper functions

sensormultiobjectiveopt's People

Contributors

jayakumarpawan 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.