MATLAB: Editing the Individual during the FitnessFcn of a multiobj GA

fitnessfunctiongenetic algorithmGlobal Optimization Toolbox

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.

Best 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