Skip to content

Improve interface for passing matrices and/or network reduction kwargs #132

@m-bossart

Description

@m-bossart

Currently the kwargs for applying network reductions must match the ptdf matrix if it is passed directly.
For example, this will fail because ptdf was computed without additional network reductions which contradicts the kwargs. We should have a better interface so users don't need to make changes in both places.

ptdf = PNM.PTDF(sys)
template = PSI.ProblemTemplate(
                    PSI.NetworkModel(
                    PSI.PTDFPowerModel;
                    PTDF_matrix = ptdf,
                    use_slacks = true, 
                    reduce_radial_branches = true,     
                    reduce_degree_two_branches = true,
                                )
                            )

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions