I cannot get the method documented in "Specify Independent Parameters for Optimization" to work
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to implement the method in the "Specify Independent Parameters for Optimization" section in this documentation: https://se.mathworks.com/help/sldo/ug/specify-parameters-to-optimize-gui.html , but after some testing I can't get it to work. I followed the example, but Kint does not change its value at all between iterations.
댓글 수: 2
Satwik
2024년 3월 28일
Hi @Jiarui
Could you please share the model you are working with so that I can reproduce the issue on my end.
Thanks!
답변 (1개)
Samay Sagar
2024년 4월 25일
Based on my understanding, the issue you are encountering is because “Kint” is calculated in the Init script without linking to the Simulink model's execution. Hence it will not update during the optimization process. To dynamically update “Kint”, consider implementing it directly within the Simulink model or using a MATLAB Function block that takes “x” and “y” as inputs and outputs “Kint”.
Hope this helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Design Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!