| CAGE User's Guide | ![]() |
User-Defined Optimization
User-defined optimizations are described in the following sections:
There is a step-by-step guide to using the worked example provided to help you understand how to modify the template file to use your own optimization functions. See Worked Example Optimization in the optimization tutorial.
Introduction to Writing User-Defined Optimizations
In many cases the standard routines supplied for constrained single and multiobjective optimization (foptcon and NBI) are sufficient to allow you to solve your optimization problem. Sometimes, however, you need to write a customized optimization algorithm. This can be useful in many situations, for example,
User-defined optimization functions in CAGE allow advanced users to write their own optimization routines that can access current CAGE data. In order to access the user function from CAGE, you must register the M-file with CAGE and place it on the MATLAB path. It is crucial that this function conform to the template specified. The following sections describe this process.
Implementing Your Optimization Algorithm in CAGE
At some point a CAGE optimization function calls on an algorithm to optimize the objective functions over the free variables. You can implement the algorithm in the CAGE optimization function as an external M-file. You use the template file as a basis for your optimization function. The best way to understand how to alter the template file to implement your own optimization algorithms is to compare it with the worked example, as described in the optimization tutorial.
| What Are Appropriate Optimizations? | Overview of Optimization Function Structure | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |