Skip to content

Parameter handling #34

Open
Open
@lindnemi

Description

@lindnemi

We need to support the following parameter conventions:

global (every node and edge sees all parameters)
local (every edge sees only parameters with the right index)
partially missing (edges might have no parameters, while vertices have either global or local ps)

At the moment global is the standard and local can be achieved by passing a tuple: https://fhell.github.io/NetworkDynamics.jl/dev/directed_and_weighted_graphs/#Parameter-handling-1

The problem with the tuple syntax is that it doesn't play nicely with Flux and MTK. An array-based solution would be desirable and could be based on: https://github.com/SciML/RecursiveArrayTools.jl
Note however, that there seem to remain some problems with MTK & ArrayPartitions combined SciML/ModelingToolkit.jl#341.

The strategy for tackling this will be to modify p_e_idx. Once this is resolved, it should be tested in the relevant environments and the documentation should be expanded.

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