This is the code to optimize the PID parameters of a controller using genetic algorithms. It was developed during my PhD thesis.
The optimization method is a genetic algorithm called Differential Evolution. This algorithm is a good method for multiobjective optimization with constraints.
For more information please visit my blog or my youtube channel