フィルターのクリア

Are any functions from the optimization toolbox available to Matlab Coder...excluding fminsearch and fzero

2 ビュー (過去 30 日間)
I may need to use the Matlab Coder. Is fmincon available for code translation.

採用された回答

José-Luis
José-Luis 2016 年 6 月 29 日
  3 件のコメント
Walter Roberson
Walter Roberson 2016 年 6 月 29 日
fminsearch() does not handle constraints directly. You can build in penalties, but you will find that in practice it will sometimes get stuck in the penalty area. If you implement the penalty as returning inf then the interpolation will generate inf and you will be struck. If you implement the penalty as returning a fixed large non-inf value then that does not give any hint as to which direction it should head in, and it can get confused about which way to go. If you implement the penalty as adding a large constant value to what would otherwise be calculated (assuming it is just a forbidden region, not a region where complex numbers would be generated) then fminsearch will happily search for a minima in the penalty area if it happens to end up there.
Arwel
Arwel 2016 年 12 月 14 日
編集済み: Walter Roberson 2016 年 12 月 15 日
Hi,
I've used fminsearchbnd from the File Exchange for a while, and it seems to work very well. Cheers, Arwel

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by