Differential Evolution C++ library
|
#include <processors.hpp>
Public Member Functions | |
processor (size_t index, T of, individual_queue &indQueue, processor_listener_ptr listener) | |
void | operator() () |
bool | success () const |
A processor runs the objective function in one thread. There can be any number of processors running the objective function in parallel in as many threads.
The processor class uses the type of the objective function defined in the corresponding processor_traits
de::processor< T >::processor | ( | size_t | index, |
T | of, | ||
individual_queue & | indQueue, | ||
processor_listener_ptr | listener | ||
) | [inline] |
constructs a processor object
index | the processor index |
of | objective function, or objective function factory. Accepts pointer, shared pointer, reference |
indQueue | queue containing the individuals to process |
listener | listener that will receive notifications of important events during the processing of the objective function |
void de::processor< T >::operator() | ( | ) | [inline] |
runs the objective function on the object at the top of the queue, if any
bool de::processor< T >::success | ( | ) | const [inline] |
indicates whether the run ended succesfully when the thread exits