Class ProblemResults
The results of a minimization: what QuantLib's minimize leaves in the Problem it changes, and the
end criterion it returns.
public sealed record ProblemResults : IEquatable<ProblemResults>
- Inheritance
-
ProblemResults
- Implements
- Inherited Members
Remarks
Equality compares every member by value, the current value element by element.
Constructors
ProblemResults(ImmutableArray<double>, double?, double?, int, int, EndCriteriaType)
The results of a minimization: what QuantLib's minimize leaves in the Problem it changes, and the
end criterion it returns.
public ProblemResults(ImmutableArray<double> CurrentValue, double? FunctionValue, double? GradientNormValue, int FunctionEvaluation, int GradientEvaluation, EndCriteriaType EndCriteriaType)
Parameters
CurrentValueImmutableArray<double>The current value of the local minimum, the minimization's result.
FunctionValuedouble?The value of the cost function at the current value; null (QuantLib's
Null<Real>()) where the method sets none.GradientNormValuedouble?The value of the gradient norm at the current value; null (QuantLib's
Null<Real>()) where the method sets none.FunctionEvaluationintThe number of evaluations of the cost function.
GradientEvaluationintThe number of evaluations of the cost function's gradient.
EndCriteriaTypeEndCriteriaTypeWhy the minimization ended.
Remarks
Equality compares every member by value, the current value element by element.
Properties
CurrentValue
The current value of the local minimum, the minimization's result.
public ImmutableArray<double> CurrentValue { get; init; }
Property Value
EndCriteriaType
Why the minimization ended.
public EndCriteriaType EndCriteriaType { get; init; }
Property Value
FunctionEvaluation
The number of evaluations of the cost function.
public int FunctionEvaluation { get; init; }
Property Value
FunctionValue
The value of the cost function at the current value; null (QuantLib's Null<Real>())
where the method sets none.
public double? FunctionValue { get; init; }
Property Value
GradientEvaluation
The number of evaluations of the cost function's gradient.
public int GradientEvaluation { get; init; }
Property Value
GradientNormValue
The value of the gradient norm at the current value; null (QuantLib's Null<Real>())
where the method sets none.
public double? GradientNormValue { get; init; }
Property Value
Methods
Deconstruct(out ImmutableArray<double>, out double?, out double?, out int, out int, out EndCriteriaType)
public void Deconstruct(out ImmutableArray<double> CurrentValue, out double? FunctionValue, out double? GradientNormValue, out int FunctionEvaluation, out int GradientEvaluation, out EndCriteriaType EndCriteriaType)
Parameters
CurrentValueImmutableArray<double>FunctionValuedouble?GradientNormValuedouble?FunctionEvaluationintGradientEvaluationintEndCriteriaTypeEndCriteriaType
Equals(ProblemResults?)
public bool Equals(ProblemResults? other)
Parameters
otherProblemResults
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ProblemResults?, ProblemResults?)
public static bool operator ==(ProblemResults? left, ProblemResults? right)
Parameters
leftProblemResultsrightProblemResults
Returns
operator !=(ProblemResults?, ProblemResults?)
public static bool operator !=(ProblemResults? left, ProblemResults? right)
Parameters
leftProblemResultsrightProblemResults