CAGE User's Guide | ![]() ![]() |
Setting Up Your Strategy
A strategy is an algebraic collection of tables, and forms the structure of the feature.
For example, a simple strategy to calibrate a feature for MBT adds two tables:
To evaluate the feature side by side with the model, you need to have a strategy that takes some or all of the same variables as the model.
The strategy is expressed using Simulink diagrams.
You can either import a strategy or you can construct a strategy.
The following topics are described next:
Importing a Strategy
To import a Simulink strategy:
.mdl
file. CAGE checks the strategy for more than one outport.
If there is only one outport to your strategy, a dialog box opens:
Note When you double-click the blue outport, the Simulink windows shut and parse this strategy to your feature. |
To view a representation of your strategy, select the Feature node. Your strategy is represented in the Strategy pane.
For information about using Simulink to amend strategies, see Constructing a Strategy.
Example. In the matlab\toolbox\mbc\mbctraining
directory, there is a Simulink diagram called tutorial.mdl
. If you import this and select Manual in the dialog box, you see the following diagram.
Double-click the Torque-Output
outport to parse the strategy into the Strategy pane.
Constructing a Strategy
For you to perform a feature calibration, the strategy and the model must have some variables in common.
To construct a strategy using Simulink:
Example of a Strategy Window
Library of All Available Blocks
Library of All Existing Blocks
For more information about using Simulink to build your strategy, see Simulink Help.
Exporting Strategies
Simulink strategies can be exported. For example, you might want to
To export a strategy from CAGE:
The strategy is saved as a Simulink model (.mdl
) file.
Finding Blocks in Simulink
To find blocks in Simulink, highlight a Simulink window and press Ctrl+F or select Edit -> Find.
This opens the Find dialog box, which helps find the blocks associated with your feature.
For more information about finding blocks, see Simulink Finder Help.
![]() | Assigning a Model | Calibrating the Tables | ![]() |