Class OptimizationResult<TMetric>
- Namespace
- SignalSharp.Optimization
- Assembly
- SignalSharp.dll
Represents the result of an optimization process.
public record OptimizationResult<TMetric> : IEquatable<OptimizationResult<TMetric>>
Type Parameters
TMetricThe type of the objective metric (e.g., SSE).
- Inheritance
-
OptimizationResult<TMetric>
- Implements
-
IEquatable<OptimizationResult<TMetric>>
- Inherited Members
Constructors
OptimizationResult(IReadOnlyDictionary<string, double>, TMetric, bool, string?, int?, int?)
Represents the result of an optimization process.
public OptimizationResult(IReadOnlyDictionary<string, double> BestParameters, TMetric MinimizedMetric, bool Success = true, string? Message = null, int? Iterations = null, int? FunctionEvaluations = null)
Parameters
BestParametersIReadOnlyDictionary<string, double>A dictionary of the best parameter names and their optimized values.
MinimizedMetricTMetricThe value of the objective metric at the best parameters.
SuccessboolIndicates if the optimization was successful in finding a valid solution.
MessagestringAn optional message providing more details about the optimization outcome or errors.
Iterationsint?Optional: The number of iterations performed by the optimizer (if applicable).
FunctionEvaluationsint?Optional: The total number of times the objective function was evaluated (if applicable).
Properties
BestParameters
A dictionary of the best parameter names and their optimized values.
public IReadOnlyDictionary<string, double> BestParameters { get; init; }
Property Value
FunctionEvaluations
Optional: The total number of times the objective function was evaluated (if applicable).
public int? FunctionEvaluations { get; init; }
Property Value
- int?
Iterations
Optional: The number of iterations performed by the optimizer (if applicable).
public int? Iterations { get; init; }
Property Value
- int?
Message
An optional message providing more details about the optimization outcome or errors.
public string? Message { get; init; }
Property Value
MinimizedMetric
The value of the objective metric at the best parameters.
public TMetric MinimizedMetric { get; init; }
Property Value
- TMetric
Success
Indicates if the optimization was successful in finding a valid solution.
public bool Success { get; init; }