NOMAD Source
Version 4.0.0 Beta
|
Go to the documentation of this file.
47 #ifndef __NOMAD400_EVCINTERFACE__
48 #define __NOMAD400_EVCINTERFACE__
50 #include "../Algos/Step.hpp"
51 #include "../Eval/EvaluatorControl.hpp"
53 #include "../nomad_nsbegin.hpp"
98 void setBarrier(
const std::shared_ptr<Barrier>& subBarrier);
166 #include "../nomad_nsend.hpp"
168 #endif // __NOMAD400_EVCINTERFACE__
void init()
Helper for constructor.
static const std::shared_ptr< EvaluatorControl > getEvaluatorControl()
Class for the representation of a point.
Custom class for double-precision reals.
const double INF
Infinity.
void verifyStepNotNull()
Helper for init.
Base class of all types of steps (Iteration, Termination, Initialization, Poll, Mads,...
void setBarrier(const std::shared_ptr< Barrier > &subBarrier)
Interface for EvaluatorControl::setBarrier.
SuccessType
Success type of an iteration.
std::set< EvalPoint, EvalPointCompare > EvalPointSet
Definition for EvalPointSet.
Class for the representation of an evaluation point.
static void setEvaluatorControl(const std::shared_ptr< EvaluatorControl > &evaluatorControl)
static void verifyEvaluatorControlNotNull()
Helper for init and setEvaluatorControl.
SuccessType startEvaluation()
Point _fixedVariable
Full dimension point including fixed variables.
bool findInBarrier(const Point &x, EvalPoint &evalPoint) const
Look for a point in the EvaluatorControl Barrier.
bool evalSinglePoint(EvalPoint &evalPoint, const Double &hMax=INF)
Evaluate a single point.
EvcInterface(Step *step)
Constructor.
const Step * _step
Step that uses the EvaluatorControl.
Class interface with EvaluatorControl, used by an Algorithm step through IterationUtils.
void keepPointsThatNeedEval(const EvalPointSet &trialPoints, bool useMesh=true)
std::vector< EvalPoint > retrieveAllEvaluatedPoints()
Get all evaluated points.
static std::shared_ptr< EvaluatorControl > _evaluatorControl
Static EvaluatorControl.