Use of an existing function as a objective function?
显示 更早的评论
Hi, i am trying to use the code of recursive least square estimator block from simulink. My question is can i use this function as a objective function for my problem and set a constraint for the outputs?
Thanks
回答(1 个)
Pritesh Shah
2016-10-15
0 个投票
You can call Simulink model using sim function in objective function. In Simulink model, you can store that variable (to workspace).
All the best !!
类别
在 帮助中心 和 File Exchange 中查找有关 C Code Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!