Merged
Conversation
Closed
frapac
requested changes
Sep 2, 2024
Collaborator
frapac
left a comment
There was a problem hiding this comment.
Overall looks good to me.
Please make sure you follow Julia's conventions:
- ensure that the indentations remain consistent (always use 4 spaces to indent, do not mix the indentations in the same file)
- add unit-tests in
testto check if the problems are well defined and run to optimality with Ipopt
…olbox/OptimalControlProblems.jl into 4-dev-add-cots-models
Member
|
@0Yassine0 Check this tutorial: https://control-toolbox.org/OptimalControl.jl/stable/tutorial-nlp.html 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
docp, nlp = direct_transcription(ocp)
using NLPModelsIpopt
nlp_sol = ipopt(nlp; print_level=5, mu_strategy="adaptive", tol=1e-8, sb="yes") |
ocots
approved these changes
Sep 3, 2024
ocots
approved these changes
Sep 4, 2024
Collaborator
|
@0Yassine0 tells me when the PR is ready for review, it looks like you are still doing some updates |
Contributor
Author
ocots
approved these changes
Sep 5, 2024
frapac
requested changes
Sep 5, 2024
frapac
approved these changes
Sep 5, 2024
Collaborator
frapac
left a comment
There was a problem hiding this comment.
LGTM.
I would suggest to use "Squash & Merge" to merge this PR in main, to keep a clean git history.
Contributor
Author
|
I just extended the time limit because the quadrator problem passes the test in a bit more time then set. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.