File: problem.rst

package info (click to toggle)
pagmo 2.19.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 85,228 kB
  • sloc: cpp: 1,753,592; makefile: 223; sh: 121; python: 46
file content (46 lines) | stat: -rw-r--r-- 1,204 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41
42
43
44
45
46
Problem
=======

*#include <pagmo/problem.hpp>*

.. doxygenclass:: pagmo::problem
   :members:

.. cpp:namespace-push:: pagmo

Associated type traits
----------------------

.. cpp:class:: template <typename T> has_batch_fitness

   This type trait detects if ``T`` provides a member function whose signature
   is compatible with

   .. code-block:: c++

      vector_double batch_fitness(const vector_double &) const;

   The ``batch_fitness()`` member function is part of the interface for the definition of a
   user-defined problem (see the :cpp:class:`~pagmo::problem` documentation for details).

   .. cpp:member:: static const bool value

      The value of the type trait.

.. cpp:class:: template <typename T> override_has_batch_fitness

   This type trait detects if ``T`` provides a member function whose signature
   is compatible with

   .. code-block:: c++

      bool has_batch_fitness() const;

   The ``has_batch_fitness()`` member function is part of the interface for the definition of a
   user-defined problem (see the :cpp:class:`~pagmo::problem` documentation for details).

   .. cpp:member:: static const bool value

      The value of the type trait.

.. cpp:namespace-pop::