• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Dynamic-Systems-and-GP/GPdyn: Gaussian Process Model Dynamic System Identificati ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Dynamic-Systems-and-GP/GPdyn

开源软件地址(OpenSource Url):

https://github.com/Dynamic-Systems-and-GP/GPdyn

开源编程语言(OpenSource Language):

MATLAB 60.6%

开源软件介绍(OpenSource Introduction):

Gaussian-Process-Model-based System-Identification Toolbox for Matlab

Version 1.2.2

Martin Stepančič and Juš Kocijan

Introduction

The idea of this toolbox is to facilitate dynamic systems identification with Gaussian-process (GP) models. The presented toolbox is continuously developing and is put together with hope to be useful as a springboard for the modelling of dynamic systems with GP models.

The GP model belongs to the class of black-box models. GP modelling differs from most other black-box identification approaches in that it does not try to approximate the modelled system by fitting the parameters of the selected basis functions, but rather it searches for the relationship among the measured data. The model is composed of input-output data that describes the behaviour of the modelled system and the covariance function that describes the relation with respect to the input-output data. The prediction of the GP model output is given as a normal distribution, expressed in terms of the mean and the variance. The mean value represents the most likely output, and the variance can be interpreted as a measure of its confidence.

System identification is composed of methods to build mathematical models of dynamic systems from measured data. It is one of the scientific pillars used for dynamic-systems analysis and control design. The identification of a dynamic system means that we are looking for a relationship between past observations and future outputs. Identification can be interpreted as the concatenation of a mapping from measured data to a regression vector, followed by a nonlinear mapping from the regression vector to the output space. Various machine-learning methods and statistical methods are employed to determine the nonlinear mapping from the regression vector to the output space. One of the possible methods for a description of the nonlinear mapping used in identification is GP models. It is straightforward to employ GP models for the discrete-time modelling of dynamic systems within the prediction-error framework.

Many dynamic systems are often considered as complex; however, simplified input-output behaviour representations are sufficient for certain purposes, e.g., feedback control design, prediction models for supervisory control, etc.

More on the topic of system identification with GP models and the use of this models for control design can be found in the book:
Juš Kocijan (2016) Modelling and Control of Dynamic Systems Using Gaussian Process Models, Springer.

GP-Model-based System-Identification Toolbox for Matlab

Prerequisites

As this toolbox is intended to use within Matlab environment the user should have Matlab installed. It works on Matlab 7 and later, but there should be no problems using the toolbox on previous versions of Matlab, e.g., 6 or 5.

It is also assumed that the GPML toolbox [1], general purpose GP modelling toolbox for Matlab, is installed. The GP-model-based system-identification toolbox serves as upgrade to GPML toolbox.

The user should posses some familiarity with the Matlab structure and programming.

Installing GPdyn toolbox

Unzip the file GPdyn into chosen directory and add path, with subdirectories, to Matlab path.

Overview of the GPdyn toolbox

GPdyn files are contained in several directories, depending on their purpose:

training functions,
used for training GP models of dynamic systems;
GP-model evaluation functions,
used for simulating the dynamic GP model;
LMGP-model evaluation functions,
which are used when modelling and simulating the system with a GP model with incorporated local models (LMGP model);
utilities functions,
that are various support functions;
demo functions,
which demonstrate the use of the toolbox for identification of dynamic systems.

The list of included functions, demos and one model is given in following tables.

GP-model training functions:
trainGParx GP-model training of ARX model
trainGPoe GP-model training of OE model
gp_initial
  • finding initial values of hyperparameters with random search
minimizeDE minimize a multivariate function using differential evolution
Covariance functions:
Included and explained in enclosed GPML toolbox
GP-model evaluation:
simulGPnaive GP model simulation without the propagation of uncertainty
simulGPmcmc GP model simulation with Monte Carlo approximation
simulGPtaylorSE GP model simulation with analytical approximation of statistical
  moments with a Taylor expansion for the squared exponential
  covariance function
