OPTK  0.1.2
Toolkit for global optimisation algorithms
gp.hpp
Go to the documentation of this file.
1 
22 #ifndef __GP_H_
23 #define __GP_H_
24 
25 #include <stdexcept>
26 
27 #include <optk/optimiser.hpp>
28 #include <optk/types.hpp>
29 
34 class gp_opt: public optk::optimiser {
35 
36  public:
37 
38  gp_opt();
39 
49  void update_search_space (sspace::sspace_t *space) override;
50 
51  inst::set generate_parameters (int param_id) override;
52 
54  int param_id,
56  double value
57  ) override;
58 
59  private:
60 
62  uint n_iters;
63 
66 
67 };
68 
69 #endif // _GP_H__
void update_search_space(sspace::sspace_t *space) override
Definition: gp.cpp:49
std::vector< param_t * > sspace_t
Definition: types.hpp:318
Definition: types.hpp:150
sspace::sspace_t * m_space
Definition: gp.hpp:65
std::vector< std::tuple< std::string, param * > > params
Definition: gridsearch.cpp:37
inst::set generate_parameters(int param_id) override
Definition: gp.cpp:61
Defines the main types used in the program.
Definition: optimiser.hpp:39
void receive_trial_results(int param_id, inst::set params, double value) override
Definition: gp.cpp:73
Definition: gp.hpp:34
uint n_iters
Definition: gp.hpp:62
This file defines the base class for optimisers.