diff --git a/src/Numerics/Optimization/ObjectiveFunctions/LazyObjectiveFunctionBase.cs b/src/Numerics/Optimization/ObjectiveFunctions/LazyObjectiveFunctionBase.cs index d8357772..5ec0aa0c 100644 --- a/src/Numerics/Optimization/ObjectiveFunctions/LazyObjectiveFunctionBase.cs +++ b/src/Numerics/Optimization/ObjectiveFunctions/LazyObjectiveFunctionBase.cs @@ -6,14 +6,14 @@ namespace MathNet.Numerics.Optimization.ObjectiveFunctions { Vector _point; - bool _hasFunctionValue; - double _functionValue; + protected bool _hasFunctionValue; + protected double _functionValue; - bool _hasGradientValue; - Vector _gradientValue; + protected bool _hasGradientValue; + protected Vector _gradientValue; - bool _hasHessianValue; - Matrix _hessianValue; + protected bool _hasHessianValue; + protected Matrix _hessianValue; protected LazyObjectiveFunctionBase(bool gradientSupported, bool hessianSupported) {