A Python project to optimize energy consumption using battery storage, peak shaving, and surplus solar energy utilization.
- Validates input data format (timestamps and energy values).
- Optimizes energy consumption through battery charging/discharging.
- Reduces peak loads and calculates cost savings.
- Provides visualizations of load curves and peak comparisons.
Install dependencies:
pip install pandas matplotlib pytestInput data:
Load (lg.csv) and solar (sd.csv) files with Timestamp and kW columns.
Run the script:
python main.pyOutputs:
Optimized data (output.csv).
Load curve and peak comparison charts.
Run tests with:
pytest test_dr/test_input.pyReduced peaks and optimized energy costs.
Summary visualizations and savings analysis.