Skip to content

Commit 98a9563

Browse files
author
Dutto
committed
Add Docs
1 parent ad644e3 commit 98a9563

File tree

5 files changed

+8364
-658
lines changed

5 files changed

+8364
-658
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ makedocs(
1313
),
1414
pages = [
1515
"Introduction" => "index.md",
16-
"2D example" => "2D-example.md",
16+
"Indirect shooting" => "2D-example.md",
1717
]
1818
)
1919

docs/src/2D-example.md

Lines changed: 355 additions & 28 deletions
Large diffs are not rendered by default.

docs/src/index.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1-
# Geometric preconditioner for indirect shooting
1+
# Optimal control problem
22

3-
blabla
3+
We consider the following optimal control problem
4+
5+
```math
6+
\left\{ \begin{array}{ll}
7+
\displaystyle \min_{x,u} \int_{t_0}^{t_f} x(t) ~\mathrm dt \\[1em]
8+
\text{s.c.}~\dot x(t) = u(t), & t\in [t_0, t_f]~\mathrm{a.e.}, \\[0.5em]
9+
\phantom{\mathrm{s.c.}~} u(t) \in [-1,1], & t\in [t_0, t_f], \\[0.5em]
10+
\phantom{\mathrm{s.c.}~} x(t_0) = x_0, \quad x(t_f) = x_f,
11+
\end{array} \right.
12+
```
13+
14+
with $x_0$, $t_0$, $x_f$ and $t_f$ fixed. This problem is simple, and can be analytically solve without the use of numerical method. However, the goal is to solve this problem by indirect shooting.

resources/2D-example.ipynb

Lines changed: 659 additions & 627 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)