Skip to content

[General] Component-wise dynamics #247

@ocots

Description

@ocots

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

           (t) == v(t)
           (v)(t) == u(t)

           0.5( u(t)^2 )  min
       end
ERROR: Control Toolbox Error

❌ Error: CTBase.Exceptions.ParsingError, 
Line 6: (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]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions