You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/examples/rosenbrock.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,19 @@ for common workflows of the package and give copy-pastable starting points.
11
11
the installation and usage of OptimizationOptimJL.jl package, see the
12
12
[Optim.jl page](@ref optim).
13
13
14
+
The objective of this exercise is to determine the values $a$ and $b$ that minimize the Rosenbrock function, which is known to have a global minimum at $(a, a^2)$.
15
+
```math
16
+
f(x, y; a, b) = \left(a - x\right)^2 + b \left(y - x^2\right)^2
17
+
```
18
+
19
+
The domains $x$ and $y$ are first captured as a new vector $\hat{x}$. Parameters $a$ and $b$ are captured as a new vector $\hat{p} and assigned values to produce the desired Rosenbrock function.
20
+
```math
21
+
\hat{x} = \begin{bmatrix} x \\ y \end{bmatrix}
22
+
\hat{p} = \begin{bmatrix} a \\ b \end{bmatrix} = \begin{bmatrix} 1 \\ 100 \end{bmatrix}
23
+
```
24
+
25
+
An optimization problem can now be defined and solved to estimate the values for $\hat{x}$ that minimize the output of this function.
0 commit comments