image thumbnail
from Global maximum point for 3D surface using GA by Ali Talib Oudah
Finding the global maximum height for 3D multiple peak surface using genetic algorithm

d=mutate(offs,mutprop)%uniform mutation.
function d=mutate(offs,mutprop)%uniform mutation.
global  bound rng
[pops,numvar]=size(offs);
mut=round(mutprop*pops*numvar);
for i=1:mut
    x=ceil(rand*pops);
    y=ceil(rand*numvar);
    offs(x,y)=bound(y,1)+rand*rng(y);
end
d=offs;

Contact us at files@mathworks.com