Comments (5)
Hello :-)
The timestep is already in the observation. If "obs" is an observation, then you can access:
obs.year
obs.month
obs.day
obs.hour_of_day
obs.minute_of_hour
And even which day of the week it is with obs.day_of_week
.
I will try to improve the documentation, as clearly it's not perfect, and especially i'll try to be explicit on the unit. Concerning obs.rho
here is what is written:
rho: :class:`numpy.ndarray`, dtype:float
The capacity of each powerline. It is defined at the observed current flow divided by the thermal limit of each
powerline.
rho then don't have any unit. Having a rho of around 0.01 means that the flow is approximately 1% of the thermal limit.
from grid2op.
Thanks for the quick response. I meant numbered timestamps from 0, 1, 2 ...; they would be helpful, but of course the agent can track the timestep itself.
I will try to improve the documentation, as clearly it's not perfect, and especially i'll try to be explicit on the unit.
Thanks! For example, voltage could be given in per unit, Volts or kV. This would be helpful to have in the docs
rho then don't have any unit. Having a rho of around 0.01 means that the flow is approximately 1% of the thermal limit.
Okay, so in the first 10 episodes for the IEEE14 case, all line loadings (bottom plot) are at maximum 1 %? The voltage (top plot) is also stable ergo nothing is happening in this grid.
from grid2op.
Hello again :-)
Thanks for the quick response. I meant numbered timestamps from 0, 1, 2 ...; they would be helpful, but of course the agent can track the timestep itself.
I might be wrong, but i'm not sure it's a common practice in reinforcement learning setting. I think for now the best way to have this information would be to assume data are provided each 5 mins and start on 1st january 2019 (default parameters of class ChronicsHandler.GridValue
. This would be a way to have the number of time steps.
Keeping track of the number of time steps in the agent is also a perfectly valid solution indeed.
Thanks! For example, voltage could be given in per unit, Volts or kV. This would be helpful to have in the docs
The new version 0.5.0 (pushed this morning) include that information in the documentation (see https://grid2op.readthedocs.io/en/v0.5.0/observation.html#grid2op.Observation.Observation). Voltages are given in Volt (V), power is MW and reactive power in MVar usually.
Looking more at this is, Camilo Romero and I also found a bug in converting pair-unit to volt. This bug has also been fixed in this version.
Okay, so in the first 10 episodes for the IEEE14 case, all line loadings (bottom plot) are at maximum 1 %? The voltage (top plot) is also stable ergo nothing is happening in this grid.
You are correct, this case is given as an example, and is merely present for tests and to show how grid2op works. It should not be used "as is" to train an agent.
To develop an Agent, i recommend to use the "l2rpn_2019" environment:
import grid2op
env = grid2op.make("l2rpn_2019", chronics_path=PATH/TO/L2RPN2019/DATA)
I will try to post the training data for L2RPN_2019 somewhere and has the package to automatically download the 1004 chronics that were provided for the competitors. In the mean time, they are available in the codalab challenge (I intend to do it when coding #20 ), any help welcome of course.
from grid2op.
I'm reasonably sure that the voltage is returned in kV and not V (l2rpn grid):
obs.v_ex
Out[3]:
array([101.2 , 101.71529709, 107.2 , 101.34659884,
101.71529709, 101.34659884, 101.71529709, 103.98526154,
102.72860143, 104. , 101.66475643, 102.08620353,
102.7609168 , 108.4 , 102.72860143, 99.8014417 ,
102.24393243, 102.7609168 , 101.66475643, 99.8014417 ])
from grid2op.
You are correct, i will fix that in the documentation. Thanks
from grid2op.
Related Issues (20)
- Do not start with ref topo == everything to busbar 1 HOT 1
- Codalab scoring throws an error when filtering chronics HOT 16
- Wrong total time step when providing "max_step" in ScoreL2RPN2020 HOT 1
- 'h_forecast' bug when creating env without forecast for l2rpn_idf_2023 HOT 4
- Expand Observation + Action to check for game-ending topology changes HOT 4
- Simulation on current state reapply actual_dispatch when a redispatch action has been applied before HOT 7
- Being able to specify position of elements (powerlines, loads, generators, storages directly in the layout)
- Minor Change in Runner to allow for parallel computing with tensorflow models and Pool HOT 2
- Switch problems for maintenance functions in the environment("l2rpn_wcci_2020") HOT 2
- Tutorial 1: Grid2Op integration with existing frameworks HOT 2
- [Feature] Set init state HOT 1
- In reset, also add possibility to change the parameters, forecast parameters, max iter and skip time steps HOT 2
- Improve the handling of "name_chronics_to_backend"
- Optimal Clustering of Substations for Topology Optimization Using the Louvain Algorithm HOT 7
- Can not reproduce Runner or ScoreL2RPN2022's results when used with the MultiFolderWithCache feature HOT 1
- Using a generator as the slack bus in Grid2Op Environment's PandaPower BackEnd HOT 4
- Convert observation to per unit
- Update Introduction.ipynb HOT 2
- Allow loads / generators to be disconnected without a game over
- grid2op.make(...) not threadsafe? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grid2op.