Skip to content

provide API function to take tunables parameter mapping and make canonicalized vector of valuesΒ #3099

@isaacsas

Description

@isaacsas

The tutorial: https://docs.sciml.ai/ModelingToolkit/stable/examples/remake/ is very useful for understanding the new parameter setup, but it would be nice if it could show a way for users to specify an initial guess for the optimizer via a parameter mapping, and/or specify the lb and ub bounds via one. Right now it isn't clear how a user can figure out the tunable parameter ordering, and hence they wouldn't easily know which components of lb and ub correspond to which parameters. While this can be done by inspection of tunable_parameters(sys), it seems like a more MTK consistent workflow would be to have a varmap_to_vars equivalent that takes a mapping of tunable_parameters to values, and a parameter object (or system?), and returns a vector of the parameter values that is consistent with canonicalize and replace!.

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