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!