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::TNloptShare Class Reference
Uranie / ReOptimizer v4.9.0
/* @license-end */
URANIE::Reoptimizer::TNloptShare Class Referenceabstract

#include <TNloptShare.h>

Inheritance diagram for URANIE::Reoptimizer::TNloptShare:
Collaboration diagram for URANIE::Reoptimizer::TNloptShare:

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()

URANIE::Reoptimizer::TNloptShare::~TNloptShare ( )
virtual

References _crit, _equal, and _guess.

Member Function Documentation

◆ build()

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

◆ buildSolver()

virtual void URANIE::Reoptimizer::TNloptShare::buildSolver ( int  siz,
struct nlopt_work *   
)
protectedpure virtual

◆ calcul()

◆ cleanSolver()

virtual void URANIE::Reoptimizer::TNloptShare::cleanSolver ( struct nlopt_work *  )
protectedpure virtual

◆ create()

void URANIE::Reoptimizer::TNloptShare::create ( )
private

References _crit, _id, and _max.

Referenced by TNloptShare(), and TNloptShare().

◆ critere()

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

◆ equality()

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

◆ fill()

void URANIE::Reoptimizer::TNloptShare::fill ( struct nlopt_work *  self,
URANIE::DataServer::TDataServer *  tds,
int  id 
)
protected

Referenced by calcul(), and fillOptimum().

◆ fillOptimum()

void URANIE::Reoptimizer::TNloptShare::fillOptimum ( struct nlopt_work *  self)
protected

References _id, calcul(), and fill().

Referenced by run().

◆ get()

virtual int URANIE::Reoptimizer::TNloptShare::get ( long &  )
protectedpure virtual

◆ getNStartingPoint()

int URANIE::Reoptimizer::TNloptShare::getNStartingPoint ( )
inline

References _guess.

◆ getReturnOptim()

int URANIE::Reoptimizer::TNloptShare::getReturnOptim ( )
inline

References _retOptim.

◆ inequality()

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

◆ put()

virtual void URANIE::Reoptimizer::TNloptShare::put ( struct nlopt_work *  ,
Bool_t  ,
const double *   
)
protectedpure virtual

◆ run()

void URANIE::Reoptimizer::TNloptShare::run ( struct nlopt_work *  opt)

References _retOptim, and fillOptimum().

Referenced by solverLoop().

◆ setMaximumEval()

void URANIE::Reoptimizer::TNloptShare::setMaximumEval ( int  max)
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()

void URANIE::Reoptimizer::TNloptShare::solver ( struct nlopt_work *  ret,
int  id,
double *  guess,
vector< URANIE::DataServer::UEntry * > &  codi,
vector< URANIE::DataServer::UEntry * > &  codo,
vector< URANIE::DataServer::UEntry * > &  codg 
)
protected

◆ solverLoop()

void URANIE::Reoptimizer::TNloptShare::solverLoop ( )
virtual

Member Data Documentation

◆ _codg

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

◆ _codi

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

◆ _codo

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

◆ _crit

◆ _equal

◆ _guess

◆ _id

int URANIE::Reoptimizer::TNloptShare::_id
protected

Referenced by create(), and fillOptimum().

◆ _max

int URANIE::Reoptimizer::TNloptShare::_max
protected

Referenced by create(), setMaximumEval(), and solver().

◆ _retOptim

int URANIE::Reoptimizer::TNloptShare::_retOptim

Referenced by getReturnOptim(), and run().

◆ _solv

TNloptSolver* URANIE::Reoptimizer::TNloptShare::_solv
protected

Referenced by solver().