GeneticSharp v3.0.0 - .NET 6
I’ve just released the GeneticSharp version 3.0.0.
With version 3.0.0, GeneticSharp now supports .NET 6.
The performance of many operations has been improved just for use .NET 6:
More about performance: https://github.com/giacomelli/GeneticSharp/wiki/Performance.
To avoid the necessity to write many
using statements to write a basic genetic algorithm with GeneticSharp:
using GeneticSharp.Domain; using GeneticSharp.Domain.Crossovers; using GeneticSharp.Domain.Mutations; using GeneticSharp.Domain.Populations; using GeneticSharp.Domain.Selections; using GeneticSharp.Domain.Terminations; using GeneticSharp.Infrastructure.Framework.Threading;
The namespaces needed to use GeneticSharp have been simplified to just two:
and this one if you want to use the extensions:
GeneticSharp and extensions (TSP, AutoConfig, Bitmap equality, Equality equation, Equation solver, Function builder, etc):
For Unity you should used the version 2.6.0, because Unity, at moment I’m writing, only support .NET Standard 2.1: https://docs.unity3d.com/Manual/dotnetProfileSupport.html.
You should use the UnityNuGet to install GeneticSharp directly from NuGet.
Or you can use the latest GeneticSharp.unitypackage available in the
Assets section of this release.
.NET Standard 2.0 and .NET Framework 4.6.2
To install previous version that support .NET Standard 2.0 and .NET Framework 4.6.2:
install-package GeneticSharp -Version 2.6.0
Mono and .NET Framework 3.5
To install previous version that support .NET Framework 3.5:
install-package GeneticSharp -Version 1.2.0
More about installing/setup: https://github.com/giacomelli/GeneticSharp/wiki/Setup.