Advisor.Application class
Package: Advisor
Superclasses:
Run Model Advisor across model hierarchy
Description
Use instances of Advisor.Application
to run
Model Advisor checks across a model hierarchy. You can use Advisor.Application
to:
Run checks on referenced models.
Select model components for Model Advisor analysis.
Select checks to run during Model Advisor analysis.
Consider using Advisor.Application
if you have a large model with
subsystems and model references. Advisor.Application
does not run
checks on library models. If you want to run checks on multiple independent models that
are not in a model reference hierarchy or you want to leverage parallel processing, use
ModelAdvisor.run
to run Model Advisor
checks on your model.
Note
If model references are used in hierarchy, and if the user has set
Simulation Mode to accelerator
and
UpdateModelReferenceTargets to
IfOutOfDate
, then the child model shall compile only if it is
out of date. For referenced models, compile time checks will not run.
The Advisor.Application
methods use the following
definitions:
Model component — Model in the system hierarchy. Models that the root model references and that
setAnalysisroot
specifies are model components.Check instance — Instantiation of a
ModelAdvisor.Check
object in the Model Advisor configuration. Each check instance has an instance ID. When you change the Model Advisor configuration, the instance ID can change.
Construction
To create an Advisor.Application
object, use Advisor.Manager.createApplication
.
Properties
Methods
delete | Delete Advisor.Application object |
deselectCheckInstances | Clear check instances from Model Advisor analysis |
deselectComponents | Clear model components from Model Advisor analysis |
generateReport | Generate report for Model Advisor analysis |
getCheckInstanceIDs | Obtain check instance IDs |
getResults | Access Model Advisor analysis results |
loadConfiguration | Load Model Advisor configuration |
run | Run Model Advisor analysis on model components |
selectCheckInstances | Select check instances to use in Model Advisor analysis |
selectComponents | Select model components for Model Advisor analysis |
setAnalysisRoot | Specify model hierarchy for Model Advisor analysis |
Copy Semantics
Handle. To learn how handle classes affect copy operations, see Copying Objects.
Examples
Version History
Introduced in R2015b