Skip to content

Commit

Permalink
Fixed #5.
Browse files Browse the repository at this point in the history
  • Loading branch information
hurak committed Feb 20, 2025
1 parent edec4f0 commit dc3d6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lectures/opt_algo_derivatives.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $$
=
\underbrace{
\begin{bmatrix}
1\\ -\frac{g}{l}\sin\theta
\omega\\ -\frac{g}{l}\sin\theta
\end{bmatrix}}_{\mathbf f(\bm x)},
$$
where $l=1\,\mathrm{m}$ is the length of the pendulum, $g=9.81\,\mathrm{m}/\mathrm{s}^2$ is the acceleration due to gravity, $\theta$ and $\omega$ are the angle and angular velocity of the pendulum, respectively. We are going to simulate the trajectory of the pendulum that is initially at some nonzero angle, say, $\theta(0) = \pi/4 = \theta_0$, and zero velocity, that is, $\omega(0) = 0 = \omega_0$. And we are going to consider the 2-norm (actually its square for convenience) of the state vector at the end of the simulation interval as the cost function to be minimized, for which we need to evaluate the gradient at the initial state.
Expand Down

0 comments on commit dc3d6e9

Please sign in to comment.