-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line that will be in maintenance next time step are not taken into account in the "simulate" function #148
Comments
Hello, I think there is some misunderstanding here on the "obs.time_before_cooldown_line" that is not exactly the attack. Actually cooldown on line can come of 3 different manners:
Cooldown only means "you cannot act on the status of this powerline for XXX steps" So yes, you have the impression that However, you are right it appears maintenance, on the first time step, are not correctly taken into account into simulate (there is a difference of 1 time steps). |
Thanks for your explanation! It's good to know that the behavior of simulate in 1.2.2 does not take maintenance into account and I guess it will remain as it is in the current competition environment. Actually, I kind of like the wrong behavior of the "simulate" function since it could possibly make the my RL agent easier to code. I know from the definition of "simulate", you probably want to fix it to take maintenance into account. Maybe it is a good idea to make the fix as the default and retain the option of not considering maintenance as well. I don't know if other people want this feature or not. Anyway, thanks for addressing this issue! I'll close it since it has been fixed. |
Some improvments, mainly for gym_compat
Environment
1.2.2
Archlinux
Bug description
Line maintenance seems to be treated as an attack, which is reflected in the attack duration.
How to reproduce
Code snippet
Current output
Expected output
Please look at my comments in the code snippet. I found this when I try to test the behavior of
obs.simulate
, what I find is that the maintenance of duration 96 is treated as an attack of duration 96, which is indicated by the the attack_duration of power line 18. As I understand it, the true attacks are currently hard coded to have duration of 48. I think the above results indicates that line maintenance are treated as attacks in the environment andobs.simulate
will not be able to predict a line maintenance as they are essentially attacks.The text was updated successfully, but these errors were encountered: