Пример #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(); }
Пример #2
0
 /**
  - Advanced version.
  \param p             Parameters                 -- \b IN.
  \param ev            A pointer to the evaluator -- \b IN (may be \c NULL).
  \param extended_poll A pointer to a NOMAD::Extended_Poll object
  -- \b IN (may be \c NULL).
  \param cache         A pointer to a cache       -- \b IN (may be \c NULL).
  \param sgte_cache    A pointer to a cache for surrogates
  -- \b IN (may be \c NULL).
  */
 Mads ( NOMAD::Parameters    & p             ,
       NOMAD::Evaluator     * ev            ,     // may be NULL
       NOMAD::Extended_Poll * extended_poll ,     // may be NULL
       NOMAD::Cache         * cache         ,     // may be NULL
       NOMAD::Cache         * sgte_cache      )   // may be NULL
 : _p                     ( p                                    ) ,
 _stats                 ( p.get_sgte_cost()                    ) ,
 _ev_control            ( p , _stats , ev , cache , sgte_cache ) ,
 _ev_control_for_sorting( p , _stats , _ev_control.get_evaluator() , cache , 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         ( extended_poll                        ) ,
 _user_ext_poll         ( (extended_poll!=NULL)                )   { init(); }