# Genetic Algorithms in Elixir: Chapter 2

**URL:** <https://forum.devtalk.com/t/genetic-algorithms-in-elixir-chapter-2/3495>\
**Category:** PragProg Customers\
**Tags:** book-genetic-algorithms-in-elixir, errata\
**Created:** [27 October 2020 21:09 UTC](https://forum.devtalk.com/t/genetic-algorithms-in-elixir-chapter-2/3495 "2020-10-27T21:09:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![seanmor5](https://forum.devtalk.com/user_avatar/forum.devtalk.com/seanmor5/32/1169_2.png) [@seanmor5](https://forum.devtalk.com/u/seanmor5)\
**Post date:** [28 October 2020 12:00 UTC](https://forum.devtalk.com/t/genetic-algorithms-in-elixir-chapter-2/3495/2 "2020-10-28T12:00:58Z")

</div>

I’ll adjust the placeholder. As far as the reference to two run functions, I initially named `run` and `evolve` the same thing, I must have missed that reference. Most of the stuff in regards to passing hyperparameters via `opts` is necessary for playing with some configurations later on. For example, `opts` is used to specify `:population_size` in `initialize`. I believe there’s a mistake in the transcription of the signature of `initialize` where it says:

```elixir
def initialize(opts \\ []) do
   # ...omitted...
end

```

It should say:

```elixir
def initialize(genotype, opts \\ []) do
   # ...omitted...
end

```

Thank you for the feedback 🙂 !

---

_[View the full topic](https://forum.devtalk.com/t/genetic-algorithms-in-elixir-chapter-2/3495)._
