| 90 | } |
| 91 | |
| 92 | void MO_report_generation( |
| 93 | int generation_number, |
| 94 | const EA::GenerationType<MySolution,MyMiddleCost> &last_generation, |
| 95 | const std::vector<unsigned int>& pareto_front) |
| 96 | { |
| 97 | (void) last_generation; |
| 98 | |
| 99 | std::cout<<"Generation ["<<generation_number<<"], "; |
| 100 | std::cout<<"Pareto-Front {"; |
| 101 | for(unsigned int i=0;i<pareto_front.size();i++) |
| 102 | { |
| 103 | std::cout<<(i>0?",":""); |
| 104 | std::cout<<pareto_front[i]; |
| 105 | } |
| 106 | std::cout<<"}"<<std::endl; |
| 107 | } |
| 108 | |
| 109 | void save_results(const GA_Type &ga_obj) |
| 110 | { |