-
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
Improve @def #206
Comments
@ocots side notes:
|
You could simply redo all the parsing since you have the model in https://github.com/control-toolbox/CTBase.jl/blob/main/src%2Ftypes.jl#L1157 We could use this here: https://control-toolbox.org/OptimalControl.jl/dev/tutorial-basic-example.html#State-constraint |
right, as you did for the REPL. but this only works for an ocp first defined abstractly, while it could be first defined using the functional API. BTW, I more and more think that we should keep the functional API more or less internal.
Yes. Always nice to avoid code duplication. There are other ways, though (working on expressions, strings, then parsing...) Keeping hereafter for further reference #235 |
o = @def expr
in addition to@def o expr
@def! o expr
to update (add feature) existingo
The text was updated successfully, but these errors were encountered: