Code Monkey home page Code Monkey logo

uav-grn-drn's Introduction

UAV_GRN_DRN

This is a repository for creating a UAV network based on the GRN graph using python.

Requirements

You need python and following packages to run this code

python3.x
networkx
matplotlib
numpy
pandas
flask

Installation

First you need to install python3.x to run this project. To install issue the following command.

sudo apt-get install python3.6

Install the python packages by issuing the follwing commands in your terminal

pip install networkx
pip install matplotlib
pip install numpy
pip install pandas
pip install flask

Cloning the repository

Clone the repository using the following command:

git clone [email protected]:Krishnandu91/UAV-GRN-DRN.git

Exceution

If you want to run only one time then goto UAV-GRN-DRN folder and type the following command

python main.py

If you want to run this script multiple number of times issue the following command

For Linux users

./runner.sh

For Windows users

runner.bat

If you want to run over all possible configuration on learning rate, exploration rate and discount factor issue the following command

python runner_python.py

NOTE: If you want to change the user location file then you need to update the user_location.json file. You can generate user locations in either of the ways mentioned below.

Generate user locations

If you want to generate random location for the user issue the following command

python3 user_secnario_producer.py

If you want to generate uniform location for the user then use the following command

python3 user_scenario_cluster.py

Sample Output Graph

Sample output graph

In the above image the red cell are UAVs. The circles are their connection range. The blues cells are UAVs where ground user is placed just below it i.e. the UAV is on the top of the ground user. The black cells are the positions of ground users. The light blue lines denotes the edge between two UAVs.

Clear all the output files

To clear all output files just issue the following command

./fresh_analysis.sh

Issues

Feel free to raise an issue if you find any thing incorrect or facing some difficulties in running the code.

License

MIT

uav-grn-drn's People

Contributors

krishnandu91 avatar swaraj-deep avatar swaraj95 avatar

Stargazers

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