Skip to content

Commit 4d4f93d

Browse files
authored
Change math equation in README.md from Himmelblau to Hosaki (#161)
Now the math equation matches the code. Fixes #136.
1 parent 7eb2f87 commit 4d4f93d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Indeed, if `autodiff isa ADTypes.AutoForwardDiff`, we assume that the user alrea
4040
#### Optimization
4141
Say we want to minimize the Hosaki test function
4242

43-
$$f(x, y) = (x^2 + y - 11)^2 + (x + y^2 - 7)^2$$
43+
$$f(x_1,x_2)=\left(1 - 8x_1 + 7x_1^2 - \frac{7}{3}x_1^3 + \frac{1}{4}x_1^4\right) x_2^2e^{-x_2}$$
4444

4545
The relevant functions are coded in Julia as
4646
```julia
@@ -76,7 +76,7 @@ td1 = TwiceDifferentiable(f, g!, h!, x)
7676
tdfg = TwiceDifferentiable(f, g!, fg!, h!, x)
7777
```
7878
#### Multivalued objective
79-
If we consider the gradient of the Himmelblau function above, we can try to solve $\nabla F(x) = 0$ without caring about the objective value. Then we can still create `NDifferentiable`s, but we need to specify the cache to hold the value of $\nabla F(x)$. Currently, the only relevant ones are `NonDifferentiable` and `OnceDifferentiable`. `TwiceDifferentiable` could be used for higher order (tensor) methods, though they are rarely worth the cost. The relevant functions coded in Julia are:
79+
If we consider the gradient of the Hosaki function above, we can try to solve $\nabla F(x) = 0$ without caring about the objective value. Then we can still create `NDifferentiable`s, but we need to specify the cache to hold the value of $\nabla F(x)$. Currently, the only relevant ones are `NonDifferentiable` and `OnceDifferentiable`. `TwiceDifferentiable` could be used for higher order (tensor) methods, though they are rarely worth the cost. The relevant functions coded in Julia are:
8080

8181
```julia
8282
function f!(F, x)

0 commit comments

Comments
 (0)