Documentation / Manuel développeur
Modules disponibles
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  
Uranie / ReOptimizer v4.9.0
|
#include <TNloptShare.h>
Classes | |
class | NotASingleEval |
Public Member Functions | |
TNloptShare (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, TNloptSolver *algo) | |
TNloptShare (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TEval *fun, TNloptSolver *algo) | |
virtual | ~TNloptShare () |
void | setStartingPoint (double *pt) |
void | setStartingPoint (int nb, double *pt) |
void | setMaximumEval (int max) |
virtual int | critere (struct nlopt_work *, const double *ini, double *out, double *grad)=0 |
virtual int | inequality (struct nlopt_work *, const double *in, double *out, double *grad)=0 |
virtual int | equality (struct nlopt_work *, const double *in, double *out, double *grad)=0 |
void | run (struct nlopt_work *) |
int | getReturnOptim () |
int | getNStartingPoint () |
virtual void | solverLoop () |
Public Member Functions inherited from URANIE::Reoptimizer::TOptimShare | |
TOptimShare (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run) | |
TOptimShare (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TEval *fun) | |
virtual | ~TOptimShare () |
virtual void | addObjective (URANIE::DataServer::TAttribute *, TOptimFit *f=NULL)=0 |
void | addConstraint (URANIE::DataServer::TAttribute *, TOptimFit *f=NULL) |
void | setTolerance (double prec) |
Set the mono precision stop threshold. | |
double | getTolerance () |
void | setTrace (URANIE::DataServer::TDataServer *tds) |
void | setLog () |
void | unsetLog () |
void | changeLog () |
Bool_t | getLog () |
Public Attributes | |
int | _retOptim |
Protected Member Functions | |
virtual void | build () |
virtual void | buildSolver (int siz, struct nlopt_work *)=0 |
virtual void | cleanSolver (struct nlopt_work *)=0 |
virtual void | put (struct nlopt_work *, Bool_t, const double *)=0 |
virtual int | get (long &)=0 |
void | solver (struct nlopt_work *, int, double *, vector< URANIE::DataServer::UEntry * > &, vector< URANIE::DataServer::UEntry * > &, vector< URANIE::DataServer::UEntry * > &) |
void | calcul (struct nlopt_work *, Bool_t, const double *) |
void | fillOptimum (struct nlopt_work *) |
void | fill (struct nlopt_work *, URANIE::DataServer::TDataServer *tds, int id) |
Protected Member Functions inherited from URANIE::Reoptimizer::TOptimShare | |
void | initTrace () |
Protected Attributes | |
TFitGetter * | _crit |
TObjArray | _equal |
TNloptSolver * | _solv |
std::vector< double * > | _guess |
int | _id |
int | _max |
std::vector< std::vector< URANIE::DataServer::UEntry * > > | _codi |
std::vector< std::vector< URANIE::DataServer::UEntry * > > | _codo |
std::vector< std::vector< URANIE::DataServer::UEntry * > > | _codg |
Protected Attributes inherited from URANIE::Reoptimizer::TOptimShare | |
double | _prec |
TObjArray | _const |
URANIE::DataServer::TDataServer * | _tdstrc |
int | _idtrc |
Bool_t | _blog |
Private Member Functions | |
void | create () |
Constructor & Destructor Documentation
◆ TNloptShare() [1/2]
URANIE::Reoptimizer::TNloptShare::TNloptShare | ( | URANIE::DataServer::TDataServer * | tds, |
URANIE::Relauncher::TRun * | run, | ||
TNloptSolver * | algo | ||
) |
References create().
◆ TNloptShare() [2/2]
URANIE::Reoptimizer::TNloptShare::TNloptShare | ( | URANIE::DataServer::TDataServer * | tds, |
URANIE::Relauncher::TEval * | fun, | ||
TNloptSolver * | algo | ||
) |
References create().
◆ ~TNloptShare()
Member Function Documentation
◆ build()
|
protectedvirtual |
Reimplemented in URANIE::Reoptimizer::TNlopt.
References URANIE::Reoptimizer::TOptimShare::_tdstrc, and URANIE::Reoptimizer::TOptimShare::initTrace().
Referenced by URANIE::Reoptimizer::TNlopt::build(), and solverLoop().
◆ buildSolver()
|
protectedpure virtual |
Implemented in URANIE::Reoptimizer::TNlopt, and URANIE::Reoptimizer::TNloptGradient.
Referenced by solverLoop().
◆ calcul()
|
protected |
References URANIE::Reoptimizer::TOptimShare::_idtrc, URANIE::Reoptimizer::TOptimShare::_tdstrc, fill(), get(), and put().
Referenced by URANIE::Reoptimizer::TNlopt::critere(), URANIE::Reoptimizer::TNloptGradient::critere(), URANIE::Reoptimizer::TNlopt::equality(), URANIE::Reoptimizer::TNloptGradient::equality(), fillOptimum(), URANIE::Reoptimizer::TNlopt::inequality(), and URANIE::Reoptimizer::TNloptGradient::inequality().
◆ cleanSolver()
|
protectedpure virtual |
Implemented in URANIE::Reoptimizer::TNlopt, and URANIE::Reoptimizer::TNloptGradient.
Referenced by solverLoop().
◆ create()
|
private |
References _crit, _id, and _max.
Referenced by TNloptShare(), and TNloptShare().
◆ critere()
|
pure virtual |
Implemented in URANIE::Reoptimizer::TNlopt, and URANIE::Reoptimizer::TNloptGradient.
◆ equality()
|
pure virtual |
Implemented in URANIE::Reoptimizer::TNlopt, and URANIE::Reoptimizer::TNloptGradient.
◆ fill()
|
protected |
Referenced by calcul(), and fillOptimum().
◆ fillOptimum()
|
protected |
◆ get()
|
protectedpure virtual |
Implemented in URANIE::Reoptimizer::TNlopt, and URANIE::Reoptimizer::TNloptGradient.
Referenced by calcul(), and solverLoop().
◆ getNStartingPoint()
|
inline |
References _guess.
◆ getReturnOptim()
|
inline |
References _retOptim.
◆ inequality()
|
pure virtual |
Implemented in URANIE::Reoptimizer::TNlopt, and URANIE::Reoptimizer::TNloptGradient.
◆ put()
|
protectedpure virtual |
Implemented in URANIE::Reoptimizer::TNlopt, and URANIE::Reoptimizer::TNloptGradient.
Referenced by calcul().
◆ run()
void URANIE::Reoptimizer::TNloptShare::run | ( | struct nlopt_work * | opt | ) |
References _retOptim, and fillOptimum().
Referenced by solverLoop().
◆ setMaximumEval()
|
inline |
References _max.
◆ setStartingPoint() [1/2]
void URANIE::Reoptimizer::TNloptShare::setStartingPoint | ( | double * | pt | ) |
References _guess.
◆ setStartingPoint() [2/2]
void URANIE::Reoptimizer::TNloptShare::setStartingPoint | ( | int | nb, |
double * | pt | ||
) |
References _guess.
◆ solver()
|
protected |
References URANIE::Reoptimizer::TOptimShare::_const, _equal, _max, URANIE::Reoptimizer::TOptimShare::_prec, _solv, URANIE::Reoptimizer::TNloptSolver::build(), IsRUNNING, URANIE::Reoptimizer::nlopt_crit(), URANIE::Reoptimizer::nlopt_equal(), and URANIE::Reoptimizer::nlopt_inequal().
Referenced by URANIE::Reoptimizer::TNlopt::buildSolver(), and URANIE::Reoptimizer::TNloptGradient::buildSolver().
◆ solverLoop()
|
virtual |
References _crit, _guess, build(), buildSolver(), cleanSolver(), get(), IsRUNNING, and run().
Member Data Documentation
◆ _codg
|
protected |
◆ _codi
|
protected |
Referenced by URANIE::Reoptimizer::TNloptGradient::buildSolver().
◆ _codo
|
protected |
Referenced by URANIE::Reoptimizer::TNloptGradient::buildSolver().
◆ _crit
|
protected |
◆ _equal
|
protected |
◆ _guess
|
protected |
◆ _id
|
protected |
Referenced by create(), and fillOptimum().
◆ _max
|
protected |
Referenced by create(), setMaximumEval(), and solver().
◆ _retOptim
int URANIE::Reoptimizer::TNloptShare::_retOptim |
Referenced by getReturnOptim(), and run().
◆ _solv
|
protected |
Referenced by solver().