forked from IOHprofiler/IOHexperimenter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
46 lines (37 loc) · 1.44 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "ioh.hpp"
#include "problem_example.h"
#include "suite_example.h"
#include "logger_example.h"
#include "experiment_example.h"
// #include "fmt/format.h"
void show_registered_objects()
{
{
const auto &problem_factory = ioh::problem::ProblemRegistry<ioh::problem::Real>::instance();
const auto &suite_factory = ioh::suite::SuiteRegistry<ioh::problem::Real>::instance();
std::cout << "Registered Real Problems:\n";
for (auto &[id, name] : problem_factory.map())
std::cout << id << ", " << name << std::endl;
std::cout << "\nRegistered Real Suites:\n";
for (auto &[id, name] : suite_factory.map())
std::cout << id << ", " << name << std::endl;
}
{
const auto &problem_factory = ioh::problem::ProblemRegistry<ioh::problem::Integer>::instance();
const auto &suite_factory = ioh::suite::SuiteRegistry<ioh::problem::Integer>::instance();
std::cout << "\nRegistered Integer Problems:\n";
for (auto &[id, name] : problem_factory.map())
std::cout << id << ", " << name << std::endl;
std::cout << "\nRegistered Integer Suites:\n";
for (auto &[id, name] : suite_factory.map())
std::cout << id << ", " << name << std::endl;
}
}
int main()
{
show_registered_objects();
problem_example();
suite_example();
experiment_example();
logger_example();
}