Mu Analysis and Synthesis Toolbox | ![]() ![]() |
Compute the optimal H2 controller given a SYSTEM interconnection matrix
Syntax
[k
,g
,norms,kfi,gfi,hamx,hamy] =h2syn(p,nmeas,ncon
,ricmethod
)
Description
h2syn
calculates the H2 optimal controller k
and the closed-loop system g
for the linear fractional interconnection structure p
. nmeas
and ncon
are the dimensions of the measurement outputs from p
and the controller inputs to p
. The optional fourth argument, ricmethod
, determines the method used to solve the Riccati equations. The interconnection structure, p
, is defined by
hinfsyn
program.
Examples
Design an H2 optimal controller for a system matrix, himat_icn
, with two sensor measurements (nmeas
), two error signals, two actuator inputs (ncont), and eight states. himat_icn
differs from the SYSTEM interconnection structure himat_ic
by the fact that the D11 term of himat_ic
is set to be zero. The Schur decompostion method, ricmethd
= 2, will be used for solution of the Riccati equations. The program outputs the minimum eigenvalue of X2 and Y2 during the computation.
nmeas = 2; ncont = 2; ricmethd = 2; minfo(himat_icn) system:8 states6 outputs6 inputs [k,g] = h2syn(himat_icn,nmeas,ncont,ricmethd); minimum eigenvalue of X2: 2.260000e-02 minimum eigenvalue of Y2: 2.251670e-02The H
g
can be calculated via the commands hinfnorm
and h2norm
.
hinfnorm
(g
)norm
between 2.787 and 2.79 achieved near 29.9h2norm
(g
) 1.594e+01
Algorithm
h2syn
is an M-file in µ-Tools that uses the formulae described in the Doyle, et al., 1989, reference for solution to the optimal H2 control design problem. A Hamiltonian is formed and solved via a Riccati equation (ric_eig
and ric_schr
). The D matrix associated with the input disturbances and output errors is restricted to be zero.
ric_eig
, ric_schr
, csord
, and cgivens
.
Reference
Doyle, J.C., K. Glover, P. Khargonekar, and B. Francis, "State-space solutions to standard H2 and H control problems," IEEE Transactions on Automatic Control, vol. 34, no. 8, pp. 831-847, August 1989.
See Also
hinfsyn
, hinffi
, h2norm
, hinfnorm
, ric_eig
, ric_schr
![]() | h2norm, hinfnorm | hinffi | ![]() |