Commit f6f2b60a authored by jonas's avatar jonas
Browse files

output winning percentage for non trivial instances

parent 07067752
......@@ -41,4 +41,5 @@ nincidences_dummy_simple
nincidences_dummy_non_simple
nedges_dummy_cut_networks
nsteps_dummy_multiple_sources
gather_data_determine_better
thread_test
......@@ -37,8 +37,8 @@ SCIP_RETCODE del_prob_data (SCIP* scip, SCIP_PROBDATA** probdata){
std::cout << "data" << std::endl;
SCIPfreeBlockMemory(scip, probdata);
return SCIP_OKAY;
std::cout << "test2" << std::endl;
return SCIP_OKAY;
}
......
......@@ -17,6 +17,7 @@ int main(int argc, char** argv){
size_t win_counter = 0;
size_t win_counter_more_than_1_sec = 0;
size_t counter = 0;
for(Data data : data_vector){
......@@ -28,11 +29,15 @@ int main(int argc, char** argv){
auto modelb_perf_vec = modelb_search->second;
assert(modela_perf_vec.size() == 1);
assert(modelb_perf_vec.size() == 1);
if(modela_perf_vec[0].time_in_sec > modelb_perf_vec[0].time_in_sec){
assert(modela_perf_vec[0].values_complete() && modelb_perf_vec[0].values_complete());
if(modela_perf_vec[0].time_in_sec.second < modelb_perf_vec[0].time_in_sec.second){
if(modelb_perf_vec[0].time_in_sec.second > 1){
++win_counter_more_than_1_sec;
}
++win_counter;
}
++counter;
}
std::cout << "modela wins " << (double)win_counter/counter*100 << "% of the times" << std::endl;
std::cout << modela << " wins " << (double)win_counter/counter*100 << "% of the times and " << (double)win_counter/counter*100 << "% of the times when discarding instances of less than 1 sec run time in " << modelb << std::endl;
}
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