RE: Minuit2

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Fri, 4 Sep 2009 15:04:51 +0200

Hello Patrick,

 UserState ().NFcn () or FunctionMinimum::NFcn() returns the total number of function calls (the one that is also printed at the end of the minimization) and I guess is the one you want to have.

States().size() is the total number of iterations performed by Migrad. For each iteration, new parameter values are found, new values of the gradient are calculated and the Hessian is updated using this information. Therefore for each iteration you have few function calls depending on the number of parameters (at least 2 * NumberOfParams )

  Best Regards

 Lorenzo

-----Original Message-----
From: owner-roottalk_at_root.cern.ch on behalf of Patrick Dupre Sent: Thu 9/3/2009 11:36 PM
To: roottalk_at_root.cern.ch
Subject: [ROOT] Minuit2  

Hello,

How do I get the number of iterations run by Minuit2 ? I tried:
1) UserState ().NFcn () ;
but it return 62.
2) States().size () ;

I need to get:
# of function calls: 75

Thank for your help.

-- 
---

==========================================================================
Patrick DUPRÉ | | Department of Chemistry | | Phone: (44)-(0)-1904-434384 The University of York | | Fax: (44)-(0)-1904-432516 Heslington | | York YO10 5DD United Kingdom | | email: pd520_at_york.ac.uk
==========================================================================
Received on Fri Sep 04 2009 - 15:05:00 CEST

This archive was generated by hypermail 2.2.0 : Fri Sep 04 2009 - 23:50:01 CEST