25 #ifndef PAGMO_UTIL_RACE_ALGO_H
26 #define PAGMO_UTIL_RACE_ALGO_H
32 #include "../config.h"
33 #include "../serialization.h"
34 #include "../problem/base.h"
35 #include "../problem/ackley.h"
36 #include "../algorithm/base.h"
38 namespace pagmo {
namespace util {
namespace racing {
49 race_algo(
const std::vector<algorithm::base_ptr> &algos = std::vector<algorithm::base_ptr>(),
const problem::base &prob =
problem::ackley(),
unsigned int pop_size = 100,
unsigned int seed = 0);
50 race_algo(
const std::vector<algorithm::base_ptr> &algos,
const std::vector<problem::base_ptr> &prob,
unsigned int pop_size = 100,
unsigned int seed = 0);
53 std::pair<std::vector<unsigned int>,
unsigned int> run(
54 const unsigned int n_final,
55 const unsigned int min_trials,
56 const unsigned int max_count,
58 const std::vector<unsigned int> &,
60 const bool screen_output
65 std::vector<algorithm::base_ptr> m_algos;
66 std::vector<problem::base_ptr> m_probs;
67 unsigned int m_pop_size;
Racing mechanism for algorithms.