Products & Services Solutions Academia Support User Community Company

Learn more about Model-Based Calibration   

Boundary Model Setup

Introducing Boundary Models

From the test plan level, if you select TestPlan > Boundary Models, or the toolbar button Edit Boundary Models, the Boundary Editor appears.

In this editor, you can construct boundary models from your data. Boundary models are nonparametric surfaces you can use as a visual aid to understanding complex operating envelopes. You can use boundaries to guide modeling and constrain optimizations.

These boundary models are integrated with the rest of the toolbox functionality. You can view them in the Model Selection window (in the cross section view and response surface view) and in CAGE in optimizations, tradeoff, model views and the Surface Viewer. You can import boundary models into the Design Editor to use as constraints. You can also use them to clip models to view only the area of interest, to constrain models and designs to realistic engine operating envelopes, or to designate the most valid areas for optimization, tradeoff and calibration.

Before you use the Boundary Editor, you should understand how it works to achieve the best results:

Creating Boundary Models

The following sections describe how to create and understand different types of boundary models:

Creating a New Boundary Model

To create a new boundary model:

  1. In the Boundary Editor, get started by clicking New Boundary Model in the toolbar, or select File > New Boundary.

    You cannot access these options for leaf nodes. You can only add new boundary models at the root node and at the second-level nodes (local, global or response).

  2. For two-stage models, the Choose Level dialog box appears. Select a radio button to specify whether you want to model the boundary of the Local, Global, or Response values, and click OK.

      Note   You can skip this step if you first select the Local, Global or Response nodes in the Boundary Tree and then create a new model. You get a new model appropriate for your current tree selection.

  3. The controls available depend on the type of boundary model. See Setting Up Global and Response Boundary Models and Setting Up Local Boundary Models.

What Are Local, Global and Response Boundary Models?

Response boundary models are built to cover the combination of the local and global variable spaces.

Global boundary models are built in the global variable space.

If you only select the global variables as active inputs to model, the differences between a global boundary model and a response boundary model are:

Local boundary models fit the boundary of the local inputs. Local boundary models can be either two-stage or point-by-point global evaluation type.

Setting Up Global and Response Boundary Models

When you set up a Global or Response boundary model, the Boundary Model Setup dialog box opens, displaying the controls shown in the following figure.

  1. Select a type of boundary model: Range, Star-shaped, Ellipsoid, or Convex Hull.

    • The Range model finds the furthest extent of points for each variable and draws a hyper-rectangle to enclose all points.

      Range is the only type that you can use with only one input.

    • The Ellipsoid model forms an ellipse to enclose all points.

    • The Convex Hull model forms the minimal convex set containing the data points.

    • The Star-shaped model is a more complex model with various settings that determine how your boundary model is calculated. This calculation occurs in three stages: determining the center of the data; deciding which points are on the boundary, and interpolating between those points. The star-shaped model is the only model type that can fit non-convex regions.

  2. Select a set of input factors to model using the Active Inputs check boxes. The required and selected number of inputs is displayed underneath. You may find it useful to build boundary models using subsets of input factors. You can then combine them for the most accurate boundary. This approach can be more effective than including all inputs.

  3. The Fit Options tab is only enabled if your selected boundary type has any options you can set.

    • Range and Convex Hull models do not have any further settings you can alter.

    • Star-shaped and ellipsoid models have a variety of parameters you can alter, see Boundary Model Fit Options. Try the defaults before experimenting with these.

  4. Click OK, and the toolbox calculates the boundary model.

Setting Up Local Boundary Models

For Local boundary models you can set up a two-stage boundary or a point-by-point boundary. When you set up a local boundary model, the Local Boundary Model Setup dialog box opens.

Two-Stage Boundaries.   To set up a two-stage boundary model:

  1. Leave the default setting Two-stage in the Global evaluation list. You see the following controls.

  2. You can select Range or Ellipsoid for the Local Boundary (to fit to the local inputs).

    You can select Ellipsoid only for more than one local variable. You can select Fit Options only for Ellipsoid models. Click Fit Options to see the parameters you can alter. Try the defaults before experimenting with these. See Boundary Model Fit Options.

  3. The Global model must be an interpolating RBF that interpolates across the global inputs between these local boundaries. You can click Set Up to change the parameters for the interpolating RBF.

  4. Click OK, and the toolbox calculates the boundary model.

Point-by-Point Boundaries.  

To set up a point-by-point boundary model:

  1. Select Point-by-point in the Global evaluation list. You see the controls shown in the following figure.

  2. Select the boundary settings. The available settings for point-by-point boundary models are the same as for global or response boundary models:

    1. Select a Local boundary type: Range, Star-shaped, Ellipsoid, or Convex Hull.

    2. Select a set of input factors to model using the Active Inputs check boxes.

    3. Optionally, view or edit settings on the Fit Options tab, if enabled for your boundary type.

    See Setting Up Global and Response Boundary Models for more details.

  3. Click OK, and the toolbox calculates the boundary model.

