Skip to Main Content Skip to Search
Product Documentation

init - Set or randomize initial parameter values

Syntax

m = init(m0)
m = init(m0,R,pars,sp)

Description

This function randomizes initial parameter estimates for model structures m0 for any linear or nonlinear identified model. It does not support idnlgrey models. m is the same model structure as m0, but with a different nominal parameter vector. This vector is used as the initial estimate by pem.

The parameters are randomized around pars with variances given by the row vector R. Parameter number k is randomized as pars(k) + e*sqrt(R(k)), where e is a normal random variable with zero mean and a variance of 1. The default value of R is all ones, and the default value of pars is the nominal parameter vector in m0.

Only models that give stable predictors are accepted. If sp = 'b', only models that are both stable and have stable predictors are accepted.

sp = 's' requires stability only of the model, and sp = 'p' requires stability only of the predictor. sp = 'p' is the default.

Sufficiently free parameterizations can be stabilized by direct means without any random search. To just stabilize such an initial model, set R = 0. With R > 0, randomization is also done.

For model structures where a random search is necessary to find a stable model/predictor, a maximum of 100 trials is made by init. It can be difficult to find a stable predictor for high-order systems by trial and error.

See Also

idnlarx | idnlhw | rsample | simsd

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS