#include <McmcSearcher.h>
Public Member Functions | |
| McmcSearcher (const KernelConfiguration &start={}) | |
| McmcSearcher (const std::vector< double > &start) | |
| void | OnInitialize () override |
| void | OnReset () override |
| bool | CalculateNextConfiguration (const KernelResult &previousResult) override |
| KernelConfiguration | GetCurrentConfiguration () const override |
Public Member Functions inherited from ktt::Searcher | |
| virtual | ~Searcher ()=default |
| Searcher () | |
| KernelConfiguration | GetConfiguration (const uint64_t index) const |
| uint64_t | GetIndex (const KernelConfiguration &configuration) const |
| KernelConfiguration | GetRandomConfiguration () const |
| std::vector< KernelConfiguration > | GetNeighbourConfigurations (const KernelConfiguration &configuration, const uint64_t maxDifferences, const size_t maxNeighbours=3) const |
| uint64_t | GetConfigurationsCount () const |
| uint64_t | GetUnexploredConfigurationsCount () const |
| const std::set< uint64_t > & | GetExploredIndices () const |
| bool | IsInitialized () const |
| void | Initialize (const ConfigurationData &data) |
| void | Reset () |
Searcher which explores configurations using Markov chain Monte Carlo method.
| ktt::McmcSearcher::McmcSearcher | ( | const KernelConfiguration & | start = {} | ) |
Initializes MCMC searcher.
| start | Optional parameter which specifies the starting point for MCMC searcher. |
| ktt::McmcSearcher::McmcSearcher | ( | const std::vector< double > & | start | ) |
Initializes MCMC searcher.
| start | Optional parameter which specifies starting point for MCMC searcher. |
|
overridevirtual |
Calculates the configuration which will be run next. Called after processing the current configuration if there are any remaining unexplored configurations.
| previousResult | Result from the last tested configuration. See KernelResult for more information. |
Implements ktt::Searcher.
|
overridevirtual |
Returns current kernel configuration. Note that this may be called repeatedly before calculating next configuration. In that case, the returned configuration must always be the same.
Implements ktt::Searcher.
|
overridevirtual |
Called after searcher is initialized with kernel configurations. The first kernel configuration as well as custom searcher parameters should be initialized here.
Reimplemented from ktt::Searcher.
|
overridevirtual |
Called before searcher is reset to initial state and configurations are removed. Custom searcher parameters should be reset here.
Reimplemented from ktt::Searcher.