This file provides instructions to run the model.
This model is an implementation of Deep Q learning for the purpose of Home Energy Management.
You need Python to run the model.
In Ubuntu, Mint and Debian you can install Python 3 like this:
$ sudo apt-get install python3 python3-pip
Some of the dependencies required to run the code, and some info about the environment (e.g., reward, actions, etc.).
- tensorflow (>= 2.3)
- numpy
- Pandas
- matplotlib
Use the package manager pip to install them.
C:\Project_PATH>pip install tensorflow
C:\Project_PATH>pip install numpy
C:\Project_PATH>pip install Pandas
C:\Project_PATH>pip install matplotlib
There are 3 simple command line interface to run the code for training, testing and ploting:
C:\Project_PATH>python main.py -train_model <number_of_Episodes>
note that
300 Episodes should be enough
.
C:\Project_PATH>python main.py -test_model
You can plot one of the graphs: "money_spent", "battery_charge", "reward_function"
C:\Project_PATH>python main.py -plot_graph money_spent
C:\Project_PATH>python main.py -plot_graph battery_charge
C:\Project_PATH>python main.py -plot_graph reward_function
C:\Project_PATH>python main.py -plot_graph demands
C:\Project_PATH>python main.py -plot_graph generation