I am working on a MATLAB Simulink model for PMSM drive system, my system is controlling the motor's torque. I am facing a problem in linearizing the plant. I have tried to tune PID controller parameters, but the plant cannot be linearized. I don't understand the problem enough to fix it effectively, hereby I tried a lot of things randomly but never worked, in the attached file I tried some manual tuning method but it doesn't result in good dynamic response because a huge overshoot is observed in the output currents and torque :(
Can anyone help in this regard. The Simulink file is attached.
Thanks in advance