Skip to content

Slow jump construction likely due to substitute #426

@isaacsas

Description

@isaacsas

On Discourse, here, a graph SIR model was reported to take an exceptionally long time to construct the JumpProblem (18.55s out of a total time to run a simulation of 18.85s).

On running the profiler it seems the overwhelming majority of the time is being taken in the substitute call within assemble_maj at

pval = simplify(substitute(sr,parammap)).value

I'll look into whether we can detect that the rate is just a symbol and skip this call, which should be the case for this example, but more generally is there anything that can be done about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions