| Simulink® Response Optimization™ | ![]() |
dirs=finddepend(proj)
dirs=finddepend(proj) returns a cell array of directories that contain model dependencies. The directories or model path dependencies are required to optimize the model response using parallel computing.
Note finddepend may not detect all path dependencies for your model. |
finddepend returns an empty cell array in the following cases:
The model does not have any dependencies.
The model has dependencies that cannot be detected.
For more information, see Analysis Limitations in the Simulink User's Guide.
You must modify dirs to include additional path dependencies for your model:
Paths that finddepend cannot detect
For example, directories that contain M-code for your model or block callback
Paths detected by finddepend that the workers cannot access directly
For example, path dependencies on your local drive
For more information on modifying dirs, see How to Use Parallel Computing at the Command Line in the Simulink Response Optimization User's Guide.
Use the optimset command to add the model path dependencies to the response optimization project.
Open the pidtune_demo model.
pidtune_demo
Extract the response optimization project from this model.
proj=getsro('pidtune_demo');Enable the parallel computing option in the response optimization project.
optimset(proj,'UseParallel','always');
Find the model path dependencies.
dirs=finddepend(proj)
This command returns an empty cell array because the pidtune_demo model does not have any path dependencies.
To add model path dependencies, use the optimset command.
optimset(proj,'ParallelPathDependencies',dirs)
Model Dependencies in the Simulink documentation, optimget, optimset
![]() | findconstr | findpar | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |