From 9f631fecc80e69a15db3f92e3301fed9836ec8e3 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Tue, 31 Aug 2010 12:05:00 +0000 Subject: [PATCH] Added checks for "null". git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@991164 13f79535-47bb-0310-9956-ffa450edef68 --- .../BaseMultivariateRealOptimizer.java | 1 + .../BaseMultivariateVectorialOptimizer.java | 1 + .../general/BaseAbstractScalarOptimizer.java | 12 ++++++++++++ .../general/BaseAbstractVectorialOptimizer.java | 15 ++++++++++++++- .../AbstractUnivariateRealOptimizer.java | 9 +++++++++ .../univariate/BaseUnivariateRealOptimizer.java | 2 ++ 6 files changed, 39 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math/optimization/BaseMultivariateRealOptimizer.java b/src/main/java/org/apache/commons/math/optimization/BaseMultivariateRealOptimizer.java index 38e572fdf..89e8d42d8 100644 --- a/src/main/java/org/apache/commons/math/optimization/BaseMultivariateRealOptimizer.java +++ b/src/main/java/org/apache/commons/math/optimization/BaseMultivariateRealOptimizer.java @@ -50,6 +50,7 @@ public interface BaseMultivariateRealOptimizer max} or the endpoints * do not satisfy the requirements specified by the optimizer. + * @throws NullArgumentException if any argument is {@code null}. */ UnivariateRealPointValuePair optimize(FUNC f, GoalType goalType, double min, double max,