Has been compared the direct and grammar codification methods
106 Manrique, Ríos & RodríguezPatón
1. 


2. 


The objective is now to get a rule that can dynamically control the range of the crossover interval to make trapping in local minima less likely and to get a high convergence speed. When the individuals to be crossed are diverse (which implies a high value of the gradient), the crossover interval is made narrower according to the values max(fi) and min(fi), and the interval can be searched for the optimum much faster. On the other hand, if the individuals to be crossed are very similar (gradient close to zero), which means that the population is converging, then it is advisable to expand the interval [min(fi),max(fi)] to allow exploration of new points in the domain, thus avoiding the possible convergence to a local optimum. This possibility of expanding or narrowing the crossover interval depending on the value of the gradient gi is given by the function ϕ, which is shown in Figure 7. It is defined in domain [0,1], so the population has to be normalised in the same range. The application of this function in the described crossover operator is very efficient, as each pair of new individuals can be generated by only one multiplication.
The Evolutionary System for
Designing and Training
Figure 7. Function j used by the mathematical morphology crossover
0 .4
0  0 .2  1  ϕ (g ) i  −  (0.2·g ) i  −  0.01  if  g  i≤  


− 


0 .0 1 