Skip to content

Added Rocket case study example to Optimal Control folder#431

Open
PetiteChouette wants to merge 1 commit into
infiniteopt:masterfrom
PetiteChouette:master
Open

Added Rocket case study example to Optimal Control folder#431
PetiteChouette wants to merge 1 commit into
infiniteopt:masterfrom
PetiteChouette:master

Conversation

@PetiteChouette
Copy link
Copy Markdown

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.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.77%. Comparing base (724d56f) to head (07a9dfd).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@pulsipher pulsipher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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}
# ```
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be formatted more like an optimization problem. See

# The corresponding dynamic optimization problem is expressed:
# ```math
# \begin{aligned}
# &&\underset{x(t), v(t), u(t)}{\text{min}} &&& \int_{t \in T} |u(t)|_2^2 dt \\
# &&\text{s.t.} &&& v(0) = v0\\
# &&&&& \frac{dx}{dt} = v(t), && t \in T\\
# &&&&& \frac{dv}{dt} = u(t), && t \in T\\
# &&&&& x(t_i) = xw_i, && i \in I
# \end{aligned}
# ```
for an example. We also need to define what all the variables are and describe the the overall goal of the problem in a little more detail.

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.

2 participants