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

Examples 10.73 and 10.74 from Betts' book #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Peter230655
Copy link
Contributor

@Peter230655 Peter230655 commented Nov 26, 2024

These two examples solve the same problem, but formulated differently.
This may be a candidate for examples-gallery for these reasons:

  • 10.73 has a boundary condition at the final time: function(state variables, parameters) = 0. As opty currently does not allow such instance constraints, I introduced an additional state variable, hilfs, and an additional equation of motion as hilfs - function(state variables, parameters). Then I set an instance_constraint as hilfs($t_f$) = 0.
    I believe there is no such example in examples-gallery.
  • while 10.74 converged very rapidly, 10.73 only converged with very close initial guesses. This shows, that the formulation of a problem has a (big) influence on the ease of solving it.

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.

1 participant