GOptimizer::status() and iter() missing from GOptimizerLM
|Assigned To:||Knödlseder Jürgen||% Done:|
I’m not sure if this is by design, but I think the GOptimizer virtual methods status() and iter() are in $GAMMALIB/include/GOptimizer.hpp, but aren’t coded into classes that inherit from GOptimizer. I’ve been trying to diagnose weird ctlike results, but some fancy regexs are needed to extract basic convergence information from the log files.
#1 Updated by Knödlseder Jürgen about 7 years ago
Can you explain a bit more what your problem is?
GOptimizer has indeed the virtual methods
iter(), and both a implemented in
GOptimizerLM (both return
GOptimizerLM is in fact the only optimizer that exists so far, hence this is the only class that derives from
#8 Updated by Knödlseder Jürgen about 7 years ago
- Status changed from In Progress to Closed
- % Done changed from 10 to 100
I added a
logger() method to
GOptimizerLM to allow setting of the logger and I changed the logger constructor so that a pointer to a logger is passed instead of a reference. This allows to set also a NULL logger, which means that the optimizer is not logging.
An optimizer object of type
GOptimizerLM is now allocated in the
ctlike constructor (through the