Add progression and new method of selection/mutation/crossover

This commit is contained in:
2025-07-11 23:38:22 +07:00
parent b21b0a342c
commit cebbeff887
13 changed files with 444 additions and 69 deletions

View File

@@ -112,6 +112,18 @@ public class GeneticRequest
[Required]
public GeneticSelectionMethod SelectionMethod { get; set; } = GeneticSelectionMethod.Tournament;
/// <summary>
/// The crossover method to use
/// </summary>
[Required]
public GeneticCrossoverMethod CrossoverMethod { get; set; } = GeneticCrossoverMethod.Uniform;
/// <summary>
/// The mutation method to use
/// </summary>
[Required]
public GeneticMutationMethod MutationMethod { get; set; } = GeneticMutationMethod.Uniform;
/// <summary>
/// The percentage of elite individuals to preserve (1-50)
/// </summary>