Skip to content

Support Catalyst named parameter/initial state vectors #60

@kaandocal

Description

@kaandocal

Parameters in ModelingToolkit can be passed as (name, value) pairs or dictionaries. Example:

rn = @reaction_network begin
    s, 0 -> A
    d, A -> 0
end

dprob = DiscreteProblem(rn, [ :A => 5 ], (0, 10.), [ :s => 10, :d => 1])

This seems to work via ModelingToolkit.varmap_to_vars and should probably be added to MomentClosure

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