8000 Merge pull request #254 from divineforge/patch-1 · zwleisa/GeneticAlgorithmPython@e54e5e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit e54e5e8

Browse files
authored
Merge pull request ahmedfgad#254 from divineforge/patch-1
docs: correct context on "multi-objective"
2 parents 74a1375 + c4b17f9 commit e54e5e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/pygad.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ Let's discuss how to do each of these steps.
10391039
Preparing the ``fitness_func`` Parameter
10401040
-----------------------------------------
10411041

1042-
Even there are some steps in the genetic algorithm pipeline that can
1042+
Even though some steps in the genetic algorithm pipeline can
10431043
work the same regardless of the problem being solved, one critical step
10441044
is the calculation of the fitness value. There is no unique way of
10451045
calculating the fitness value and it changes from one problem to
@@ -1060,14 +1060,14 @@ optimization problem is single-objective or multi-objective.
10601060
``pygad.GA`` class.
10611061

10621062
- If the fitness function returns a ``list``, ``tuple``, or
1063-
``numpy.ndarray``, then the problem is single-objective. Even if
1063+
``numpy.ndarray``, then the problem is multi-objective. Even if
10641064
there is only one element, the problem is still considered
10651065
multi-objective. Each element represents the fitness value of its
10661066
corresponding objective.
10671067

10681068
Using a user-defined fitness function allows the user to freely use
1069-
PyGAD to solve any problem by passing the appropriate fitness
1070-
function/method. It is very important to understand the problem well for
1069+
PyGAD solves any problem by passing the appropriate fitness
1070+
function/method. It is very important to understand the problem well before
10711071
creating it.
10721072

10731073
Let's discuss an example:

0 commit comments

Comments
 (0)
0