It turns out that pypower uses 0-based indexing, not 1-based indexing (unlike matpower).
It is confusing, because the comments do seem to indicate that 1-based indexing is used, but these comments were just carried over from the original matpower code.
Otherwise it is a fairly straightforward port.
It turns out that pypower uses 0-based indexing, not 1-based indexing (unlike matpower). It is confusing, because the comments do seem to indicate that 1-based indexing is used, but these comments were just carried over from the original matpower code. Otherwise it is a fairly straightforward port.