GeneticSharp v3.0.0 - .NET 6

I’ve just released the GeneticSharp version 3.0.0.

.NET 6

With version 3.0.0, GeneticSharp now supports .NET 6.

Performance improvements

The performance of many operations has been improved just for use .NET 6:

Chromosomes

image

Crossovers

image

Task executors

image

Mutations

image

Randomizations

image

Reinsertions

image

Selections

image

Terminations

image

More about performance: https://github.com/giacomelli/GeneticSharp/wiki/Performance.

Streamlining namespaces

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:

using GeneticSharp;

and this one if you want to use the extensions:

using GeneticSharp.Extensions;

Installing

.NET 6

Only GeneticSharp:

install-package GeneticSharp

GeneticSharp and extensions (TSP, AutoConfig, Bitmap equality, Equality equation, Equation solver, Function builder, etc):

install-package GeneticSharp.Extensions

Unity3D

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.

Loading comments...
Tutorials

Articles

Labs