main.cpp
// compare solution sets and replace with 2 if better 
compare solution sets and replace with 2 if better
compare solution sets and replace with 2 if better
void merge_impl(const std::string & in_path, const std::string & out_path, const std::string & out_path2) {
        crowdy::Problem prob;
        prob.load(in_path + "graph.gml", in_path + "parameters.txt");
        crowdy::Solution base_soln(prob);
        base_soln.load(out_path);
        crowdy::Solution cmp_soln(prob);
        cmp_soln.load(out_path2);
        if (!base_soln.verify() || cmp_soln.score() > base_soln.score()) {
            cmp_soln.save(out_path);
            std::cout << in_path << " REPLACED\n";
        }
    }
void merge_impl ( const std :: string & in_path , const std :: string & out_path , const std :: string & out_path2 ) { crowdy :: Problem prob ; prob . load ( in_path + " " , in_path + " " ) ; crowdy :: Solution base_soln ( prob ) ; base_soln . load ( out_path ) ; crowdy :: Solution cmp_soln ( prob ) ; cmp_soln . load ( out_path2 ) ; if ( ! base_soln . verify ( ) || cmp_soln . score ( ) > base_soln . score ( ) ) { cmp_soln . save ( out_path ) ; std :: cout << in_path << " \n " ; } }
compare solution sets and replace with 2 if better
compare solution sets and replace with 2 if better