Start impl for genetic
This commit is contained in:
27
src/Managing.Domain/Backtests/GeneticAlgorithmResult.cs
Normal file
27
src/Managing.Domain/Backtests/GeneticAlgorithmResult.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace Managing.Domain.Backtests;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the result of a genetic algorithm run
|
||||
/// </summary>
|
||||
public class GeneticAlgorithmResult
|
||||
{
|
||||
/// <summary>
|
||||
/// The best fitness score achieved
|
||||
/// </summary>
|
||||
public double BestFitness { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The best individual (chromosome) found
|
||||
/// </summary>
|
||||
public string BestIndividual { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Progress information as JSON string
|
||||
/// </summary>
|
||||
public string ProgressInfo { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// When the algorithm completed
|
||||
/// </summary>
|
||||
public DateTime CompletedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user