
that needs to be minimized and the scope of the search
(for simplicity, we assume its multidimensional rectangular parallelepiped), in which the minimum point, or rather its approximation, will be searched. The next step is to generate the initial harmonics in our search area.
(randomly). Magnitude
is set by the user, and, as it is easy to guess, indicates the number of harmonics that can be stored in memory. In addition, the user must also specify
- the probability of choosing from the harmonics in the memory,
- probability of modification and
- the value of the modification itself. Now that all the preparations have been made, with a clear conscience we can proceed
.
uniformly distributed from zero to one. If a
less than
then in the current component write the corresponding component from randomly selected harmonics from the memory. Otherwise, the component is generated randomly, taking into account the belonging to the corresponding component of the search area.
. If the component was generated using memory, then it may be subject to modification. For this, a random number is generated again.
uniformly distributed from zero to one. If a
less than
, the component changes by
where
- random variable uniformly distributed from
before
.
then
replaces
(memory update is in progress).Source: https://habr.com/ru/post/193994/
All Articles