Add CLA and update others

This commit is contained in:
JQSakaJoo
2024-05-13 10:43:27 +05:00
parent 7bb08f5a0c
commit 593995d915
6 changed files with 10 additions and 1 deletions
Binary file not shown.
Binary file not shown.
@@ -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;
}