Matlab code for optimising an active vibration control (AVC) syetm running on an Arduino microccontroller. For use with sketch "DueMatlabControllerV6_2".
The genetic algorithm generates a population, each member composed of 60 genes which form the controller coefficients, which are sent in turn to the faster running microcontroller. It then receives back a measure of the effectiveness of the AVC which it uses as "fitness" to compare a population members.
The fittest members of the population are "bred" to form a new generation, and the process repeated until the population converges on an optimum set of controller coefficients.