Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elaborate Type Hierarchy for Key Types #1229

Open
GabrielKS opened this issue Jan 29, 2025 · 0 comments
Open

Elaborate Type Hierarchy for Key Types #1229

GabrielKS opened this issue Jan 29, 2025 · 0 comments
Assignees

Comments

@GabrielKS
Copy link
Contributor

GabrielKS commented Jan 29, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant