intelligent-environments-lab / CityLearn

Official reinforcement learning environment for demand response and load shaping
MIT License
462 stars 167 forks source link

[FEATURE REQUEST] Is there a way to access the planned states and actions? #57

Closed lijiayi9712 closed 1 year ago

lijiayi9712 commented 1 year ago

Is your feature request related to a problem? Please describe. I am trying to test a pricing algorithm using CityLearn platform. I am wondering if there are ways to access the planned states and actions of each building, or whether the environment has planned states and actions?

Describe the solution you'd like

Describe alternatives you've considered I have considered randomly initializing random planned states for each building if the environment doesn't have one already.

Additional context Thank you!

kingsleynweye commented 1 year ago

@lijiayi9712 you can access active building observations and actions to tell you the names of observations and actions that will be in use during the simulation.

To get a building's observation values for the current time step, use the observations method. There is a similar observations property at the env level.

The actions for the current time step are those parsed to the step function.

Please, let me know if these answer your questions.

lijiayi9712 commented 1 year ago

Thanks!