fmincon inside the function mdloutputs in s-function

1 次查看(过去 30 天)
Why is I used the function fmincon inside mdlupdate, it return back to the simulink after finding the optimun point. While in the function mdloutput it neve stops... It keeps looking for an optimum solution and stop simulation
  3 个评论
Johanna Carolina Salazar
considering the mdloutput function at time 0, what happen is that the function fmincon found the optimal solution at time 0, put sys=point computed, and then restart and compute again the optimal solution at time 0. The simulation doesn't go ahead.
Johanna Carolina Salazar
It is like it nevers go out from mdloutputs after finding the solution... and restart again

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by