The simplest concrete implementation of IFuncMinimum interface.
More...
#include <src/Components/FuncMinimum.h>
The simplest concrete implementation of IFuncMinimum interface.
- See also
- GaudiGSL/IFuncMinimum.h
- Author
- Kirill Miklyaev kiril.nosp@m.lm@i.nosp@m.ris1..nosp@m.itep.nosp@m..ru
- Date
- 2002-09-14
Definition at line 24 of file FuncMinimum.h.
FuncMinimum::~FuncMinimum |
( |
| ) |
|
|
overridedefault |
FuncMinimum::FuncMinimum |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
Standard constructor.
- See also
- GaudiTool
- Parameters
-
type | tool type |
name | tool name |
parent | parent of the tool |
declare type of the algorithm for multidimensional minimization
declare maximum of iteration
declare the absolute tolerance for the Euclidean norm of the gradient
declare the size of the first trial step
declare the accuracy of the line minimization
Definition at line 52 of file FuncMinimum.cpp.
58 declareProperty (
"Algorithm",
m_algType );
66 declareProperty (
"Tol" ,
m_tol );
extends base_class
Typedef to this class.
FuncMinimum::FuncMinimum |
( |
| ) |
|
|
privatedelete |
default constructor is private
copy constructor is private
Definition at line 320 of file FuncMinimum.cpp.
328 return Error(
"Could not finalize base class GaudiTool", sc);
Definition of the MsgStream class used to transmit messages.
bool isFailure() const
Test for a status code of FAILURE.
This class is used for returning status codes from appropriate routines.
Overriding initialize.
The algorithm for multidimensional minimization
Definition at line 268 of file FuncMinimum.cpp.
277 return Error (
"Could not initialize base class GaudiTool", sc);
283 m_type = gsl_multimin_fdfminimizer_conjugate_fr ;
285 <<
"Minimization algorithm to be used: "
286 <<
"'gsl_multimin_fdfminimizer_conjugate_fr'"
291 m_type = gsl_multimin_fdfminimizer_conjugate_pr ;
293 <<
"Minimization algorithm to be used: "
294 <<
"'gsl_multimin_fdfminimizer_conjugate_pr'"
299 m_type = gsl_multimin_fdfminimizer_vector_bfgs ;
301 <<
"Minimization algorithm to be used: " <<
302 "'gsl_multimin_fdfminimizer_vector_bfgs'" <<
endmsg;
304 else if (
"steepest_descent" ==
m_algType )
306 m_type = gsl_multimin_fdfminimizer_steepest_descent ;
308 <<
"Minimization algorithm to be used: "
309 <<
"'gsl_multimin_fdfminimizer_steepest_descent'"
314 return Error(
" Unknown algorithm type '" +
m_algType +
"'");
Definition of the MsgStream class used to transmit messages.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
const gsl_multimin_fdfminimizer_type * m_type
bool isFailure() const
Test for a status code of FAILURE.
This class is used for returning status codes from appropriate routines.
StatusCode FuncMinimum::minimum |
( |
const GenFunc & |
func, |
|
|
Arg & |
arg |
|
) |
| const |
|
override |
Find minimum of the function "GenFunc".
- See also
- IFuncMinimum.h
- Returns
- StatusCode
StatusCode FuncMinimum::minimum |
( |
const GenFunc & |
func, |
|
|
Arg & |
arg, |
|
|
Covariance & |
covar |
|
) |
| const |
|
override |
Find minimum of the function "GenFunc".
- See also
- IFuncMinimum.h
- Returns
- StatusCode
std::string FuncMinimum::m_algType = "conjugate_fr" |
|
private |
double FuncMinimum::m_max_iter = 200 |
|
private |
double FuncMinimum::m_norm_gradient = 1.0e-10 |
|
private |
double FuncMinimum::m_step_size = 0.01 |
|
private |
double FuncMinimum::m_tol = 1e-10 |
|
private |
const gsl_multimin_fdfminimizer_type* FuncMinimum::m_type = nullptr |
|
private |
The documentation for this class was generated from the following files: