Skip to content
Snippets Groups Projects
Commit a0dc36f7 authored by Caron Olivier's avatar Caron Olivier
Browse files

add annotations for MH-Builder tutorial - adaptive part

parent ec05d10e
Branches
No related tags found
No related merge requests found
Pipeline #4747 failed
...@@ -56,7 +56,7 @@ namespace core::adaptive { ...@@ -56,7 +56,7 @@ namespace core::adaptive {
duration(_duration),improvement_percentage(_improvement_percentage), duration(_duration),improvement_percentage(_improvement_percentage),
max_iterations(_max_iterations), eval(_eval) {} max_iterations(_max_iterations), eval(_eval) {}
// tag::strat[]
/** /**
* run the algorithm with the adaptive strategy * run the algorithm with the adaptive strategy
* @param _in the initial solution * @param _in the initial solution
...@@ -81,7 +81,7 @@ namespace core::adaptive { ...@@ -81,7 +81,7 @@ namespace core::adaptive {
counter++ ; counter++ ;
} }
} }
// end::strat[]
protected: protected:
int duration ; int duration ;
double improvement_percentage ; double improvement_percentage ;
......
...@@ -55,6 +55,7 @@ namespace core::adaptive { ...@@ -55,6 +55,7 @@ namespace core::adaptive {
} }
} }
// tag::strat[]
/** /**
* run the algorithm with the adaptive strategy * run the algorithm with the adaptive strategy
* @param _in the initial solution * @param _in the initial solution
...@@ -67,7 +68,7 @@ namespace core::adaptive { ...@@ -67,7 +68,7 @@ namespace core::adaptive {
this->algorithm(_in, timeCriterion); this->algorithm(_in, timeCriterion);
} }
} }
// end::strat[]
protected: protected:
std::vector<long long int> &durations; std::vector<long long int> &durations;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment