using MathNet.Numerics.LinearAlgebra; namespace MathNet.Numerics.Optimization { /// /// Objective function with a frozen evaluation that must not be changed from the outside. /// public interface IObjectiveFunctionEvaluation { /// Create a new unevaluated and independent copy of this objective function IObjectiveFunction CreateNew(); /// Create a new independent copy of this objective function, evaluated at the same point. IObjectiveFunction Fork(); Vector Point { get; } double Value { get; } bool IsGradientSupported { get; } Vector Gradient { get; } bool IsHessianSupported { get; } Matrix Hessian { get; } } /// /// Objective function with a mutable evaluation. /// public interface IObjectiveFunction : IObjectiveFunctionEvaluation { void EvaluateAt(Vector point); } }