InfrastructureSystems.jl icon indicating copy to clipboard operation
InfrastructureSystems.jl copied to clipboard

Elaborate Type Hierarchy for Key Types

Open GabrielKS opened this issue 10 months ago • 2 comments

Currently, VariableType, ParameterType, etc. have no type hierarchy. In new PowerAnalytics, we define some unions:

"The various key entry types that can work with a System"
const SystemEntryType = Union{
    PSI.VariableType,
    PSI.ExpressionType,
}

"The various key entry types that can be used to make a PSI.OptimizationContainerKey"
const EntryType = Union{
    SystemEntryType,
    PSI.ParameterType,
    PSI.AuxVariableType,
    PSI.InitialConditionType,
}

to handle these types more generically. @daniel-thom and I think something like this (not wedded to this layout, but something that groups these key types in useful ways) would be good to include in the type hierarchy itself.

GabrielKS avatar Jan 29 '25 21:01 GabrielKS

This actually belongs in InfrastructureSystems.Optimization.

GabrielKS avatar Feb 06 '25 02:02 GabrielKS

This is a good idea but requires more design conversations.

jd-lara avatar May 06 '25 18:05 jd-lara