Skip to content

Commit 358adf0

Browse files
Fix typos in NDifferentiable examples (#121)
1 parent 1defd33 commit 358adf0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ The `NDifferentiable` interface can be used as shown below to create various obj
6060
x = zeros(2)
6161
nd = NonDifferentiable(f, x)
6262
od = OnceDifferentiable(f, g!, x)
63-
odfg = OnceDifferentiable(f, g!, fg! x)
64-
td1 = Twicedifferentiable(f, g!, h! x)
65-
tdfg = Twicedifferentiable(f, g!, fg!, h! x)
63+
odfg = OnceDifferentiable(f, g!, fg!, x)
64+
td1 = Twicedifferentiable(f, g!, h!, x)
65+
tdfg = Twicedifferentiable(f, g!, fg!, h!, x)
6666
```
6767
#### Multivalued objective
6868
If we consider the gradient of the Himmelblau function above, we can try to solve ![FOCs](https://user-images.githubusercontent.com/8431156/34005673-f7bc5b52-e0fb-11e7-8bd9-86efad17cb95.gif) 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 ![Multivalued objective](https://user-images.githubusercontent.com/8431156/34006586-2de39a3a-e0ff-11e7-8453-48aad94c6b5e.gif). 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:

0 commit comments

Comments
 (0)