/EA

Primary LanguagePython

Evolutionary Algorithms

In this repository I will be adding all the stuff I'll do with evolutionary algorithms.

maximum.py

The scripts finds the maximum of a given function f=-x(x-5)(x-1) in the range (0,RANGE) using evolutionary algorithms. The function is defined in the return line of function(x). The reproducion function is the mean of two values.

You can try different functions, range and reproduction rules and check if the algorithm finds it