STD exception when running a Simulink Design Optimization in a "parfor" loop
이전 댓글 표시
I am developing a workflow for optimizing controller parameters through a Simulink model and I use Simulink Design Optimization.
I do this operation for different operating points of the system. So, I use the "parfor" loop to accelerate the optimization time. However, I encounter the following error:
Error using sdo.optimize
The function handle passed to the optimize command encountered an error when evaluated with a parameter vector.
Error in utilities.tools.optimization.Model/compute (line 59)
[Optimized_DesignVars, Info] = sdo.optimize (optimfcn, DesignVars, Options);
Error in utilities.tools.optimization.Model/runOptimizationInParallel detailed (line 44) [Optimized_DesignVars, Info] = obj.compute_();
Error in utilities.tools.optimization.Model/runThrough ParameterToVary (line 33) parfor ix = 1 : height(listOfParametersTable)
Caused by:
Error using sdo.SimulationTest/sim
STD exception 'class std::invalid_argument': 'invalid stoi argument' was caught.
Could you please help me understand what this error is about?
Do you have any recommendations to workaround this issue?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Optimize Model Response에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!