I have ran the Genetic algorithm code with an ITAE cost function at time step 1e-06.
The gapidbook matlab m file presents the Ga command itself along with defining parameters such as population size, max generations, and the transfer function for the buck converter.
The Pidtest matlab m file is what allows for the usuage of the cost function.
The Matlab code system response is a very good to a point of seeming unrealistic.
The simulink model used is included in the images (includes the model config settings also).
I am not sure on how to make it so the Matlab coded response is the same in the Simulink environment.
The PID values are spit out by the code.
Refer to the following videos if unsure on what i am trying to do.
Steve brunton - https://www.youtube.com/watch?v=S5C_z1nVaSg
Sachin sharma - https://www.youtube.com/watch?v=taYwRNg1fzk
Tishitu - https://www.youtube.com/watch?v=1nuZmbDVwGs