Cache file errors during parallel computing using simulink model
이전 댓글 표시
I am trying to use PSO (particle swarm optimization) where the objectivefunction runs a simulink model and evalutes some parameters. However, the simulink file sometimes does not run and I get errors in the simulink simulation that look like the following:
- 'Cached model compile data may be stale. Delete any cached information such as 'slprj' directory and Simulink cache files. Suggested Actions: • Clear cached model compile data - Open'
- 'Simulink code generation folder in the current folder was created for a different release. The 'slprj' subfolder is not compatible with the current release. Manually remove the 'slprj' folder and generated code files that the folder contains.'
I tried using rmdir to remove this folder after each iteration of PSO, however, even that is not working as my simulation model is still throwing these errors. Kindly provide me with the resolution to this issue. Thank you.
댓글 수: 3
Zhihua
2023년 8월 13일
Hi,When I run Parallel Calculation by 'parfor',also occur this problem same with you.
Ayush
2023년 8월 21일
If you are using older versions of MATLAB then try using temp directory to build the model to avoid error in current MATLAB.
Suyash Agrawal
2023년 10월 2일
채택된 답변
추가 답변 (1개)
mana
2024년 11월 19일
0 개 추천
Information cache folder or artifacts were missing. i am getting this error.how to fix it
카테고리
도움말 센터 및 File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!