English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Calibration: TMinimisation.h Source File
Uranie / Calibration  v4.11.0
/* @license-end */
TMinimisation.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2024 CEA/DES
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published
6 // by the Free Software Foundation, either version 3 of the License, or any
7 // later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 // TMinimisation
19 // $Id$
20 // $Author$
21 // $Date$
22 // $Revision$
23 // $State$
25 
42 #ifndef TMINIMISATION_H
43 #define TMINIMISATION_H
44 
45 #include <iostream>
46 #include <sstream>
47 using std::cout;
48 using std::endl;
49 
50 // Uranie
51 #include "UExceptions.h"
52 #include "TCalibration.h"
53 
54 #include "TOptimShare.h"
55 
56 #ifdef WITH_NLOPT
57 #include "TNlopt.h"
58 #endif
59 
60 #ifdef WITH_VIZIR
61 #include "TVizir2.h"
62 #include "TVizirSolver.h"
63 #endif
64 
65 namespace URANIE {
66 
67 namespace Calibration {
68 
70 
71  //---------------------------------------------
76 public:
77  URANIE::Reoptimizer::TOptimSolver *_solv;
78  URANIE::Relauncher::TRun *_optimRun;
79  URANIE::Reoptimizer::TOptimShare *_optimMaster;
80 
82 
83  //---------------------------------------------
87 
94  TMinimisation(URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, int nS=1, Option_t *option = "");
95 
104  TMinimisation(URANIE::DataServer::TDataServer *tds, void (*fcn)(Double_t*,Double_t*), const char *varexpinput, const char *varexpoutput, int ns = 1, Option_t *option = "");
105 
114  TMinimisation(URANIE::DataServer::TDataServer *tds, const char *fcn, const char *varexpinput, const char *varexpoutput, int ns = 1, Option_t *option = "");
115 
122  TMinimisation(URANIE::DataServer::TDataServer *tds, URANIE::Launcher::TCode *fcode, int ns = 1, Option_t *option = "");
123 
125  ~TMinimisation();
126 
140  virtual void setDistance(const char *distName, URANIE::DataServer::TDataServer *tdsRef, const char *input, const char *reference, const char *weight="");
141 
150  virtual void setDistance(URANIE::Calibration::TDistanceLikelihoodFunction *distFunc, URANIE::DataServer::TDataServer *tdsRef, const char *input, const char *reference, const char *weight="");
151 
153 
154  //---------------------------------------------
158  URANIE::Reoptimizer::TOptimShare *getOptimMaster(){ return _optimMaster; }
159 
160  void setOptimProperties(URANIE::Reoptimizer::TOptimSolver *solv, Option_t *option="");
162 
163  //---------------------------------------------
167 
170  virtual void parseOption(Option_t *option = "");
172 
176  // virtual void estimateIndexes(Option_t * option = "") = 0;
177 
178  //void setReference(URANIE::DataServer::TDataServer *tdsRef, const char *input, const char *output, const char *weight="");
179  void computeParameters(Option_t *option="");
184  void printLog(Option_t *option="");
186 
187  ClassDef(URANIE::Calibration::TMinimisation, ID_CALIBRATION)
188 
189 };
190 
191 } // Fin du namespace Calibration
192 } // Fin du namespace URANIE
193 
194 #endif
Definition: TABC.cxx:45
void computeParameters(Option_t *option="")
Estimates the index from a Specific TDataServer.
Description of the class TDistanceLikelihoodFunction.
Definition: TDistanceLikelihoodFunction.h:67
void printLog(Option_t *option="")
URANIE::Reoptimizer::TOptimShare * getOptimMaster()
Definition: TMinimisation.h:158
Description of the class TMinimisation.
Definition: TMinimisation.h:69
URANIE::Reoptimizer::TOptimSolver * _solv
Definition: TMinimisation.h:77
virtual void setDistance(const char *distName, URANIE::DataServer::TDataServer *tdsRef, const char *input, const char *reference, const char *weight="")
Set the distance function and some needed informations.
virtual void parseOption(Option_t *option="")
Read the possible options.
Interface of class URANIE::Calibration::TCalibration.
Description of the class TCalibration.
Definition: TCalibration.h:64
TMinimisation(URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, int nS=1, Option_t *option="")
void checktdsParContent()
Definition: TMinimisation.h:183
void setOptimProperties(URANIE::Reoptimizer::TOptimSolver *solv, Option_t *option="")
URANIE::Relauncher::TRun * _optimRun
Optimisation runner.
Definition: TMinimisation.h:78
URANIE::Reoptimizer::TOptimShare * _optimMaster
Optimisation runner.
Definition: TMinimisation.h:79
~TMinimisation()
Default destructor.