Skip to Main Content Skip to Search
Product Documentation

Create Designs and Models Programmatically

Overview of Programmatic Design and Modeling

The programmatic part of the case study demonstrates automated creation of designs, models, and boundary models at each operating point. Alternatively, you could use the Model Browser to create models interactively.

This example uses the two-stage models generated in the Diesel Engine Calibration Case Study as a surrogate for an engine dynamometer or engine simulation model. The models generate the point-by-point data for this demonstration. The example shows you how to:

  1. Generate local designs at each operating point.

  2. Collect response data at the design points using the diesel case study models.

  3. Augment the local design points using spacefilling Sobol sequences if you need more design points after initial data collection.

  4. Create local multiple models to model each of the responses at each operating point.

  5. Build a point-by-point boundary model to define the data boundary at each operating point for later use in calibration optimization.

Creating Designs and Models Programmatically

To create designs and models in a project:

  1. View the command-line demo instructions in the Help Browser by entering:

    showdemo mbcPointByPointCmdLine

    You can find the file mbcPointByPointCmdLine.m in the mbcdemos folder.

  2. Run the demo to create designs, a project, response models, and boundary models.

  3. Save the project to a file before loading it into the Model Browser by entering:

    project.Save('DieselPointByPoint.mat');
    

After you complete the programmatic design, visually inspect and refine the fitted models to verify that the model quality is acceptable. You can use the command line to plot diagnostics and remove outliers, but it is easier to use the graphical and statistical tools in the Model Browser. For instructions, see Verify and Refine Models in the Model Browser.

  


Recommended Products

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

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