1 #ifndef __OPTIMIZER_H__
2 #define __OPTIMIZER_H__
22 typedef std::vector< std::pair<double, double> >
bounds_t;
34 virtual bool onMessage(MPI_Status status,
size_t length) = 0;
virtual void prePoll()=0
executed before checking for new request
virtual void onStop()=0
enable implementation to react to STOP tag
std::vector< std::pair< double, double > > bounds_t
type of bounds for design variables
An abstract class defining the interface for all optimizer components.
virtual bool onMessage(MPI_Status status, size_t length)=0
virtual void postPoll()=0
executed after handling (if any) new request
virtual void initialize()=0
entry point for optimizer
An interface implementing the basics of a poll loop, posting an MPI_Irecv and waiting for new request...
virtual void setupPoll()=0
executed before starting polling loop