The task is set to optimize functions (search for extrema). I chose genetic algorithms as one of the methods of random directed search. Something implemented. I would like to share and offer to join . As an example, we take a simple function and only integer values of the argument. An algorithm needs to be developed for use in optimizing more complex functions.