How to operate genetic algorithm optimization for output values in given range?
显示 更早的评论
Hello!
I've got a problem when I want to optimize a fitted function with three variables. The output after the first iteration is already in a non-feasible range. A realistic output for my problem would be anywere above 0.5 but after the first iteration step it already gives me somewhat -4e14.
I now don't really now how to fix this problem as the FitnessLimit I set at 0.5 will never be able to work. How do I fix such a problem? I thought of adding an option which allows to operate the optimization in much smaller steps of output values to be able to reach the limit...
Thanks in advance!
opts = optimoptions('ga', 'PlotFcn',{@gaplotbestf,@gaplotstopping}, 'FitnessLimit', 0.5)
[k,fval, exitflag, output] = ga(fh,3,[],[],[],[],[LB(1) LB(2) LB(3)], [UB(1) UB(2) UB(3)],[], opts)
1 个评论
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!