From 40a1da3242231a0e51317fdeea1badcadfc6e6ff Mon Sep 17 00:00:00 2001 From: jhumeau Date: Tue, 23 Mar 2010 16:29:59 +0000 Subject: [PATCH] doc modified git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1710 331e1502-861f-0410-8da2-ba01fb791d7f --- branches/newMo/src/explorer/moHCneutralExplorer.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/branches/newMo/src/explorer/moHCneutralExplorer.h b/branches/newMo/src/explorer/moHCneutralExplorer.h index f6a5abce4..9176d1c0d 100644 --- a/branches/newMo/src/explorer/moHCneutralExplorer.h +++ b/branches/newMo/src/explorer/moHCneutralExplorer.h @@ -70,7 +70,12 @@ public: moSolNeighborComparator& _solNeighborComparator, unsigned _nbStep) : moSimpleHCneutralExplorer(_neighborhood, _eval, _neighborComparator, _solNeighborComparator), - nbStep(_nbStep){} + nbStep(_nbStep){ + //Some cycle is possible with equals fitness solutions if the neighborhood is not random + if(!neighborhood.isRandom()){ + std::cout << "moHCneutralExplorer::Warning -> the neighborhood used is not random" << std::endl; + } + } /** * Destructor @@ -106,7 +111,7 @@ public: }; /** - * accept test if an amelirated neighbor was be found + * accept test if an ameliorated neighbor was be found * @param _solution the solution * @return true if the best neighbor ameliorate the fitness or is equals */