%% Program rysuje Wykresy funkcji
global dg gg krok
[X,Y] = meshgrid(dg:krok:gg);
z=((X.^2)-(cos(X.*2*pi))+(Y.^2)-(cos(Y.*2*pi)));
surfc(X,Y,z);
figure
%% Wartości osobników
subplot(2,1,1)
semilogx(stan,pkt1)
title(\'Wartość osobnika w każdym pokoleniu\')
xlabel(\'Pokolenie\')
ylabel(\'Wartość osbnika jeden\')
subplot(2,1,2)
semilogx(stan,pkt2)
xlabel(\'Pokolenie\')
ylabel(\'Wartość osbnika dwa\')
%% Wartosci funkcji
figure
loglog(stan,Op)
title(\'Wartość funkcji w każdym pokoleniu\')
xlabel(\'Pokolenie\')
% ylabel(\'Wartość funkcji\')