How to incorporate equations in the connect function for control design?
4 次查看(过去 30 天)
显示 更早的评论
I would like to synthesize a h-infinity controller and need to connect a few blocks. How do I go about integrating the equation
y=x^2+a^2
in the following manner with the connect function?
It is no issue in Simulink but I feel like I am forgetting some basics with MATLAB.
5 个评论
采纳的回答
Sam Chak
2023-4-19
Thanks for clarifying that. For more info, you can find out how use 'connect' here. But I have seen people using 'augw' to augment the LTI plant with the weighting functions for general control design.
s = zpk('s');
% Augmenting plant with the weighting functions
Gp = 1/(s^2); % Double Integrator plant
W1 = 0.1*(s + 1e2)/(1e2*s + 1);
W2 = 0.1;
W3 = [];
P = augw(Gp, W1, W2, W3);
% H-infinity control design
[K, CL, gamma] = hinfsyn(P, 1, 1)
Gc = tf(K) % transfer function form of H-inf ctrl
margin(Gc*Gp)
% Closed-loop control system
Gcl = tf(minreal(feedback(Gc*Gp, 1)))
step(Gcl)
S = stepinfo(Gcl)
ssy = dcgain(Gcl) % steady-state output
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 H-Infinity Synthesis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!