v2.4.4
v2.4.4
Nuget updates
- System.Memory 4.5.2 -> 4.5.4
- System.Memory 4.5.3 -> 4.5.4
- System.Runtime.CompilerServices.Unsafe 4.5.2 -> 4.7.1
- Redzen 9.0.0 -> 9.1.1
Prey capture task
- Fix: The prey's stochastic movement was not as defined in the cited paper. The fix will make the prey more likely to move away from the agent, and thus make the task more difficult.
- Some code style improvements, and minor performance tweaks.
- Changed the task experiment parameters; elitism and selection proportions changed to 0.66 to try and help maintain population diversity.
- Fix: W() function corrected to cause prey to move away from the predator, not directly towards it!
- Fix: Cartesian to polar coord conversion called Atan2() with x and y parameters swapped, thus rotating the xy plane around y=x.
- Fix/improvement: Initial position of agent relative to prey was not a symmetrical area around the prey, due to use of Math.Floor() instead of Math.Truncate().
- Performance improvement: Use lookup table for atan2(y,x) function.
- Performance improvement: Avoid square root operation by comparing squared lengths instead of lengths.
Code quality
- Multiple application of the readonly modifier.