| CAGE User's Guide | ![]() |
Overview of Optimization Function Structure
The optimization function M-files have two sections. To compare these sections in the worked example with the template file on which it is based:
mbcOStemplate in the mbctraining directory
The two sections are the Options section and Evaluate section.
Here you set up all the free and fixed variables, objectives, constraints, operating point sets, and optimization parameters. CAGE interacts with the cgoptimoptions object, where all these settings are stored.
You place your optimization routine under this section, interacting with CAGE (obtaining inputs and sending outputs) via the cgoptimstore object. Any subfunctions called by your optimization routine should also be placed at the bottom of this section.
There is a detailed discussion of all the functions used to set up these sections of your optimization function in Optimization Template.
| Note Be careful not to overwrite the worked example and template files when you are trying them out -- save them under a new name when you make changes. |
There is a step-by-step guide to using the worked example optimization function in the worked example section of the optimization tutorial. See Tutorial: Optimization and Automated Tradeoff.
| User-Defined Optimization | Checking User-Defined Optimizations into CAGE | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |