Hello, I am trying to run a power flow program (electrical engineering). The routine works perfectly if the bar number vector is of the type:
A=[1;2;3;4;5;6;7;8]
The problem is that eventually I come across vectors of the type:
B=[1;2;7;8;9;15;16;17]
One solution I was thinking was to map the 'B' vector (which occurs) to the 'A' vector (created during the routine). The problem is that: since the program rotates and converges, I need to have the results as a function of vector 'A' and not the auxiliary vector 'B', so this correlation can not be lost.
My best idea is to create an array where column 1 is vector A and column 2 is vector B. Is there any better way to do this?