|
|
|
@ -39,7 +39,7 @@ namespace MathNet.Numerics.Optimization |
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
throw new EvaluationException("Objective function evaluation failed.", e, new DenseVector(1, this.Point)); |
|
|
|
throw new EvaluationException("Objective function evaluation failed.", e, DenseVector.Create(1, this.Point)); |
|
|
|
} |
|
|
|
this.Checker.ValueChecker(tmp, this.InnerEvaluation.Point); |
|
|
|
} |
|
|
|
@ -61,7 +61,7 @@ namespace MathNet.Numerics.Optimization |
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
throw new EvaluationException("Objective derivative evaluation failed.", e, new DenseVector(1, this.Point)); |
|
|
|
throw new EvaluationException("Objective derivative evaluation failed.", e, DenseVector.Create(1, this.Point)); |
|
|
|
} |
|
|
|
this.Checker.DerivativeChecker(tmp, this.InnerEvaluation.Point); |
|
|
|
} |
|
|
|
@ -83,7 +83,7 @@ namespace MathNet.Numerics.Optimization |
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
throw new EvaluationException("Objective second derivative evaluation failed.", e, new DenseVector(1,this.Point)); |
|
|
|
throw new EvaluationException("Objective second derivative evaluation failed.", e, DenseVector.Create(1, this.Point)); |
|
|
|
} |
|
|
|
this.Checker.SecondDerivativeChecker(tmp, this.InnerEvaluation.Point); |
|
|
|
} |
|
|
|
@ -125,7 +125,7 @@ namespace MathNet.Numerics.Optimization |
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
throw new EvaluationException("Objective evaluation failed.", e, new DenseVector(1,point)); |
|
|
|
throw new EvaluationException("Objective evaluation failed.", e, DenseVector.Create(1, point)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|