simulGPexactSE GP model simulation with exact matching of statistical moments
  for the squared exponential covariance function
simulGPexactLIN GP model simulation with exact matching of statistical moments
  for the linear covariance function
predGPnaive multi-step-ahead prediction of GP model without
  the propagation of uncertainty
gpx modified version of GP rutine from the GPML toolbox
gmx_sample creates samples of mixture components
gpTaylorSEard GP model prediction with stochastic inputs for
  the squared exponential covariance function with Taylor expansion
gpExactLINard GP model prediction with stochastic inputs for
  the linear covariance function
gpExactSEard GP model prediction with stochastic inputs for
  the squared exponential covariance function
LMGP-model evaluation:
simulLMGPnaive LMGP model simulation without the propagation of uncertainty
simulLMGPmcmc LMGP model simulation with Monte Carlo approximation
trainLMGP LMGP model training
gpSD00
  • LMGP model prediction
 
  • data likelihood and its derivatives
Supporting functions:
add_noise_to_vector adding white noise to noise-free simulation results
construct construction of the input regressors
  from system’s input signals
eval_func method to evaluate covariance, mean and likelihood functions
likelihood calculates negative log marginal likelihood
lipschitz the method for the lag-space selection, based on Lipschitz quotients
validate checking of the parameters match
loss performance measures
mcmc_test_pdfs testing sampled probability distributions
plotgp plot results (output and error) of the GP model prediction
plotgpe plot error of the GP model prediction
plotgpy plot output of the GP model prediction
preNorm preprocessing of data
postNorm postprocessing of data
postNormVar postprocessing of predicted variance
sig_prbs generating pseudo-random binary signal
sig_prs_minmax generating pseudo-random signal
Demos:
demo_example_present present the system used in demos
demo_example_gp_data generate data for the identification and validation
  of the GP model
demo_example_gp_norm normalization of input and output data
demo_example_gp_training training of the GP model
demo_example_gp_simulation validation with simulation of the GP model
demo_example_lmgp_data generate data for the identification and validation
  of the LMGP model
demo_example_lmgp_training training of the LMGP model
demo_example_lmgp_simulation simulation of the LMGP model
demo_example system simulation
demo_example_derivative obtaining system’s derivatives
demo_example_LM_ident identification of system’s local models

How to use this toolbox

Demos

A simple nonlinear dynamic system is used to demonstrate the identification and simulation of the GP models:
y(k+1) = \frac{y(k)}{1+y^2(k)} + u^3(k) \label{eq:narendra}

The system was used as an example of dynamic system identification with artificial neural networks in:

K.S. Narendra and K. Parthasarathy. Identification and Control of Dynamical Systems Using Neural Networks, IEEE Transactions on Neural Networks, Vol.1 No. 1, 4–27, 1990.
demo_example_present,
presents this system.

Following three demos present the identification of dynamic systems with the GP model:

demo_example_gp_data,
which presents how to obtain and assemble data for identification;
demo_example_gp_norm,
which shows how to normalise input and output data for training;
demo_example_gp_training,
which demonstrates the identification with a GP model;
demo_example_gp_simulation,
which shows how to simulate the GP model.

The use of the GP model with incorporated local models is presented with demos:

demo_example_lmgp_data,
which presents how to obtain and assemble data for identification;
demo_example_lmgp_training,
which demonstrates the training (=identifying) the LMGP model;
demo_example_lmgp_simulation,
which shows how to simulate the LMGP model.

Acknowledgements

We would like to thank all past, present and future contributors to this toolbox.

[1]It can be obtained from http://www.gaussianprocess.org/gpml.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
juliamatlab/mexjulia: embedding Julia in the MATLAB process.发布时间:2022-08-17
下一篇:
yuip/hfss-api: A HFSS API to control HFSS from Matlab发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap