Skip to content

Commit d63f56a

Browse files
committed
fix
1 parent 06b151c commit d63f56a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/tutorial-discretisation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,12 @@ backends = [:optimized, :manual]
147147
for adnlp_backend in backends
148148
149149
# Discretize the problem with a large grid size and Gauss-Legendre method
150-
docp = @btimed direct_transcription($ocp;
150+
bt = @btimed direct_transcription($ocp;
151151
disc_method=:gauss_legendre_3,
152152
grid_size=1000,
153153
adnlp_backend=$adnlp_backend,
154154
)
155+
docp = bt.value
155156
nlp = model(docp)
156157
prepa_time = bt.time
157158

0 commit comments

Comments
 (0)