Other
In the computer science field of artificial intelligence, genetic algorithm is a search heuristic that mimics the process of natural selection. This heuristic is routinely used to generate useful solutions to optimization and search problems.
In this file, I've provided a fully commented, plain and obvious code to find the optimized value for any function in order to maximize, Minimize or Minimize it's absolute value (finding root of the function). The function and the optimization range are inputs and user can enter any desired function as input. The Genetic Algorithm presented here is not only effective but also is very illustrative to figure out how this algorithm works using explanatory comments and its plain structure.
matlab
算法
遗传
优化
No comment