|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <Optimizer.h>
Public Types | |
| typedef std::vector< std::pair< double, double > > | bounds_t |
| type of bounds for design variables | |
Public Member Functions | |
| Optimizer (MPI_Comm comm) | |
| virtual | ~Optimizer () |
| virtual void | initialize ()=0 |
| entry point for optimizer | |
Protected Member Functions | |
| virtual void | setupPoll ()=0 |
| executed before starting polling loop | |
| virtual void | prePoll ()=0 |
| executed before checking for new request | |
| virtual void | postPoll ()=0 |
| executed after handling (if any) new request | |
| virtual void | onStop ()=0 |
| enable implementation to react to STOP tag | |
| virtual bool | onMessage (MPI_Status status, size_t length)=0 |
| virtual void | run () |
Protected Attributes | |
| MPI_Comm | comm_m |
| communicator the poller listens to requests | |
| bool | is_running_ |
| double | last_polled_ |
| time of last MPI_Test | |
| double | poll_delay_ |
| delay in seconds between polls | |
Definition at line 31 of file Optimizer.h.
| typedef std::vector< std::pair<double, double> > Optimizer::bounds_t |
type of bounds for design variables
Definition at line 39 of file Optimizer.h.
|
inline |
Definition at line 35 of file Optimizer.h.
References Poller::Poller().
Referenced by Sampler::Sampler(), and Sampler::Sampler().
|
inlinevirtual |
Definition at line 36 of file Optimizer.h.
|
pure virtual |
entry point for optimizer
Implemented in FixedPisaNsga2< CrossoverOperator, MutationOperator >, and Sampler.
|
protectedpure virtual |
User specific behavior on receiving a message.
Implements Poller.
Implemented in FixedPisaNsga2< CrossoverOperator, MutationOperator >, and Sampler.
|
protectedpure virtual |
enable implementation to react to STOP tag
Implements Poller.
Implemented in FixedPisaNsga2< CrossoverOperator, MutationOperator >, and Sampler.
|
protectedpure virtual |
executed after handling (if any) new request
Implements Poller.
Implemented in FixedPisaNsga2< CrossoverOperator, MutationOperator >, and Sampler.
|
protectedpure virtual |
executed before checking for new request
Implements Poller.
Implemented in FixedPisaNsga2< CrossoverOperator, MutationOperator >, and Sampler.
|
inlineprotectedvirtualinherited |
The poll loop stops when receiving a 'MPI_STOP_TAG' otherwise passes message to user.
Reimplemented in Pilot< Opt_t, Sim_t, SolPropagationGraph_t, Comm_t >.
Definition at line 79 of file Poller.h.
References comm_m, is_running_, last_polled_, MPI_STOP_TAG, onMessage(), onStop(), poll_delay_, postPoll(), prePoll(), and setupPoll().
Referenced by Sampler::initialize(), SampleWorker< Sim_t >::SampleWorker(), and Worker< Sim_t >::Worker().
|
protectedpure virtual |
executed before starting polling loop
Implements Poller.
Implemented in FixedPisaNsga2< CrossoverOperator, MutationOperator >, and Sampler.
|
protectedinherited |
communicator the poller listens to requests
Definition at line 52 of file Poller.h.
Referenced by SampleWorker< Sim_t >::onMessage(), Worker< Sim_t >::onMessage(), Pilot< Opt_t, Sim_t, SolPropagationGraph_t, Comm_t >::parseInputFile(), Poller(), run(), and Worker< Sim_t >::setupPoll().
|
protectedinherited |
Definition at line 54 of file Poller.h.
Referenced by Poller(), run(), Worker< Sim_t >::runCoWorker(), and SampleWorker< Sim_t >::runSlave().
|
protectedinherited |
|
protectedinherited |