English Français

Documentation / Developer's manual

Available modules

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

#include <TNlopt.h>

Inheritance diagram for URANIE::Reoptimizer::TNlopt:
Collaboration diagram for URANIE::Reoptimizer::TNlopt:

Classes

class  NotASingleEval
 

Public Member Functions

 TNlopt (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, TNloptSolver *algo)
 
 TNlopt (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TEval *fun, TNloptSolver *algo)
 
virtual ~TNlopt ()
 
virtual void addObjective (URANIE::DataServer::TAttribute *, TOptimFit *f=NULL)
 
void addEquality (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

virtual void build ()
 
void put (long, std::vector< URANIE::DataServer::UEntry * > *, std::vector< URANIE::DataServer::UEntry * > *, int=0)
 
void put (long, std::vector< URANIE::DataServer::UEntry * > *, std::vector< URANIE::DataServer::UEntry * > *, std::vector< URANIE::DataServer::UEntry * > *, int=0)
 
virtual Bool_t readyToGet ()
 
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
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

std::map< int, struct grad_work_job
 
int _coef
 
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::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
 

Additional Inherited Members

- Public Attributes inherited from URANIE::Reoptimizer::TNloptShare
int _retOptim
 

Constructor & Destructor Documentation

◆ TNlopt() [1/2]

URANIE::Reoptimizer::TNlopt::TNlopt ( URANIE::DataServer::TDataServer *  tds,
URANIE::Relauncher::TRun *  run,
TNloptSolver algo 
)

◆ TNlopt() [2/2]

URANIE::Reoptimizer::TNlopt::TNlopt ( URANIE::DataServer::TDataServer *  tds,
URANIE::Relauncher::TEval *  fun,
TNloptSolver algo 
)

◆ ~TNlopt()

URANIE::Reoptimizer::TNlopt::~TNlopt ( )
virtual

Member Function Documentation

◆ addEquality()

void URANIE::Reoptimizer::TNlopt::addEquality ( URANIE::DataServer::TAttribute *  obj,
TOptimFit f = NULL 
)

◆ addObjective()

void URANIE::Reoptimizer::TNlopt::addObjective ( URANIE::DataServer::TAttribute *  obj,
TOptimFit f = NULL 
)
virtual

◆ build()

void URANIE::Reoptimizer::TNlopt::build ( )
protectedvirtual

◆ buildSolver()

void URANIE::Reoptimizer::TNlopt::buildSolver ( int  siz,
struct nlopt_work *  opt 
)
protectedvirtual

◆ cleanSolver()

void URANIE::Reoptimizer::TNlopt::cleanSolver ( struct nlopt_work *  opt)
protectedvirtual

◆ critere()

int URANIE::Reoptimizer::TNlopt::critere ( struct nlopt_work *  work,
const double *  ini,
double *  out,
double *  grad 
)
virtual

◆ equality()

int URANIE::Reoptimizer::TNlopt::equality ( struct nlopt_work *  work,
const double *  in,
double *  out,
double *  grad 
)
virtual

◆ get()

int URANIE::Reoptimizer::TNlopt::get ( long &  id)
protectedvirtual

Implements URANIE::Reoptimizer::TNloptShare.

References _coef, and _job.

Referenced by readyToGet().

◆ gradFromCode()

void URANIE::Reoptimizer::TNlopt::gradFromCode ( double *  code,
double *  solv 
)
protected

Referenced by critere(), equality(), and inequality().

◆ inequality()

int URANIE::Reoptimizer::TNlopt::inequality ( struct nlopt_work *  work,
const double *  in,
double *  out,
double *  grad 
)
virtual

◆ put() [1/3]

void URANIE::Reoptimizer::TNlopt::put ( long  ,
std::vector< URANIE::DataServer::UEntry * > *  ,
std::vector< URANIE::DataServer::UEntry * > *  ,
int  = 0 
)
protected

Referenced by put().

◆ put() [2/3]

void URANIE::Reoptimizer::TNlopt::put ( long  ,
std::vector< URANIE::DataServer::UEntry * > *  ,
std::vector< URANIE::DataServer::UEntry * > *  ,
std::vector< URANIE::DataServer::UEntry * > *  ,
int  = 0 
)
protected

◆ put() [3/3]

void URANIE::Reoptimizer::TNlopt::put ( struct nlopt_work *  self,
Bool_t  grad,
const double *  in 
)
protectedvirtual

Implements URANIE::Reoptimizer::TNloptShare.

References put().

◆ readyToGet()

Bool_t URANIE::Reoptimizer::TNlopt::readyToGet ( )
protectedvirtual

References _coef, _job, and get().

◆ run()

void URANIE::Reoptimizer::TNlopt::run ( struct nlopt_work *  )

Member Data Documentation

◆ _codg

std::vector<std::vector<URANIE::DataServer::UEntry *> > URANIE::Reoptimizer::TNlopt::_codg
protected

Referenced by buildSolver().

◆ _codi

std::vector<std::vector<URANIE::DataServer::UEntry *> > URANIE::Reoptimizer::TNlopt::_codi
protected

Referenced by buildSolver().

◆ _codo

std::vector<std::vector<URANIE::DataServer::UEntry *> > URANIE::Reoptimizer::TNlopt::_codo
protected

Referenced by buildSolver().

◆ _coef

int URANIE::Reoptimizer::TNlopt::_coef
protected

Referenced by build(), get(), and readyToGet().

◆ _job

std::map<int, struct grad_work> URANIE::Reoptimizer::TNlopt::_job
protected

Referenced by get(), and readyToGet().