You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not able to start a generator which is state at time T is 0MW or off. In the following script, I tried to start gen at node 23 increasing its power but I got an exception:
Grid2OpException AmbiguousAction InvalidRedispatching InvalidRedispatching('Impossible to dispatched a turned off generator')
import numpy as np
import grid2op
env = grid2op.make('wcci_test')
env.chronics_handler.tell_id(183)
print(env.chronics_handler.get_name())
# Set min up/down time = 0
env.gen_min_downtime = np.zeros(shape=env.gen_min_downtime.shape)
env.gen_min_uptime = np.zeros(shape=env.gen_min_uptime.shape)
env.gen_uptime = np.zeros(shape=env.gen_uptime.shape)
env.gen_downtime = np.zeros(shape=env.gen_downtime.shape)
# Run Game from specific ts
t0, tf = 7163, 7168
# Run donothing and trying to start a thermal unit
obs = env.reset()
env.fast_forward_chronics(t0)
for i in range(tf-t0+1):
if t0+i == 7165:
action = {'redispatch': [(13, +2.5)]} # Start a thermal unit 18 at node 23
else:
action = {} # Do nothing
obs, reward, done, info = env.step(env.action_space(action))
print ('Thermal MW: {:2f} MW at ts {:1d}'.format(obs.prod_p[13], t0+i))
print (info['exception'])
EDIT (BD): I updated the above script to work
The text was updated successfully, but these errors were encountered:
This was not a bug but rather the normal behaviour. Indeed, as you saw, it's clearly stipulated that today you cannot redispatch a turned off generator.
In the next realese we'll see how to best address this by giving the possibility to either:
forbid the dispatch on the turned off generator (which is totally irrealistic btw)
allow it for simplicity (which would make the game easier, not to mention the generation of the chronics...)
Hello,
I am not able to start a generator which is state at time T is 0MW or off. In the following script, I tried to start gen at node 23 increasing its power but I got an exception:
Grid2OpException AmbiguousAction InvalidRedispatching InvalidRedispatching('Impossible to dispatched a turned off generator')
EDIT (BD): I updated the above script to work
The text was updated successfully, but these errors were encountered: