English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReOptimizer: URANIE::Reoptimizer::TNloptGradient Class Reference
Uranie / ReOptimizer v4.9.0
/* @license-end */
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()

URANIE::Reoptimizer::TNloptGradient::~TNloptGradient ( )
virtual

Member Function Documentation

◆ addConstraint() [1/2]

void URANIE::Reoptimizer::TNloptGradient::addConstraint ( URANIE::DataServer::TAttribute *  cnt,
TOptimFit f = NULL 
)
virtual

◆ addConstraint() [2/2]

void URANIE::Reoptimizer::TNloptGradient::addConstraint ( URANIE::DataServer::TAttribute *  cnt,
URANIE::DataServer::TAttribute *  grd,
TOptimFit f = NULL 
)

◆ addEquality()

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

◆ addObjective() [1/2]

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

◆ addObjective() [2/2]

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

◆ buildSolver()

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

◆ cleanSolver()

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

◆ critere()

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

◆ equality()

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

◆ get()

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

◆ gradFromCode()

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

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

◆ inequality()

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

◆ put()

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

◆ run()

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