fmincon with external multi-input functions
3 次查看(过去 30 天)
显示 更早的评论
Can I use an external function with fmincon that has multiple inpt variables. All the examples I have seen seem to imply that the function is only dependent on x, but I would like to pass other parameters inti the function as well.
0 个评论
回答(1 个)
Steven Lord
2019-9-23
Use one of the techniques described on this documentation page. While that page specifically mentions fzero and integral, the techniques it describes also work for the objective and/or constraint functions you pass into fmincon.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!