Add enum for Selection method

This commit is contained in:
2025-07-11 17:15:11 +07:00
parent f720cb7321
commit c62570e15d
10 changed files with 59 additions and 39 deletions

View File

@@ -306,9 +306,6 @@ public class BacktestController : BaseController
request.MaxTakeProfit,
request.EligibleIndicators);
// TODO: Trigger background genetic algorithm execution
// This will be implemented in the next step with a background service
return Ok(geneticRequest);
}
catch (Exception ex)

View File

@@ -50,7 +50,7 @@ public class RunGeneticRequest
/// <summary>
/// The selection method to use
/// </summary>
public string SelectionMethod { get; set; } = "tournament";
public GeneticSelectionMethod SelectionMethod { get; set; }
/// <summary>
/// The percentage of elite individuals to preserve (1-50)