%% function specifying what should happen when new beter
%% solution is found, the function can be empty 
function [] = F1eval( fitness_call, optim_value, optimum )

global outfile
f = fopen(outfile,'a');
fprintf( f, '%d %g', fitness_call, optim_value );
%for i = 1:Dim fprintf( f, ' %g', optimum(i) ); end
fprintf( f, '\n' );
fclose( f );

%% author: Anicka Kucerova, Czech Technical University in Prague
%% version 0.0.3
%% 30 Mar 2009