Skip to content

Commit

Permalink
Merge pull request #16 from rafaelbailo/main
Browse files Browse the repository at this point in the history
Fix typos in docs for Ackley and Rastrigin
  • Loading branch information
TimRoith authored Mar 6, 2024
2 parents 71bae48 + 8ab5e32 commit d3f6bfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cbx/objectives.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ class Rastrigin(cbx_objective):
.. math::
\tilde{f}(x,y) = \frac{1}{n} \sum_{i=1}^n (x_i - b)^2 - 10 \cos(2 \pi (x_i - b)) + 10 + c.
\tilde{f}(x,y) = \frac{1}{n} \sum_{i=1}^n \left[ (x_i - b)^2 - 10 \cos(2 \pi (x_i - b)) + 10 \right] + c.
Parameters
----------
Expand Down Expand Up @@ -432,7 +432,7 @@ class Ackley(cbx_objective):
.. math::
f(x,y) = -20 \exp \left( -b \sqrt{\frac{1}{2} (x^2 + y^2)} \right) - \exp \left( \frac{1}{2} \cos(c x) + \cos(c y) \right) + a + e
f(x,y) = -20 \exp \left( -b \sqrt{\frac{1}{2} (x^2 + y^2)} \right) - \exp \left( \frac{1}{2} (\cos(c x) + \cos(c y)) \right) + a + e
See `Ackley's function <https://en.wikipedia.org/wiki/Ackley_function>`_.
Expand Down

0 comments on commit d3f6bfa

Please sign in to comment.