Hello!
I am a PhD student trying to implement a gain scheduling controller for an up/down configuration of the Acrobot following an article titled "Attitude Control of Acrobot by Gain Scheduling Control Based on Sum of Squares" by H. Ichihara nad M. Kawata.
I am still learning the concepts presented in this article and I am new to optimization so please be kind :)
It is really important to me to understand and implement this so that I can modify it for my system and be sure it is correct.
I have gathered the equations from the article and simplified them a bit by removing damping from the Acrobot model and substituting some of the parameters used by the authors for the up/down configuration. The accompanying text is mostly taken from the article. I am attaching the theory in a PDF.
I am interested in solving the SOS relaxed problem which is formulated in the last section. I am attaching the Matlab code I have now.
There are numerous things I don't know how to write in Yalmip syntax and have trouble finding the answer:
1) Eq.7 is a list of constraints on the parameters rho. How to implement constraints which involve derivatives of rho?
2) There is a determinant in the Delta variable. Should I just use standard det( ) function?
3) I have defined Xs and Zs in the code. Is it ok what I did? Maybe there is some "automatic" way to generate it?
4) How to define matrix SOS polynomials with respect to monomials with some maximum degree?
5) How to define derivative of Xs which appears in Eq.26?
I will greatly appreciate any help. It would be much easier for me to understand everything if I had a working example.
Best,
Patryk