Beispiel #1
0
 /**
  - Basic version.
  \param p  Parameters                 -- \b IN.
  \param ev A pointer to the evaluator -- \b IN
  -- \b optional (default = \c NULL).
  */
 Mads ( NOMAD::Parameters & p , NOMAD::Evaluator * ev = NULL )
 : _p                   ( p                             ) ,
 _stats                 ( p.get_sgte_cost()             ) ,
 _ev_control            ( p , _stats , ev , NULL , NULL ) ,
 _ev_control_for_sorting( p , _stats , _ev_control.get_evaluator() , &(_ev_control.get_cache()) , &(_ev_control.get_sgte_cache()) ) ,
 _true_barrier          ( p , NOMAD::TRUTH              ) ,
 _sgte_barrier          ( p , NOMAD::SGTE               ) ,
 _mesh				   ( p.get_signature()->get_mesh() ) ,
 _pareto_front          ( NULL                          ) ,
 _user_search           ( NULL                          ) ,
 _model_search1         ( NULL                          ) ,
 _model_search2         ( NULL                          ) ,
 _VNS_search            ( NULL                          ) ,
 _cache_search          ( NULL                          ) ,
 _L_curve               ( NULL                          ) ,
 _extended_poll         ( NULL                          ) ,
 _user_ext_poll         ( false                         )   { init(); }
Beispiel #2
0
 /**
  \return The active cache.
  */
 const NOMAD::Cache & get_cache ( void ) const
 {
     return ( _p.get_opt_only_sgte() ) ?
     _ev_control.get_sgte_cache() : _ev_control.get_cache();
 }