Editing the Individual during the FitnessFcn of a multiobj GA

Is there a possibillity to edit the current Individuals of a multiobj GA during the FitnessFcn? I ask, because the GA would converge much faster if I could adjust the current Individuals.

 Accepted Answer

You should not change the individuals within the fitness function--this function is supposed to evaluate the fitness function, not change the individuals.
You are free to write custom mutation and crossover functions to generate new individuals however you like.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation

More Answers (0)

Asked:

on 18 Apr 2013

Community Treasure Hunt

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

Start Hunting!