Skip to content

Commit

Permalink
Fix the headings in algorithms.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KRM7 committed Aug 10, 2023
1 parent c91149b commit cdb1d1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/algorithms.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ There are 3 algorithms provided by the library:

All of these algorithms are in the `gapp::algorithm` namespace.

# Selecting the algorithm
## Selecting the algorithm

By default, if no algorithm is specified for the GA, one will automatically
be selected based on the number of objectives of the fitness function being used.
Expand Down Expand Up @@ -67,7 +67,7 @@ ga.algorithm(nullptr);
ga.solve(f); // uses the default algorithm
```

# The single-objective algorithm
## The single-objective algorithm

The `SingleObjective` algorithm is not a concrete algorithm implementation
like the NSGA-II and NSGA-III algorithms are. It is simply a wrapper that
Expand All @@ -88,7 +88,7 @@ ga.algorithm(algorithm::SingleObjective{ selection::Tournament{}, replacement::E
ga.solve(f);
```
# Custom algorithms
## Custom algorithms
In addition to the algorithms provided by the library, it is also possible to
use user-defined algorithms in the GAs. These must be implemented as a class
Expand All @@ -104,7 +104,7 @@ public:
};
```

# Custom selection and replacement methods (single-objective)
## Custom selection and replacement methods (single-objective)

For the `SingleObjective` algorithms, it's possible to define additional selection
and replacement methods separately without having to define a completely new
Expand Down

0 comments on commit cdb1d1c

Please sign in to comment.