Power Magnetic Devices. Scott D. Sudhoff

Чтение книги онлайн.

Читать онлайн книгу Power Magnetic Devices - Scott D. Sudhoff страница 24

Power Magnetic Devices - Scott D. Sudhoff

Скачать книгу

mutation operator we will consider is integer mutation. Recall that in integer coding, we are representing integers as real numbers and mapping them to a discrete set of values within [0,1]. In the case of integer‐coded genes, the mutation operators just described are not appropriate. Thus, it is convenient to use a total mutation of these genes with the result discretized to the allowed values.

      The mutation operators just described all have uniform and nonuniform versions. In uniform versions, the parameters of the algorithms (the mutation rates, and standard deviations of mutation amount) are constant with respect to generation number. In nonuniform mutation, these rates vary. Normally, high mutation rates and large standard deviations are used at the beginning of evolution while smaller rates and standard deviations are used toward the end of the study when the population is mature from an evolutionary point of view.

      Let us illustrate the use of an elementary GA based on a real‐coded version of Figure 1.8. In particular, let us attempt to find the value of x that maximizes the function

      For the purposes of solving this problem, we will use linear coding with xmn,1 = xmn,2 = 0 and xmx, 1 = xmx, 2 = 5. In order to form the mating pool, we will use two‐way tournament selection. We will also assume simple‐blend crossover with α = 0.5 and a probability of crossover of 0.5. We will use total mutation with the probability of a gene mutation of 0.1. In this example, we will consider three generations with a population size of 8. The code for this example can be obtained from Sudhoff [6].

Generation 1
P[1] 0.32100.8296 0.82220.5707 0.57180.2860 0.69910.7963 0.44160.4462 0.46570.2790 0.67540.9037 0.90850.7472
x i 1.60514.1478 4.11092.8534 2.85911.4301 3.49573.9813 2.20792.2311 2.32831.3952 3.37694.5183 4.54263.7360
f i 0.1492 0.0295 0.0689 0.0148 0.2213 0.0530 0.0104 0.0081
M[1] 0.57180.2860 0.46570.2790 0.82220.5707 0.32100.8296 0.46570.2790 0.82220.5707 0.44160.4462 0.32100.8296
Generation 2
P[2] 0.57180.2860 0.13550.3321 0.89750.7424 0.65340.6579 0.46570.2790 0.52790.0321 0.36270.6971 0.84670.5786
x i 2.85911.4301 0.67741.6606 4.48743.7118 3.26683.2895 2.32831.3952 2.63940.1604 1.81333.4857 4.23362.8932
f i

Скачать книгу