[email protected] wrote on 2007-11-19 22:34:40:
> Thanks for pointing this out. The bustypes() function is only intended 
> to be used on data that has been converted to internal consecutive bus 
> number via the ext2int() function. And, within MATPOWER it is always 
> used that way. 
> Your updates do allow it to work on systems that have 
> not been converted to internal bus numbering, but it creates a dense 
> NB x 1 vector, where NB is the largest *external* bus number. This can 
> be can be fixed too with a minor change [1].

You're right, I didn't see that.
 
> Now I need to decide whether to just update the documentation or to 
> actually add this extra step to the code.

This depends, of course, on the question whether this is performance 
critical.
I could also live with having this "precondition" documented at the top of 
the 
bustypes function.

Thanks,

   Joerg

-- 
Dr. Joerg Lehmann
ABB Schweiz AG         Tel: +41 58 586 70 59
Corporate Research     Fax: +41 58 586 73 58
CH-5405 Baden-Dättwil  Mail: [email protected]

Reply via email to