Products & Services Industries Academia Support User Community Company

Learn more about Model-Based Calibration   

Understanding Model Structure

Overview of Model Structure

To use the Model Browser in the Model-Based Calibration Toolbox product, you must understand the structure and functions of the model tree to navigate the views. To use the command-line version of the toolbox, you must understand the same structure and functions, that is, how projects, test plans, and models fit together. The following sections describe the relationship between the different models that you can construct. The diagrams in the following section, How the Model Tree Relates to Command-Line Objects, illustrate these relationships.

Projects

Test Plans

Responses

A response is a model fitted to some data. These are the types of responses:

See the illustrations in the following section, How the Model Tree Relates to Command-Line Objects, for examples of different responses and how they relate to each other.

Note that each response contains a model object (mbcmodel.model) that can be extracted and manipulated independently of the project. You can change the model type and settings, fit to new data, examine coeffficients, regression matrices and predicted values, and use stepwise functions to include or remove terms. You can change model type, properties and fit algorithm settings. See ModelsModel Object. If you change the model, you must use UpdateResponse to replace the new model type in the response object in the project. When you use UpdateResponse the new model is fitted to the response data. See UpdateResponse.

Boundary Models

You can create and evaluate boundary models either in a project or standalone. You can combine boundary models in the same way as when using the Boundary Editor GUI. You can use boundary models as design constraints.

In a project, the test plan has a Boundary property that can contain an object.

BoundaryTree = mbcmodel.testplan.Boundary

The BoundaryTree is a container for all the boundary models you create. The tree is empty until you create boundaries, and if you change the testplan data the toolbox deletes the boundaries.

You can fit boundary models in mbcmodel projects using the boundary tree class mbcboundary.Tree, or you can fit boundary models directly to data.

To create a boundary model outside of a project, you can either:

To create a boundary model within a project, use the method of the boundary tree:

B = CreateBoundary(Tree,Type)

This creates a new boundary model, B, from the mbcboundary.Tree object, Tree. The test plan inputs are used to define the boundary model inputs. The new boundary model is not added to the tree, you must call .

To create a new boundary model from an existing boundary model, you can use the method of all boundary model types:

B = CreateBoundary(B,Type)

You can combine boundary models by using the property of the boundary tree. This corresponds to combining boundary models in best in the Boundary Editor GUI, as described in Combining Best Boundary Models in the Model Browser documentation. You can also combine boundary models with logical operators, for use as design constraints or outside projects.

You can change the ActiveInputs, Evaluate, and use as a designconstraint.

For a complete list of boundary model classes, methods and properties, see Boundary Models in the Model-Based Calibration Toolbox reference documentation.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS