using MathNet.Numerics.LinearAlgebra; namespace MathNet.Numerics.Optimization { public interface IObjectiveFunctionEvaluation { IObjectiveFunction Fork(); Vector Point { get; } double Value { get; } bool IsGradientSupported { get; } Vector Gradient { get; } bool IsHessianSupported { get; } Matrix Hessian { get; } } public interface IObjectiveFunction : IObjectiveFunctionEvaluation { void EvaluateAt(Vector point); } }