modelKF

Discrete State Space block

Information

Parameters

TypeNameDefaultDescription
StateSpacessContinuous linear system model
Modelica.Units.SI.TimesampleTime0.5Base sample time for discrete blocks
Real[size(dss.B, 2),size(dss.B, 2)]Qidentity(size(dss.B, 2))Input or process noise covariance matrix of the previous instant
Real[size(dss.C, 1),size(dss.C, 1)]Ridentity(size(dss.C, 1))Output or measurement noise covariance matrix of the previous instant
Real[size(dss.A, 1),size(dss.A, 1)]P010*identity(size(dss.A, 1))Initial state covariance matrix of the previous instant
Real[size(dss.A, 1)]x_initfill(0, size(dss.A, 1))
DiscreteStateSpacedssDiscreteStateSpace(ss, sampleTime, method = Modelica_LinearSystems2.Utilities.Types.Method.StepExact)Discrete linear system model

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutput[size(dss.A, 1)]x_estCurrent estmated state vector
Modelica.Blocks.Interfaces.RealInput[size(dss.A, 1)]x_est_prePreceding estimated state vector
Modelica.Blocks.Interfaces.RealInput[size(dss.C, 1)]ymeasured output
Modelica.Blocks.Interfaces.RealInput[size(dss.B, 2)]uCurrent input

Components

TypeNameDefaultDescription
Real[size(dss.A, 1),size(dss.A, 1)]PState covariance matrix of the previous instant
Real[size(dss.A, 1),size(dss.A, 1)]P_preState covariance matrix of the previous instant
Real[size(dss.A, 1),size(dss.C, 1)]KKalman filter gain matrix
Real[size(dss.A, 1)]z