Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-376

One-time initialization in "DirectSearchOptimizer"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Labels:
      None

      Description

      In class "DirectSearchOptimizer" (in package "optimization.direct"), the "optimize" method contains this code (at line 270):

      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);
      }
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              erans Gilles
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: