forked from CorinnaKrebs/SolutionValidator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWrite.h
More file actions
46 lines (37 loc) · 1.13 KB
/
Write.h
File metadata and controls
46 lines (37 loc) · 1.13 KB
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
#pragma once
#include "Instance.h"
#include "Solution.h"
namespace validator {
class ConstraintSet;
/**
* The Write Class.
*/
class Write {
public:
/**
* Write an instance to file.
*
* @param path the path of the output file.
* @param instance the instance
*/
static void instanceFile(const std::string path, Instance& instance);
/**
* Write a constraint set to file.
*
* @param path the path of the output file.
* @param constraintSet the constraintSet
* @param constraintNumber the number of the constraint set
*/
static void constraintFile(const std::string path, ConstraintSet& constraintSet, const int constraintNumber);
/**
* Write a packing plan (aka solution) to file.
*
* @param path the path of the output file.
* @param solution the solution
* @param instance the instance
* @param constraintNo the constraint number (e.g. P1)
* @param seed the seed, the test number
*/
static void solutionFile(const std::string path, Solution& solution, Instance& instance, const int constraintNo, const int seed);
};
}