Change the value of loads (load_chng_4) in Python
Hi!
I have created a for loop in Python to simulate the load flow in PSS/E for every hour during one year. The only thing that changes in input is the load values (P) and hence I'm using a function that includes:
psspy.loadchng4(node,name,[i,i,i,i,i,i],[ P, f,f,f,f,_f])
However, when I am running the script it complains that _f is not definied. I thought that it would be the default values or the values that I have already given to it. The only thing I want to change for every load during every iteration is the active power. How can I solve this?
Thanks for all the help I can get!