TroglodyteDerivations commited on
Commit
0c73e49
1 Parent(s): b843472

Updated line 694 and 700 with: p[0] = x and p[1] = y

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -691,13 +691,13 @@ iface = gr.Interface(
691
  The objective function to be optimized is given by the following formula:
692
 
693
  ```math
694
- f(p) = -5.0 \cdot \exp \left( -0.5 \cdot \left( \frac{(p[0]+2.2)^2}{0.4} + \frac{(p[1]-4.3)^2}{0.4} \right) \right) + -2.0 \cdot \exp \left( -0.5 \cdot \left( \frac{(p[0]-2.2)^2}{0.4} + \frac{(p[1]+4.3)^2}{0.4} \right) \right)
695
  ```
696
 
697
  Or in a more readable form:
698
 
699
  $$
700
- f(p) = -5.0 \cdot \exp \left( -0.5 \cdot \left( \frac{(p[0]+2.2)^2}{0.4} + \frac{(p[1]-4.3)^2}{0.4} \right) \right) + -2.0 \cdot \exp \left( -0.5 \cdot \left( \frac{(p[0]-2.2)^2}{0.4} + \frac{(p[1]+4.3)^2}{0.4} \right) \right)
701
  $$
702
  """,
703
  article="## Grey Wolf Optimizer\nThe Grey Wolf Optimizer (GWO) is a population-based metaheuristic optimization algorithm inspired by the social behavior of grey wolves in nature."
 
691
  The objective function to be optimized is given by the following formula:
692
 
693
  ```math
694
+ f(p) = -5.0 \cdot \exp \left( -0.5 \cdot \left( \frac{(x+2.2)^2}{0.4} + \frac{(y-4.3)^2}{0.4} \right) \right) + -2.0 \cdot \exp \left( -0.5 \cdot \left( \frac{(x-2.2)^2}{0.4} + \frac{(y+4.3)^2}{0.4} \right) \right)
695
  ```
696
 
697
  Or in a more readable form:
698
 
699
  $$
700
+ f(p) = -5.0 \cdot \exp \left( -0.5 \cdot \left( \frac{(x+2.2)^2}{0.4} + \frac{(y-4.3)^2}{0.4} \right) \right) + -2.0 \cdot \exp \left( -0.5 \cdot \left( \frac{(x-2.2)^2}{0.4} + \frac{(y+4.3)^2}{0.4} \right) \right)
701
  $$
702
  """,
703
  article="## Grey Wolf Optimizer\nThe Grey Wolf Optimizer (GWO) is a population-based metaheuristic optimization algorithm inspired by the social behavior of grey wolves in nature."