[math] LeastSquaresProblem countEvaluations?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[math] LeastSquaresProblem countEvaluations?

ole ersoy
Hi,

The LM optimize method counts evaluations.  The below method also does.  Just wanted to check in to see whether it's still supposed to?

     public static LeastSquaresProblem countEvaluations(final LeastSquaresProblem problem,
                                                        final Incrementor counter) {
         return new LeastSquaresAdapter(problem) {

             /** {@inheritDoc} */
             @Override
             public Evaluation evaluate(final RealVector point) {
                 counter.incrementCount();
                 return super.evaluate(point);
             }

             // Delegate the rest.
         };
     }

Cheers,
Ole

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]