I am working on a closed-loop system which has a PI controller. I have made a Simulink environment for the overall scenario but now I want to optimize the coefficients of the PI controller through an optimization Algorithm which will be having a Matlab code. So, can anybody help in this regard?