Custom Output Function for Genetic Algorithm
3 次查看(过去 30 天)
显示 更早的评论
hi
I want a way to change the outside signal of every iteration in the GA
0 个评论
回答(1 个)
Walter Roberson
2021-2-4
The mechanism for this is that for ga(), output functions are permitted to change the state and return the new state.
However the documentation warns that the algorithm can be unstable if you use the output function to change the state. The recommendation is to instead use the MutationFcn (or CrossoverFcn) to return new population members. The rules do not block you from "mutating" all population elements.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!