|
1 | 1 | #pragma once |
2 | 2 |
|
3 | | -#include <cecxx/benchmark/detail/legacy/functions/multimodal/schaffer.hpp> |
4 | 3 | #include <cecxx/benchmark/detail/problem_invokers/basic_problem_invoker.hpp> |
5 | 4 | #include <cecxx/functions/multimodal/ackley.hpp> |
6 | 5 | #include <cecxx/functions/multimodal/discus.hpp> |
|
13 | 12 | #include <cecxx/functions/multimodal/levy.hpp> |
14 | 13 | #include <cecxx/functions/multimodal/rastrigin.hpp> |
15 | 14 | #include <cecxx/functions/multimodal/rosenbrock.hpp> |
| 15 | +#include <cecxx/functions/multimodal/schaffer.hpp> |
16 | 16 | #include <cecxx/functions/multimodal/schwefel.hpp> |
17 | 17 | #include <cecxx/functions/multimodal/weierstrass.hpp> |
18 | 18 | #include <cecxx/functions/multimodal/zakharov.hpp> |
|
22 | 22 |
|
23 | 23 | namespace cecxx::benchmark::cec_2014 { |
24 | 24 | static constexpr auto basic_1 = detail::basic_problem_invoker{ |
25 | | - cecxx::functions::unimodal::ellips, 1.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 25 | + cecxx::functions::unimodal::ellips, |
| 26 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 27 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::rotation{}}}; |
| 28 | + |
26 | 29 | static constexpr auto basic_2 = detail::basic_problem_invoker{ |
27 | | - cecxx::functions::unimodal::bent_cigar, 1.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 30 | + cecxx::functions::unimodal::bent_cigar, |
| 31 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 32 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::rotation{}}}; |
28 | 33 | static constexpr auto basic_3 = detail::basic_problem_invoker{ |
29 | | - cecxx::functions::multimodal::discus, 1.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 34 | + cecxx::functions::multimodal::discus, |
| 35 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 36 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::rotation{}}}; |
30 | 37 | static constexpr auto basic_4 |
31 | 38 | = detail::basic_problem_invoker{cecxx::functions::multimodal::rosenbrock, |
32 | | - 2.048 / 100.0, |
33 | | - {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 39 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 40 | + std::tuple{ |
| 41 | + cecxx::benchmark::detail::shift{}, |
| 42 | + cecxx::benchmark::detail::scale{2.048, 100.0}, |
| 43 | + cecxx::benchmark::detail::rotation{}, |
| 44 | + }}; |
34 | 45 | static constexpr auto basic_5 = detail::basic_problem_invoker{ |
35 | | - cecxx::functions::multimodal::ackley, 1.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
36 | | -static constexpr auto basic_6 |
37 | | - = detail::basic_problem_invoker{cecxx::functions::multimodal::weierstrass, |
38 | | - 0.5 / 100.0, |
39 | | - {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 46 | + cecxx::functions::multimodal::ackley, |
| 47 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 48 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::rotation{}}}; |
| 49 | +static constexpr auto basic_6 = detail::basic_problem_invoker{ |
| 50 | + cecxx::functions::multimodal::weierstrass, |
| 51 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 52 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::scale{0.5, 100.0}, |
| 53 | + cecxx::benchmark::detail::rotation{}}}; |
40 | 54 | static constexpr auto basic_7 = detail::basic_problem_invoker{ |
41 | | - cecxx::functions::multimodal::griewank, 6.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
42 | | -static constexpr auto basic_8 = detail::basic_problem_invoker{ |
43 | | - cecxx::functions::multimodal::rastrigin, 5.12 / 100.0, {.rot = do_affine_trans::no, .shift = do_affine_trans::yes}}; |
44 | | -static constexpr auto basic_9 |
| 55 | + cecxx::functions::multimodal::griewank, |
| 56 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 57 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::scale{600.0, 100.0}, |
| 58 | + cecxx::benchmark::detail::rotation{}}}; |
| 59 | +static constexpr auto basic_8 |
45 | 60 | = detail::basic_problem_invoker{cecxx::functions::multimodal::rastrigin, |
46 | | - 5.12 / 100.0, |
47 | | - {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
48 | | -static constexpr auto basic_10 = detail::basic_problem_invoker{ |
49 | | - cecxx::functions::multimodal::schwefel, 10.0, {.rot = do_affine_trans::no, .shift = do_affine_trans::yes}}; |
| 61 | + {.rot = do_affine_trans::no, .shift = do_affine_trans::yes}, |
| 62 | + std::tuple{ |
| 63 | + cecxx::benchmark::detail::shift{}, |
| 64 | + cecxx::benchmark::detail::scale{5.12, 100.0}, |
| 65 | + }}; |
| 66 | +static constexpr auto basic_9 = detail::basic_problem_invoker{ |
| 67 | + cecxx::functions::multimodal::rastrigin, |
| 68 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 69 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::scale{5.12, 100.0}, |
| 70 | + cecxx::benchmark::detail::rotation{}}}; |
| 71 | +static constexpr auto basic_10 |
| 72 | + = detail::basic_problem_invoker{cecxx::functions::multimodal::schwefel, |
| 73 | + {.rot = do_affine_trans::no, .shift = do_affine_trans::yes}, |
| 74 | + std::tuple{ |
| 75 | + cecxx::benchmark::detail::shift{}, |
| 76 | + cecxx::benchmark::detail::scale{1000.0, 100.0}, |
| 77 | + }}; |
| 78 | + |
50 | 79 | static constexpr auto basic_11 = detail::basic_problem_invoker{ |
51 | | - cecxx::functions::multimodal::schwefel, 10.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 80 | + cecxx::functions::multimodal::schwefel, |
| 81 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 82 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::scale{1000.0, 100.0}, |
| 83 | + cecxx::benchmark::detail::rotation{}}}; |
52 | 84 | static constexpr auto basic_12 = detail::basic_problem_invoker{ |
53 | | - cecxx::functions::multimodal::katsuura, 5.0 / 100.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 85 | + cecxx::functions::multimodal::katsuura, |
| 86 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 87 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::scale{5.0, 100.0}, |
| 88 | + cecxx::benchmark::detail::rotation{}}}; |
54 | 89 | static constexpr auto basic_13 = detail::basic_problem_invoker{ |
55 | | - cecxx::functions::multimodal::happycat, 5.0 / 100.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 90 | + cecxx::functions::multimodal::happycat, |
| 91 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 92 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::scale{5.0, 100.0}, |
| 93 | + cecxx::benchmark::detail::rotation{}}}; |
56 | 94 | static constexpr auto basic_14 = detail::basic_problem_invoker{ |
57 | | - cecxx::functions::multimodal::hgbat, 5.0 / 100.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
58 | | -static constexpr auto basic_15 |
59 | | - = detail::basic_problem_invoker{cecxx::functions::multimodal::grie_rosen, |
60 | | - 5.0 / 100.0, |
61 | | - {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 95 | + cecxx::functions::multimodal::hgbat, |
| 96 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 97 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::scale{5.0, 100.0}, |
| 98 | + cecxx::benchmark::detail::rotation{}}}; |
| 99 | +static constexpr auto basic_15 = detail::basic_problem_invoker{ |
| 100 | + cecxx::functions::multimodal::grie_rosen, |
| 101 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 102 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::scale{5.0, 100.0}, |
| 103 | + cecxx::benchmark::detail::rotation{}}}; |
62 | 104 | static constexpr auto basic_16 = detail::basic_problem_invoker{ |
63 | | - cecxx::functions::multimodal::escaffer, 1.0, {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}}; |
| 105 | + cecxx::functions::multimodal::escaffer, |
| 106 | + {.rot = do_affine_trans::yes, .shift = do_affine_trans::yes}, |
| 107 | + std::tuple{cecxx::benchmark::detail::shift{}, cecxx::benchmark::detail::rotation{}}}; |
64 | 108 |
|
65 | 109 | } // namespace cecxx::benchmark::cec_2014 |
0 commit comments