DynamicSystems
NormH2
Compute the H2 norm of a linear system
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
NormH2(sys)
sys
-
System; system object
opts
(optional) equation(s) of the form option = value; specify options for the NormH2 command
checkstability = truefalse
True means check whether the system is stable; if it is not stable, an error occurs. False means skip the check. The default is true.
The NormH2 command computes the H2 norm of a linear system sys. Both continuous-time and discrete-time systems, and both single-input single-output (SISO) and multiple-input multiple-output (MIMO) systems are supported.
Continuous-time
For a stable SISO linear system with transfer function H⁡s, the H2 norm is defined in the frequency domain as:
‖H‖2=∫−∞∞H⁡j⁢ω2ⅆω2⁢π
For a MIMO linear system with transfer function Matrix H⁡s, the definition of H2 norm in the frequency domain is generalized to:
‖H‖2=∫−∞∞Trace⁡H⁡j⁢ωH·H⁡j⁢ωⅆω2⁢π
where AH is the Hermitian transpose of Matrix A.
In the time domain, the H2 norm of a transfer function is calculated assuming that the stable transfer function H⁡s has a state-space representation:
x.=Ax+Bw
y=Cx
so that H⁡s=Y⁡sW⁡s and H⁡s=C. sI−A−1. B.
where the feedforward matrix D=0 is necessary for the H2 norm to be finite. It follows that, for non-strictly-causal continuous-time linear time-invariant (LTI) systems (D≠0), the H2 norm is infinite.
From the above definitions, it can be demonstrated that the H2 norm of a continuous-time LTI is equivalent to:
‖H‖2=Trace⁡C·P·CT
where the Matrix P≽0 is calculated by solving a continuous Lyapunov equation:
A·P+P·AT+B·BT=0
Discrete-time
In the frequency domain, the H2 norm of a discrete-time LTI system is defined by:
‖H‖2=∫−∞∞Trace⁡H⁡ⅇj⁢ωH·H⁡ⅇj⁢ωⅆω2⁢π
In the time domain, the H2 norm of a transfer function is calculated assuming that the stable transfer function H⁡z has a state-space representation:
x⁡k+1=Ax⁡k+Bw⁡k
y⁡k=Cx⁡k+Dw⁡k
so that H⁡z=C. zI−A−1. B+D.
From the above definitions, it can be demonstrated that the H2 norm of a discrete-time LTI is equivalent to:
‖H‖2=Trace⁡C·P·CT+D·DT
where the Matrix P≽0 is calculated by solving a discrete Lyapunov equation:
A·P·AT−P+B·BT=0
For both continuous and discrete-time systems, the H2 norm is finite if the LTI system is asymptotically stable. It follows that for unstable systems, the H2 norm is infinite.
A deterministic interpretation of the H2 norm is that it measures the energy of the impulse response of the LTI system.
A stochastic interpretation of the H2 norm is that it measures the energy of the output response to unit white Gaussian noise inputs. A white noise process w⁡t has an expected or mean value 𝔼⁡w⁡t=0 and covariance matrix 𝔼⁡w⁡t·w⁡t+τT=𝕀·δ⁡τ, where 𝕀 is the Identity Matrix and δ is the Dirac delta function. It follows that the H2 norm is equivalent to: ‖H‖2=Trace⁡Covariance⁡sys,𝕀 from the interpretation above and DynamicSystems[Covariance].
with⁡DynamicSystems:
Example 1 : Find the H2 norm of a system with discrete-time transfer function shown below.
sys1≔TransferFunction⁡10⁢2⁢z+110⁢z2+2⁢z+5,discrete,sampletime=0.1:
PrintSystem⁡sys1
Transfer Functiondiscrete; sampletime = .11 output(s); 1 input(s)inputvariable=u1⁡zoutputvariable=y1⁡ztf1,1=20⁢z+1010⁢z2+2⁢z+5
h2norm1≔NormH2⁡sys1
h2norm1≔2.46238673166698
Example 2 : Find the H2 norm of a continuous state-space MIMO system.
sys2≔StateSpace⁡−5,3|3,−4,2,3|1,1,1,−2|12,1,0,0|0,0:
PrintSystem⁡sys2
State Spacecontinuous2 output(s); 2 input(s); 2 state(s)inputvariable=u1⁡t,u2⁡toutputvariable=y1⁡t,y2⁡tstatevariable=x1⁡t,x2⁡ta=−533−4b=2131c=112−21d=0000
h2norm2≔NormH2⁡sys2
h2norm2≔2.52637601270590
Example 3 : Find the H2 norm of the following discrete system.
sys3≔Coefficients⁡1,−2.841,2.875,−1.004,1,−2.417,2.003,−0.5488,discrete,sampletime=0.1:
PrintSystem⁡sys3
Coefficientsdiscrete; sampletime = .11 output(s); 1 input(s)inputvariable=u1⁡zoutputvariable=y1⁡znum1,1=1,−2.841,2.875,−1.004den1,1=1,−2.417,2.003,−0.5488
h2norm3≔NormH2⁡sys3
h2norm3≔1.24382062647607
Example 4: Find the H2 norm of the system given by the following differential equation.
sys4≔DiffEquation⁡diff⁡diff⁡x⁡t,t,t=−10⁢x⁡t−diff⁡x⁡t,t+w⁡t,w⁡t,x⁡t:
PrintSystem⁡sys4
Diff. Equationcontinuous1 output(s); 1 input(s)inputvariable=w⁡toutputvariable=x⁡tde=ⅆ2ⅆt2x⁡t=−10⁢x⁡t−ⅆⅆtx⁡t+w⁡t
h2norm4≔NormH2⁡sys4
h2norm4≔0.223606797749979
Example 5 : Find the H2 norm of a non-strictly-causal continuous state-space MIMO system.
sys5≔StateSpace⁡−5,3|3,−4,2,3|1,1,1,−2|12,1,2,1|3,7:
PrintSystem⁡sys5
State Spacecontinuous2 output(s); 2 input(s); 2 state(s)inputvariable=u1⁡t,u2⁡toutputvariable=y1⁡t,y2⁡tstatevariable=x1⁡t,x2⁡ta=−533−4b=2131c=112−21d=2317
Since the H2 norm is infinite, an error message is displayed.
h2norm5≔NormH2⁡sys5
Error, (in DynamicSystems:-NormH2) H2 norm is infinite for continuous 'sys' with D<>0 (system is not strictly causal).
Example 6: Find the H2 norm of an unstable system given by the continuous transfer function G(s).
sys6≔TransferFunction⁡4⁢s+35⁢s4+7⁢s3+4⁢s2+3⁢s+1:
PrintSystem⁡sys6
Transfer Functioncontinuous1 output(s); 1 input(s)inputvariable=u1⁡soutputvariable=y1⁡stf1,1=4⁢s+35⁢s4+7⁢s3+4⁢s2+3⁢s+1
h2norm6≔NormH2⁡sys6
Error, (in DynamicSystems:-NormH2) H2 norm is infinite for unstable systems. Unstable eigenvalues of 'sys': .0324596324047337-.6550790709001*I, .0324596324047337+.6550790709001*I
The DynamicSystems[NormH2] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
DynamicSystems[Covariance]
DynamicSystems[Grammians]
LinearAlgebra[HermitianTranspose]
LinearAlgebra[LyapunovSolve]
LinearAlgebra[SylvesterSolve]
Download Help Document