Model Browser User's Guide    

Optional Subfunctions

Lower and upper bounds are stated for the model parameters. These are in the same order that the parameters are declared and used throughout the template file.

A linear constraint is defined:

The number of nonlinear constraints is declared to be zero. If the number of nonlinear constraints is not zero, the nonlinear constraints are calculated in i_nlconstraints.

No optional parameters are declared for the cost function.

The fit options are always based on the input fopts. See MATLAB help on the function optimset for more information on fit options. When there are no constraints the fitting is done using the MATLAB function lsqnonlin, otherwise fmincon is used.

To speed up the fitting algorithm an analytic Jacobian can be supplied, as it is here.

These labels are used on plots and so on. Latex notation can be used and is formatted.

This is the display equation string and can contain Latex expressions. The current values of model parameters appear.

This displays the function definition with labels appearing in place of the parameters (not numerical values).

This does not need to be defined (can return an empty array). Here we define a response feature that is not one of the parameters (here it is also nonlinear).

The response feature (labeled as INFLEX above) is defined. The Jacobian is also defined here as dG.

If all response features are linear in the parameters this function does not need to be defined. Here we must first find out which response features (if any) are user-defined. This subfunction allows the model parameters to be reconstructed from the response features we have been given.


  Subfunctions Checking into MBC