Trimming, Numerical Linearization and Control example project. Project made along with Control Systems laboratory class (2022.2) at Instituto Federal Fluminense (IFF).
On week 1 folder, there is an axample on how to use numerical analysis to search for a desirable operation point (also known as trimming process).
On week 2, I undergo through the numerical linearization process. Prof. Christopher Lum has an amazing source of info about this process here.
On week 3, the trimming and numerical linearization process is done again, but with more complex techniques after the teacher's evaluation. the fmincon() command is used to search for the operation point, and the computation of the matrices are done automatically. At the end, the non-linear PMSM model and its linearization around the operation point are compared.
On week 4, we design the controller. The architecture chosen is PI. We use the linear model as plant, and use the state augmentation method to produce a state feedback vector. For more info, check chapter 12 of Ogata's Modern Control Engineering Handbook.
On week 5, we briefly try to introduce the concepts of monte carlo simulation, running the nonlinear controlled simulation with noises on its measurements, inputs, and parameters.