Skip to content

Commit 86dfe6f

Browse files
authored
Merge pull request #216 from yasirroni/patch-1
add ga_instance.last_generation_fitness to pygad.rst
2 parents e58005d + 4d9f4a0 commit 86dfe6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/pygad.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,9 @@ It accepts the following parameters:
909909
- ``pop_fitness=None``: An optional parameter that accepts a list of
910910
the fitness values of the solutions in the population. If ``None``,
911911
then the ``cal_pop_fitness()`` method is called to calculate the
912-
fitness values of the population.
912+
fitness values of the ``self.population``. Use
913+
``ga_instance.last_generation_fitness`` to use latest fitness value
914+
and skip recalculation of the population fitness.
913915

914916
It returns the following:
915917

0 commit comments

Comments
 (0)