dotnet new templates for GeneticSharp

Now GeneticSharp has a NuGet package called GeneticSharp.Templates, this package allows you to install GeneticSharp templates using the dotnet new command.

Installing the GeneticSharp.Templates

Before you can use the dotnet new command to create the GeneticSharp projects from templates, you need to install it on your machine:

dotnet new -i GeneticSharp.Templates

After this, if you run the command:

dotnet new GeneticSharp --list  

The GeneticSharp templates will be listed:

post image


Creating a new GeneticSharp project from templates

Console Application

Create a new console application template with GeneticSharp where you just need to implement the chromosome and fitness function.

dotnet new GeneticSharpConsoleApp -n MyNamespace -o MyOutoputFolder
post image


TSP Console application

Create a new console application template with GeneticSharp ready to run a Travelling Salesman Problem (TSP).

dotnet new GeneticSharpTspConsoleApp -n MyNamespace -o MyOutoputFolder
post image


TSP Unity3D

Create an Unity3D template with GeneticSharp ready to run a Travelling Salesman Problem (TSP).

dotnet new GeneticSharpTspUnity3d -n MyNamespace -o MyOutoputFolder
post image


Let’s evolve!

Loading comments...
Tutorials

Articles

Labs