Manage Model Advisor applications
Advisor.Manager to create, get, and refresh Model Advisor
applications. You can use
Refresh the Model Advisor check information cache. You must refresh the cache if you create or modify Model Advisor configuration files or
sl_customization.mfiles for custom Model Advisor checks.
Create or access an
Advisor.Applicationobject that can run Model Advisor checks across model reference hierarchies and variants.
If your model does not use model references or variants, use the function
ModelAdvisor.runcan run Model Advisor checks on models and subsystems, and has the option to run on multiple systems in parallel.
Create and Access
Advisor.Application Object for Running Model
If you need to run Model Advisor across a model hierarchy or
across active and inactive variants, run Model Advisor using an
Advisor.Application object. This example shows how to
Advisor.Application, specify the
AnalyzeVariants argument, and run Model Advisor on a
parent model and its referenced models.
Open the example model
sldemo_mdlref_basic. In the
MATLAB® Command Window, enter:
Advisor.Application object that you can use to
run Model Advisor checks across the model reference hierarchy in
app = Advisor.Manager.createApplication();
In this example, the models do not use variants. But if you want Model
Advisor to run on both the active and inactive variants in your models,
app.AnalyzeVariants = true;
Specify which model or subsystem to analyze. For this example, specify the
sldemo_mdlref_basic as the root of the Model
setAnalysisRoot(app,Root = "sldemo_mdlref_basic");
When you specify a model as the analysis root for an
Advisor.Application object, Model Advisor will analyze
that model and any referenced models. For
more information, see
Run the Model Advisor analysis.
Model Advisor runs on both
sldemo_mdlref_basic and the
For more information, see
Introduced in R2015b