Filter löschen
Filter löschen

In trying to understand how the Genetic algorithm works,can anyone explain why the algorithm didn't quit after getting the smallest maximum constraint violation say the first and third generation?

1 Ansicht (letzte 30 Tage)
options = optimoptions('ga','PlotFcn',{@gaplotbestf,@gaplotmaxconstr},'Display','iter'); Rerun the ga solver.
[x,fval] = ga(ObjectiveFunction,nvars,[],[],[],[],... LB,UB,ConstraintFunction,options) Best Max Stall Generation Func-count f(x) Constraint Generations 1 2670 13603.6 0 0 2 5282 13578.2 5.718e-06 0 3 7994 14033.9 0 0 4 11794 13573.7 0.0009577 0

Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by