Skip to content

Commit

Permalink
Merge pull request DEAP#287 from Kaligule/patch-2
Browse files Browse the repository at this point in the history
Add two constants which are used later.
  • Loading branch information
fmder authored Jul 1, 2018
2 parents f6accf7 + 3c6060a commit c44e40f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/examples/ga_onemax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ We :func:`map` the evaluation function to every individual and then assign
their respective fitness. Note that the order in ``fitnesses`` and
``population`` is the same.

Before we go on, this is the time to define some constants we will use later on.

.. literalinclude:: /../examples/ga/onemax.py
:lines: 79-83

-----------------------
Performing the Evolution
-----------------------
Expand Down

0 comments on commit c44e40f

Please sign in to comment.