Sorry if the question seems kind weird(? but im new with this algorithm and i'm looking for some optimization of an array of antennas . After evaluate with the array factor (the radiation pattern function) and obtain the data that i need, i've made the comparison of the "ideal" model of radiation and the experimental so the question is if it's correct to consider this error (between the ideal and exp as fo=abs(ideal-exp)) as the fitness function and if someone has some tips to apply this to the next step (the selection process). Thanks for your attention