Simulink Control Design™ - MathWorks

(Tuis.) #1

LinearizationAdvisor


Diagnostic information for troubleshooting linearization results

Description


When you linearize a Simulink model, you can create a LinearizationAdvisor object
that contains diagnostic information about individual block linearizations. You can
troubleshoot your linearization results by reviewing this diagnostic information.

To access the diagnostic information, use the getBlockInfo function.

Creation


There are several ways to create a LinearizationAdvisor object when linearizing a
Simulink model. When you linearize a model using:


  • The linearize function, first create a linearizeOptions option set, setting the
    StoreAdvisor option to true. Then, linearize the model using linearize, returning
    the info argument.

  • An slLinearizer interface, first create a linearizeOptions option set, setting the
    StoreAdvisor option to true. Then, create the slLinearizer interface. When you
    obtain a linear model from the interface using a linearization function, such as
    getIOTransfer, return the info argument.

  • An slTuner interface, first create a slTunerOptions option set, setting the
    StoreAdvisor option to true. Then, create the slTuner interface. When you obtain
    a linear model from the interface using a linearization function, such as
    getIOTransfer, return the info argument.


You can then access the LinearizationAdvisor object using info.Advisor. If you
linearize the model at multiple operating points or using parameter variation,
info.Advisor is an array of LinearizationAdvisor objects.

Also, the advise and find functions return a LinearizationAdvisor object that
contains diagnostic information for blocks that satisfy the relevant search criteria.

17 Objects — Alphabetical List

Free download pdf