-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abstract: future #71
Comments
Would be nice to have also x = (position, velocity) ∈ R², state to use |
This has been added: x = (position, velocity) ∈ R², state See CTBase.jl/test/test_onepass.jl Line 10 in f594793
|
To declare the time, state and control, I propose: @def begin
t ∈ [ 0, 1 ], time
x ∈ R³, state
u ∈ R², control
end
# or
@def begin
(t, x, u) ∈ [ 0, 1 ] × R³ × R²
end @def begin
v ∈ R², variable
t ∈ [ 0, v₂ ], time
x ∈ R³, state
u ∈ R², control
end
# or
@def begin
(t, x, u, v) ∈ [ 0, v₂ ] × R³ × R² × R²
end @def begin
t ∈ [ 0, 1 ], time
x = (a, b, c) ∈ R³, state
u ∈ R², control
u₁ ≥ 0
0 ≤ c ≤ 1
end
# or
@def begin
t ∈ [ 0, 1 ], time
x = (a, b, c) ∈ R² × [ 0, 1 ] , state
u ∈ R₊ × R, control
end
# or
@def begin
t ∈ [ 0, 1 ], time
x = (a, b, c) ∈ R × R × [ 0, 1 ] , state
u ∈ [ 0, +∞) × R, control
end |
For the record, the abstract form is great, I am increasingly using it instead of the 'functional' form :-) It feels a bit like when we added the proper gui for bocop: after a while I very rarely used the command-line since the gui was just better. The main thing holding me back are the non-standard characters. I'll try to find the time to add some bits (looking at you, dear <=) ! |
You can write non unicode if you want. Check the tutorial 😁 Ou à partir de là tu as des exemples : CTBase.jl/test/test_onepass.jl Line 2405 in 3741864
|
@PierreMartinon yes. I believe the functional syntax should probably be kept internal. the only advantage is that it is incremental (and that you can delete a constraint...) but re-defining an abstract problem just costs nothing so... as mentioned by @ocots, full non-unicode support now. sone that wasn't you asked so 🙂... |
related to #257 |
@ocots @PierreMartinon @joseph-gergaud @j-l-s Some todo's suggestions:
constraint!
does help for this)[ ]DAE form (in place
dynamics (f!(ẋ(t), x(t), u(t))
) or evenF(ẋ(t), x(t), u(t)) == 0
)[ ] for thein place
form, using a keyword likex'[2](t) == ...
,(each time callx'[2:4](t) == ...
dynamics!
, and assemble afterwards what the dynamics is...) [Feature] Dynamics components #292@Lie [ X, Y ]
and@Poisson { f, g }
directly (= without@
) in the DSL?The text was updated successfully, but these errors were encountered: