MCPcopy Create free account
hub / github.com/Arash-codedev/openGA / MO_report_generation

Function MO_report_generation

examples/mo-1/example_mo1.cpp:92–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void 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
109void save_results(const GA_Type &ga_obj)
110{

Callers 1

report_generationMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected