GA options stall vs tolerance
14 次查看(过去 30 天)
显示 更早的评论
What is the difference between StallTimeLimit and TolFun. I think I know what they are in principle, but in the documentation they have identical descriptions. Also is the tolerance applied to successive raw fittest values, or are they scaled etc.?
0 个评论
采纳的回答
Alan Weiss
2015-1-14
According to the documentation, "The algorithm stops if the average relative change in the best fitness function value over StallGenLimit generations is less than or equal to TolFun." If you don't understand what this means, take a look at How the Genetic Algorithm Works.
Alan Weiss
MATLAB mathematical toolbox documentation
3 个评论
Alan Weiss
2015-1-14
Oh, you either have nonlinear constraints or an integer-constrained problem. To encourage ga to continue, set TolFun to a small value, maybe 1e-10 or 1e-12.
If you have integer constraints, there might be no other help but to play with options (and make sure your bounds are as tight as possible). But for nonlinear constraints, I uuge you to try patternsearch instead of ga. You will almost certainly get more reliable answers, and more quickly, too.
Alan Weiss
MATLAB mathematical toolbox documentation
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surrogate Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!