This series records my learning geneticsAlgorithmFirst, declare that the MATLAB version I use is 2009b. The corresponding version of this Toolkit isVersion 2.4.2. No matter what new features or features this version has, it seems that these things are not very important to me and how to use them. Here we will introduce the version to avoid unexpected results when some friends are running this series of examples. If there are errors or unexpected results, check whether your version is 2.4.2.
The toolkit mainly includes three optimization algorithms: Genetic Algorithm tools, direct search tools, and simulated annealing algorithm tools.
Product Overview:
This toolbox mainly extends the optimization toolbox function in MATLAB, genetic algorithm and direct search Toolbox (hereinafter referred to as Genetic Algorithm Toolbox) the expansion of the optimization toolkit is mainly reflected in the following three methods: 1. genetic algorithm; 2. search directly; 3. simulated Annealing Algorithm. These three methods allow you to solve many problems that the original Optimization Algorithm Toolbox cannot solve.
All functions in this toolbox are in the form of M files of MATLAB (if you do not know what m files are, you should add the knowledge of MATLAB, if you want to viewSource codeYou can use the following two methods.
Method 1: Use the command type funcname (function name). For example, you want to see the source of the GA function.Code, You can use the type ga command to view. The code of the function is displayed in the Command window.
Method 2: run the edit funcname command. For example, you can run the edit ga command to view the source code of the GA function. This command will open the source file of the function in the MATLAB editor window.
Of course, you can expand the functions of the original functions in this file to form your own M file, so that you can create a toolbox for yourself, you can name it the Lee's Genetic Algorithm Toolbox. Haha