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!