Is it what we want—to forbid defining dynamics component-wise using the dot notation?
julia> ocp = @def begin
t ∈ [t0, tf], time
x = (q, v) ∈ R², state
u ∈ R, control
x(t0) == x0
x(tf) == xf
q̇(t) == v(t)
∂(v)(t) == u(t)
0.5∫( u(t)^2 ) → min
end
ERROR: Control Toolbox Error
❌ Error: CTBase.Exceptions.ParsingError,
Line 6: q̇(t) == v(t)
bad constraint declaration
Stacktrace:
[1] top-level scope
@ REPL[6]:0
[2] macro expansion
@ ~/.julia/packages/CTParser/Orjkj/src/onepass.jl:1376 [inlined]
[3] macro expansion
@ REPL[6]:9 [inlined]
Is it what we want—to forbid defining dynamics component-wise using the dot notation?