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

206 improve def #233

Merged
merged 4 commits into from
Aug 10, 2024
Merged

206 improve def #233

merged 4 commits into from
Aug 10, 2024

Conversation

jbcaillau
Copy link
Member

@def can now also be used without naming the problem defined:

ocp = @def begin
           t  [0, 1], time
           x  R², state
           u  R, control
           x(0) == [ -1, 0 ]
           x(1) == [ 0, 0 ]
           (t) == [ x₂(t), u(t) ]
           ( 0.5u(t)^2 )  min
       end
  • Keeping the previous version for compat. (Also allows log=true mode to print out parsing info.)
  • doc updates needed

@jbcaillau jbcaillau linked an issue Aug 9, 2024 that may be closed by this pull request
@github-actions github-actions bot requested a review from ocots August 9, 2024 22:10
@jbcaillau
Copy link
Member Author

@ocots

@jbcaillau jbcaillau marked this pull request as ready for review August 10, 2024 11:51
@ocots ocots merged commit 2c0086d into main Aug 10, 2024
2 checks passed
@ocots ocots deleted the 206-improve-def branch August 10, 2024 11:55
@ocots
Copy link
Member

ocots commented Aug 10, 2024

Youcan make a new release updating the Z.

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

Successfully merging this pull request may close these issues.

Improve @def
2 participants