这边要用到 但看不明白 问问各位 CHKTRE(ICODE)函数是什么作用的? 返回值个表示什么意思?) C2 I- Z. g, y: F+ I$ E
手册里给的解释如下6 q; }# W( B# A* N
CALL CHKTRE(ICODE) , W- Y( n! ]* qIf the case contains Type 4 (or greater) buses with in-service branches then an error condition is * y: L* k: l; A& rreturned. Counts number of islands not containing a Type 3 (swing) bus. It may be inappropriate to5 r: a6 W2 d$ X- J5 x* J
call this subroutine with generators converted; since there will be no Type 3 buses, it will simply 0 |1 N" g! o( e! g( t% c$ b; ?count every island (finding at least one unless there is no working case). y; d: o. u2 [
ICODE Error code (integer output): 5 k$ {8 Y+ F, @3 S. B! v: y0 No errors. $ Z* s: P2 k4 H2 u-1 No in-service buses remaining.3 Y: B" c) x: `' v5 C5 _
-2 There are Type 4 buses with in-service branches connected. ; y. ^& ?! W% L8 T8 B- i0 u) T; t>0 Number of islands without a Type 3 bus.5 a- `( X& {% w% q
太谢谢了