Add enum for Selection method
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user