pranavsb / RL_smart_grid

We implemented a general, extensible Environment of a Smart Grid with the ability to simulate interactions between multiple Sources and Loads. Using the Environment, we implemented RL Battery Agents - specifically, using Q-learning and SARSA. We also analysed on a use case of the smart grid: Implementation of a smart Battery Agent to power usage optimizations in a Dynamic Pricing scenario
MIT License
22 stars 4 forks source link

About the error "FileNotFoundError: [Errno 2] No such file or directory" #1

Open YancyWang007 opened 4 years ago

YancyWang007 commented 4 years ago

There is no "B20P10" and "B101P10" in the directory. What do the "B20P10" and "B101P10" mean? The error is shown as follows. Thanks for your help.

Traceback (most recent call last): File "D:/Q-EOSGT/model/AnalyseDay.py", line 79, in load_agent_dict[i] = read_model(load_agent_params[i]) File "D:\Q-EOSGT\model\Utils.py", line 101, in read_model 'rb') as f: FileNotFoundError: [Errno 2] No such file or directory: 'D:\Q-EOSGT\model/basic_qlearning_models/B20P10/moving_buckets/randomize_battery/dumloads999/df0.95/lr0.1/vanilla_agent_9999.pickle'

asaelbarilan commented 3 years ago

having the same problem. did you solve that?

pranavsb commented 3 years ago

Hi @YancyWang007 and @asaelbarilan

B10P10 means Battery 10 and Price 10, this is the number of discrete states for each, like Discrete(10) if you've used Open AI gym.

To have these pickle files, you need to first train the models, then you can run AnalyseDay.py