moRandImprSelect.h minor correction
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@888 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
a082e32513
commit
b3a9c32658
286 changed files with 1 additions and 27161 deletions
|
|
@ -103,7 +103,7 @@ class moRandImprSelect: public moMoveSelect < M >
|
|||
|
||||
if( (better_fitnesses.size()==0) || (better_moves.size()==0) )
|
||||
{
|
||||
std::cout << "[moRandImprSelect.h]: no move or/and no fitness already saved, update has to be called first." << std::endl;
|
||||
throw std::runtime_error("[moRandImprSelect.h]: no move or/and no fitness already saved, update has to be called first.");
|
||||
}
|
||||
|
||||
index = rng.random (better_fitnesses.size ());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue