diff options
| author | Charlie Blake | 2018-04-06 18:12:12 +0100 |
|---|---|---|
| committer | GitHub | 2018-04-06 18:12:12 +0100 |
| commit | 98829aaa44c0d48fd899be0fead6b9607cf52d69 (patch) | |
| tree | 5f6338fd542c875bd3fcd20bd7ff4f964d447e69 /src/main/evaluation | |
| parent | Merge pull request #50 from thecharlesblake/benchmark-option (diff) | |
| parent | Update solv perc script to output on cerr (diff) | |
| download | metasol-98829aaa44c0d48fd899be0fead6b9607cf52d69.tar.gz metasol-98829aaa44c0d48fd899be0fead6b9607cf52d69.zip | |
Merge pull request #51 from thecharlesblake/fix-build-lab-machines
Fix build to work on lab clients
Diffstat (limited to 'src/main/evaluation')
| -rw-r--r-- | src/main/evaluation/solvability_calc.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/evaluation/solvability_calc.cpp b/src/main/evaluation/solvability_calc.cpp index 98f23bd..702bec3 100644 --- a/src/main/evaluation/solvability_calc.cpp +++ b/src/main/evaluation/solvability_calc.cpp @@ -25,11 +25,11 @@ solvability_calc::solvability_calc(const sol_rules& r) : rules(r) { ////////////////////// void solvability_calc::print_header(long t) const { - cout << "Calculating solvability percentage...\n\n" + cerr << "Calculating solvability percentage...\n\n" "[Lower Bound, Upper Bound] | Solvable/Unsolvable/Intractable " "| Current seed | (Est. Confidence Interval: Continue/Re-eval)" "\n--- Timeout = " << t << " milliseconds ---"; - cout << fixed << setprecision(3); + cerr << fixed << setprecision(3); } void solvability_calc::print_row(const seed_results& seed_res, int seed, @@ -42,7 +42,7 @@ void solvability_calc::print_row(const seed_results& seed_res, int seed, seed_res.intractables()); if (cont != -1 && re_eval !=-1) { - cout << "\n" + cerr << "\n" << "[" << lower_bound * 100 << ", " << upper_bound * 100 << "] | " << seed_res.solvables() @@ -51,14 +51,14 @@ void solvability_calc::print_row(const seed_results& seed_res, int seed, << " | " << seed << " | ("; if (seed_res.intractables() == 0) { - cout << "N/A"; + cerr << "N/A"; } else { - cout << cont * 100 + cerr << cont * 100 << ", " << re_eval * 100; } - cout << ")"; + cerr << ")"; } else { - cout << "\n" + cerr << "\n" << "[-- re-eval --] | " << seed_res.solvables() << "/" << seed_res.unsolvables() << "/" << seed_res.intractables() @@ -67,12 +67,12 @@ void solvability_calc::print_row(const seed_results& seed_res, int seed, } void solvability_calc::print_begin_re_eval_msg(long t) const { - cout << "\n--- Timeout doubled to " << t + cerr << "\n--- Timeout doubled to " << t << " ms. Re-evaluating intractable seeds ---"; } void solvability_calc::print_end_re_eval_msg() const { - cout << "\n--- Re-evaluation complete ---"; + cerr << "\n--- Re-evaluation complete ---"; } |
