Optimization and Automated Tradeoff
Import Models to Optimize
To open the CAGE browser and set up your optimization:
Start the CAGE Browser part of the Model-Based Calibration Toolbox™ product by typing
cage
If you have not imported models, click Import Models. After you have imported models, you can optimize them.
For any optimization, you need one or more models. You can run an optimization at a single point, or you can supply a set of points to optimize. The steps required are:
Import a model or models.
Set up a new optimization.
If you have imported models, click Optimization in the Processes pane.

You can use the Optimization view to set up, run, view, and export optimizations. You must also set up optimizations here in order to use them for automated tradeoff.
When you first open the Optimization view both panes are blank until you create an optimization. After you set up your optimizations, the left Optimization pane shows a tree hierarchy of your optimizations, and the right hand panes display details of the optimization selected in the tree, as with other CAGE processes.
The following tutorial guides you through this process to evaluate this
optimization problem: MaxTQ (SPK, N, L).
That is, find the maximum of the torque model (TQ) as a function of spark (SPK),
engine speed (N), and load (L). You will use the NOXFLOW model to
constrain these optimization problems.
For any optimization, you need to load one or more models. You can use the CAGE
Import tool to import models from Model Browser projects. For this tutorial you can
load a CAGE project from the mbctraining directory that contains
two models for the optimization problems. Load the project containing models to
optimize as follows:
Select File > Open Project to choose the
tradeoffInit.cagfile, found in thematlab\toolbox\mbc\mbctrainingdirectory, then click OK.The
tradeoffInit.cagproject contains two models and all the variables necessary for this tutorial.CAGE displays the Models view. You can view your models at any time by clicking the Models button in the Data Objects pane.

Observe that the project you have opened contains two models:
TQ_ModelandNOXFLOW_Model. In this tutorial you use these models to optimize torque values subject to emissions constraints.To view the items in the Variable Dictionary, click the Variable Dictionary button in the Data Objects pane.

The Variable Dictionary view appears, displaying the variables, constants, and formulas in the current project. The project already has the relevant variables defined, so you do not need to import a variable dictionary. Note that the variables have ranges and set points defined.