Advisor.Application Class
Namespace: Advisor
Run Model Advisor across model reference hierarchy and variants
Description
Use instances of Advisor.Application to:
Run checks on a parent model and its referenced models.
Run checks on active variants by specifying the argument
AnalyzeVariantsastrue.Select or remove specific model components from Model Advisor analysis. Model components are models that the root model references and that
setAnalysisRootspecifies.
Use the public methods to:
Run Model Advisor using an
Advisor.Applicationobject.Delete an
Advisor.Applicationobject.Specify which model components Model Advisor runs on.
Specify which checks Model Advisor runs.
Get results from Model Advisor.
Note
When running Model Advisor checks, if your model does not use model references or
variants, it is recommended to use the ModelAdvisor.run function. This
function can execute Model Advisor checks on models and subsystems and offers the
capability to run checks on multiple systems in parallel. Additionally, using
Advisor.Application to run certain Model Advisor checks from a
headless Linux® machines might result in an error. To prevent
this, use the ModelAdvisor.run function.
Creation
To create an Advisor.Application object, use Advisor.Manager.createApplication.
Properties
Methods
Examples
Limitations
Referenced models only compile when they are out of date and compile-time checks do not run for the referenced models if:
Model references are used in a hierarchy.
Simulation Mode is set to
accelerator.UpdateModelReferenceTargets is set to
IfOutOfDate.
Advisor.Applicationis unable to run on multiple systems in parallel. If your model does not use model references or variants, use the functionModelAdvisor.runinstead.ModelAdvisor.runcan run Model Advisor checks on models and subsystems and has the option to run on multiple systems in parallel.
Version History
Introduced in R2015b
See Also
Advisor.Manager.createApplication | generateReport | getResults | loadConfiguration | run | setAnalysisRoot