This repository contains an implementation of a Genetic Algorithm (GA) for tuning the gains of a PID Controller. The focus of this study was on PID controllers used on Unmanned Aerial Vehicles(UAV).
autotuning_script.m: This is a standalone file and simulates the dynamics of a second order system. The tuning is based on the satisfaction of certain criteria.
autotuning_v2: This file requires the "reference_tracking.slx" Simulink model to run. Tuning is achieved based on reference tracking a demanded output.
The work was conducted as part of my undergraduate research thesis.