How to detect system unbalance

Hi, is there a function to detect unbalance? In general, how can we detect unbalance without seeing the results?

Check the return value on the function you call to run the analysis. If it’s 1 then the system is unbalanced. Refer to the list of Warning Codes for the meaning of other return values that are less than 100.

I do not understand what you mean, can you explain with an example? What do you mean by Warning Codes list?

Please look here for the list of the Toolkit’s warning codes. The functions EN_runproject, EN_solveH, and EN_runH will return a value of 1 if a network is hydraulically unbalanced.