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

Betts 10 103 104 #261

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

Peter230655
Copy link
Contributor

@Peter230655 Peter230655 commented Nov 5, 2024

This may be mildly interesting for examples-gallery:
It compares a simple system with four ODEs and one AE for five state variables vs. the same system except the AE is differentiated w.r.t time.
I would have expected that the system with the AE gives better results, and this is confirmed at least in this example.
(I think, there is a typo in these two problems: It states, that the objective function should be maximized, but I only got close to his results when I minimized it, Update: John Betts confirmed this typo by email)

An aside:
In Betts' book, the examples are calculated to around 7 significant digits (as stated in appendix A2 of his book) whereas opty normally meets the eoms much closer, here around 11 digits. This may be a reason (other than different machines) that the few examples I have set up always run much slower than the running time Betts gives.

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