CAGE User's Guide Previous page   Next Page

Checking User-Defined Optimizations into CAGE

When you have modified the template to create your own optimization function, you must check it into the Model-Based Calibration Toolbox in order to use the function in CAGE. Once you have checked in your optimization function it appears in the Optimization Wizard. See Optimization Wizard Step 1.

To check a user-defined optimization into CAGE,

  1. Select File -> Preferences.
  2. Click the Optimization tab and click Add... to browse to your M-file. Select the file and click Open. This registers the optimization function with CAGE. You need to do this when you customize your own optimizations.

  3. You can click Test to check that the optimization function is correctly set up. This is a very useful function when you use your own functions; if anything is incorrectly set up the test results tell you where to start correcting your function.

  1. You can see an example of this by saving a copy of the worked example file and changing one of the variable names (such as afr) to a number. Try to check this altered function into CAGE and the Test button will return an informative error specifying the line you have altered.

  1. Click OK to dismiss the CAGE Preferences dialog and return to the CAGE browser.


Previous page  Overview of Optimization Function Structure About the Worked Example Optimization Algorithm Next page

Learn more about the latest releases of MathWorks products:

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