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 alinearizeOptions
option set, setting theStoreAdvisor
option totrue
. Then, linearize the model usinglinearize
, returning theinfo
argument.An
slLinearizer
interface, first create alinearizeOptions
option set, setting theStoreAdvisor
option totrue
. Then, create theslLinearizer
interface. When you obtain a linear model from the interface using a linearization function, such asgetIOTransfer
, return theinfo
argument.An
slTuner
interface, first create aslTunerOptions
option set, setting theStoreAdvisor
option totrue
. Then, create theslTuner
interface. When you obtain a linear model from the interface using a linearization function, such asgetIOTransfer
, return theinfo
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.
Properties
Object Functions
advise | Find blocks that are potentially problematic for linearization |
highlight | Highlight linearization path in Simulink model |
find | Find blocks in linearization results that match specific criteria |
getBlockInfo | Obtain diagnostic information for block linearizations |
getBlockPaths | Obtain list of blocks in LinearizationAdvisor
object |
Examples
Alternative Functionality
App
You can interactively troubleshoot linearization results using the Linearization Advisor in the Model Linearizer. For an example, see Troubleshoot Linearization Results in Model Linearizer.
Version History
Introduced in R2017b