Package: sdo
List of model file and path dependencies
[dirs,files]
= sdo.getModelDependencies(modelname)
[
returns
dependencies of a Simulink® model. The dependencies are required
for parallel computing of parameter estimation, response optimization,
or sensitivity analysis tasks. The model must be open for the dependency
analysis.dirs
,files
]
= sdo.getModelDependencies(modelname
)
sdo.getModelDependencies
may not return a complete list of model
dependencies; some dependencies are undetectable. To learn more, see Dependency Analyzer Scope and Limitations. If your model
has dependencies that are undetected or inaccessible by the parallel pool workers, then
add them to the list of model dependencies.
|
Simulink model name, specified as a character vector or
string. For example, |
|
Cell array of paths that contain model dependencies. The cell array is empty when the model does not have any dependencies
or |
|
Cell array of files that are model dependencies. The cell array is empty when the model does not have any dependencies
or |
files
lists the model dependencies,
and dirs
lists the corresponding paths to these
dependencies.
The model dependencies are required during parallel computing and are made accessible to the parallel pool workers by specifying one of the following:
File dependencies: the model dependency files are copied to the parallel pool workers.
Use files
to set
the ParallelFileDependencies
property of sdo.OptimizeOptions
to
use for parallel computing.
Path dependencies: the paths to the model dependencies are specified to the parallel pool workers.
Use dirs
to set the ParallelPathDependencies
property
of sdo.OptimizeOptions
to
use for parallel computing.
Modify files
and dirs
to
include dependencies that sdo.getModelDependencies
cannot
detect.
Using file dependencies is recommended, however, in some cases it can be better to choose path dependencies. For example, if parallel computing is set up on a local multi-core computer, using path dependencies is preferred as using file dependencies creates multiple copies of the dependency files on the local computer.
sdo.evaluate
| sdo.EvaluateOptions
| sdo.optimize
| sdo.OptimizeOptions