Skip to content

Question on Boundary Value Problem initial guess handling with adaptive grid refinement #513

Description

@JBMcVey

The recent PRs #500 and #511 addressed issues having to do with use of a previous solution object as the initial guess for a boundary value solution, something that is common in the continuation method for solving BVPs. The description of the fix in #511 indicated that the initial guess is stripped down to the extracted u0 vector. If this is the standard, then the user can easily do this as well by simply passing (for example) "sol.u" rather than "sol" for the initial guess. The only reason that I wanted to pass the complete solution object is to use adaptive grid refinement, as the solution object contains the non-uniform grid points in t, whereas the u0 vector assumes a uniform grid based on the specified value of "dt". The discussion in #511 seems to indicate, however, that the non-uniform grid information is never used for an initial guess. Therefore, passing the whole solution object rather than just a vector of solution values has no value that I can see.

One could still use adaptive grid refinement for continuation if one first interpolates the solution values for a non-uniform grid back to a uniform grid and then use that as the initial guess for the next call to the BVP solver. However, in my code I've found there is a significant amount of computational effort that goes into determining the optimal grid points for each solution call. This effort would then have to be replicated for each subsequent solution, which seems wasteful.

Is there any future plan to implement handling of initial guesses when adaptive grid refinement is used? If so, can you say anything about the timeline for such an enhancement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions