diff --git a/MQL5/Include/Math/AOs/PopulationAO/#C_AO.mqh b/MQL5/Include/Math/AOs/PopulationAO/#C_AO.mqh index b7c19b1..173dd5b 100644 Binary files a/MQL5/Include/Math/AOs/PopulationAO/#C_AO.mqh and b/MQL5/Include/Math/AOs/PopulationAO/#C_AO.mqh differ diff --git a/MQL5/Include/Math/AOs/PopulationAO/#C_AO_enum.mqh b/MQL5/Include/Math/AOs/PopulationAO/#C_AO_enum.mqh index e1fc5e0..36f2c04 100644 Binary files a/MQL5/Include/Math/AOs/PopulationAO/#C_AO_enum.mqh and b/MQL5/Include/Math/AOs/PopulationAO/#C_AO_enum.mqh differ diff --git a/MQL5/Include/Math/AOs/PopulationAO/AO_(P_O)ES_Evolution_Strategies.mqh b/MQL5/Include/Math/AOs/PopulationAO/AO_(P_O)ES_Evolution_Strategies.mqh index 6321376..7f68032 100644 Binary files a/MQL5/Include/Math/AOs/PopulationAO/AO_(P_O)ES_Evolution_Strategies.mqh and b/MQL5/Include/Math/AOs/PopulationAO/AO_(P_O)ES_Evolution_Strategies.mqh differ diff --git a/MQL5/Include/Math/AOs/PopulationAO/AO_BGA_Binary_Genetic_Algorithm.mqh b/MQL5/Include/Math/AOs/PopulationAO/AO_BGA_Binary_Genetic_Algorithm.mqh index 92984e2..8aba12e 100644 Binary files a/MQL5/Include/Math/AOs/PopulationAO/AO_BGA_Binary_Genetic_Algorithm.mqh and b/MQL5/Include/Math/AOs/PopulationAO/AO_BGA_Binary_Genetic_Algorithm.mqh differ diff --git a/MQL5/Include/Math/AOs/PopulationAO/AO_BSO_BrainStormOptimization.mqh b/MQL5/Include/Math/AOs/PopulationAO/AO_BSO_BrainStormOptimization.mqh index c176e57..e0c1ae2 100644 --- a/MQL5/Include/Math/AOs/PopulationAO/AO_BSO_BrainStormOptimization.mqh +++ b/MQL5/Include/Math/AOs/PopulationAO/AO_BSO_BrainStormOptimization.mqh @@ -18,7 +18,7 @@ struct S_BSO_Agent void Init (int coords) { - ArrayResize (c, coords); + ArrayResize (c, coords); f = -DBL_MAX; label = -1; minDist = DBL_MAX; @@ -537,6 +537,15 @@ void C_AO_BSO::Moving () } } + for (int i = 0; i < parentPopSize + popSize; i++) + { + for (int c = 0; c < coords; c++) + { + parents [i].c [c] = u.RNDfromCI (rangeMin [c], rangeMax [c]); + parents [i].c [c] = u.SeInDiSp (parents [i].c [c], rangeMin [c], rangeMax [c], rangeStep [c]); + } + } + return; } diff --git a/MQL5/Include/Math/AOs/PopulationAO/AO_CLA_CodeLockAlgorithm.mqh b/MQL5/Include/Math/AOs/PopulationAO/AO_CLA_CodeLockAlgorithm.mqh new file mode 100644 index 0000000..6e18e1a Binary files /dev/null and b/MQL5/Include/Math/AOs/PopulationAO/AO_CLA_CodeLockAlgorithm.mqh differ