Documentation / Developer's manual
Available modules
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  
Uranie / ReOptimizer v4.9.0
|
URANIE::Reoptimizer::TNloptGradient Class Reference
#include <TNloptGradient.h>
Inheritance diagram for URANIE::Reoptimizer::TNloptGradient:
Collaboration diagram for URANIE::Reoptimizer::TNloptGradient:
Classes | |
class | NeedAGradientAttribute |
Public Member Functions | |
TNloptGradient (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, TNloptSolver *algo) | |
TNloptGradient (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TEval *fun, TNloptSolver *algo) | |
virtual | ~TNloptGradient () |
virtual void | addObjective (URANIE::DataServer::TAttribute *, TOptimFit *f=NULL) |
void | addObjective (URANIE::DataServer::TAttribute *, URANIE::DataServer::TAttribute *, TOptimFit *f=NULL) |
virtual void | addConstraint (URANIE::DataServer::TAttribute *, TOptimFit *f=NULL) |
void | addConstraint (URANIE::DataServer::TAttribute *, URANIE::DataServer::TAttribute *, TOptimFit *f=NULL) |
void | addEquality (URANIE::DataServer::TAttribute *, URANIE::DataServer::TAttribute *, TOptimFit *f=NULL) |
int | critere (struct nlopt_work *, const double *ini, double *out, double *grad) |
int | inequality (struct nlopt_work *, const double *in, double *out, double *grad) |
int | equality (struct nlopt_work *, const double *in, double *out, double *grad) |
void | run (struct nlopt_work *) |
Public Member Functions inherited from URANIE::Reoptimizer::TNloptShare | |
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) |
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 () |
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 () |
Protected Member Functions | |
void | gradFromCode (double *code, double *solv) |
void | buildSolver (int siz, struct nlopt_work *) |
void | cleanSolver (struct nlopt_work *) |
void | put (struct nlopt_work *, Bool_t, const double *) |
virtual int | get (long &) |
Protected Member Functions inherited from URANIE::Reoptimizer::TNloptShare | |
virtual void | build () |
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 () |
Additional Inherited Members | |
Public Attributes inherited from URANIE::Reoptimizer::TNloptShare | |
int | _retOptim |
Protected Attributes inherited from URANIE::Reoptimizer::TNloptShare | |
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 |
Constructor & Destructor Documentation
◆ TNloptGradient() [1/2]
URANIE::Reoptimizer::TNloptGradient::TNloptGradient | ( | URANIE::DataServer::TDataServer * | tds, |
URANIE::Relauncher::TRun * | run, | ||
TNloptSolver * | algo | ||
) |
◆ TNloptGradient() [2/2]
URANIE::Reoptimizer::TNloptGradient::TNloptGradient | ( | URANIE::DataServer::TDataServer * | tds, |
URANIE::Relauncher::TEval * | fun, | ||
TNloptSolver * | algo | ||
) |
◆ ~TNloptGradient()
|
virtual |
Member Function Documentation
◆ addConstraint() [1/2]
|
virtual |
◆ addConstraint() [2/2]
void URANIE::Reoptimizer::TNloptGradient::addConstraint | ( | URANIE::DataServer::TAttribute * | cnt, |
URANIE::DataServer::TAttribute * | grd, | ||
TOptimFit * | f = NULL |
||
) |
References URANIE::Reoptimizer::TOptimShare::_const.
◆ addEquality()
void URANIE::Reoptimizer::TNloptGradient::addEquality | ( | URANIE::DataServer::TAttribute * | obj, |
URANIE::DataServer::TAttribute * | grd, | ||
TOptimFit * | f = NULL |
||
) |
References URANIE::Reoptimizer::TNloptShare::_equal.
◆ addObjective() [1/2]
|
virtual |
Implements URANIE::Reoptimizer::TOptimShare.
◆ addObjective() [2/2]
void URANIE::Reoptimizer::TNloptGradient::addObjective | ( | URANIE::DataServer::TAttribute * | obj, |
URANIE::DataServer::TAttribute * | grad, | ||
TOptimFit * | f = NULL |
||
) |
References URANIE::Reoptimizer::TNloptShare::_crit.
◆ buildSolver()
|
protectedvirtual |
◆ cleanSolver()
|
protectedvirtual |
Implements URANIE::Reoptimizer::TNloptShare.
◆ critere()
|
virtual |
◆ equality()
|
virtual |
◆ get()
|
protectedvirtual |
Implements URANIE::Reoptimizer::TNloptShare.
◆ gradFromCode()
|
protected |
Referenced by critere(), equality(), and inequality().
◆ inequality()
|
virtual |
◆ put()
|
protectedvirtual |
Implements URANIE::Reoptimizer::TNloptShare.
◆ run()
void URANIE::Reoptimizer::TNloptGradient::run | ( | struct nlopt_work * | ) |