#include <SequentialMinimizer.h>
Classes | |
struct | Worker |
Public Types | |
enum | State { Cleared, Ready, Active, Done, Fixed, Unknown } |
Public Member Functions | |
virtual void | Clear () |
reset for consecutive minimizations - implement if needed More... | |
virtual double | CovMatrix (unsigned int i, unsigned int j) const |
virtual double | Edm () const |
return expected distance reached from the minimum More... | |
virtual const double * | Errors () const |
return errors at the minimum More... | |
virtual const double * | MinGradient () const |
return pointer to gradient values at the minimum More... | |
virtual bool | Minimize () |
method to perform the minimization More... | |
virtual double | MinValue () const |
return minimum function value More... | |
virtual unsigned int | NCalls () const |
number of function calls to reach the minimum More... | |
virtual unsigned int | NDim () const |
virtual unsigned int | NFree () const |
virtual bool | ProvidesError () const |
minimizer provides error and error matrix More... | |
SequentialMinimizer (const char *name=0) | |
virtual bool | SetFixedVariable (unsigned int ivar, const std::string &name, double val) |
set fixed variable (override if minimizer supports them ) More... | |
virtual void | SetFunction (const ROOT::Math::IMultiGenFunction &func) |
set the function to minimize More... | |
virtual bool | SetLimitedVariable (unsigned int ivar, const std::string &name, double val, double step, double lower, double upper) |
set upper/lower limited variable (override if minimizer supports them ) More... | |
virtual bool | SetVariable (unsigned int ivar, const std::string &name, double val, double step) |
set free variable More... | |
virtual const double * | X () const |
return pointer to X values at the minimum More... | |
Protected Member Functions | |
bool | doFullMinim () |
bool | improve (int smallsteps=5) |
bool | minimize (int smallsteps=5) |
Protected Attributes | |
double | edm_ |
std::auto_ptr < ROOT::Math::Minimizer > | fullMinimizer_ |
std::auto_ptr< MinimizerContext > | func_ |
double | minValue_ |
unsigned int | nDim_ |
unsigned int | nFree_ |
State | state_ |
std::vector< int > | subspaceIndices_ |
std::vector< Worker > | workers_ |
Definition at line 109 of file SequentialMinimizer.h.
Enumerator | |
---|---|
Cleared | |
Ready | |
Active | |
Done | |
Fixed | |
Unknown |
Definition at line 163 of file SequentialMinimizer.h.
|
inline |
Definition at line 111 of file SequentialMinimizer.h.
|
virtual |
reset for consecutive minimizations - implement if needed
Definition at line 313 of file SequentialMinimizer.cc.
References DEBUGV_SM_printf, infinity, cmsmath::SequentialMinimizer::Worker::state, and w().
|
inlinevirtual |
Definition at line 160 of file SequentialMinimizer.h.
|
protected |
Definition at line 482 of file SequentialMinimizer.cc.
References i, j, cmsmath::OneDimMinimizer::max(), cmsmath::OneDimMinimizer::min(), cmsmath::OneDimMinimizer::moveTo(), n, cmsmath::OneDimMinimizer::name(), convertSQLiteXML::ok, evf::utils::state, cmsmath::OneDimMinimizer::step(), and w().
|
inlinevirtual |
return expected distance reached from the minimum
Definition at line 135 of file SequentialMinimizer.h.
References edm_.
|
inlinevirtual |
return errors at the minimum
Definition at line 158 of file SequentialMinimizer.h.
|
protected |
Definition at line 366 of file SequentialMinimizer.cc.
References cmsmath::OneDimMinimizer::cname(), DEBUG_SM_printf, DEBUGV_SM_printf, runtimedef::get(), i, cmsmath::OneDimMinimizer::improve(), cmsmath::SequentialMinimizer::Worker::nUnaffected, mathSSE::sqrt(), cmsmath::SequentialMinimizer::Worker::state, cmsmath::OneDimMinimizer::Unchanged, and w().
|
inlinevirtual |
return pointer to gradient values at the minimum
Definition at line 141 of file SequentialMinimizer.h.
|
virtual |
method to perform the minimization
Definition at line 348 of file SequentialMinimizer.cc.
|
protected |
Definition at line 352 of file SequentialMinimizer.cc.
References i, cmsmath::OneDimMinimizer::isInit(), cmsmath::OneDimMinimizer::minimize(), edm::hlt::Ready, cmsmath::SequentialMinimizer::Worker::state, Unknown, and w().
|
inlinevirtual |
return minimum function value
Definition at line 132 of file SequentialMinimizer.h.
References minValue_.
|
inlinevirtual |
number of function calls to reach the minimum
Definition at line 144 of file SequentialMinimizer.h.
References func_.
|
inlinevirtual |
this is <= Function().NDim() which is the total number of variables (free+ constrained ones)
Definition at line 148 of file SequentialMinimizer.h.
References nDim_.
|
inlinevirtual |
number of free variables (real dimension of the problem) this is <= Function().NDim() which is the total
Definition at line 152 of file SequentialMinimizer.h.
References nFree_.
|
inlinevirtual |
minimizer provides error and error matrix
Definition at line 155 of file SequentialMinimizer.h.
|
virtual |
set fixed variable (override if minimizer supports them )
Definition at line 339 of file SequentialMinimizer.cc.
References DEBUGV_SM_printf.
|
virtual |
set the function to minimize
Definition at line 302 of file SequentialMinimizer.cc.
References DEBUG_SM_printf.
|
virtual |
set upper/lower limited variable (override if minimizer supports them )
Definition at line 330 of file SequentialMinimizer.cc.
References DEBUGV_SM_printf, launcher::step, and pileupCalc::upper.
|
virtual |
set free variable
Definition at line 321 of file SequentialMinimizer.cc.
References DEBUGV_SM_printf, and launcher::step.
|
inlinevirtual |
return pointer to X values at the minimum
Definition at line 138 of file SequentialMinimizer.h.
References func_.
Referenced by svgfig.Curve.Sample::__repr__().
|
protected |
Definition at line 179 of file SequentialMinimizer.h.
Referenced by Edm().
|
protected |
Definition at line 186 of file SequentialMinimizer.h.
|
protected |
Definition at line 174 of file SequentialMinimizer.h.
|
protected |
Definition at line 178 of file SequentialMinimizer.h.
Referenced by MinValue().
|
protected |
Definition at line 175 of file SequentialMinimizer.h.
Referenced by NDim().
|
protected |
Definition at line 175 of file SequentialMinimizer.h.
Referenced by NFree().
|
protected |
Definition at line 183 of file SequentialMinimizer.h.
|
protected |
Definition at line 187 of file SequentialMinimizer.h.
|
protected |
Definition at line 182 of file SequentialMinimizer.h.