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.
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.