MATH-466 - update Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056412 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
618f2f80ca
commit
787d654a60
|
@ -60,7 +60,8 @@ public class BaseMultiStartMultivariateRealOptimizer<FUNC extends MultivariateRe
|
|||
* Create a multi-start optimizer from a single-start optimizer.
|
||||
*
|
||||
* @param optimizer Single-start optimizer to wrap.
|
||||
* @param starts Number of starts to perform.
|
||||
* @param starts Number of starts to perform, must be >=1.
|
||||
* Multi-start is disabled if {@code starts == 1}.
|
||||
* @param generator Random vector generator to use for restarts.
|
||||
* @throws NullArgumentException if {@code optimizer} or {@code generator}
|
||||
* is {@code null}.
|
||||
|
@ -162,7 +163,7 @@ public class BaseMultiStartMultivariateRealOptimizer<FUNC extends MultivariateRe
|
|||
sortPairs(goal);
|
||||
|
||||
if (optima[0] == null) {
|
||||
throw lastException;
|
||||
throw lastException; // cannot be null if starts >=1
|
||||
}
|
||||
|
||||
// Return the found point given the best objective function value.
|
||||
|
|
|
@ -60,7 +60,8 @@ public class BaseMultiStartMultivariateVectorialOptimizer<FUNC extends Multivari
|
|||
* Create a multi-start optimizer from a single-start optimizer.
|
||||
*
|
||||
* @param optimizer Single-start optimizer to wrap.
|
||||
* @param starts Number of starts to perform.
|
||||
* @param starts Number of starts to perform, must be >=1.
|
||||
* Multi-start is disabled if {@code starts == 1}.
|
||||
* @param generator Random vector generator to use for restarts.
|
||||
* @throws NullArgumentException if {@code optimizer} or {@code generator}
|
||||
* is {@code null}.
|
||||
|
@ -166,7 +167,7 @@ public class BaseMultiStartMultivariateVectorialOptimizer<FUNC extends Multivari
|
|||
sortPairs(target, weights);
|
||||
|
||||
if (optima[0] == null) {
|
||||
throw lastException;
|
||||
throw lastException; // cannot be null if starts >=1
|
||||
}
|
||||
|
||||
// Return the found point given the best objective function value.
|
||||
|
|
Loading…
Reference in New Issue