First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
answered May 12 '3
Use an inner loop for an integer 1 - 99.
Convert the value to string id.
Check if load id already exists with e.g. psspy.lodint(ibus, id, 'STATUS').
psspy.lodint(ibus, id, 'STATUS')
Break loop if load id does not exist.