git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@955230 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2010-06-16 13:53:18 +00:00
parent e3f28223ad
commit abfacd6d14
2 changed files with 9 additions and 5 deletions

View File

@ -61,10 +61,10 @@ import org.apache.commons.math.optimization.SimpleScalarValueChecker;
* configuration from a unit hypercube. Each call to {@link * configuration from a unit hypercube. Each call to {@link
* #optimize(MultivariateRealFunction, GoalType, double[]) optimize} will reuse * #optimize(MultivariateRealFunction, GoalType, double[]) optimize} will reuse
* the current start configuration and move it such that its first vertex * the current start configuration and move it such that its first vertex
* is at the provided start point of the optimization. If the same optimizer * is at the provided start point of the optimization. If the {@code optimize}
* is used to solve different problems and the number of parameters change, * method is called to solve a different problem and the number of parameters
* the start configuration <em>must</em> be reset or a dimension mismatch * change, the start configuration will be reset to a default one with the
* will occur.</p> * appropriate dimensions.</p>
* *
* <p>If {@link #setConvergenceChecker(RealConvergenceChecker)} is not called, * <p>If {@link #setConvergenceChecker(RealConvergenceChecker)} is not called,
* a default {@link SimpleScalarValueChecker} is used.</p> * a default {@link SimpleScalarValueChecker} is used.</p>
@ -267,7 +267,8 @@ public abstract class DirectSearchOptimizer implements MultivariateRealOptimizer
throws FunctionEvaluationException, OptimizationException, throws FunctionEvaluationException, OptimizationException,
IllegalArgumentException { IllegalArgumentException {
if (startConfiguration == null) { if (startConfiguration == null
|| startConfiguration.length != startPoint.length) {
// no initial configuration has been set up for simplex // no initial configuration has been set up for simplex
// build a default one from a unit hypercube // build a default one from a unit hypercube
final double[] unit = new double[startPoint.length]; final double[] unit = new double[startPoint.length];

View File

@ -52,6 +52,9 @@ The <action> type attribute can be add,update,fix,remove.
If the output is not quite correct, check for invisible trailing spaces! If the output is not quite correct, check for invisible trailing spaces!
--> -->
<release version="2.2" date="TBD" description="TBD"> <release version="2.2" date="TBD" description="TBD">
<action dev="erans" type="fix" issue="MATH-376">
Allow multiple optimizations with a default simplex.
</action>
<action dev="erans" type="update" issue="MATH-370"> <action dev="erans" type="update" issue="MATH-370">
Added new "equalsIncludingNaN" methods that have the same semantics as the old "equals" methods. Added new "equalsIncludingNaN" methods that have the same semantics as the old "equals" methods.
These are deprecated, and their semantics will be modified (in the next major release) such that These are deprecated, and their semantics will be modified (in the next major release) such that