TCPSPSuite
src
io
solutionwriter.hpp
1
#ifndef SOLUTIONWRITER_H
2
#define SOLUTIONWRITER_H
3
4
#include <string>
// for string
5
#include <json.hpp>
// for json
6
#include "../datastructures/maybe.hpp"
7
class
Solution
;
8
9
class
SolutionWriter {
10
public
:
11
SolutionWriter(
const
Solution
&solution, Maybe<unsigned long int> res_id);
12
void
write_to(std::string filename);
13
14
private
:
15
void
prepare();
16
void
dump_jobs();
17
18
const
Solution
&solution;
19
Maybe<unsigned long int> res_id;
20
nlohmann::json j;
21
};
22
23
#endif
Solution
a soultion for a TCPSP instance
Definition:
solution.hpp:17
Generated by
1.8.17