Skip to content

Commit

Permalink
Update pypop7/benchmarks/base_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Evolutionary-Intelligence committed Aug 17, 2024
1 parent e33f4a0 commit baa5bdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pypop7/benchmarks/base_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __call__(self, x):
def cigar_discus(x):
"""**Cigar-Discus** test function.
.. note:: It's LaTeX formulation is `$\begin{cases} x_1^2 + 10^4 \sum_{i = 1}^{n}x_i^2 + 10^6 x_n^2, \mbox{if}~n = 2 \\ x_1^2 + 10^4 \sum_{i = 2}^{n}x_i^2 + 10^6 x_n^2, \mbox{otherweise} \end{cases}$`. Its dimensionality should `> 1`.
.. note:: Its dimensionality should `> 1`.
Parameters
----------
Expand All @@ -165,7 +165,7 @@ def cigar_discus(x):

class CigarDiscus(BaseFunction):
def __call__(self, x):
"""
"""Class of **Cigar-Discus** test function.
Parameters
----------
Expand All @@ -183,7 +183,7 @@ def __call__(self, x):
def ellipsoid(x):
"""**Ellipsoid** test function.
.. note:: It's LaTeX formulation is `$\sum_{i = 1}^{n} 10^{\frac{6(i- 1)}{n - 1}} x_i^2$`. Its dimensionality should `> 1`.
.. note:: Its dimensionality should `> 1`.
Parameters
----------
Expand Down

0 comments on commit baa5bdb

Please sign in to comment.