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:

  1. Highlight the Feature in the branch display.
  2. Select File -> Import -> Strategy.
  3. Select the appropriate .mdl file. CAGE checks the strategy for more than one outport.
  4. Select the outport that you want to use.
  1. If there is more than one outport to your strategy, a Simulink window opens. Double-click the correct blue outport to parse (or import) the strategy to your feature.

    If there is only one outport to your strategy, a dialog box opens:

    1. Select Automatic to parse the strategy without viewing it.

    Or

    1. Select Manual to edit the strategy. Double-click the blue outport circle to parse the 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:

  1. Highlight the correct feature by clicking the Feature node.
  2. Select Feature -> Graphical Strategy Editor or press Ctrl+E.
  1. Three Simulink windows open:

Example of a Strategy Window

Library of All Available Blocks

Library of All Existing Blocks

  1. In the strategy window, build your strategy using the blocks available in the library windows.
  2. Double-click the blue outport circle to parse the strategy into the CAGE session.

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:

  1. Highlight the Feature node that contains the strategy that you want to save.
  2. Select File -> Export -> Strategy.
  3. Assign a name for your strategy.

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