diff --git a/src/main/java/org/apache/commons/math3/optimization/BaseOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/BaseOptimizer.java
index 27e35e725..fa9a99e5a 100644
--- a/src/main/java/org/apache/commons/math3/optimization/BaseOptimizer.java
+++ b/src/main/java/org/apache/commons/math3/optimization/BaseOptimizer.java
@@ -25,7 +25,7 @@ package org.apache.commons.math3.optimization;
*
{@link org.apache.commons.math3.optimization.MultivariateOptimizer}
* {@link org.apache.commons.math3.optimization.DifferentiableMultivariateOptimizer}
* {@link org.apache.commons.math3.optimization.DifferentiableMultivariateVectorOptimizer}
- * {@link org.apache.commons.math3.optimization.univariate.UnivariateRealOptimizer}
+ * {@link org.apache.commons.math3.optimization.univariate.UnivariateOptimizer}
*
*
* @param Type of the point/objective pair.
diff --git a/src/main/java/org/apache/commons/math3/optimization/package-info.java b/src/main/java/org/apache/commons/math3/optimization/package-info.java
index 9905ba4c9..0c8ec916e 100644
--- a/src/main/java/org/apache/commons/math3/optimization/package-info.java
+++ b/src/main/java/org/apache/commons/math3/optimization/package-info.java
@@ -32,8 +32,8 @@
* interfaces defining the common behavior of optimizers, one for each supported type of objective
* function:
*
- * - {@link org.apache.commons.math3.optimization.univariate.UnivariateRealOptimizer
- * UnivariateRealOptimizer} for {@link org.apache.commons.math3.analysis.UnivariateFunction
+ *
- {@link org.apache.commons.math3.optimization.univariate.UnivariateOptimizer
+ * UnivariateOptimizer} for {@link org.apache.commons.math3.analysis.UnivariateFunction
* univariate real functions}
* - {@link org.apache.commons.math3.optimization.MultivariateOptimizer
* MultivariateOptimizer} for {@link org.apache.commons.math3.analysis.MultivariateFunction
diff --git a/src/main/java/org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.java
index 641a3633c..79c2e42f4 100644
--- a/src/main/java/org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.java
+++ b/src/main/java/org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.java
@@ -33,7 +33,7 @@ import org.apache.commons.math3.optimization.ConvergenceChecker;
* @since 2.0
*/
public abstract class BaseAbstractUnivariateOptimizer
- implements UnivariateRealOptimizer {
+ implements UnivariateOptimizer {
/** Convergence checker. */
private final ConvergenceChecker checker;
/** Evaluations counter. */
diff --git a/src/main/java/org/apache/commons/math3/optimization/univariate/BaseUnivariateOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/univariate/BaseUnivariateOptimizer.java
index 38c86608f..c35ad2cc2 100644
--- a/src/main/java/org/apache/commons/math3/optimization/univariate/BaseUnivariateOptimizer.java
+++ b/src/main/java/org/apache/commons/math3/optimization/univariate/BaseUnivariateOptimizer.java
@@ -26,7 +26,7 @@ import org.apache.commons.math3.optimization.GoalType;
* Commons-Math. Users of the API are advised to base their code on
* the following interfaces:
*
- * - {@link org.apache.commons.math3.optimization.univariate.UnivariateRealOptimizer}
+ * - {@link org.apache.commons.math3.optimization.univariate.UnivariateOptimizer}
*
*
* @param Type of the objective function to be optimized.
diff --git a/src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateMultiStartOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateMultiStartOptimizer.java
index f3a86177c..a45fa2776 100644
--- a/src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateMultiStartOptimizer.java
+++ b/src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateMultiStartOptimizer.java
@@ -30,7 +30,7 @@ import org.apache.commons.math3.optimization.GoalType;
import org.apache.commons.math3.optimization.ConvergenceChecker;
/**
- * Special implementation of the {@link UnivariateRealOptimizer} interface
+ * Special implementation of the {@link UnivariateOptimizer} interface
* adding multi-start features to an existing optimizer.
*
* This class wraps a classical optimizer to use it several times in
diff --git a/src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateRealOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateOptimizer.java
similarity index 96%
rename from src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateRealOptimizer.java
rename to src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateOptimizer.java
index 21787a038..b99a70ac2 100644
--- a/src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateRealOptimizer.java
+++ b/src/main/java/org/apache/commons/math3/optimization/univariate/UnivariateOptimizer.java
@@ -24,5 +24,5 @@ import org.apache.commons.math3.analysis.UnivariateFunction;
* @version $Id$
* @since 3.0
*/
-public interface UnivariateRealOptimizer
+public interface UnivariateOptimizer
extends BaseUnivariateOptimizer {}
diff --git a/src/test/java/org/apache/commons/math3/optimization/univariate/BrentOptimizerTest.java b/src/test/java/org/apache/commons/math3/optimization/univariate/BrentOptimizerTest.java
index b8e56c7f7..49f10038b 100644
--- a/src/test/java/org/apache/commons/math3/optimization/univariate/BrentOptimizerTest.java
+++ b/src/test/java/org/apache/commons/math3/optimization/univariate/BrentOptimizerTest.java
@@ -34,7 +34,7 @@ public final class BrentOptimizerTest {
@Test
public void testSinMin() {
UnivariateFunction f = new SinFunction();
- UnivariateRealOptimizer optimizer = new BrentOptimizer(1e-10, 1e-14);
+ UnivariateOptimizer optimizer = new BrentOptimizer(1e-10, 1e-14);
Assert.assertEquals(3 * Math.PI / 2, optimizer.optimize(200, f, GoalType.MINIMIZE, 4, 5).getPoint(),1e-8);
Assert.assertTrue(optimizer.getEvaluations() <= 50);
Assert.assertEquals(200, optimizer.getMaxEvaluations());
@@ -53,7 +53,7 @@ public final class BrentOptimizerTest {
public void testQuinticMin() {
// The function has local minima at -0.27195613 and 0.82221643.
UnivariateFunction f = new QuinticFunction();
- UnivariateRealOptimizer optimizer = new BrentOptimizer(1e-10, 1e-14);
+ UnivariateOptimizer optimizer = new BrentOptimizer(1e-10, 1e-14);
Assert.assertEquals(-0.27195613, optimizer.optimize(200, f, GoalType.MINIMIZE, -0.3, -0.2).getPoint(), 1.0e-8);
Assert.assertEquals( 0.82221643, optimizer.optimize(200, f, GoalType.MINIMIZE, 0.3, 0.9).getPoint(), 1.0e-8);
Assert.assertTrue(optimizer.getEvaluations() <= 50);
@@ -67,7 +67,7 @@ public final class BrentOptimizerTest {
public void testQuinticMinStatistics() {
// The function has local minima at -0.27195613 and 0.82221643.
UnivariateFunction f = new QuinticFunction();
- UnivariateRealOptimizer optimizer = new BrentOptimizer(1e-11, 1e-14);
+ UnivariateOptimizer optimizer = new BrentOptimizer(1e-11, 1e-14);
final DescriptiveStatistics[] stat = new DescriptiveStatistics[2];
for (int i = 0; i < stat.length; i++) {
@@ -96,7 +96,7 @@ public final class BrentOptimizerTest {
// The quintic function has zeros at 0, +-0.5 and +-1.
// The function has a local maximum at 0.27195613.
UnivariateFunction f = new QuinticFunction();
- UnivariateRealOptimizer optimizer = new BrentOptimizer(1e-12, 1e-14);
+ UnivariateOptimizer optimizer = new BrentOptimizer(1e-12, 1e-14);
Assert.assertEquals(0.27195613, optimizer.optimize(100, f, GoalType.MAXIMIZE, 0.2, 0.3).getPoint(), 1e-8);
try {
optimizer.optimize(5, f, GoalType.MAXIMIZE, 0.2, 0.3);
@@ -109,7 +109,7 @@ public final class BrentOptimizerTest {
@Test
public void testMinEndpoints() {
UnivariateFunction f = new SinFunction();
- UnivariateRealOptimizer optimizer = new BrentOptimizer(1e-8, 1e-14);
+ UnivariateOptimizer optimizer = new BrentOptimizer(1e-8, 1e-14);
// endpoint is minimum
double result = optimizer.optimize(50, f, GoalType.MINIMIZE, 3 * Math.PI / 2, 5).getPoint();
diff --git a/src/test/java/org/apache/commons/math3/optimization/univariate/UnivariateMultiStartOptimizerTest.java b/src/test/java/org/apache/commons/math3/optimization/univariate/UnivariateMultiStartOptimizerTest.java
index 33b9f0153..fa9e321f2 100644
--- a/src/test/java/org/apache/commons/math3/optimization/univariate/UnivariateMultiStartOptimizerTest.java
+++ b/src/test/java/org/apache/commons/math3/optimization/univariate/UnivariateMultiStartOptimizerTest.java
@@ -32,7 +32,7 @@ public class UnivariateMultiStartOptimizerTest {
@Test
public void testSinMin() {
UnivariateFunction f = new SinFunction();
- UnivariateRealOptimizer underlying = new BrentOptimizer(1e-10, 1e-14);
+ UnivariateOptimizer underlying = new BrentOptimizer(1e-10, 1e-14);
JDKRandomGenerator g = new JDKRandomGenerator();
g.setSeed(44428400075l);
UnivariateMultiStartOptimizer optimizer =
@@ -54,7 +54,7 @@ public class UnivariateMultiStartOptimizerTest {
// The quintic function has zeros at 0, +-0.5 and +-1.
// The function has extrema (first derivative is zero) at 0.27195613 and 0.82221643,
UnivariateFunction f = new QuinticFunction();
- UnivariateRealOptimizer underlying = new BrentOptimizer(1e-9, 1e-14);
+ UnivariateOptimizer underlying = new BrentOptimizer(1e-9, 1e-14);
JDKRandomGenerator g = new JDKRandomGenerator();
g.setSeed(4312000053L);
UnivariateMultiStartOptimizer optimizer =
@@ -83,7 +83,7 @@ public class UnivariateMultiStartOptimizerTest {
return 0;
}
};
- UnivariateRealOptimizer underlying = new BrentOptimizer(1e-9, 1e-14);
+ UnivariateOptimizer underlying = new BrentOptimizer(1e-9, 1e-14);
JDKRandomGenerator g = new JDKRandomGenerator();
g.setSeed(4312000053L);
UnivariateMultiStartOptimizer optimizer =