Open apetros opened 5 years ago
Thx @apetros , i have fixed it to:
def agc(ram, start_time, t, comp_type, monitor, obs_name, nominal_frequency, errSum, agcTimeStep, kp, ki, list_of_gens, weight_of_gens, td):
for i in np.arange(start_time+1,t+1,agcTimeStep): # ending time will be include the 't' sec
Great,I would even suggest to start from start_time instead start_time+1.
I have updated this issue~
The modification to have a different time step than 1 second in the AGC has a mistake. The integration is correct but the simulation is still fixed at 1 second step:
This will generate wrong results for and agcTimeStep different than 1.