sdo.getModelDependencies
Package: sdo
List of model file and path dependencies
Syntax
[dirs,files]
= sdo.getModelDependencies(modelname)
Description
[
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.
Input Arguments
|
Simulink model name, specified as a character vector or
string. For example, |
Output Arguments
|
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 |
Examples
Tips
files
lists the model dependencies, anddirs
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 theParallelFileDependencies
property ofsdo.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 theParallelPathDependencies
property ofsdo.OptimizeOptions
to use for parallel computing.
Modify
files
anddirs
to include dependencies thatsdo.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.
Alternatives
Version History
Introduced in R2011b