8000 docs: correct context on "multi-objective" by divineforge · Pull Request #254 · ahmedfgad/GeneticAlgorithmPython · GitHub
[go: up one dir, main page]

Skip to content

docs: correct context on "multi-objective" #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/source/pygad.rst
Original file line number Diff line number Diff line change
8C93 Expand Up @@ -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
Expand All @@ -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:
Expand Down
0