doc_gramian
xxxxxxxxxx
doc_gramian(A, B)
Compute the Gramian-matrix-based DOC.
xxxxxxxxxx
rho1, rho2, rho3 = doc_gramian(A, B)
Computes the Gramian-matrix-based DOC of an LTI system, which refers to equation (2.9) in the paper [1]. The mathematical principle is available in Section 2.2 of [2].
For the above linear time-variant system, we recall the relation of the controllability problem to the fixed-time minimum-energy transfer control problem.
The optimization problem is solved for each initial condition
where
Then the minimum eigenvalue, trace, and determinant of the
For the special case of an LTI system, the controllability matrix is
The three above measures become
Significantly, this function is only for LTI systems.
xxxxxxxxxx
>>> from OpenHA.assessment.attribute import doc_gramian
>>> import numpy as np
>>> A = np.array(
[
[0, 1, 0, 0, 0],
[0, -0.089, 0.7132, 0, 0.8903],
[0, 0, 0, 1, 0],
[0, -0.2671, 31.5391, 0, 2.6708],
[0, 0, 0, 0, -1],
]
)
>>> B = np.array([0, 0, 0, 0, -1]).reshape((-1, 1))
>>> doc_gramian(A, B)
(0.204458903592688, 0.707999248988378, 29.896138372000475)
A
—— System transition matrix of the state-space model of an LTI system, specified as an n-by-n square matrix.
B
—— Input coefficient matrix of the state-space model of an LIT system, specified as an n-by-p matrix.
Name of the parameters | Is optional? | Source, dialog or input port? |
---|---|---|
A | No | Input port |
B | No | Input port |
A tuple (rho1, rho2, rho3)
, whose physical meanings are introduced above.
[1] G.-X. Du, Q. Quan, "Degree of Controllability and its Application in Aircraft Flight Control," Journal of Systems Science and Mathematical Sciences, vol. 34, no. 12, pp. 1578-1594, 2014.
[2] P.C. Müller, H.I. Weber, "Analysis and optimization of certain qualities of controllability and observability for linear dynamical systems," vol. 8, no. 3, pp. 237-246, 1972. DOI: 10.1016/0005-1098(72)90044-1.