From 6b886664e88f61be48a0f6836d40f1016f5fabf0 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Wed, 26 Jun 2013 18:09:26 +0200 Subject: [PATCH] Replace a cout msg by a eo::log warning --- moeo/src/metric/moeoHypervolumeBinaryMetric.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moeo/src/metric/moeoHypervolumeBinaryMetric.h b/moeo/src/metric/moeoHypervolumeBinaryMetric.h index a9f3bfe8d..bd6b1e606 100644 --- a/moeo/src/metric/moeoHypervolumeBinaryMetric.h +++ b/moeo/src/metric/moeoHypervolumeBinaryMetric.h @@ -72,8 +72,7 @@ class moeoHypervolumeBinaryMetric : public moeoNormalizedSolutionVsSolutionBinar // consistency check if (rho < 1) { - std::cout << "Warning, value used to compute the reference point rho for the hypervolume calculation must not be smaller than 1" << std::endl; - std::cout << "Adjusted to 1" << std::endl; + eo::log << eo::warnings << "Warning, value used to compute the reference point rho for the hypervolume calculation must not be smaller than 1, adjusted to 1" << std::endl; rho = 1; } } @@ -123,6 +122,7 @@ class moeoHypervolumeBinaryMetric : public moeoNormalizedSolutionVsSolutionBinar double result; double range = rho * bounds[_obj].range(); double max = bounds[_obj].minimum() + range; + // value of _1 for the objective _obj double v1 = _o1[_obj]; // value of _2 for the objective _obj (if _flag=true, v2=max)