1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Member function BFE
===================
.. versionadded:: 2.11
*#include <pagmo/batch_evaluators/member_bfe.hpp>*
.. cpp:namespace-push:: pagmo
.. cpp:class:: member_bfe
This class is a user-defined batch fitness evaluator (UDBFE) that can be used to
construct a :cpp:class:`~pagmo::bfe`.
:cpp:class:`~pagmo::member_bfe` is a simple wrapper which delegates batch fitness evaluations
to the input problem's :cpp:func:`pagmo::problem::batch_fitness()` member function.
.. cpp:function:: vector_double operator()(const problem &p, const vector_double &dvs) const
Call operator.
The call operator will pass *dvs* to the input problem *p*'s :cpp:func:`pagmo::problem::batch_fitness()` member function,
and return its output. If the UDP stored within *p* does not implement :cpp:func:`pagmo::problem::batch_fitness()`,
an error will be raised.
:param p: the input :cpp:class:`~pagmo::problem`.
:param dvs: the input decision vectors that will be evaluated.
:return: the fitness vectors corresponding to the input decision vectors in *dvs*.
:exception unspecified: any exception raised by the invocation of *p*'s :cpp:func:`pagmo::problem::batch_fitness()` member function.
.. cpp:function:: std::string get_name() const
:return: a human-readable name for this :cpp:class:`~pagmo::member_bfe`.
.. cpp:namespace-pop::
|