Add an optimization algorithm to simulink

how can I change this (fminsearch) optimizer to another optimization algorithm?

3 个评论

Your diagram does not appear to include any optimization block. The block you circled looks to me as if it is a root finding block.

请先登录,再进行评论。

 采纳的回答

Please follow the example here:
Find the m-file
edit ee_battery_opt_m
and you can copy the script and replace the fminsearch() function with your desired optimizer.

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 MATLAB Coder 的更多信息

产品

版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by