Commit adedcb1e authored by Alexis Lebis's avatar Alexis Lebis

removed stc::cout printing

parent f7666c03
...@@ -36,22 +36,22 @@ class eoInitConstraintCSDVP: public eoInit<EOT> ...@@ -36,22 +36,22 @@ class eoInitConstraintCSDVP: public eoInit<EOT>
possibleIDbyTF[tmp[j]-pb.cfg_minimalTimeFrame()].push_back(i); possibleIDbyTF[tmp[j]-pb.cfg_minimalTimeFrame()].push_back(i);
} }
} }
for(int i=0; i<possibleIDbyTF.size(); i++){ // for(int i=0; i<possibleIDbyTF.size(); i++){
std::cout << "Possible course in TF " << i+pb.cfg_minimalTimeFrame() << ": "; // std::cout << "Possible course in TF " << i+pb.cfg_minimalTimeFrame() << ": ";
for(int j=0; j<possibleIDbyTF[i].size(); j++){ // for(int j=0; j<possibleIDbyTF[i].size(); j++){
std::cout << possibleIDbyTF[i][j] << " "; // std::cout << possibleIDbyTF[i][j] << " ";
} // }
std::cout << std::endl; // std::cout << std::endl;
} // }
} }
virtual void operator()(EOT& chrom){ virtual void operator()(EOT& chrom){
int cpt=0; int cpt=0;
std::cout << "Enter init" << std::endl; //std::cout << "Enter init" << std::endl;
unsigned int r=eo::rng.random(possibleIDbyTF[0].size()); unsigned int r=eo::rng.random(possibleIDbyTF[0].size());
chrom.resize(0); chrom.resize(0);
chrom.push_back(possibleIDbyTF[0][r]); chrom.push_back(possibleIDbyTF[0][r]);
std::cout << "push " << possibleIDbyTF[0][r] << std::endl; //std::cout << "push " << possibleIDbyTF[0][r] << std::endl;
for(int i = 1; i < chromSize; i++){ for(int i = 1; i < chromSize; i++){
cpt=0; cpt=0;
r=eo::rng.random(possibleIDbyTF[i/sizeTF].size()); r=eo::rng.random(possibleIDbyTF[i/sizeTF].size());
...@@ -60,9 +60,9 @@ class eoInitConstraintCSDVP: public eoInit<EOT> ...@@ -60,9 +60,9 @@ class eoInitConstraintCSDVP: public eoInit<EOT>
cpt++; cpt++;
} }
if(cpt<maxVal){ if(cpt<maxVal){
std::cout << i << " " << r << " "; //std::cout << i << " " << r << " ";
chrom.push_back(possibleIDbyTF[i/sizeTF][r]); chrom.push_back(possibleIDbyTF[i/sizeTF][r]);
std::cout << "push " << possibleIDbyTF[i/sizeTF][r] << std::endl; //std::cout << "push " << possibleIDbyTF[i/sizeTF][r] << std::endl;
} }
else{ else{
r=eo::rng.random(maxVal); r=eo::rng.random(maxVal);
......
Markdown is supported
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