Added Rocket case study example to Optimal Control folder#431
Open
PetiteChouette wants to merge 1 commit into
Open
Added Rocket case study example to Optimal Control folder#431PetiteChouette wants to merge 1 commit into
PetiteChouette wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #431 +/- ##
=======================================
Coverage 99.77% 99.77%
=======================================
Files 39 39
Lines 6791 6791
=======================================
Hits 6776 6776
Misses 15 15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
pulsipher
requested changes
May 25, 2026
Collaborator
pulsipher
left a comment
There was a problem hiding this comment.
Thanks for this. It looks good, just needs a little more information up front.
Comment on lines
+9
to
+22
| # \begin{gathered} | ||
| # &&\min t_f \\ | ||
| # &&&\frac{ds}{dt}= v \\ | ||
| # &&&\frac{dv}{dt}= (u-0.2*(v^2))/2\\ | ||
| # &&&\frac{dm}{dt}= -0.01(u^2)\\ | ||
| # &&&0 \leq v(t) \leq 1.7 \\ | ||
| # &&&-1.1 \leq v(t) \leq 1.1 \\ | ||
| # &&&s(0) = 0 \\ | ||
| # &&&v(0) = 0 \\ | ||
| # &&&m(0) = 1 \\ | ||
| # &&&s(t_f) = 10 \\ | ||
| # &&&v(t_f) = 0 \\ | ||
| # \end{gathered} | ||
| # ``` |
Collaborator
There was a problem hiding this comment.
This needs to be formatted more like an optimization problem. See
InfiniteOpt.jl/docs/src/examples/Optimal Control/hovercraft.jl
Lines 8 to 17 in 724d56f
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.
Description of example:
The rocket problem is an Optimal Control problem dealing with optimizing final time of a rocket's position from 0 to 10 units of distance away, in this case. Mass, velocity and force over time are also shown graphically.
Reason for addition:
Expansion of the library of optimal control examples, this one solving for final time specifically.