pywr / pywr-next

An experimental repository exploring ideas for a major revision to Pywr using Rust as a backend.
6 stars 4 forks source link

Add parameter name spaces #179

Closed jetuk closed 1 month ago

jetuk commented 5 months ago

For cases where a parameter needs to be added as child of another parameter or node as part of "building" a model from a schema. The current approach requires making a unique global name which has issues with risking conflict and create horrible names.

We currently model this in nodes using "sub-names"; an optional unique identifier in the namespace of the parent node name. The same idea could work with parameters.

However, I wonder if it would make more sense to have an optional parent (and whether the nodes should be re-modelled in this manner also).

See also discussion in #107