Skip to content

Commit 504f026

Browse files
authored
Update index.md
1 parent 6602204 commit 504f026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ x(t) = x0 + (xf - x0) * t / tf # Linear interpolation
117117
u(t) = [0.1, 0.5, 0.] # Initial guess for the control
118118
nlp_init = (state=x, control=u, variable=tf) # Initial guess for the NLP
119119
120-
@def ocp begin
120+
ocp = @def begin
121121
tf ∈ R, variable
122122
t ∈ [0, tf], time
123123
x = (P, ex, ey, hx, hy, L) ∈ R⁶, state

0 commit comments

Comments
 (0)