Very slow progress of optimization code #930
Replies: 1 comment 5 replies
-
You sent the cache (slc) instead of the model (slx) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Troubleshoot file.zip
Hej,
I am trying to simulate the attached code but the performance is very slow when integrated with simulink. I have checked with profiler as well and it shows that 98% of the time is spent executing optimizer.m function. I am unsure how to increase the execution speed here. The speed becomes even (100 times) slower as I am supposed to integrate this simulink model with AMESIM (Siemens Software) for my thesis work.
Also I am restricted to using Matlab interpreted function block due to dynamic nature of my plant model. Yalmip doesn't allow the use of standard matlab function block as it needs to know the size of problem beforehand. Is there any way the constraints can be initialized to desired size lmi instead of as an empty array prior to execution with values updated during execution. This I think might speed up execution as standard function block is comparatively faster than interpreted one.
It will be highly appreciable if you could suggest any improvements or point out to what is it that I can look into to improve execution speed.
Thanks and Regards,
Nauman Khurshid Haider
Beta Was this translation helpful? Give feedback.
All reactions