NOMAD Source
Version 4.0.0 Beta
|
Go to the documentation of this file.
46 #ifndef __NOMAD400_MEGAITERATION__
47 #define __NOMAD400_MEGAITERATION__
49 #include "../Algos/Iteration.hpp"
50 #include "../Algos/Step.hpp"
52 #include "../nomad_nsbegin.hpp"
113 std::shared_ptr<Barrier> barrier,
150 virtual void read(std::istream& is);
151 virtual void display(std::ostream& os)
const ;
159 virtual void startImp()
override = 0;
160 virtual bool runImp()
override = 0;
166 virtual void endImp()
override;
181 #include "../nomad_nsend.hpp"
183 #endif // __NOMAD400_MEGAITERATION__
const SuccessType & getSuccessType() const
Class to manage the iterations.
virtual bool runImp() override=0
virtual void startImp() override=0
std::istream & operator>>(std::istream &is, MegaIteration &megaIteration)
Get an MegaIteration values from a stream.
void setBarrier(const std::shared_ptr< Barrier > &barrier)
virtual void read(std::istream &is)
Base class of all types of steps (Iteration, Termination, Initialization, Poll, Mads,...
SuccessType
Success type of an iteration.
std::vector< std::shared_ptr< Iteration > > _iterList
A collection of additional iterations: Help generate more eval points.
void computeMaxXFeasXInf(size_t &maxXFeas, size_t &maxXInf)
Compute the number of xFeas and xInf points to use to create iterations.
std::ostream & operator<<(std::ostream &os, const MegaIteration &megaIteration)
size_t _nbIterRun
Number of iterations run within this MegaIteration.
const std::shared_ptr< Barrier > & getBarrier() const
void setSuccessType(const SuccessType &success)
void init()
Helper for constructor.
virtual void endImp() override
Implementation of the end task.
virtual void display(std::ostream &os) const
std::shared_ptr< Barrier > _barrier
size_t getNbIterations() const
MegaIteration(const Step *parentStep, size_t k, std::shared_ptr< Barrier > barrier, SuccessType success)
Constructor.
void setK(const size_t k)
const std::shared_ptr< Iteration > & getIter(size_t i) const
SuccessType _megaIterationSuccess