8000 Update Problems.md · firefly-cpp/FireflyAlgorithm@89f0290 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89f0290

Browse files
authored
Update Problems.md
- There were some rendering issues when doing \sqrt{\sum....} in ackley and salomon. Using \sum\nolimits instead. - Pinter was formatted wrong
1 parent 19d9807 commit 89f0290

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Problems.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Bellow You'll find the definitions of all the test functions implemented in this
66
***Function name:*** `ackley`
77

88
```math
9-
f(x) = -20 e^{-0.2 \sqrt{\frac{1}{D} \sum_{i=1}^D x_i^2}} - e^{\frac{1}{D} \sum_{i=1}^D \cos(2 \pi x_i)} + 20 + e
9+
f(x) = -20 e^{-0.2 \sqrt{D^{-1} \sum\nolimits_{i=1}^D x_i^2}} - e^{D^{-1} \sum\nolimits_{i=1}^D \cos(2 \pi x_i)} + 20 + e
1010
```
1111

1212
**Dimensions:** $D$
@@ -153,9 +153,9 @@ f(x) = \sum_{i = 1}^D \left( \sum_{j = 1}^D (j - \beta) \left( x_j^i - \frac{1}
153153
***Function name:*** `pinter`
154154

155155
```math
156-
f(\mathbf{x}) =
157-
\sum_{i=1}^D ix_i^2 + \sum_{i=1}^D 20i \sin^2 A + \sum_{i=1}^D i \log_{10} (1 + iB^2),\, \text{where}
158-
156+
f(x) = \sum_{i=1}^D ix_i^2 + \sum_{i=1}^D 20i \sin^2 A + \sum_{i=1}^D i \log_{10} (1 + iB^2),\, \text{where}
157+
```
158+
```math
159159
\begin{align}
160160
A &= (x_{i-1}\sin(x_i)+\sin(x_{i+1})) \\
161161
B &= (x_{i-1}^2 - 2x_i + 3x_{i+1} - \cos(x_i) + 1)
@@ -225,7 +225,7 @@ f(x) = \sum_{i=1}^{D-1} \left[100 (x_{i+1} - x_i^2)^2 + (x_i - 1)^2 \right]
225225
***Function name:*** `salomon`
226226

227227
```math
228-
f(x) = 1 - \cos\left(2\pi\sqrt{\sum_{i=1}^D x_i^2} \right)+ 0.1 \sqrt{\sum_{i=1}^D x_i^2}
228+
f(x) = 1 - \cos\left(2\pi\sqrt{\sum\nolimits_{i=1}^D x_i^2} \right)+ 0.1 \sqrt{\sum\nolimits_{i=1}^D x_i^2}
229229
```
230230

231231
**Dimensions:** $D$

0 commit comments

Comments
 (0)
0