2 #include "searchtuner.h"
3 #include "kmeanstuner.h"
5 int main(int argc, char **argv) {
7 printf("You should specify %s budget rounds timeout problemfilenames - tunerfilenames", argv[0]);
13 sscanf(argv[1], "%u", &budget);
14 sscanf(argv[2], "%u", &rounds);
15 sscanf(argv[3], "%u", &timeout);
17 KMeansTuner *multituner = new KMeansTuner(budget, rounds, timeout);
18 bool tunerfiles = false;
19 for (int i = 4; i < argc; i++) {
21 if (argv[i][0] == '-' && argv[i][1] == 0)
24 multituner->addProblem(argv[i]);
26 multituner->addTuner(new SearchTuner(argv[i]));
30 printf("You should specify %s budget rounds timeout problemfilenames - tunerfilenames", argv[0]);