Editing Boundary Models

To edit settings for existing boundary models, you can reach the Boundary Model Setup dialog boxes by selecting Edit > Set Up Boundary or the equivalent toolbar button. You can edit the boundary type and active inputs, and settings where available.

You can view the type and details of the selected boundary model in the Properties pane. This pane displays information about the boundary model such as: number of data points; number of boundary, interior, and exterior points; the type of boundary model and summary of settings (e.g. center point of star). For root and branch nodes, you can see which model or combination of models you have selected as best.

See the next section, Combining Best Boundary Models for an example.

Combining Best Boundary Models

You can select a single boundary model node as best or you can combine models by including them in your best selections. You may find it useful to build boundary models using subsets of inputs and different boundary types. You can then can combine these models to achieve the most accurate boundary. This approach can be more effective than including all inputs.

Look at the tree icons to see which boundary models are included as best. Included tree nodes have a check mark on their icon. In the following example, Response is included in best, and the child node Star-shaped is not included.

For two-stage or point-by-point test plans, the Local, Global, and Response nodes are included in best by default (even though they are empty to begin with). You can include or exclude any tree node except the root node.

Each parent node displays the combination of child nodes that you have selected as best (if any; otherwise the parent node is empty.) Use the toolbar and Edit menu items Add to Best and Remove From Best to include only the nodes you require at the root node.

For example, if you pick two leaf nodes and select Add to Best for each, the parent node shows a combination of the two boundary models. You may want your final model to combine boundaries of different types, e.g., a star-shaped and a range boundary. You can view the results at the parent node: the combined model is clipped to fit within the ranges defined by both boundaries. You can combine as many leaf nodes as you like.

You can combine the best models for one-stage or two-stage (local, global and response) leaf nodes.

The Local node displays the child node or nodes selected as best (or is empty if none are selected as best). The Global and Response nodes also display their child node or combination of nodes selected as best. You can only combine local leaf nodes with other local leaf nodes, and global leaf nodes with other global leaf nodes, etc., because you can only have one best model at the Local node, one best model at the Global node, and one best model at the Response node. However you can choose to combine any of the Local, Global, or Response nodes as best for the root node. You can see which child model (or combination) is currently best from a parent node (e.g., Global) or the root node by looking under Best Boundary Model in the bottom left Properties pane.

See the following figure for an example.

In this example, the root node (DIVCP) is selected—the icon is outlined. Look at the Properties pane to see which leaf node (or nodes) you have included in the set of best boundary models for the selected node—in this case, it is Star-shaped (all inputs) and the Star-shaped(N,L) global nodes. The icons in the rest of the tree show the path of combined nodes.

Looking one level down in the tree, Local, Global, and Response are all included in best, but Local and Response are empty because they do not contain any child nodes selected as best. The Local and Response nodes are included in the best selection for the root node, but they have no effect because they are currently empty. Selections at different levels of the tree (branch and leaf) are independent.

Only the Global node contains any child nodes included in best, and therefore only that combination of global child nodes selected as best is displayed at the parent node (the root).

The Global node has the Star-shaped (all inputs) and the Star-shaped(N,L) child nodes selected as best. Therefore the Global node contains the combination of the Star-shaped (all inputs) and the Star-shaped(N,L) boundary models. The Global node is included in the best for the root node, so the root node also contains the Star-shaped (all inputs) and the Star-shaped(N,L) boundary models.

Boundary Model Toolbar

Boundary Model Menus

Boundary Model Fit Options

You can reach the Fit Options settings in the Boundary Model Setup dialog box, either when creating a new boundary model, or when editing an existing boundary model, by selecting Edit > Set Up Boundary or the equivalent toolbar button.

The Fit Options tab (or button for local boundaries) is only enabled if your selected boundary type has any options you can set.

Range and Convex Hull models have no additional settings you can alter.

Star-shaped and ellipsoid models have a variety of parameters you can alter,as the following topics describe. Try the defaults before experimenting with these.

Ellipsoid Settings

The ellipsoid boundary has a variety of optimization settings you can alter if you are having problems getting a good fit. Change the display setting to iter or final to see output messages at the command line during the fit, and try different tolerances or numbers of iterations. For details on these settings see optimset in the MATLAB Reference.

Star-Shaped Settings

The Star-shaped boundary is a more complex model with various settings that determine how your boundary model is calculated. This determination occurs in three stages: determining the center of the data; deciding which points are on the boundary; and interpolating between those points.

  


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