Suppose you have an array of linearized models Garr corresponding to G. You can
configure a block substitution for the entire subsystem G_full by constructing a
substitution model that reproduces the effect of averaging the three inputs, as follows:
Gsub = Garr*[1/3 1/3 1/3];
BlockSubs = struct('Name','mdl/G_full','Value',Gsub);
Sometimes, you can resolve a mismatch in I/O dimensions by padding inputs or outputs
with zeros, as shown in “Multiple Block Substitutions” on page 11-26. In still other cases,
you might need to perform other model arithmetic, using commands like series,
feedback, or connect to build a suitable replacement.
Block Substitution for LPV Blocks
If the plant in your Simulink model is represented by an LPV System , you must still
perform block substitution when creating the slTuner interface for tuning gain
schedules. slTuner cannot read the linear model array directly from the LPV System
block. However, you can use the linear model array specified in the block for the block
substitution, if it corresponds to the design points for which you are tuning. For instance,
suppose your plant is an LPV System block, LPVPlant, that specifies a model array
PlantArray. You can configure a block substitution for LPVPlant as follows:
BlockSubs = struct('Name','mdl/LPVPlant','Value',PlantArray);
See Also
slTuner
11 Gain-Scheduled Controllers