Primera página Regresar Siguiente Última página Resumen Imagen
Extending Algorithm::Evolutionary
Many CPAN modules can be used to extend A::E with new operators and individuals.
Algorithm::Permute can be used to create a permutation operator
Subclass Algorithm::Evolutionary::Op::Base and override at least 2 methods: new and apply
Notas:
Cool things: perl can serialize code from a pointer.
I use XML::Simple, which is, after all, not so simple and predictable. That will be the first thing to fall in the next iteration.
Just change the fitness function if you want to use the algorithm for anything else