[
https://issues.apache.org/jira/browse/MATH-376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luc Maisonobe closed MATH-376.
------------------------------
Closing issue as it was included in version 2.2, which has been released
> One-time initialization in "DirectSearchOptimizer"
> --------------------------------------------------
>
> Key: MATH-376
> URL: https://issues.apache.org/jira/browse/MATH-376
> Project: Commons Math
> Issue Type: Bug
> Reporter: Gilles
> Priority: Minor
> Fix For: 2.2
>
>
> In class "DirectSearchOptimizer" (in package "optimization.direct"), the
> "optimize" method contains this code (at line 270):
> {code}
> if (startConfiguration == null) {
> // no initial configuration has been set up for simplex
> // build a default one from a unit hypercube
> final double[] unit = new double[startPoint.length];
> Arrays.fill(unit, 1.0);
> setStartConfiguration(unit);
> }
> {code}
> I think that this has the consequence that it is impossible to call
> "optimize" a second time, where one would like to solve a problem with a
> different dimension.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira