diff --git a/docs/source/pygad.rst b/docs/source/pygad.rst index 9a512f6..33a3bb3 100644 --- a/docs/source/pygad.rst +++ b/docs/source/pygad.rst @@ -1039,7 +1039,7 @@ Let's discuss how to do each of these steps. Preparing the ``fitness_func`` Parameter ----------------------------------------- -Even there are some steps in the genetic algorithm pipeline that can +Even though some steps in the genetic algorithm pipeline can work the same regardless of the problem being solved, one critical step is the calculation of the fitness value. There is no unique way of calculating the fitness value and it changes from one problem to @@ -1060,14 +1060,14 @@ optimization problem is single-objective or multi-objective. ``pygad.GA`` class. - If the fitness function returns a ``list``, ``tuple``, or - ``numpy.ndarray``, then the problem is single-objective. Even if + ``numpy.ndarray``, then the problem is multi-objective. Even if there is only one element, the problem is still considered multi-objective. Each element represents the fitness value of its corresponding objective. Using a user-defined fitness function allows the user to freely use -PyGAD to solve any problem by passing the appropriate fitness -function/method. It is very important to understand the problem well for +PyGAD solves any problem by passing the appropriate fitness +function/method. It is very important to understand the problem well before creating it. Let's discuss an example: