NB. @0Yassine0 would be nice to use the new syntax `ocp = @def ...` (instead of `@def ocp ...`) _Originally posted by @jbcaillau in https://github.com/control-toolbox/OptimalControlProblems.jl/issues/45#issuecomment-2344794955_