IBM / rl-testbed-for-energyplus

Reinforcement Learning Testbed for Power Consumption Optimization using EnergyPlus
MIT License
191 stars 77 forks source link

Unable to plot graphs. #89

Closed prsi7 closed 2 years ago

prsi7 commented 2 years ago

Hi i got Eplog file, but unable get the graphs using - python3 -m baselines_energyplus.common.plot_energyplus -l Please let me know what I'm doing wrong or i need to plot the graph on different platform.

prsi7 commented 2 years ago

this is the place where i'm stuck now! Screenshot from 2022-05-12 18-56-48 Screenshot from 2022-05-12 18-58-12 )

antoine-galataud commented 2 years ago

Hi @prsi7. Thanks for reporting this issue.

The problem comes from an EnergyPlus output variable name change that happened between 9.3.0 and 9.4.0. You can find it mentioned in a documention issue in NREL repo here

Basically, Electric Demand Power variables were renamed Electricity Demand Rate in E+ 9.4.0 an onward. The automatic IDF upgrade tool worked well but our python code requires a change.

antoine-galataud commented 2 years ago

@prsi7 I've just pushed a fix, let me know if you still face issues with this.

prsi7 commented 2 years ago

@antoine-galataud Thank you so much. Yes, it's working now.

Screenshot from 2022-05-19 17-16-51

Also need guidance regarding the graph plot as per paper like this do we need to plot it separately out side the container ?
energyplus_plot

antoine-galataud commented 2 years ago

please refer to https://github.com/IBM/rl-testbed-for-energyplus/tree/master/docker#plotting (I just added it). Let me know if doesn't work.

prsi7 commented 2 years ago

@antoine-galataud Thank you so much it is working now with new container.

What if we want to plot the previous old container which was already trained for so long and has output.

antoine-galataud commented 2 years ago

@prsi7 hum, indeed that'd be annoying to lose that. My suggestion: