Skip to content

Type-stable solving with non-numeric parameters? #3715

Open
@hersle

Description

@hersle

I am solving ODEs that depend on non-numeric parameters. The concrete parameter type differs between problems (e.g. with/without AD), so I can only type it abstractly in the system definition (e.g. @parameters P::SomeAbstractType).

With all combinations of SII.set*_oop and remake I have tried, this makes the generated ODE function type-unstable in solve. This kills my performance.

Are there any tools I should look into to work around this? Or is this an insurmountable limitation for now?

Let me know if an example helps. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions