English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Optimizer: URANIE::Optimizer::TOptimizerOpt Class Reference
Uranie / Optimizer v4.9.0
/* @license-end */
URANIE::Optimizer::TOptimizerOpt Class Reference

Description of the class TOptimizerOpt. More...

#include <TOptimizerOpt.h>

Inheritance diagram for URANIE::Optimizer::TOptimizerOpt:
Collaboration diagram for URANIE::Optimizer::TOptimizerOpt:

Public Types

enum  EOptimType { kFunction , kSumOfSquare }
 

Public Member Functions

Constructor and Destructor
 TOptimizerOpt ()
 Default constructor.
 
 TOptimizerOpt (URANIE::DataServer::TDataServer *tds, const char *functionname)
 Constructor with a dataserver.
 
 TOptimizerOpt (URANIE::DataServer::TDataServer *tds, TString slibrary, TString sfunction, TString sinit="")
 
virtual ~TOptimizerOpt ()
 Default destructor.
 
Manipulate the code
virtual void init (Option_t *option="")
 Init phase of the code.
 
virtual void optimize (Option_t *option="")
 Runs phase of the code.
 
virtual void terminate (Option_t *option="")
 Terminate phase of the code.
 
virtual void clean (Option_t *option="")
 Cleans the working directory of the code.
 
void run (Option_t *option="")
 
TMethodCall * getMethodCall () const
 
void incrementIteration ()
 
Int_t getIteration ()
 
Printing Log
void setLog ()
 
void unsetLog ()
 
void changeLog ()
 
Bool_t getLog ()
 
virtual void printLog (Option_t *option="")
 

Private Attributes

Bool_t _blog
 Boolean to edit the log.
 
URANIE::DataServer::TDataServer * _tds
 
TString _sLibrary
 Pointer vers un TDS.
 
TString _sFunctionName
 
TString _sInitFunctionName
 
Int_t _niter
 
TMethodCall * _fMethodCall
 OPTPP::USERFCN0 *_theOptFunction ; ///< The function.
 
void(* _fMethod )(Double_t *gin, Double_t *f)
 
void(* _fMethodOpt )(int n, const ColumnVector &x, double &fx, int &result)
 
TString _sname
 

Detailed Description

Description of the class TOptimizerOpt.

To be written by the developper.

Member Enumeration Documentation

◆ EOptimType

Enumerator
kFunction 
kSumOfSquare 

Constructor & Destructor Documentation

◆ TOptimizerOpt() [1/3]

URANIE::Optimizer::TOptimizerOpt::TOptimizerOpt ( )

Default constructor.

◆ TOptimizerOpt() [2/3]

URANIE::Optimizer::TOptimizerOpt::TOptimizerOpt ( URANIE::DataServer::TDataServer *  tds,
const char *  functionname 
)

Constructor with a dataserver.

References _fMethodCall, _fMethodOpt, _sname, _tds, and gOptOptimizer.

◆ TOptimizerOpt() [3/3]

URANIE::Optimizer::TOptimizerOpt::TOptimizerOpt ( URANIE::DataServer::TDataServer *  tds,
TString  slibrary,
TString  sfunction,
TString  sinit = "" 
)

References _sFunctionName, _sLibrary, _sname, _tds, and run().

◆ ~TOptimizerOpt()

URANIE::Optimizer::TOptimizerOpt::~TOptimizerOpt ( )
virtual

Default destructor.

Member Function Documentation

◆ changeLog()

void URANIE::Optimizer::TOptimizerOpt::changeLog ( )
inline

References _blog.

◆ clean()

void URANIE::Optimizer::TOptimizerOpt::clean ( Option_t *  option = "")
virtual

Cleans the working directory of the code.

Referenced by optimize().

◆ getIteration()

Int_t URANIE::Optimizer::TOptimizerOpt::getIteration ( )
inline

References _niter.

◆ getLog()

Bool_t URANIE::Optimizer::TOptimizerOpt::getLog ( )
inline

References _blog.

◆ getMethodCall()

TMethodCall * URANIE::Optimizer::TOptimizerOpt::getMethodCall ( ) const
inline

◆ incrementIteration()

void URANIE::Optimizer::TOptimizerOpt::incrementIteration ( )
inline

References _niter.

◆ init()

void URANIE::Optimizer::TOptimizerOpt::init ( Option_t *  option = "")
virtual

Init phase of the code.

Referenced by optimize().

◆ optimize()

void URANIE::Optimizer::TOptimizerOpt::optimize ( Option_t *  option = "")
virtual

Runs phase of the code.

References _sname, _tds, clean(), init(), and terminate().

◆ printLog()

void URANIE::Optimizer::TOptimizerOpt::printLog ( Option_t *  option = "")
virtual

◆ run()

void URANIE::Optimizer::TOptimizerOpt::run ( Option_t *  option = "")

◆ setLog()

void URANIE::Optimizer::TOptimizerOpt::setLog ( )
inline

References _blog.

◆ terminate()

void URANIE::Optimizer::TOptimizerOpt::terminate ( Option_t *  option = "")
virtual

Terminate phase of the code.

Referenced by optimize().

◆ unsetLog()

void URANIE::Optimizer::TOptimizerOpt::unsetLog ( )
inline

References _blog.

Member Data Documentation

◆ _blog

Bool_t URANIE::Optimizer::TOptimizerOpt::_blog
private

Boolean to edit the log.

Referenced by changeLog(), getLog(), setLog(), and unsetLog().

◆ _fMethod

void(* URANIE::Optimizer::TOptimizerOpt::_fMethod) (Double_t *gin, Double_t *f)
private

◆ _fMethodCall

TMethodCall* URANIE::Optimizer::TOptimizerOpt::_fMethodCall
private

OPTPP::USERFCN0 *_theOptFunction ; ///< The function.

Pointer to MethodCall in case of interpreted function

Referenced by getMethodCall(), and TOptimizerOpt().

◆ _fMethodOpt

void(* URANIE::Optimizer::TOptimizerOpt::_fMethodOpt) (int n, const ColumnVector &x, double &fx, int &result)
private

Referenced by TOptimizerOpt().

◆ _niter

Int_t URANIE::Optimizer::TOptimizerOpt::_niter
private

Referenced by getIteration(), and incrementIteration().

◆ _sFunctionName

TString URANIE::Optimizer::TOptimizerOpt::_sFunctionName
private

Referenced by run(), and TOptimizerOpt().

◆ _sInitFunctionName

TString URANIE::Optimizer::TOptimizerOpt::_sInitFunctionName
private

Referenced by run().

◆ _sLibrary

TString URANIE::Optimizer::TOptimizerOpt::_sLibrary
private

Pointer vers un TDS.

Referenced by run(), and TOptimizerOpt().

◆ _sname

TString URANIE::Optimizer::TOptimizerOpt::_sname
private

◆ _tds

URANIE::DataServer::TDataServer* URANIE::Optimizer::TOptimizerOpt::_tds
private