Introduction - If you have any usage issues, please Google them yourself
The IMC - PID is using the internal model control principle for PID parameters is calculated, There are detailed notes, Calculation of the Euclidean distance between the two matrices.