MATLAB: Genetic algorithm plots penalty instead of Fitness

genetic algorithmGlobal Optimization Toolbox

Im using the GA toolbox to solve an unconstrained problem.. however the genetic algorithm is producing the graph of penalty vs generations instead of fitness vs generations.. why do i have this?

Best Answer

Perhaps you have some integer constraints.
If not, please show us your options and ga call.
Alan Weiss
MATLAB mathematical toolbox documentation