Skip to content
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

[Feature] Add system of annotations to the parser #304

Open
ocots opened this issue Sep 16, 2024 · 1 comment
Open

[Feature] Add system of annotations to the parser #304

ocots opened this issue Sep 16, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ocots
Copy link
Member

ocots commented Sep 16, 2024

Thanks to @gdupont1, we thought about adding a system of annotations to the parser to give the possibility to extend our parsing to external developers.

Question. @jbcaillau Why do we have to write == instead of = for the constraints?

Remark. Another idea is to provide an intermediate structured data between the definition of the optimal control problem and the OptimalControlModel to facilitate manipulations such as adding a state, normalizing the time, etc.

@ocots ocots added the enhancement New feature or request label Sep 16, 2024
@ocots ocots self-assigned this Sep 16, 2024
@jbcaillau
Copy link
Member

@ocots @gdupont1 hi!

Thanks to @gdupont1, we thought about adding a system of annotations to the parser to give the possibility to extend our parsing to external developers.

Question. @jbcaillau Why do we have to write == instead of = for the constraints?

= for aliases, == for constraints (including dynamical ones). CaML spirit 🙂 (a constraint is not a definition but sth you want to enforce). it is standard for all but dynamical constraints (still, it also makes sense in this case).

Remark. Another idea is to provide an intermediate structured data between the definition of the optimal control problem and the OptimalControlModel to facilitate manipulations such as adding a state, normalizing the time, etc.

please write sth illustrating what you think of on a relevant use case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants