Skip to content

Commit

Permalink
Update README.md (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVandH authored Aug 7, 2023
1 parent 1f79069 commit b706464
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ result = optimize(rosenbrock, zeros(2), BFGS())
```
This minimizes the [Rosenbrock function](https://en.wikipedia.org/wiki/Rosenbrock_function)

<img src="https://user-images.githubusercontent.com/8431156/31627324-2bbc9ebc-b2ad-11e7-916f-857ad8dcb714.gif" title="f(x,y) = (a-x)^2+b(y-x^2)^2" />
$$
f(x, y) = (a - x)^2 + b(y - x^2)^2
$$

with a = 1, b = 100 and the initial values x=0, y=0.
The minimum is at (a,a^2).
with $a = 1$, $b = 100$ and the initial values $x=0$, $y=0$.
The minimum is at $(a,a^2)$.

The above code gives the output
```jlcon
Expand Down

0 comments on commit b706464

Please sign in to comment.