MATH-376
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@955230 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3f28223ad
commit
abfacd6d14
|
@ -61,10 +61,10 @@ import org.apache.commons.math.optimization.SimpleScalarValueChecker;
|
|||
* configuration from a unit hypercube. Each call to {@link
|
||||
* #optimize(MultivariateRealFunction, GoalType, double[]) optimize} will reuse
|
||||
* 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 used to solve different problems and the number of parameters change,
|
||||
* the start configuration <em>must</em> be reset or a dimension mismatch
|
||||
* will occur.</p>
|
||||
* is at the provided start point of the optimization. If the {@code optimize}
|
||||
* method is called to solve a different problem and the number of parameters
|
||||
* change, the start configuration will be reset to a default one with the
|
||||
* appropriate dimensions.</p>
|
||||
*
|
||||
* <p>If {@link #setConvergenceChecker(RealConvergenceChecker)} is not called,
|
||||
* a default {@link SimpleScalarValueChecker} is used.</p>
|
||||
|
@ -267,7 +267,8 @@ public abstract class DirectSearchOptimizer implements MultivariateRealOptimizer
|
|||
throws FunctionEvaluationException, OptimizationException,
|
||||
IllegalArgumentException {
|
||||
|
||||
if (startConfiguration == null) {
|
||||
if (startConfiguration == null
|
||||
|| startConfiguration.length != startPoint.length) {
|
||||
// no initial configuration has been set up for simplex
|
||||
// build a default one from a unit hypercube
|
||||
final double[] unit = new double[startPoint.length];
|
||||
|
|
|
@ -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!
|
||||
-->
|
||||
<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">
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue