VIII. Extreme of Function


About the Problem

The problem is the same as before: searching for an extreme of a function. Here, however, you can define your own 2D function.


Example

The graph represents the search space, and the lines represent solutions (points in the search space). The red line is the best solution; the blue lines are the other ones.
You can enter your own function in the text field below the graph (after making a change, press Enter or click the Change button). Below that, you can define the limits of the function. The function can consist of x, y, pi, e, (, ), /, *, +, -, !, ^ and the functions abs, acos, acosh, asin, asinh, atan, atanh, cos, cosh, ln, log, sin, sinh, sqr, sqrt, tan, and tanh.
The graph can be rotated by dragging the mouse over it.
You can also change the crossover and mutation probabilities. The checkboxes control elitism and whether the algorithm searches for a minimum or a maximum.
Try changing the function and see how the GA works.