NOMAD Source
Version 4.0.0 Beta
|
Go to the documentation of this file.
46 #ifndef __NOMAD400_MADSITERATION__
47 #define __NOMAD400_MADSITERATION__
49 #include "../../Algos/Iteration.hpp"
50 #include "../../Algos/MeshBase.hpp"
51 #include "../../Eval/EvalPoint.hpp"
53 #include "../../nomad_nsbegin.hpp"
63 const std::shared_ptr<MeshBase>
_mesh;
68 static double _iterTime;
69 static double _searchTime;
70 static double _searchEvalTime;
71 static double _pollTime;
72 static double _pollEvalTime;
73 double _iterStartTime;
85 const std::shared_ptr<EvalPoint>& frameCenter,
87 const std::shared_ptr<MeshBase> mesh)
112 const std::shared_ptr<MeshBase>
getMesh()
const override {
return _mesh; }
122 static double getIterTime() {
return _iterTime; }
123 static double getSearchTime() {
return _searchTime; }
124 static double getSearchEvalTime() {
return _searchEvalTime; }
125 static double getPollTime() {
return _pollTime; }
126 static double getPollEvalTime() {
return _pollEvalTime; }
147 virtual bool runImp()
override;
150 virtual void endImp()
override;
154 #include "../../nomad_nsend.hpp"
156 #endif // __NOMAD400_MADSITERATION__
const std::shared_ptr< MeshBase > getMesh() const override
bool isMainIteration() const override
Is this the main iteration of the current MegaIteration?
Class for MADS iteration.
void setSuccessType(const SuccessType &success)
Set SuccessType member.
Class for iteration of an Algorithm.
Base class of all types of steps (Iteration, Termination, Initialization, Poll, Mads,...
SuccessType
Success type of an iteration.
const std::shared_ptr< EvalPoint > getFrameCenter() const override
virtual bool runImp() override
Implementation of the run tasks of MADS algorithm.
const std::shared_ptr< EvalPoint > _frameCenter
Center around which the points are generated.
MadsIteration(const Step *parentStep, const std::shared_ptr< EvalPoint > &frameCenter, const size_t k, const std::shared_ptr< MeshBase > mesh)
Constructor.
virtual void endImp() override
const SuccessType & getSuccessType() const
Return current SuccessType.
void init()
Helper for constructor.
virtual void startImp() override
const std::shared_ptr< MeshBase > _mesh
Mesh on which the points are.
SuccessType _success
Success type of this iteration.
@ NOT_EVALUATED
Not evaluated yet.