matpower icon indicating copy to clipboard operation
matpower copied to clipboard

deleting branch and bus

Open AboLregal opened this issue 1 year ago • 1 comments

ad

So I am workin on using pso to minmize generators so I used ext2int but after that I removed generators and i get error why?

AboLregal avatar Jul 23 '23 00:07 AboLregal

Since the ext2int() function removes out-of-service equipment, it temporarily stores them so they can be included again when calling int2ext(). If you add or remove generators from the internally numbered case, int2ext() does not know about that and the data will not match what is expected when it goes to restore the offline generators. So it will throw an error.

I'm guessing that's what's going on in your case, without having the data I need to reproduce the error, I can't be certain.

rdzman avatar Jul 25 '23 18:07 rdzman