sdo.getModelDependencies
List of model file and path dependencies
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
might 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.
Examples
Input Arguments
Output Arguments
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.
Version History
Introduced in R2011b