This code and data are the companion to the paper Pricing EV Charging Service with Demand Charge which will appear in PSCC 2020.
Clone this repository onto your local machine.
We recommend using a virtual environment to manage dependencies, you can create one by running
python -m venv venv
Activate the virtual environment by running
source venv/bin/activate
You can then install all dependencies by running
pip install -r requirments.txt
To calculate prices and offline schedules as described in the paper, run
python pricing_experiment
*Note that this experiment can take a while to run. If you like, you can shorten the number of months to consider to speed it up. See line 115.
The code for actually calculating prices is found in pricing_rule.
To preform scheduling with only online information, run
python online_cost_minimization
All plotting and evaluation are contained in the Jupyter Notebook evaluation.ipynb.