ModelAdvisor.run
Use Model Advisor to run checks on systems
Syntax
Description
ModelAdvisor.run(
runs the Model Advisor on the models or subsystems specified by
Systems
,CheckIDList
)Systems
for the list of check IDs specified by
CheckIDList
.
ModelAdvisor.run(
runs the Model Advisor for the check ID specified by Systems
,{{CheckID
,'InputParam',{paramName
,paramValue
}}})CheckID
with the input parameter setting specified by the input parameter name
paramName
and the input parameter value
paramValue
.
ModelAdvisor.run(Systems,{{CheckID1,'InputParam',{paramName1,paramValue1,...,paramNameN,paramValueN}},...,{CheckIDN,'InputParam',{paramName1,paramValue1,...,paramNameN,paramValueN}}})
runs the Model Advisor for one or more check IDs with the input parameter
settings specified using 'InputParam'
.
The check IDs are specified by CheckID1
through
CheckIDN
. For each check ID, you can specify the input
parameters for the check by using 'InputParam'
with the
parameter names, paramName1
through
paramNameN
, and parameter values,
paramValue1
through
paramValueN
.
For example, the following code runs the Model Advisor checks:
'mathworks.jmaab.jc_0281'
with the input parameter'Follow links'
set to'off'
and the'jc_0281_a'
sub-checks disabled'mathworks.jmaab.db_0032'
with the input parameter'Follow links'
set to'off'
and the input parameter'Look under masks'
set to'all'
Results = ModelAdvisor.run('vdp',... {{'mathworks.jmaab.jc_0281','InputParam',{'Follow links','off','jc_0281_a',0}},... {'mathworks.jmaab.db_0032','InputParam',{'Follow links','off','Look under masks','all'}}})
specifies the properties of the Model Advisor analysis using one or more
Results
= ModelAdvisor.run(___,Name,Value
)Name,Value
pair arguments and returns the results in
Results
. Use Results
to view the
properties of the Model Advisor run. Use this option with one of the previous
syntaxes.
Examples
Input Arguments
Output Arguments
Tips
If you have a Parallel Computing Toolbox license and a multicore machine, Model Advisor can run on multiple systems in parallel. You can run the Model Advisor in parallel mode by using
ModelAdvisor.run
with'ParallelMode'
set to'On'
. By default,'ParallelMode'
is set to'Off'
. When you useModelAdvisor.run
with'ParallelMode'
set to'On'
, MATLAB® automatically creates a parallel pool.
Alternatives
Use the Model Advisor user interface to run each system. In the user interface, you can run only one system at a time.
Create a script or function by using a
Simulink.ModelAdvisor
object to run each system, one at a time.