Skip to content

Commit ff1d461

Browse files
committed
rdnopa
1 parent 87c981b commit ff1d461

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

docs/src/rdnopa-2025.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,28 @@ plus boundary, control and state constraints
3535

3636
- [Simple example](@ref example-double-integrator-time)
3737
- [Use LLM](@ref manual-ai-llm)
38-
- Do more...
3938

4039
```@raw html
41-
<details><summary>Simple example, generated code</summary>
40+
<details><summary>Do more...</summary>
41+
```
42+
43+
```text
44+
rewrite in OptimalControl.jl DSL the free time problem below as a problem with fixed final time using:
45+
- a change time from t to s = t / tf
46+
- tf as an additional state variable subject to dtf / ds = 0
47+
ocp = @def begin
48+
tf ∈ R, variable
49+
t ∈ [0, tf], time
50+
x = (q, v) ∈ R², state
51+
u ∈ R, control
52+
-1 ≤ u(t) ≤ 1
53+
q(0) == -1
54+
v(0) == 0
55+
q(tf) == 0
56+
v(tf) == 0
57+
ẋ(t) == [v(t), u(t)]
58+
tf → min
59+
end
4260
```
4361

4462
```julia
@@ -107,10 +125,9 @@ c(X_i, U_i) \leq 0,\quad i = 0,\dots,N
107125
- Modelling and optimising for GPU: [ExaModels.jl](https://exanauts.github.io/ExaModels.jl/dev/guide) + [MadNLP.jl](https://madnlp.github.io/MadNLP.jl), with **built-in AD**
108126
- Compile into an ExaModel (one pass compiler, [syntax + semantics](https://github.com/control-toolbox/CTParser.jl/blob/20c6be5c953587fef10b054a95f9dc8c66b90577/src/onepass.jl#L145))
109127

110-
- Solving (MadNLP + CUDSS)
111128

112129
```@raw html
113-
<details><summary>Simple example, generated code</summary>
130+
<details><summary>Solving (MadNLP + CUDSS)</summary>
114131
```
115132

116133
```julia

0 commit comments

Comments
 (0)