commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1410997 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/BaseAbstractMultivariateOptimizer.java
Date Sun, 18 Nov 2012 22:04:55 GMT
Author: erans
Date: Sun Nov 18 22:04:54 2012
New Revision: 1410997

URL: http://svn.apache.org/viewvc?rev=1410997&view=rev
Log:
MATH-894
Deprecation.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/BaseAbstractMultivariateOptimizer.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/BaseAbstractMultivariateOptimizer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/BaseAbstractMultivariateOptimizer.java?rev=1410997&r1=1410996&r2=1410997&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/BaseAbstractMultivariateOptimizer.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/BaseAbstractMultivariateOptimizer.java
Sun Nov 18 22:04:54 2012
@@ -115,9 +115,10 @@ public abstract class BaseAbstractMultiv
      * {@link #optimize(int,MultivariateFunction,GoalType,OptimizationData[])}
      * instead.
      */
+    @Deprecated
     public PointValuePair optimize(int maxEval, FUNC f, GoalType goalType,
                                    double[] startPoint) {
-        return optimizeInternal(maxEval, f, goalType, startPoint);
+        return optimizeInternal(maxEval, f, goalType, new InitialGuess(startPoint));
     }
 
     /**



Mime
View raw message