Skip to content

Commit

Permalink
Add a second stopping criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
fmder authored Jun 17, 2017
1 parent d3196c6 commit d373024
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/examples/ga_onemax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ of the individuals
.. literalinclude:: /../examples/ga/onemax.py
:lines: 94-95

and evolve our population until one of them reaches ``100``.
and evolve our population until one of them reaches ``100`` or the number of
generations reaches ``1000``.

.. literalinclude:: /../examples/ga/onemax.py
:lines: 97-99,100-104
Expand Down

0 comments on commit d373024

Please sign in to comment.