-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSolution.h
44 lines (33 loc) · 976 Bytes
/
Solution.h
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
#pragma once
#include <vector>
#include "Tour.h"
namespace validator {
/**
* The type Solution.
*/
class Solution {
public:
Solution() : total_travel_distance(0), feasible(false), total_iterations(0), calculation_time(0) {}
/**
* Instantiates a new Solution.
*
* @param tours the list of Tours
*/
Solution(std::vector<Tour>& tours) : tours(tours), total_travel_distance(0), total_travel_time(0),unloading_effort(0),
feasible(false), total_iterations(0), calculation_time(0) {}
/** the list of Tours */
std::vector<Tour> tours;
/** Total Travel Distance */
double total_travel_distance;
/** Total Travel Time */
double total_travel_time;
/** Total Unloading Effort */
double unloading_effort;
/** Feasibility of the Solution (1: feasible) */
bool feasible;
/** Total Number of conducted Iterations */
unsigned int total_iterations;
/** Total Calculation Time */
double calculation_time;
};
}