mzy2240 / ESA

Easy SimAuto (ESA): An easy-to-use Power System Analysis Automation Environment atop PowerWorld Simulator Automation Server (SimAuto)
https://mzy2240.github.io/ESA/
Apache License 2.0
42 stars 12 forks source link

Add helper functions for graph analysis #94

Closed mzy2240 closed 1 year ago

mzy2240 commented 1 year ago

Add supports for DetermineBranchesThatCreateIslands, DeterminePathDistance, and DetermineShortestPath commands.

For DeterminePathDistance, we can temporarily use one of the custom field column (be sure to check whether the column is empty in advance!) to save the result, and then use GetParametersMultipleElement to read the column into a dataframe.

Below is a script command example:

DeterminePathDistance(Bus 1, Z, All, CustomFloat:0)
mzy2240 commented 1 year ago

Addressed in the latest release.