Main Content

Stima dello stato

Progettare filtri Kalman, stimare gli stati durante il funzionamento del sistema, generare codice e attuarlo su target integrati

Le tecniche di stima dello stato consentono di stimare i valori di stato in sistemi con rumore di processo e di misura. Gli strumenti Control System Toolbox™ consentono di progettare filtri di Kalman lineari a stato stazionario e variabili nel tempo. Gli stati dei sistemi non lineari possono essere inoltre stimati utilizzando filtri di Kalman estesi, filtri di Kalman inodori o filtri antiparticolato.

Gli algoritmi di stima dello stato online aggiornano le stime dello stato del sistema quando sono disponibili nuovi dati. È possibile stimare gli stati del sistema utilizzando dati in tempo reale e algoritmi del filtro di Kalman lineari e non lineari. È possibile eseguire la stima dello stato online utilizzando i blocchi di Simulink®, generare codice C/C++ per questi blocchi utilizzando Simulink Coder™ e implementare tale codice su un target integrato. È inoltre possibile eseguire la stima dello stato dalla riga di comando e implementare il codice utilizzando MATLAB® Compiler™ o MATLAB Coder.

Funzioni

espandi tutto

kalmanDesign Kalman filter for state estimation
kalmdDesign discrete Kalman estimator for continuous plant
estimForm state estimator given estimator gain
extendedKalmanFilterCreate extended Kalman filter object for online state estimation
unscentedKalmanFilterCreate unscented Kalman filter object for online state estimation
particleFilterParticle filter object for online state estimation
correctCorrect state and state estimation error covariance using extended or unscented Kalman filter, or particle filter and measurements
predictPredict state and state estimation error covariance at next time step using extended or unscented Kalman filter, or particle filter
residualReturn measurement residual and residual covariance when using extended or unscented Kalman filter (Da R2019b)
initializeInitialize the state of the particle filter
cloneCopy online state estimation object
generateJacobianFcnGenerate MATLAB Jacobian functions for extended Kalman filter using automatic differentiation (Da R2023a)

Blocchi

espandi tutto

Kalman FilterEstimate states of discrete-time or continuous-time linear system
Extended Kalman FilterEstimate states of discrete-time nonlinear system using extended Kalman filter
Particle FilterEstimate states of discrete-time nonlinear system using particle filter
Unscented Kalman FilterEstimate states of discrete-time nonlinear system using unscented Kalman filter

Argomenti

Nozioni di base sulla stima dello stato

  • Kalman Filtering
    Perform Kalman filtering and simulate the system to show how the filter reduces measurement error for both steady-state and time-varying filters.

Stima online

Stima dello stato in Simulink

Risoluzione dei problemi

Troubleshoot Online State Estimation

Troubleshoot online state estimation performed using extended and unscented Kalman filter algorithms.