fmincon, MaxFunctionEvaluations and out of memory
1 回表示 (過去 30 日間)
古いコメントを表示
When I increasing manually the "MaxFunctionEvaluations" in fmincon, optimization stopped because of "out of memory". How can I fix it?
1 件のコメント
Walter Roberson
2019 年 5 月 30 日
I would not tend to expect that unless your objective function is saving data to memory, or in certain cases involving OutputFcn or PlotFcn ?
回答 (1 件)
Hessam Fathipour
2019 年 6 月 1 日
編集済み: Hessam Fathipour
2019 年 6 月 1 日
1 件のコメント
Walter Roberson
2019 年 6 月 1 日
編集済み: Walter Roberson
2019 年 6 月 1 日
Are you using OutputFcn or PlotFcn or saving data to persistent memory or global variables?
Are you using a lot of input variables? Possibly enough that without the increasing in function evaluations, it cannot estimate the gradient even once, so increasing the maximum function evaluations might be permitting it to proceed further than it would otherwise?
参考
カテゴリ
Help Center および File Exchange で Systems of Nonlinear Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!