genetic algorithm doesn't stop when it should

3 次查看(过去 30 天)
Hi,
I'm using the genetic algorithm (ga function), and set FitnessLimit in gaoptimset, but the algorithm doesn't stop when the fitness function reaches FitnessLimit. I know that because I monitor the fitness value with @gaplotbestf. For instance, FitnessLimit = 0.004. I run the algorithm and see that eventually @gaplotbestf shows that the fitness value is <0.004. The algorithm should stop but it doesn't. Am I missing something? Is there something else that would prevent the algorithm from stopping? Like TolFun value not reached? Thanks
Tony

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by