GithubHelp home page GithubHelp logo

martinsg88 / genetic-algorithm-pid-controller-tuner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rondorkerin/genetic-algorithm-pid-controller-tuner

0.0 2.0 0.0 95 KB

An abstract implementation of a discrete PID Controller, tuned using a Genetic Algorithm

genetic-algorithm-pid-controller-tuner's Introduction

Genetic Algorithm PID Controller Tuner
-------------------------------------

Authors
-------

- Stephen Bryant [[email protected]]
- Daniel Juarez
- Christian Braun


Overview
--------

Uses a genetic algorithm to tune gain values for an abstracted one-dimensional PID controller. Please refer to the screencap for a quick explanation and example of the program's functionality. This program was created as a final project for introduction to robotics at University Of Central Florida

How To Use
----------

- If you wish to create a new map file, edit the control variable NEW_MAP = 1
- For subsequent runs of the program, if you wish to use an existing map, set NEW_MAP = 0
- The map will be located in the same directory as the project, named map.csv
- In a terminal, type python genetic_pid.py
- This will run the simulation.
- Results will be output to the "results" directory.
- Set the control variable RUNS_PER_SCREENSHOT to toggle how many runs you show the champion chromosome's run.
- Results consist of the following:
	- one PNG value every RUNS_PER_SCREENSHOT runs
	- fitness_values_over_time.png, which plots the maximum and average fitness over time
	- champion_gain_values_over_time.png, which plots the evolution of the champion gain values over time

Possible Future Improvements
----------------------------

- Reduce premature convergence on local minima.
- Add parallel populations who independently evolve and then merge
- Improve Line Generation algorithm to make it change smoothly in one direction or the other.


Resources
---------

- The code is self documented
- An introduction to genetic algorithms can be found here: http://www.obitko.com/tutorials/genetic-algorithms/


Requirements
------------

I tried to use as few libraries as possible. I ended up using:
- Matplotlib
- Python 2.7
- "List Tools" module via http://code.activestate.com/recipes/278258/ was included in the project.

genetic-algorithm-pid-controller-tuner's People

Contributors

rondorkerin avatar

Watchers

 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.