CAGE User's Guide Previous page   Next Page

Step 2: Create a CAGE Optimization Function

Any optimization algorithm you want to use in CAGE must be contained in an optimization function. A CAGE optimization function consists of two sections.

The first section defines the following attributes of the optimization:

The second section contains the optimization algorithm.

  1. Open mbcOStemplate.m from the mbctraining directory.

  1. You should see the following M-file in the MATLAB editor.

mbcOStemplate.m is an empty CAGE optimization function. The two (currently empty) sections of the function are labeled above. Note that this M-file can be used as a template for any optimization function that you write.


Previous page  Creating an Optimization from Your Own Algorithm Step 3: Define the Optimization Options 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