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 58 #259

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

Betts 10 58 #259

wants to merge 5 commits into from

Conversation

Peter230655
Copy link
Contributor

@Peter230655 Peter230655 commented Nov 2, 2024

I think, this may be a candidate for examples-gallery for these reasons:

  • it deals with the 'discretization' of a partial differential equation. I do not think, there is such an example in examples-gallery.
  • in additon to the 11 DEs for the 11 state variables, two AEs are given. opty needs exactly 11 DAEs for 11 state variables. So, I solve the AEs for one of the state variables each (luckily they can be solved symbolically, likely unusual in general) and substitute into the DEs.
  • the objective function depends on the state variables at the final point in time only. Other than minimizing the time interval h, I do not think, there is such an objective function in the examples.
  • I iterate over the solution three times, using the solution as initial guess for the next turn. I have done this with another example, but here I can actually do it, running time still short, and it shows how the optimization improves. (Betts gives $2.45 \cdot 10^{-3}$ as optimum, but I see no reason, why it should not be zero.)

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