IBM / rl-testbed-for-energyplus

Reinforcement Learning Testbed for Power Consumption Optimization using EnergyPlus
MIT License
179 stars 74 forks source link

ExtCtrlObs function #12

Closed khoderj closed 5 years ago

khoderj commented 5 years ago

The built-in function ExtCtrlObs as described in the paper represents the state vector and expects two parameters; the index and its corresponding value. However, the two models in the repository (other than the baseline model) don't always abide by the function definition and they call it as follows:

Best Regards, Khoder Jneid

khoderj commented 5 years ago

Could someone please provide me with some information on how the problem could be fixed?

Regards, Khoder Jneid

takaomoriyama commented 5 years ago

The error message says the new command "@EXTCTRLOBJS" is not registered to EnergyPlus you are running. Please check the followings. Confirm if patch to EnergyPlus is successfully applied. How to patch is described in the README.md as follows:

$ patch -p1 < ../rl-testbed-for-energyplus/EnergyPlus/RL-patch-for-EnergyPlus-8-8-0.patch

I'd recommend the following command and see nothing is output. If *.rej file is shown, there is some error in patching EnergyPlus source code.

find . -name "*.rej"
khoderj commented 5 years ago

Executing the command (find ...) didn't output anything but the problem was solved when patching is performed again. Much appreciated.

takaomoriyama commented 4 years ago

Additional note:

If you are using EnergyPlus v9.1.0, use the following command instead.

$ patch -p1 < ../rl-testbed-for-energyplus/EnergyPlus/RL-patch-for-EnergyPlus-9-1-0.patch