-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolversexecutor.h
More file actions
44 lines (28 loc) · 782 Bytes
/
Copy pathsolversexecutor.h
File metadata and controls
44 lines (28 loc) · 782 Bytes
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
#ifndef SOLVERSEXECUTOR_H
#define SOLVERSEXECUTOR_H
#include <string>
#include <vector>
#include <iostream>
#include "solver.h"
#include "TSP.h"
#include "TSPSolution.h"
using namespace std;
class SolversExecutor
{
private:
const char *mFilename;
TSP mTspInstance;
vector<Solver*> mSolvers;
vector<TSPSolution*> mBestSolutions;
vector<TSPSolution*> mInitSolutions;
public:
SolversExecutor(const char *filename);
void addRandomSeedInitSolution(int seed);
void addRandomInitSolution();
void addSolver(Solver* solver);
void execute();
void executeAndMeasureTime(Solver& tspSolver, TSPSolution& initSol, TSPSolution& bestSol);
void printInitSolutions() const;
void printResults() const;
};
#endif // SOLVERSEXECUTOR_H