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.9.0
/* @license-end */
TMinimisation.h
Go to the documentation of this file.
1
2// 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>
47using std::cout;
48using 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
65namespace URANIE {
66
67namespace Calibration {
68
70
71 //---------------------------------------------
76public:
77
78#ifdef WITH_NLOPT
79 URANIE::Reoptimizer::TNloptSolver *_solv;
80#endif
81#ifdef WITH_VIZIR
82 URANIE::Reoptimizer::TVizirSolver *_solviz;
83#endif
84 URANIE::Relauncher::TRun *_optimRun;
85 URANIE::Reoptimizer::TOptimShare *_optimMaster;
86
88
89 //---------------------------------------------
93
100 TMinimisation(URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, int nS=1, Option_t *option = "");
101
110 TMinimisation(URANIE::DataServer::TDataServer *tds, void (*fcn)(Double_t*,Double_t*), const char *varexpinput, const char *varexpoutput, int ns = 1, Option_t *option = "");
111
120 TMinimisation(URANIE::DataServer::TDataServer *tds, const char *fcn, const char *varexpinput, const char *varexpoutput, int ns = 1, Option_t *option = "");
121
128 TMinimisation(URANIE::DataServer::TDataServer *tds, URANIE::Launcher::TCode *fcode, int ns = 1, Option_t *option = "");
129
132
134
135 //---------------------------------------------
139 URANIE::Reoptimizer::TOptimShare *getOptimMaster(){ return _optimMaster; }
140
141#ifdef WITH_NLOPT
142 void setOptimProperties(URANIE::Reoptimizer::TNloptSolver *solv, Option_t *option="");
143#endif
144#ifdef WITH_VIZIR
145 void setOptimProperties(URANIE::Reoptimizer::TVizirSolverShare *solv, Option_t *option="");
146#endif
148
149 //---------------------------------------------
153
156 virtual void parseOption(Option_t *option = "");
158
162 // virtual void estimateIndexes(Option_t * option = "") = 0;
163
164 //void setReference(URANIE::DataServer::TDataServer *tdsRef, const char *input, const char *output, const char *weight="");
165 void computeParameters(Option_t *option="");
170 void printLog(Option_t *option="");
172
173 ClassDef(URANIE::Calibration::TMinimisation, ID_CALIBRATION)
174
175};
176
177} // Fin du namespace Calibration
178} // Fin du namespace URANIE
179
180#endif
Interface of class URANIE::Calibration::TCalibration.
Description of the class TCalibration.
Definition TCalibration.h:64
Description of the class TMinimisation.
Definition TMinimisation.h:69
URANIE::Reoptimizer::TOptimShare * getOptimMaster()
Definition TMinimisation.h:139
void computeParameters(Option_t *option="")
Estimates the index from a Specific TDataServer.
void printLog(Option_t *option="")
TMinimisation(URANIE::DataServer::TDataServer *tds, const char *fcn, const char *varexpinput, const char *varexpoutput, int ns=1, Option_t *option="")
Default Calibration constructor with the function argument: it contains the assessor to be used.
URANIE::Relauncher::TRun * _optimRun
Optimisation runner.
Definition TMinimisation.h:84
~TMinimisation()
Default destructor.
TMinimisation(URANIE::DataServer::TDataServer *tds, void(*fcn)(Double_t *, Double_t *), const char *varexpinput, const char *varexpoutput, int ns=1, Option_t *option="")
Default Calibration constructor with the function argument: it contains the assessor to be used.
virtual void parseOption(Option_t *option="")
Read the possible options.
TMinimisation(URANIE::DataServer::TDataServer *tds, URANIE::Launcher::TCode *fcode, int ns=1, Option_t *option="")
Default Calibration constructor with the code argument: it contains the assessor to be used.
void checktdsParContent()
Definition TMinimisation.h:169
TMinimisation(URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, int nS=1, Option_t *option="")
URANIE::Reoptimizer::TOptimShare * _optimMaster
Optimisation runner.
Definition TMinimisation.h:85
Definition TABC.cxx:46