Commit 45ee57d6 authored by Valentin Antuori's avatar Valentin Antuori
Browse files

update .h in order to compile

parent 9f3c3480
......@@ -77,6 +77,10 @@ public:
vector<double> avg_travel_time[4];
vector<double> avg_train_time[2];
vector<int> num_att[4];
// the actual sequence of operations
vector<int> sequence;
vector<int> maximum_tardiness;
double get_avg_travel_time(const int op) const;
double get_avg_train_time(const int op) const;
......@@ -87,6 +91,9 @@ public:
// return .5 * (slope * t / (1 + abs(slope * t))) + .5;
return slope * t / (1 + abs(slope * t));
}
int get_tardiness() const {
return maximum_positive_tardiness.back();
}
private:
......@@ -97,13 +104,12 @@ private:
int start_train_length{0};
//
vector<int> maximum_tardiness;
vector<int> maximum_positive_tardiness;
int min_action_tardiness;
int max_action_tardiness;
// the actual sequence of operations
vector<int> sequence;
// the set of possible operations
vector<int> actions;
......@@ -143,8 +149,8 @@ private:
// used to store the probabilities of the actions
vector<long int> proba;
vector<double> fitnesses;
vector<double> exp_fitness;
vector<double> fitnesses;
vector<double> exp_fitness;
long int precision{1000000};
......@@ -155,9 +161,7 @@ private:
std::mt19937 random_generator;
int get_tardiness() const {
return maximum_positive_tardiness.back();
}
// int get_tardiness() const {
// return maximum_positive_tardiness.back();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment